/* Safe Harbor Law Firm – Estate Planning Discovery Call landing page
   Mobile-first. Fonts: Cinzel (headings) + DM Sans (body). */

:root {
  --navy: #0a3a5b;
  --navy-dark: #072a42;
  --gold: #fbbc2b;
  --gold-dark: #e9a90f;
  --ink: #1d1d1f;
  --muted: #4a5561;
  --light: #eef2f5;
  --line: #d9dee3;
  --white: #fff;
  --radius: 22px;
  --container: 1140px;
  --narrow: 860px;
  --serif: "Cinzel", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; color: #111; }
p { margin: 0 0 1em; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex: none; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: var(--narrow); }
.section { padding: 48px 0; }
.section[id] { scroll-margin-top: 56px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 700; font-size: 17px; line-height: 1.2;
  text-decoration: none; text-align: center;
  padding: 14px 22px; border: 0; border-radius: 3px; cursor: pointer;
  transition: background-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); }
.btn--pill { border-radius: 999px; }
.btn--full { width: 100%; }
.btn--block-sm { width: 100%; }
@media (min-width: 600px) { .btn--block-sm { width: auto; } }

/* ---------- Mobile top bars ---------- */
.m-topbar { display: grid; grid-template-columns: 1fr 1fr; position: sticky; top: 0; z-index: 60; }
.m-topbar a { text-align: center; padding: 12px 8px; text-decoration: none; font-size: 17px; }
.m-topbar__consult { background: var(--navy); color: #fff; }
.m-topbar__call { background: var(--gold); color: #111; }
.m-langbar { display: flex; justify-content: center; gap: 12px; background: #e6e9ec; padding: 8px; font-size: 17px; }
.m-langbar a, .lang a { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); text-decoration: none; }
.m-langbar img, .lang img { width: 18px; height: 12px; }

/* ---------- Hero + header ---------- */
.hero {
  position: relative;
  background: #0d2c44 url("/assets/img/hero-banner.webp") center / cover no-repeat;
  padding: 16px 16px 40px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(6, 32, 52, .45); }
.hero > * { position: relative; }
.site-header__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header__logo img { height: auto; }
.logo-desktop { display: none; width: 220px; }
.logo-mobile { width: 180px; }
.site-header__actions { display: none; }
.main-nav { display: none; }
.menu-toggle, .menu-close {
  background: #e6e9ec; border: 0; border-radius: 6px; width: 60px; height: 60px;
  display: grid; place-items: center; color: var(--navy); font-size: 26px; cursor: pointer;
}
.hero__title {
  color: #fff; text-align: center; font-size: clamp(28px, 6vw, 40px);
  margin: 28px 0 0; letter-spacing: .5px;
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 100; background: #fff; overflow-y: auto; padding: 16px 20px 40px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav ul ul { padding-left: 16px; }
.mobile-nav a, .mobile-nav summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
  color: var(--navy); text-decoration: none; font-size: 17px; cursor: pointer; list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] > summary .chev { transform: rotate(180deg); }
body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .m-topbar, .m-langbar { display: none; }
  .hero { padding: 20px 48px 80px; min-height: 440px; }
  .hero::before { background: rgba(6, 32, 52, .25); }
  .site-header {
    max-width: 1300px; margin: 0 auto; background: rgba(255, 255, 255, .85);
    border-radius: 16px; padding: 14px 20px 6px; box-shadow: 0 4px 24px rgba(0,0,0,.12);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .logo-desktop { display: block; }
  .logo-mobile { display: none; }
  .menu-toggle { display: none; }
  .site-header__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
  .lang { display: flex; gap: 10px; font-size: 15px; }
  .site-header__actions .btn { font-weight: 500; font-size: 16px; padding: 10px 22px; }
  .btn--phone { font-size: 20px !important; font-weight: 500 !important; }
  .main-nav { display: block; margin-top: 10px; }
  .main-nav > ul { display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; }
  .main-nav li { position: relative; list-style: none; }
  .main-nav a, .main-nav .nav-label {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    padding: 10px 12px; color: #111; text-decoration: none; font-size: 16px; font-weight: 500; cursor: pointer; white-space: nowrap;
  }
  .main-nav .chev { font-size: 11px; }
  .main-nav ul ul {
    display: none; position: absolute; left: 0; top: 100%; min-width: 240px; padding: 6px 0; margin: 0;
    background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.15); border-radius: 8px; z-index: 50;
  }
  .main-nav ul ul ul { left: 100%; top: -6px; }
  .main-nav ul ul .chev { transform: rotate(-90deg); }
  .main-nav li:hover > ul, .main-nav li:focus-within > ul { display: block; }
  .main-nav ul ul a, .main-nav ul ul .nav-label { font-weight: 400; font-size: 15px; padding: 8px 16px; }
  .main-nav ul ul a:hover, .main-nav ul ul .nav-label:hover { background: var(--light); }
  .main-nav > ul > li:last-child > ul, .main-nav > ul > li:nth-last-child(2) > ul { left: auto; right: 0; }
  .hero__title { margin-top: 70px; font-size: 44px; }
}

/* ---------- Intro ---------- */
.intro { text-align: left; }
.intro__title { text-align: center; font-weight: 700; font-size: clamp(26px, 5.2vw, 34px); }
.intro__figure { margin: 24px 0 20px; }
.intro__figure figcaption {
  background: #0b2238; color: var(--gold); font-family: var(--serif); text-transform: uppercase;
  text-align: center; font-size: clamp(20px, 4.6vw, 26px); line-height: 1.25; padding: 20px 16px 26px;
}
.lead { font-size: 19px; }
.cta { text-align: center; margin-top: 24px; }
.cta__note { font-style: italic; font-size: 14px; margin: 6px 0 0; }

/* ---------- Section titles ---------- */
.section-title {
  font-size: clamp(26px, 5vw, 34px);
  padding-bottom: 28px; margin-bottom: 24px;
  border-bottom: 3px solid var(--gold);
}
.section-title--plain { border: 0; padding-bottom: 0; margin: 20px 0 16px; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 32px; background: var(--light); padding: 32px 20px; text-align: center; }
.step__icon { font-size: 26px; color: var(--navy); width: 1.25em; }
.step h3 { font-size: 22px; color: #13354f; margin: 8px 0 16px; }
.step p { margin: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); padding: 40px 28px; } }

/* ---------- Checklists ---------- */
.checklist { list-style: none; padding: 0; margin: 20px 0 28px; }
.checklist li { position: relative; padding-left: 32px; margin: 0 0 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist--navy li { padding-left: 36px; }
.checklist--navy li::before { width: 22px; height: 22px; top: .15em; background-color: var(--navy); background-size: 14px; }
.note {
  margin: 0; padding: 18px 20px; background: var(--light); border-left: 4px solid var(--line);
  font-style: italic; font-size: 18px;
}

/* ---------- Booking ---------- */
.booking__grid { display: grid; gap: 24px; }
.expect {
  position: relative; color: #fff; text-align: center; padding: 32px 22px; overflow: hidden;
  background: var(--navy) url("/assets/img/legal-assistant.webp") center / cover no-repeat;
}
.expect::before { content: ""; position: absolute; inset: 0; background: rgba(10, 58, 91, .82); }
.expect > * { position: relative; }
.expect h3 { color: #fff; font-size: 28px; }
.expect__clock { font-size: 30px; margin: 4px auto 14px; display: block; }
.expect ul { list-style: none; padding: 0; margin: 20px 0 0; text-align: left; display: inline-block; }
.expect li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.expect li .ico { color: var(--gold); }
.booking__widget { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; min-height: 700px; }
.calendly-inline-widget { width: 100%; }
@media (max-width: 599px) {
  .booking .container { padding: 0 8px; }
  .booking .section-title { margin-left: 8px; margin-right: 8px; }
  .booking__widget .calendly-inline-widget { height: 1000px !important; }
  .booking__widget { min-height: 1000px; }
}
@media (min-width: 1024px) {
  .booking__grid { grid-template-columns: 340px 1fr; align-items: start; }
  .expect { position: sticky; top: 24px; min-height: 700px; padding-top: 48px; }
}

/* ---------- Team ---------- */
.team-banner { margin: 0 auto 8px; }
.team { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
@media (min-width: 768px) { .team { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(4, 1fr); } }
.member {
  background: var(--navy); color: #fff; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; text-align: center; padding-bottom: 18px; transition: transform .2s;
}
.member:hover { transform: translateY(-3px); }
.member img { width: 100%; aspect-ratio: 600 / 477; object-fit: cover; }
.member h3 { color: #fff; font-size: 18px; margin: 14px 10px 4px; }
.member p { margin: 0 8px; font-size: 15px; }
@media (min-width: 768px) { .member h3 { font-size: 20px; } }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); margin-bottom: 8px; background: #fff; }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; padding: 10px 14px 10px 34px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; position: absolute; left: 14px; top: 9px; font-weight: 700; }
.faq details[open] summary::before { content: "–"; }
.faq details p { padding: 0 14px 14px; margin: 0; color: #333; }
.cta-band {
  background: var(--navy); color: #fff; display: grid; gap: 16px; align-items: center;
  padding: 22px 16px; margin-top: 16px;
}
.cta-band p { margin: 0; font-size: 17px; }
@media (min-width: 700px) { .cta-band { grid-template-columns: 1fr auto; padding: 22px 24px; } }

/* ---------- Locations ---------- */
.locations { background: var(--light); text-align: center; }
.locations__title { font-size: clamp(32px, 6vw, 42px); }
.locations__intro { max-width: 760px; margin: 0 auto 24px; }
.locations__intro a { text-decoration: none; }
.cards3 { display: grid; gap: 20px; }
@media (min-width: 768px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.card h3 { font-size: 22px; }
.card__phone { font-size: 21px; text-decoration: none; margin-bottom: 18px; }
.card .btn--full { margin-top: 12px; padding: 10px 16px; }
.card .btn--full + .btn--full { margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 48px; text-align: center; }
.site-footer__logo { width: 240px; margin: 0 auto 32px; }
.card--slim { justify-content: center; padding: 24px; }
.card--slim h3 { font-size: 24px; margin-bottom: 12px; }
.card--slim p { margin: 0; }
.card--slim a { text-decoration: none; }
.social { display: flex; gap: 12px; justify-content: center; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 17px;
}
.map { display: block; width: 100%; height: 350px; border: 0; margin-top: 40px; }
.site-footer__bar { background: var(--navy); color: #fff; text-align: left; padding: 18px 0; font-size: 15px; }
.site-footer__bar a { color: #fff; text-decoration: none; }
.site-footer__bar a:hover { text-decoration: underline; }
