/* ============================================
   Agdemir Auto Insurance - Main Stylesheet
   Professional, responsive, navy + gold theme
   ============================================ */

:root {
  --navy: #0f2744;
  --navy-light: #1a3a5c;
  --navy-dark: #0a1c2e;
  --gold: #c9a227;
  --gold-light: #e4c04a;
  --gold-dark: #a6851f;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --shadow: 0 4px 20px rgba(15, 39, 68, 0.12);
  --shadow-lg: 0 10px 40px rgba(15, 39, 68, 0.15);
  --transition: 0.3s ease;
  --radius: 8px;
  --radius-lg: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

ul {
  list-style: none;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title .subtitle {
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--gray-100);
}

/* ========== Header & Navigation ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(15, 39, 68, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
}

.logo span {
  color: var(--gold);
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--navy);
  font-weight: 500;
  border-radius: var(--radius);
}

.nav-desktop a:hover {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  transition: transform var(--transition);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 1000;
  overflow-y: auto;
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--navy);
  font-weight: 500;
  border-radius: var(--radius);
}

.nav-mobile a:hover {
  background: var(--gray-100);
  color: var(--gold);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 39, 68, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 992px) {
  .hamburger {
    display: none;
  }

  .nav-desktop {
    display: block;
  }

  .nav-mobile {
    display: none;
  }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?w=1920&q=80') center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero .subheadline {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ========== Coverage Cards ========== */
.coverage-grid,
.why-grid,
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .coverage-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .coverage-grid,
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.3);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--navy-dark);
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ========== CTA Section ========== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-section p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-phone {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-phone a {
  color: var(--gold-light);
}

/* ========== Testimonials ========== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.testimonial-card .stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--navy);
}

.testimonial-card .location {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== Trust Badges ========== */
.trust-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--gray-800);
  font-weight: 500;
}

.trust-badge svg {
  flex-shrink: 0;
  color: var(--gold);
}

/* ========== Footer ========== */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer a {
  color: rgba(255,255,255,0.85);
}

.footer a:hover {
  color: var(--gold-light);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

@media (min-width: 576px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ========== Page Headers ========== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
}

/* ========== About Page ========== */
.about-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.about-block {
  margin-bottom: 2.5rem;
}

.about-block h3 {
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.about-block p {
  color: var(--gray-600);
}

.team-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.team-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.team-card .team-info {
  padding: 1.25rem;
}

.team-card h4 {
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.9rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* ========== Services Page ========== */
.service-detail {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.service-detail h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--gold);
}

.service-detail ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.service-detail li {
  margin-bottom: 0.5rem;
  list-style: disc;
  color: var(--gray-800);
}

/* ========== Contact Page ========== */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: fit-content;
}

.contact-info-card h3 {
  margin-bottom: 1rem;
}

.contact-info-card p,
.contact-info-card a {
  margin-bottom: 0.75rem;
  display: block;
  color: var(--gray-800);
}

.contact-info-card a:hover {
  color: var(--gold);
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2rem;
  aspect-ratio: 16/10;
  background: var(--gray-200);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== Subscribe / Unsubscribe ========== */
.container-narrow {
  max-width: 520px;
  margin: 0 auto;
}

.subscription-form .form-group {
  margin-bottom: 1.25rem;
}

.subscription-form .form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.subscription-form .form-group-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 0.35rem;
  accent-color: var(--gold);
}

.subscription-form .form-group-checkbox label {
  margin-bottom: 0;
  font-weight: 500;
  cursor: pointer;
}

.contact-form .required {
  color: var(--gold);
}

.contact-form .optional {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 400;
}

.field-error {
  display: block;
  font-size: 0.875rem;
  color: #c0392b;
  margin-top: 0.35rem;
}

.contact-form input.invalid {
  border-color: #c0392b;
}

.subscription-success {
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid rgba(39, 174, 96, 0.4);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.subscription-success p {
  margin: 0;
  font-weight: 600;
}

.subscription-privacy {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* ========== Legal Pages (Terms, Privacy) ========== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.legal-content p,
.legal-content li {
  margin-bottom: 0.75rem;
  color: var(--gray-800);
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  list-style: disc;
}

.legal-content .updated {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* ========== Scroll reveal (initial state) ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Utility ========== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
