/* ============================================================
   styles.css — Miguel Centeno | Divorce Document Preparer
   Sections:
     1.  Reset & CSS Variables
     2.  Base
     3.  Navigation
     4.  Hero
     5.  Trust Bar
     6.  Promise
     7.  Services
     8.  Pricing
     9.  Modal / Request Form
    10.  Trust Section (credentials)
    11.  Quote Section
    12.  About
    13.  CTA
    14.  Footer
    15.  Hamburger & Mobile Menu
    16.  Responsive — Tablet (max 900px)
    17.  Responsive — Mobile  (max 480px)
   ============================================================ */


/* ── 1. RESET & CSS VARIABLES ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:         #2b3243;
  --navy-dark:    #1e2535;
  --orange:       #c8621a;
  --orange-light: #d97b35;
  --cream:        #f5f0e8;
  --white:        #ffffff;
  --text-light:   #c8ccd8;
  --text-muted:   #9098ac;
  --border:       rgba(255, 255, 255, 0.1);
}


/* ── 2. BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
}


/* ── 3. NAVIGATION ── */
nav {
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.02em;
  /* prevent brand from overflowing */
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-phone {
  color: var(--text-light);
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}

.nav-phone:hover { color: var(--orange-light); }


/* ── 4. HERO ── */
.hero {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  padding: 80px;
  min-height: 520px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 28px;
}

.hero-content p {
  color: var(--text-light);
  font-size: 17px;
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo img {
  width: 340px;
  height: 380px;
  object-fit: cover;
  border-radius: 14px;
}


/* ── 5. TRUST BAR ── */
.trust-bar {
  background: var(--orange);
  padding: 20px 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}

.trust-dot {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}


/* ── 6. PROMISE ── */
.promise {
  background: var(--cream);
  padding: 80px;
  text-align: center;
}

.promise h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 20px;
}

.promise > p {
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 17px;
  color: #4a5568;
  line-height: 1.75;
}

.promise-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.promise-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: left;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--orange);
}

.promise-card .icon {
  width: 44px;
  height: 44px;
  background: rgba(200, 98, 26, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}

.promise-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.promise-card p { font-size: 14px; color: #5a6478; line-height: 1.6; }


/* ── 7. SERVICES ── */
.services {
  background: var(--navy);
  padding: 80px;
}

.services h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--white);
  text-align: center;
  margin-bottom: 12px;
}

.services .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 52px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 22px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--orange);
  transform: translateY(-3px);
}

.service-card .svc-icon { font-size: 28px; margin-bottom: 14px; display: block; }

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
}

.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }


/* ── 8. PRICING ── */
.pricing {
  background: var(--cream);
  padding: 80px;
  text-align: center;
}

.pricing h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 12px;
}

.pricing .subtitle { font-size: 16px; color: #4a5568; margin-bottom: 48px; }

.pricing-tiers {
  max-width: 660px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tier-card {
  background: var(--white);
  border: 1.5px solid #e8e0d4;
  border-radius: 12px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tier-card:hover { border-color: var(--orange); box-shadow: 0 4px 18px rgba(200, 98, 26, 0.1); }

.tier-popular {
  border-color: var(--orange);
  box-shadow: 0 4px 24px rgba(200, 98, 26, 0.15);
}

.tier-badge {
  position: absolute;
  top: -13px;
  left: 20px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
}

.tier-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.tier-desc { font-size: 13px; color: #7a8090; }

.tier-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange);
  white-space: nowrap;
}

.tier-flex { font-size: 1rem; font-style: italic; }

.pricing-note {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 14px;
  color: #7a8090;
  text-align: center;
  line-height: 1.7;
}


/* ── 9. MODAL / REQUEST FORM ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 40, 0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 44px 40px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.28s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  color: #9098ac;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: var(--navy); }

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.modal-subtitle { font-size: 14px; color: #7a8090; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid #ddd6cc;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--navy);
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }

.form-group textarea { resize: vertical; }

.form-error {
  background: #fff0ee;
  border: 1px solid #f5b8aa;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #c0392b;
  margin-bottom: 12px;
}

.success-icon { font-size: 56px; margin-bottom: 16px; }

.success-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.success-msg { color: #4a5568; font-size: 15px; }
.success-msg a { color: var(--orange); font-weight: 600; text-decoration: none; }


/* ── 10. TRUST SECTION (credentials) ── */
.trust-section {
  background: var(--cream);
  padding: 80px;
}

.trust-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.trust-list {
  list-style: none;
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  color: #3a4358;
  line-height: 1.6;
}

.trust-list li .check {
  width: 24px;
  height: 24px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--orange);
  font-size: 13px;
}


/* ── 11. QUOTE SECTION ── */
.quote-section {
  background: #ede8df;
  padding: 72px 80px;
  text-align: center;
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  color: #d4b89a;
  line-height: 0.6;
  margin-bottom: 28px;
  display: block;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--navy);
  max-width: 680px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.quote-attr { font-size: 14px; color: #7a8090; letter-spacing: 0.04em; }


/* ── 12. ABOUT ── */
.about {
  background: var(--white);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 24px;
}

.about-text p {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 16px;
}

.credential-row {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.credential {
  background: var(--cream);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  border-left: 3px solid var(--orange);
}

.about-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  height: 460px;
  background: #e8e0d4;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;  /* ← shows full face */
  display: block;
}


/* ── 13. CTA ── */
.cta {
  background: var(--orange);
  padding: 72px 80px;
  text-align: center;
}

.cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  background: var(--white);
  color: var(--orange);
  border: none;
  border-radius: 8px;
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }


/* ── 14. FOOTER ── */
footer {
  background: var(--navy-dark);
  padding: 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  gap: 24px;
}

footer .brand { color: var(--text-light); font-size: 14px; line-height: 1.8; }
footer .brand a { display: inline-block; margin-top: 8px; color: var(--orange-light); }
footer .footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
footer .footer-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
footer .footer-social a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
}
footer .footer-social svg {
  width: 18px;
  height: 18px;
}
footer .legal { color: var(--text-muted); font-size: 12px; max-width: 560px; line-height: 1.6; }
footer a { color: var(--orange-light); text-decoration: none; }


/* ── 15. HAMBURGER & MOBILE MENU ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.hamburger:hover { background: rgba(255, 255, 255, 0.08); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animate to X when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: menuSlide 0.22s ease;
}

@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu.open { display: flex; }

.mobile-menu-phone {
  color: var(--orange-light);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.mobile-menu-link {
  color: var(--text-light);
  font-size: 15px;
  text-decoration: none;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s;
}

.mobile-menu-link:hover { color: var(--white); }

.mobile-menu-cta {
  margin-top: 16px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: background 0.2s;
}

.mobile-menu-cta:hover { background: var(--orange-light); }


/* ── 16. RESPONSIVE — TABLET (max 900px) ── */
@media (max-width: 900px) {

  /* Nav */
  nav {
    padding: 0 20px;
    height: 64px;
  }

  .nav-brand {
    font-size: 13px;
    gap: 8px;
    flex: 1;
  }

  .nav-brand img { height: 36px; }

  /* Hide phone, show hamburger */
  .nav-desktop-only { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { top: 64px; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px;
    text-align: center;
    gap: 32px;
  }

  .hero-content h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
  }

  .hero-btns {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }

  /* Show photo on tablet but smaller */
  .hero-photo { justify-content: center; }
  .hero-photo img { width: 260px; height: 300px; }

  /* Trust bar */
  .trust-bar {
    padding: 16px 20px;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-dot { display: none; }

  /* Sections */
  .promise,
  .services,
  .pricing,
  .trust-section,
  .quote-section,
  .cta { padding: 56px 24px; }

  .promise-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .tier-card { padding: 18px 20px; }

  /* About */
  .about {
    grid-template-columns: 1fr;
    padding: 56px 24px;
    gap: 32px;
  }

 /* About */
.about-img-wrap { display: none; }

  /* CTA */
  .btn-cta { width: 100%; max-width: 320px; }

  /* Footer */
  footer {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  footer .legal { max-width: 100%; }

  /* Modal */
  .form-row { grid-template-columns: 1fr; }
  .modal-box { padding: 32px 20px; }
}


/* ── 17. RESPONSIVE — MOBILE (max 480px) ── */
@media (max-width: 480px) {
/* About */
.about-img-wrap { display: none; }
  /* Nav */
  nav { padding: 0 16px; height: 56px; }
  .nav-brand { font-size: 12px; }
  .nav-brand img { height: 28px; }
  .mobile-menu { top: 56px; }

  /* Hero */
  .hero { padding: 40px 16px; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content p { font-size: 15px; }

  /* Hide photo on small phones to save space */
  .hero-photo { display: none; }

  /* Trust bar */
  .trust-bar { padding: 14px 16px; }
  .trust-item { font-size: 14px; }

  /* Sections */
  .promise,
  .services,
  .pricing,
  .trust-section,
  .quote-section,
  .cta,
  .about { padding: 44px 16px; }

  .services-grid { grid-template-columns: 1fr; }

  /* Pricing tiers */
  .tier-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 16px;
  }

  .tier-price { font-size: 1.3rem; }

  /* Quote */
  .quote-mark { font-size: 48px; }
  .quote-text { font-size: 1.05rem; }

  /* About */
  .about-img-wrap { height: 260px; }
  .credential-row { flex-direction: column; }

  /* Footer */
  footer { padding: 28px 16px; }

  /* Modal */
  .modal-box { padding: 28px 16px; border-radius: 12px; }
  .modal-title { font-size: 1.4rem; }
}