/* Palatino everywhere: uses the system Palatino when the device has it (Windows, Mac, iPhone),
   otherwise TeX Gyre Pagella, a free Palatino clone (Android, Linux). ~20 KB per style. */
@font-face {
  font-family: "GSV Serif"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: local("Palatino Linotype"), local("PalatinoLinotype-Roman"), local("Palatino-Roman"), local("Palatino"),
       url("../fonts/pagella-regular.woff2") format("woff2");
}
@font-face {
  font-family: "GSV Serif"; font-style: italic; font-weight: 400 600; font-display: swap;
  src: local("Palatino Linotype Italic"), local("PalatinoLinotype-Italic"), local("Palatino-Italic"),
       url("../fonts/pagella-italic.woff2") format("woff2");
}
/* GSV Law Firm — static site */
:root {
  --navy: #1c3a57;      /* logo navy */
  --navy-deep: #16263b;
  --sky: #ece2d4;      /* warm sand (was light blue) */
  --sky-soft: #f8f4ee; /* ivory */
  --gold: #b99053;      /* logo gold */
  --gold-text: #8c6a36; /* darker gold for small text (readable on white) */
  --gold-soft: #d6bf94;
  --ink: #1a1b1f;
  --body: #4a4f57;
  --muted: #8a9099;
  --white: #ffffff;
  --line: rgba(33, 55, 83, 0.14);
  /* Same fonts as the Webflow site */
  --display: "GSV Serif", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --display-alt: Tahoma, Verdana, Segoe, "DejaVu Sans", sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans);
  --radius: 18px;
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-soft: cubic-bezier(.33,1,.68,1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: #616161;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 20px;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 3.875rem); }
h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h4 { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.3; }
h5 { font-size: 1.5rem; line-height: 1.3; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--sky { background: var(--sky-soft); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.78); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 14px;
}
.lead { font-size: 1.08rem; max-width: 620px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  font: 300 1rem/1 var(--sans);
  min-height: 44px;
  text-transform: capitalize;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--light { background: var(--sky); color: var(--navy); border-color: var(--sky); }
.btn--light:hover { background: var(--white); }
.btn--ghost { border-color: var(--sky); color: var(--sky); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }


/* ============ Header (matches Webflow navbar) ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 80px; padding: 12px 0;
  background: transparent;
  transition: background-color .45s ease, box-shadow .45s ease;
}
.header.is-solid, .header--solid { background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header__inner {
  height: 56px; padding: 0 50px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.logo { display: inline-flex; align-items: center; color: var(--white); min-height: 44px; justify-self: start; transition: color .45s ease; }

.header.is-solid .logo, .header--solid .logo { color: var(--navy); }

.nav { display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 20px; background: none; border: 0; cursor: pointer;
  font: 300 16px/1 var(--sans); color: var(--white); text-decoration: none;
  transition: color .3s ease;
}
.nav__link:hover, .nav__link:focus-visible { color: rgba(255,255,255,.5); }
.header.is-solid .nav__link, .header--solid .nav__link { color: var(--navy); }
.header.is-solid .nav__link:hover, .header--solid .nav__link:hover { color: rgba(33,55,83,.55); }
.nav__link[aria-current="page"] { font-weight: 400; }
.chev { width: 10px; height: 10px; transition: transform .3s ease; }

/* About dropdown — centered under its toggle, even padding */
.dd { position: relative; }
.dd::after { content: ""; position: absolute; left: -10px; right: -10px; top: 100%; height: 16px; } /* hover bridge */
.dd__list {
  position: absolute; top: calc(100% + 8px); left: 50%;
  min-width: 210px; padding: 8px;
  display: flex; flex-direction: column;
  border-radius: 14px;
  background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(33,55,83,.08);
  box-shadow: 0 24px 48px -12px rgba(16,24,40,.22), 0 2px 6px rgba(16,24,40,.06);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(.98); transform-origin: 50% 0;
  transition: opacity .28s ease, transform .35s var(--ease-out, ease), visibility 0s linear .35s;
}
.dd__list::before { /* small caret pointing at "About" */
  content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px;
  background: inherit; border-left: 1px solid rgba(33,55,83,.08); border-top: 1px solid rgba(33,55,83,.08);
  transform: translateX(-50%) rotate(45deg); border-radius: 3px 0 0 0;
}
.dd:hover .dd__list, .dd:focus-within .dd__list, .dd.is-open .dd__list {
  opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1);
  transition: opacity .28s ease, transform .35s var(--ease-out, ease), visibility 0s;
}
.dd:hover .chev, .dd.is-open .chev { transform: rotate(180deg); }
.dd__link {
  position: relative; display: flex; align-items: center;
  padding: 12px 16px; border-radius: 9px; white-space: nowrap;
  color: var(--navy); font: 400 15px/1.2 var(--sans); text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
.dd__line {
  flex: none; width: 0; height: 1.5px; margin-right: 0; background: currentColor; border-radius: 2px;
  transition: width .3s var(--ease-out, ease), margin-right .3s var(--ease-out, ease);
}
.dd__link:hover, .dd__link:focus-visible { background: var(--sky-soft); }
.dd__link:hover .dd__line, .dd__link:focus-visible .dd__line, .dd__link[aria-current="page"] .dd__line { width: 14px; margin-right: 10px; }
.dd__link[aria-current="page"] { font-weight: 500; }
.header__actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.header__actions .btn { min-height: 42px; }
.header.is-solid .nav__cta, .header--solid .nav__cta { background: var(--navy); border-color: var(--navy); color: var(--white); }
.nav__panel-head, .nav__cta--mobile { display: none; }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--white); transition: color .45s ease;
}
.menu-toggle svg { width: 28px; height: 28px; display: block; margin: auto; }
.header.is-solid .menu-toggle, .header--solid .menu-toggle { color: var(--navy); }
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(10,16,26,.45); z-index: -1;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s;
}

@media (min-width: 1920px) { .header__inner { padding: 0 80px; } }
@media (max-width: 1279px) { .header__inner { padding: 0 15px; } }

/* Mobile / tablet: elegant slide-in sidebar */
@media (max-width: 991px) {
  .header__inner { grid-template-columns: 1fr auto; padding: 0 16px; }
  .nav__cta { display: none; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 2;
    width: min(360px, 86vw);
    flex-direction: column; align-items: stretch;
    padding: 0 28px calc(28px + env(safe-area-inset-bottom));
    background: var(--white); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 24px 0 60px -20px rgba(10,16,26,.35);
    transform: translateX(-104%); visibility: hidden;
    transition: transform .55s var(--ease-out), visibility 0s linear .55s;
  }
  .header.menu-open .nav { transform: none; visibility: visible; transition: transform .55s var(--ease-out), visibility 0s; }
  .nav__panel-head {
    display: flex; align-items: center; justify-content: space-between;
    height: 80px; margin: 0 -4px 18px; border-bottom: 1px solid var(--line); color: var(--navy);
  }
  .nav__panel-head .logo { color: var(--navy); }

  .nav-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--navy); cursor: pointer; padding: 0; transition: background-color .25s; }
  .nav-close:hover { background: var(--sky-soft); }
  .nav-close svg { width: 16px; height: 16px; display: block; margin: auto; }

  .nav__link, .header.is-solid .nav__link, .header--solid .nav__link {
    width: 100%; justify-content: space-between;
    padding: 16px 0; border-bottom: 1px solid var(--line);
    font: 400 24px/1.1 var(--display); color: var(--navy);
  }
  .nav__link:hover, .header.is-solid .nav__link:hover, .header--solid .nav__link:hover { color: var(--navy); opacity: .65; }
  .nav__link[aria-current="page"] { font-weight: 500; }
  .chev { width: 14px; height: 14px; }

  .dd::after { display: none; }
  .dd__list {
    position: static; min-width: 0; transform: none; opacity: 1; visibility: visible;
    background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    padding: 0; border-radius: 0; display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .4s var(--ease-out), padding .4s var(--ease-out);
  }
  .dd__list::before { display: none; }
  .dd__list > div { overflow: hidden; min-height: 0; }
  .dd:hover .dd__list, .dd:focus-within .dd__list { transform: none; }
  .dd.is-open .dd__list { grid-template-rows: 1fr; padding: 6px 0 10px; }
  .dd:hover .chev { transform: none; }
  .dd.is-open .chev { transform: rotate(180deg); }
  .dd__link { padding: 11px 0 11px 2px; font-size: 16px; color: var(--body); border-radius: 0; }
  .dd__link:hover { background: none; color: var(--navy); }
  .dd__line { width: 14px; margin-right: 12px; opacity: .35; }
  .dd__link:hover .dd__line, .dd__link[aria-current="page"] .dd__line { opacity: 1; }

  .nav__cta--mobile {
    display: inline-flex; width: 100%; margin-top: 28px; min-height: 52px; font-size: 16px;
    background: var(--navy); border-color: var(--navy); color: var(--white);
  }
  .nav__contact {
    display: grid; gap: 6px; margin-top: auto; padding-top: 32px; font-size: 14px; color: var(--muted);
  }
  .nav__contact strong { font-weight: 500; color: var(--navy); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
  .nav__contact a { color: var(--body); text-decoration: none; min-height: 32px; display: flex; align-items: center; }

  /* links glide in one after another when the sidebar opens */
  .nav > :not(.nav__panel-head) { opacity: 0; transform: translateX(-14px); transition: opacity .35s ease, transform .45s var(--ease-out); }
  .header.menu-open .nav > :not(.nav__panel-head) { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * .05s); }

  .nav-backdrop { z-index: 1; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  .header.menu-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .4s ease, visibility 0s; }
}
@media (min-width: 992px) { .nav__contact { display: none; } }

/* ============ Hero — photo framed by width so it scales the same at every resolution ============ */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(640px, 100svh);
  padding: 140px 0 clamp(80px, 14vh, 200px);
  display: flex; align-items: center;
  color: var(--white); background: #1d1713;
}
/* Landscape screens: photo is 133% of the screen width, anchored left; head stays just below the top edge.
   Image is 4:5, so its height is 166vw and the crop (20px - 30.8vw) keeps the same framing as Webflow at 1280px. */
.hero__bg, .hero__overlay { position: absolute; inset: 0; }
.hero__bg {
  z-index: -2;
  background: url("../images/hero.jpg") no-repeat;
  background-size: 133vw auto;
  background-position: 0 calc(20px - 30.8vw);
  transform-origin: 70% 30%;
  will-change: transform;
}
.hero__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,8,10,.78) 0%, rgba(8,8,10,.50) 38%, rgba(8,8,10,.08) 70%, rgba(8,8,10,0) 100%),
    linear-gradient(0deg, rgba(8,8,10,.35), rgba(8,8,10,0) 30%);
}
.hero .wrap { position: relative; }
.hero h1 {
  color: var(--white); margin: 0 0 22px;
  font-size: clamp(2.5rem, 3.6vw + 1rem, 5.25rem); line-height: 1.12; letter-spacing: -.005em;
  max-width: 13ch;
}
.hero__line1 { display: block; font-family: var(--display); font-weight: 500; }
.hero__line2 { display: flex; flex-wrap: wrap; column-gap: .26em; font-family: var(--display); font-style: italic; font-weight: 400; }
.hero__line2 span { display: inline-block; }
.hero p {
  max-width: 34rem; color: rgba(255,255,255,.9); font-weight: 300;
  font-size: clamp(15px, .35vw + 12px, 20px); line-height: 1.6; margin: 0;
  text-wrap: pretty;
}
.hero .btn-row { margin-top: clamp(28px, 3vw, 44px); gap: 16px; }
@media (min-width: 1920px) { .hero p { max-width: 38rem; } }

/* Portrait screens (phones, tablets upright): photo covers, woman centered, text sits on a bottom fade */
@media (max-aspect-ratio: 1/1) {
  .hero { min-height: 100svh; align-items: flex-end; padding: 120px 0 calc(48px + env(safe-area-inset-bottom)); }
  .hero__bg { background-size: cover; background-position: 58% 0; transform-origin: 58% 20%; }
  .hero__overlay {
    background: linear-gradient(0deg, rgba(14,10,8,.92) 0%, rgba(14,10,8,.72) 32%, rgba(14,10,8,.18) 62%, rgba(14,10,8,.28) 100%);
  }
  .hero h1 { max-width: 100%; }
  .hero p { max-width: 36rem; }
}
/* Short landscape screens (phones sideways, small laptops) */
@media (min-aspect-ratio: 1/1) and (max-height: 600px) {
  .hero { min-height: 100svh; padding: 100px 0 48px; }
  .hero h1 { font-size: clamp(2.2rem, 5.2vh + 1rem, 3.6rem); }
}
@media (max-width: 479px) {
  .hero .btn-row { flex-direction: column; }
  .hero .btn-row .btn { width: 100%; min-height: 50px; }
}

/* ============ Hero intro — smooth version of the Webflow sequence ============
   Waits for the photo to load (js adds .is-ready), then plays:
   photo zoom-out · logo · "Legal Guidance" · You · Can · Trust. · menu · text · buttons */
@keyframes heroZoom  { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes shade     { from { opacity: .55; } to { opacity: 1; } }
@keyframes logoIn    { from { opacity: 0; transform: scale(1.14); } to { opacity: 1; transform: none; } }
@keyframes wordIn    { from { opacity: 0; transform: translate3d(0, .32em, 0); filter: blur(10px); }
                       to   { opacity: 1; transform: none; filter: blur(0); } }
@keyframes trustTint { 0%, 35% { color: #eadcc7; } 100% { color: #fff; } }
@keyframes dropIn    { from { opacity: 0; transform: translate3d(0, -10px, 0); } to { opacity: 1; transform: none; } }
@keyframes riseIn    { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }

.intro .hero__bg      { animation: heroZoom 9s var(--ease-soft) both; }
.intro .hero__overlay { animation: shade 2.4s ease both; }
.intro .header .logo  { animation: logoIn 1.1s var(--ease-out) .15s both; transform-origin: left center; }
.intro .hero__line1   { animation: wordIn 1.2s var(--ease-out) .4s both; }
.intro .w-you         { animation: wordIn 1.1s var(--ease-out) .95s both; }
.intro .w-can         { animation: wordIn 1.1s var(--ease-out) 1.25s both; }
.intro .w-trust       { animation: wordIn 1.2s var(--ease-out) 1.55s both, trustTint 1.6s ease 1.55s both; }
.intro .nav > .nav__link, .intro .nav > .dd, .intro .nav__cta, .intro .menu-toggle { animation: dropIn .9s var(--ease-out) both; }
.intro .nav > :nth-child(2) { animation-delay: 1.5s; }
.intro .nav > :nth-child(3) { animation-delay: 1.58s; }
.intro .nav > :nth-child(4) { animation-delay: 1.66s; }
.intro .nav > :nth-child(5) { animation-delay: 1.74s; }
.intro .nav__cta, .intro .menu-toggle { animation-delay: 1.85s; }
.intro .hero__badge   { animation: riseIn 1s var(--ease-out) .25s both; }
.intro .hero p        { animation: riseIn 1.1s var(--ease-out) 2.05s both; }
.intro .hero .btn-row { animation: riseIn 1.1s var(--ease-out) 2.3s both; }

/* hold everything on its first frame until the photo is ready */
.intro .hero__badge, .intro .hero__bg, .intro .hero__overlay, .intro .header .logo, .intro .hero__line1, .intro .hero__line2 span,
.intro .nav > *, .intro .nav__cta, .intro .menu-toggle, .intro .hero p, .intro .hero .btn-row { animation-play-state: paused; }
.intro.is-ready .hero__badge, .intro.is-ready .hero__bg, .intro.is-ready .hero__overlay, .intro.is-ready .header .logo, .intro.is-ready .hero__line1,
.intro.is-ready .hero__line2 span, .intro.is-ready .nav > *, .intro.is-ready .nav__cta, .intro.is-ready .menu-toggle,
.intro.is-ready .hero p, .intro.is-ready .hero .btn-row { animation-play-state: running; }
.intro .hero__line1, .intro .hero__line2 span { will-change: transform, opacity, filter; }
.intro.is-done .hero__line1, .intro.is-done .hero__line2 span { will-change: auto; }

@media (max-width: 991px) {
  /* items inside the slide-in panel are never hidden */
  .intro .nav > * { animation: none !important; }
}

/* Page hero (inner pages) */
.page-hero {
  padding: 170px 0 80px;
  background: var(--sky-soft);
  text-align: center;
}
.page-hero p { margin-inline: auto; max-width: 620px; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 5; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 32px 26px;
  border: 1px solid var(--line);
}
.feature__icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--sky);
  display: grid; place-items: center; margin-bottom: 20px; color: var(--navy);
}
.feature p { margin: 0; font-size: .97rem; }

/* Section head */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 480px; }

/* Service cards */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(33,55,83,.12); }
.service__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.service__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.service__body p { flex: 1; }
.link {
  color: var(--navy); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.link:hover { gap: 10px; }

/* Steps */
.steps { display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.step__num { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--sky); }
.step h4 { margin-bottom: 6px; }
.step p { margin: 0; font-size: .97rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 70px); align-items: stretch; }
.contact-grid__media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: var(--radius); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .85rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(33,55,83,.12);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hidden { display: none; }

.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info__card { padding: 30px; border-radius: var(--radius); background: var(--sky-soft); }
.info__card h4 { margin-bottom: 10px; }
.info__card p, .info__card a { margin: 0; text-decoration: none; }
.info__card a:hover { text-decoration: underline; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.6rem; color: var(--navy); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-right: 44px; }

/* CTA band */
.cta { text-align: center; }
.cta p { max-width: 640px; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* Footer */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 80px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo { color: var(--white); margin-bottom: 16px; }
.footer h5 { color: var(--white); font-size: 1.15rem; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 56px; padding-top: 24px;
  font-size: .9rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translate3d(0,28px,0); transition: opacity 1s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .intro *, .intro *::before { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 991px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split__media img { aspect-ratio: 4 / 3; }
  .services, .info { grid-template-columns: 1fr; }
  .contact-grid__media img { min-height: 260px; max-height: 340px; }
  .page-hero { padding: 140px 0 60px; }
}
@media (max-width: 479px) {
  .features, .footer__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
}

/* Touch targets (min 44px) and long words on small screens */
.link { min-height: 44px; }
.info__card a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.footer a { overflow-wrap: anywhere; }
@media (hover: none) { .service:hover { transform: none; box-shadow: none; } .btn:hover { transform: none; } }

/* Tablet refinements */
@media (min-width: 768px) and (max-width: 991px) {
  .services > .service:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .services > .service:last-child:nth-child(odd) .service__img { width: 50%; aspect-ratio: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid__media img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .info { grid-template-columns: repeat(3, 1fr); }
  .split__media img { aspect-ratio: 4 / 5; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
.dd__list > div { display: flex; flex-direction: column; }

/* =====================================================================
   Refined styling — more elegant typography, spacing and details
   ===================================================================== */
::selection { background: var(--sky); color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

/* Headings: Palatino serif for section titles, DM Sans for small titles */
h2, h3, .faq summary, .service h3, .page-hero h1 {
  font-family: var(--display); font-weight: 400; letter-spacing: -.01em;
}
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.4rem); line-height: 1.12; }
h3 { line-height: 1.2; }
h4, h5 { font-family: var(--sans); font-weight: 500; letter-spacing: -.005em; }
.lead, .section p { text-wrap: pretty; }

/* Eyebrow with a fine line */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; color: rgba(33,55,83,.75);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--navy .eyebrow, .page-hero .eyebrow { color: rgba(236,226,212,.85) !important; }
.cta .eyebrow { justify-content: center; }

/* More breathing room */
.section { padding: clamp(80px, 10vw, 150px) 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }

/* Glassy header when scrolled */
/* The glass effect lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed mobile sidebar inside the 80px header bar when scrolled. */
.header.is-solid { background: transparent; box-shadow: none; }
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(33,55,83,.08), 0 10px 30px -20px rgba(16,24,40,.25);
  opacity: 0; transition: opacity .45s ease;
}
.header.is-solid::before { opacity: 1; }

/* Buttons: softer, with a gentle lift */
.btn { letter-spacing: .01em; transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn--navy:hover { box-shadow: 0 12px 24px -12px rgba(33,55,83,.55); }
.btn--light:hover { box-shadow: 0 12px 24px -14px rgba(0,0,0,.45); }

/* Inner pages: dark, elegant title band (header sits transparent on top, like the home) */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(150px, 18vw, 210px) 0 clamp(70px, 9vw, 110px);
  background: var(--navy-deep); color: rgba(255,255,255,.8);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(236,226,212,.16), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(236,226,212,.08), transparent 60%);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.6rem, 4vw + 1rem, 5rem); margin-bottom: 18px; }
.page-hero p { color: rgba(255,255,255,.78); font-size: 17px; }

/* Split media: thin offset frame */
.split__media { position: relative; }
.split__media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border: 1px solid rgba(33,55,83,.18); border-radius: var(--radius);
}
.split__media img { box-shadow: 0 30px 60px -30px rgba(16,24,40,.35); }

/* Features: open columns with hairlines instead of boxes */
.features { gap: clamp(20px, 3vw, 40px); }
.feature {
  background: transparent; border: 0; border-top: 1px solid rgba(33,55,83,.18);
  border-radius: 0; padding: 28px 0 0; position: relative;
}
.feature::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--navy);
  transition: width .6s var(--ease-out);
}
.feature:hover::before { width: 100%; }
.feature__icon { background: transparent; border: 1px solid rgba(33,55,83,.25); width: 52px; height: 52px; }
.feature h4 { font-size: 1.25rem; margin-bottom: 10px; }

/* Service cards: image zoom, borderless */
.service { border: 0; box-shadow: 0 1px 0 rgba(33,55,83,.08), 0 20px 40px -28px rgba(16,24,40,.28); }
.service:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(33,55,83,.08), 0 34px 60px -30px rgba(16,24,40,.4); }
.service__img { transition: transform 1.1s var(--ease-out); }
.service:hover .service__img { transform: scale(1.05); }
.service > img { will-change: transform; }
.service { isolation: isolate; }
.service__body { padding: 30px 30px 32px; }
.service h3 { font-size: clamp(1.5rem, 1vw + 1rem, 1.9rem); }
.link { position: relative; }
.link::after { content: ""; position: absolute; left: 0; bottom: 10px; height: 1px; width: 0; background: currentColor; transition: width .4s var(--ease-out); }
.link:hover::after { width: calc(100% - 22px); }
.link svg { transition: transform .35s var(--ease-out); }
.link:hover { gap: 6px; }
.link:hover svg { transform: translateX(4px); }

/* Process (navy): numbered list with hairlines */
.steps { gap: 0; }
.step { background: none; border: 0; border-top: 1px solid rgba(255,255,255,.14); border-radius: 0; padding: 28px 0; }
.step:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.step__num { font-family: var(--display); font-size: 2.6rem; color: rgba(236,226,212,.9); min-width: 64px; }
.step h4 { color: var(--white); font-size: 1.2rem; }

/* Commitment band */
.cta h2 { max-width: 18ch; margin-inline: auto; }

/* Form: calm fields */
.form input, .form select, .form textarea { background: var(--sky-soft); border-color: transparent; border-radius: 12px; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(33,55,83,.18); }
.form input:focus, .form select:focus, .form textarea:focus { background: var(--white); }
.contact-grid__media img { box-shadow: 0 30px 60px -30px rgba(16,24,40,.35); }

/* Info cards */
.info__card { background: transparent; border: 1px solid rgba(33,55,83,.14); transition: border-color .3s, background-color .3s; }
.info__card:hover { border-color: rgba(33,55,83,.35); background: var(--sky-soft); }
.info__card h4 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: rgba(33,55,83,.7); }
.info__card a { font-size: 17px; color: var(--navy); }

/* FAQ */
.faq summary { font-size: clamp(1.25rem, .6vw + 1rem, 1.6rem); padding: 26px 64px 26px 0; transition: color .25s; }
.faq summary:hover { color: rgba(33,55,83,.7); }
.faq summary::after {
  content: ""; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(33,55,83,.22);
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1.5px 12px no-repeat;
  transition: transform .35s var(--ease-out), background-color .3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background-color: var(--sky); }
.faq details p { max-width: 62ch; padding-bottom: 12px; }

/* Footer */
.footer { padding: clamp(80px, 9vw, 120px) 0 32px; }

.footer h5 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(236,226,212,.7); font-weight: 500; }
.footer p { font-family: var(--display); font-size: 1.35rem; line-height: 1.35; color: var(--white); max-width: 22ch; }
.footer a { transition: color .25s; }

/* Reveal: a bit longer, staggered by js */
.reveal { transition-duration: 1.1s; }
@media (max-width: 1279px) { .split__media::before { inset: 14px -10px -14px 14px; } }
/* Very large screens: let the hero breathe and scale up */
.hero .wrap { width: min(100% - 32px, max(var(--wrap), 84vw)); }
@media (min-width: 2000px) {
  .hero h1 { font-size: clamp(5.25rem, 3.2vw + 1rem, 7.5rem); }
  .hero p { font-size: clamp(20px, .55vw + 8px, 26px); max-width: 44rem; }
  .hero .btn-row .btn { font-size: 18px; padding: 16px 30px; }
}
/* On phones/tablets the menu button is the whole nav: show it earlier */
@media (max-width: 991px) { .intro .menu-toggle { animation-delay: .7s; } }


/* =====================================================================
   v5 — warm palette accents, bilingual UI, new sections
   ===================================================================== */
body { color: #5f5a54; }
.section--sky { background: var(--sky-soft); }
.eyebrow { color: var(--gold); }
.eyebrow::before { background: var(--gold); }
.section--navy .eyebrow, .page-hero .eyebrow { color: var(--gold-soft) !important; }
.step__num { color: var(--gold-soft); }
.dd__line { background: var(--gold); }
.feature::before { background: var(--gold); }
.feature__icon, .practice__icon { color: var(--gold); border-color: rgba(168,132,79,.35); }
::selection { background: #eadcc7; color: var(--navy); }
.btn--light:hover { background: #f6efe6; }
.btn--ghost:hover { background: rgba(236,226,212,.12); }
.btn-row--center { justify-content: center; }

/* skip link */
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 8px; background: var(--white); color: var(--navy); text-decoration: none; }
.skip:focus { top: 12px; }

/* language switch (desktop) */
.lang { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; font: 400 13px/1 var(--sans); letter-spacing: .08em; color: var(--white); transition: color .45s ease; }
.lang__current { font-weight: 600; }
.lang__sep { opacity: .45; }
.lang__link { color: inherit; text-decoration: none; opacity: .7; padding: 12px 4px; transition: opacity .25s; }
.lang__link:hover { opacity: 1; }
.header.is-solid .lang { color: var(--navy); }
.nav__lang { display: none; }
@media (max-width: 991px) {
  .lang { margin-right: 2px; }
  .nav__lang { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 15px; color: var(--muted); }
  .nav__lang .is-active { color: var(--navy); font-weight: 500; }
  .nav__lang a { color: var(--body); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--gold-soft); }
  .nav__contact { padding-top: 26px; }
}

/* "Hablamos Español" badge in the hero */
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 26px; padding: 9px 16px 9px 13px; border-radius: 50px;
  font: 400 13px/1 var(--sans); letter-spacing: .08em; color: var(--white); text-decoration: none;
  background: rgba(255,255,255,.10); border: 1px solid rgba(236,226,212,.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .3s ease, border-color .3s ease;
}
.hero__badge svg { color: var(--gold-soft); flex: none; }
.hero__badge:hover { background: rgba(255,255,255,.18); border-color: rgba(236,226,212,.6); }

/* Practice area cards */
.practices { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.practice {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px); border-radius: var(--radius);
  background: var(--white); border: 1px solid rgba(33,55,83,.10);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.practice::after { content: ""; position: absolute; left: 32px; right: 32px; top: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.practice:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 34px 60px -32px rgba(16,24,40,.35); }
.practice:hover::after { transform: scaleX(1); }
.practice__icon { width: 58px; height: 58px; border-radius: 50%; border: 1px solid; display: grid; place-items: center; margin-bottom: 26px; }
.practice h3 { font-size: clamp(1.5rem, .8vw + 1.1rem, 1.9rem); margin-bottom: 12px; }
.practice > p { flex: 0 0 auto; }
.practice__list { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.practice__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 15px; }
.practice__list svg { color: var(--gold); flex: none; margin-top: 3px; }
.practice__list--lg { gap: 0; margin: 0; }
.practice__list--lg li { padding: 16px 0; border-bottom: 1px solid rgba(33,55,83,.12); font-size: 17px; }
.practice__list--lg li:first-child { border-top: 1px solid rgba(33,55,83,.12); }
@media (hover: none) { .practice:hover { transform: none; box-shadow: none; } }
@media (max-width: 991px) { .practices { grid-template-columns: 1fr 1fr; } .practices > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 767px) { .practices { grid-template-columns: 1fr; } }

/* Attorney */
.split--reverse > :first-child { order: 0; }
.attorney { background: linear-gradient(180deg, var(--white), var(--sky-soft)); }
.attorney__name { font-size: clamp(2.6rem, 3vw + 1.2rem, 4.2rem); margin-bottom: 6px; }
.attorney__role { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 26px; }
.attorney__bio p { font-size: 1.08rem; line-height: 1.7; max-width: 36rem; }
.attorney__langs { display: inline-flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 10px 16px; border-radius: 50px; border: 1px solid rgba(168,132,79,.35); color: var(--navy); font-size: 14px; letter-spacing: .04em; }
.attorney__langs svg { color: var(--gold); }

/* Services page rows */
.service-row__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.service-row h2 { font-size: clamp(2rem, 2.4vw + 1rem, 3.2rem); }
.service-row__list h4 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
@media (max-width: 767px) { .service-row__grid { grid-template-columns: 1fr; } }

/* Commitment band */
.cta__call { margin-top: 22px; font-size: 15px; color: var(--muted); }
.cta__call a { color: var(--navy); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--gold-soft); }

/* Info cards section spacing */
.section--info { padding-top: 0; }
.cta + .section--info { padding-top: 0; }

/* Form note */
.form__note { margin: 0; font-size: 13px; color: var(--muted); }

/* Page hero variants */
.page-hero--tall { min-height: 72vh; display: flex; align-items: center; }
.page-hero--tall .wrap { width: min(var(--wrap), 100% - 32px); }

/* Footer language line */
.footer__lang { display: flex; align-items: center; gap: 8px; color: var(--gold-soft); margin-top: 6px; }
.footer__lang svg { flex: none; }

/* FAQ wide variant */
.faq--wide { max-width: none; margin: 0; }
/* touch targets for the new links */
.lang__link { display: inline-flex; align-items: center; min-height: 44px; min-width: 32px; justify-content: center; padding: 0 4px; }
.hero__badge { min-height: 44px; }
.cta__call a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--gold-soft); text-underline-offset: 5px; }
/* Keep portrait photos at a comfortable size next to the text */
.split { grid-template-columns: 1.05fr .95fr; }
.split__media { width: 100%; max-width: 500px; justify-self: center; }
.split--reverse { grid-template-columns: .95fr 1.05fr; }
.split__media img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.contact-grid__media img { object-position: 50% 30%; max-height: 760px; }
@media (max-width: 767px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split__media { max-width: 420px; }
  .split__media img { aspect-ratio: 4 / 4.4; }
}
.split__media img, .contact-grid__media img { height: auto; }
.contact-grid__media img { aspect-ratio: 4 / 5; }
@media (max-width: 991px) { .contact-grid__media img { aspect-ratio: 16 / 10; } }
/* keep button text as written (capitalize broke Spanish: "Agendar Una Consulta") */
.btn { text-transform: none; }

/* ---------- Hero on phones / upright tablets ---------- */
.hero__text--short { display: none; }
@media (max-aspect-ratio: 1/1) {
  /* badge moves below the buttons so it never covers her face */
  .hero .wrap { display: flex; flex-direction: column; }
  .hero h1 { order: 1; }
  .hero p { order: 2; }
  .hero .btn-row { order: 3; }
  .hero__badge {
    order: 4; align-self: center; margin: 22px 0 0; padding: 8px 14px 8px 11px; font-size: 13px;
    background: rgba(255,255,255,.06); border-color: rgba(236,226,212,.28);
  }
}
@media (max-width: 767px) {
  .hero__text--long { display: none; }
  .hero__text--short { display: inline; }
  .hero p { font-size: 16px; }
}
@media (max-aspect-ratio: 1/1) and (min-width: 768px) { .hero__badge { align-self: flex-start; } }

/* =====================================================================
   v6 — official logo (Law Office of Gipsy Sosa Valdes, P.A.)
   ===================================================================== */
.eyebrow, .attorney__role, .service-row__list h4 { color: var(--gold-text); }
.eyebrow::before { background: var(--gold); }
.logo { --logo-ink: #ffffff; --logo-gold: #cfa766; color: inherit; }
.logo .logo__svg { display: block; height: 50px; width: auto; aspect-ratio: 3317 / 474; overflow: visible; }
.header.is-solid .logo, .nav__panel-head .logo { --logo-ink: var(--navy); --logo-gold: var(--gold); }
.logo svg { transition: none; }
.nav__panel-head .logo .logo__svg { height: 30px; }
.logo--footer { margin-bottom: 22px; }
.logo--footer .logo__svg--full { height: auto; width: min(280px, 100%); aspect-ratio: 2379 / 869; }
@media (max-width: 1199px) { .logo .logo__svg { height: 42px; } }
@media (max-width: 991px)  { .logo .logo__svg { height: 36px; } }
@media (max-width: 400px)  { .logo .logo__svg { height: 31px; } .header__actions .lang { display: none; } }
