/* ===== Tokens ===== */
:root{
  --navy: #14213d;
  --navy-deep: #0d162c;
  --gold: #b08d57;
  --gold-light: #d9c39a;
  --cream: #faf6ef;
  --ivory: #fffdf9;
  --ink: #22262f;
  --ink-soft: #565b66;
  --line: #e7e0d3;
  --shadow: 0 12px 32px rgba(20, 33, 61, 0.08);
  --radius: 4px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3{
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
p{ margin: 0 0 1em; color: var(--ink-soft); }
a{ color: var(--navy); }
ul{ margin:0; padding:0; }

.section-inner{ max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section-inner.narrow{ max-width: 760px; }
.section{ padding: 96px 0; }
.center{ text-align: center; margin-left:auto; margin-right:auto; }
.section-eyebrow{
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.75em;
}
.section-lede{ max-width: 640px; }

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  /* Wider than the body content's --max on purpose: with 9 nav items
     (About, 3 dropdowns, Process, Who We Serve, FAQ, Litigation Services,
     Contact) the row needs more room than 1120px gives it, or text wraps
     mid-word and looks cramped. */
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark{ color: var(--gold); display:flex; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.1; }
.brand-name{ font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.brand-sub{ font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.site-nav{ display: flex; align-items: center; gap: 28px; }
.site-nav a{
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover{ color: var(--gold); }
.nav-cta{
  border: 1px solid var(--navy);
  padding: 8px 18px;
  border-radius: var(--radius);
  color: var(--navy) !important;
}
.nav-cta:hover{ background: var(--navy); color: var(--ivory) !important; }
.nav-litigation{
  border: 1px solid var(--gold);
  background: rgba(176, 141, 87, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--navy) !important;
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.12), 0 0 14px rgba(176, 141, 87, 0.35);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.nav-litigation:hover{
  background: rgba(176, 141, 87, 0.18);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.18), 0 0 20px rgba(176, 141, 87, 0.5);
  color: var(--navy) !important;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{ width: 22px; height: 2px; background: var(--navy); display: block; }

/* ===== Nav dropdown ===== */
.nav-item-dropdown{
  position: relative;
  /* Invisible padding extends this element's own hoverable box down to meet
     the menu, so the pointer is never over a "dead" pixel between the two —
     the negative margin cancels the padding's effect on header layout height. */
  padding-bottom: 14px;
  margin-bottom: -14px;
}
.nav-dropdown-trigger{
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0;
}
.nav-dropdown-trigger:hover{ color: var(--gold); }
.nav-dropdown-trigger .caret{ font-size: 0.6rem; transition: transform 0.15s ease; }
.nav-dropdown{
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  z-index: 110;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown,
.nav-item-dropdown.open .nav-dropdown{ display: block; }
.nav-item-dropdown:hover .caret,
.nav-item-dropdown.open .caret{ transform: rotate(180deg); }
.nav-dropdown li a{
  display: block;
  padding: 10px 12px;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.nav-dropdown li a:hover{ background: var(--cream); color: var(--gold); }
.nav-dropdown li a strong{ display: block; font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.nav-dropdown li a:hover strong{ color: var(--gold); }
.nav-dropdown li a span{ display: block; margin-top: 2px; color: var(--ink-soft); font-size: 0.8rem; }

/* ===== Breadcrumb ===== */
.breadcrumb{
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.breadcrumb a{ color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover{ color: var(--gold); }
.breadcrumb .sep{ margin: 0 6px; }
.breadcrumb .current{ color: var(--navy); font-weight: 600; }

/* ===== Page hero (subpages) ===== */
.page-hero{
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 56px 24px 64px;
  text-align: center;
}
.page-hero-inner{ max-width: 780px; margin: 0 auto; }
.page-hero .eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 1em;
}
.page-hero h1{
  color: var(--ivory);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 0.5em;
}
.page-hero p{
  color: #cfd6e6;
  font-size: 1.02rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Detail list (documents, eligibility) ===== */
.detail-list{
  list-style: none;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.detail-list li{
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.94rem;
  color: var(--ink);
  display: flex;
  gap: 10px;
}
.detail-list li::before{
  content: "\2022";
  color: var(--gold);
  font-weight: 700;
}

/* ===== Related pages ===== */
.related-pages{
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.related-card{
  display: block;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
}
.related-card h3{ font-size: 1.05rem; margin-bottom: 0.4em; }
.related-card p{ font-size: 0.88rem; margin: 0; }

/* ===== Card link (services grid) ===== */
.card-link{ text-decoration: none; color: inherit; display: block; }
.card-link .card{ transition: border-color 0.15s ease, box-shadow 0.15s ease; height: 100%; }
.card-link:hover .card{ border-color: var(--gold); box-shadow: var(--shadow); }
.card-more{
  display: inline-block;
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold);
}

@media (max-width: 900px){
  .related-pages{ grid-template-columns: 1fr; }
}

/* ===== Note callout ===== */
.note-box{
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
}
.note-box p{ margin: 0; font-size: 0.94rem; }
.note-box p + p{ margin-top: 10px; }
.note-box .note-label{
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

/* ===== Section variants (subpages) ===== */
.section-alt{ background: var(--ivory); }
.section-dark{ background: var(--navy); text-align: center; }
.section-dark .section-eyebrow{ color: var(--gold-light); }
.section-dark h2{ color: var(--ivory); }
.section-dark p{ color: #cfd6e6; max-width: 560px; margin-left: auto; margin-right: auto; }
.section-dark .btn{ margin-top: 10px; }

/* ===== Hero ===== */
.hero{
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 120px 24px 100px;
  text-align: center;
}
.hero-inner{ max-width: 780px; margin: 0 auto; }
.hero .eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 1em;
}
.hero h1{
  color: var(--ivory);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.6em;
}
.hero-lede{
  color: #cfd6e6;
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto 2em;
}
.hero-actions{ display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn{
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary{ background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover{ background: var(--gold-light); }
.btn-ghost{ border-color: rgba(255,255,255,0.4); color: var(--ivory); }
.btn-ghost:hover{ border-color: var(--ivory); }

/* ===== Trust strip ===== */
.trust-strip{ background: var(--ivory); border-bottom: 1px solid var(--line); }
.trust-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item{ text-align: center; }
.trust-icon{ display:block; font-size: 1.3rem; color: var(--gold); margin-bottom: 8px; }
.trust-item p{ margin: 0; font-size: 0.88rem; color: var(--ink); font-weight: 500; }

/* ===== About ===== */
.about-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-card{
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}
.about-card h3{ font-family: var(--sans); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); font-weight: 700; }
.about-card ul{ list-style: none; }
.about-card li{
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
}
.about-card li:first-child{ border-top: none; }

/* ===== Services ===== */
.services{ background: var(--ivory); }
.cards-grid{
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card{
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.card h3{ font-size: 1.2rem; margin-bottom: 0.5em; }
.card p{ font-size: 0.94rem; margin: 0; }

/* ===== Process ===== */
.timeline{
  list-style: none;
  max-width: 720px;
  margin: 56px auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.timeline li{
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child{ border-bottom: none; padding-bottom: 0; }
.timeline-index{
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
  min-width: 46px;
}
.timeline h3{ font-size: 1.15rem; margin-bottom: 0.3em; }
.timeline p{ margin: 0; font-size: 0.94rem; }
.process-note{
  text-align: center;
  max-width: 620px;
  margin: 40px auto 0;
  font-size: 0.86rem;
  font-style: italic;
}

/* ===== Who we serve ===== */
.who-we-serve{ background: var(--ivory); }
.pill-grid{
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pill{
  border: 1px solid var(--gold);
  color: var(--navy);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--cream);
}

/* ===== FAQ ===== */
.accordion{ margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.accordion details{
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.accordion summary{
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  list-style: none;
}
.accordion summary::-webkit-details-marker{ display: none; }
.accordion summary::before{
  content: "+";
  color: var(--gold);
  font-weight: 700;
  margin-right: 12px;
}
.accordion details[open] summary::before{ content: "\2212"; }
.accordion details p{ margin-top: 14px; font-size: 0.94rem; }

/* ===== Contact ===== */
.contact{ background: var(--navy); }
.contact .section-eyebrow{ color: var(--gold-light); }
.contact h2{ color: var(--ivory); }
.contact-lede{ color: #cfd6e6; }
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-details{ margin: 28px 0 0; display: flex; flex-direction: column; gap: 20px; }
.contact-details dt{
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-details dd{ margin: 0; color: var(--ivory); font-size: 0.98rem; }
.contact-details a{ color: var(--ivory); }
.contact-details a:hover{ color: var(--gold-light); }

.business-card{ margin-top: 32px; }
.business-card-label{
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 10px;
}
.business-card-slot{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 560px;
}
.business-card-face{
  display: block;
  flex: 1 1 240px;
  max-width: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(217, 195, 154, 0.35);
  transition: opacity 0.15s ease;
}
.business-card-face:hover{ opacity: 0.88; }
.business-card-face img{ display: block; width: 100%; height: auto; }

.contact-form{
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}
.contact-form label{ font-size: 0.86rem; font-weight: 700; color: var(--navy); }
.contact-form input,
.contact-form textarea{
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus{ outline: 2px solid var(--gold); outline-offset: 1px; }
.contact-form button{ margin-top: 8px; align-self: flex-start; }
.hidden-field{ position: absolute; left: -9999px; }

/* ===== Footer ===== */
.site-footer{ background: var(--navy-deep); padding: 28px 24px; }
.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-inner p{ margin: 0; color: #9fa8bd; font-size: 0.82rem; }
.footer-note{ font-style: italic; }
.footer-text{ display: flex; flex-direction: column; gap: 4px; }
.footer-contact{ font-size: 0.82rem; }
.footer-contact a{ color: var(--gold-light); text-decoration: none; }
.footer-contact a:hover{ text-decoration: underline; }
.footer-contact .sep{ margin: 0 8px; color: #5c6479; }

/* ===== Responsive ===== */
@media (max-width: 900px){
  .about-grid, .contact-grid{ grid-template-columns: 1fr; }
  .cards-grid{ grid-template-columns: 1fr 1fr; }
  .trust-inner{ grid-template-columns: 1fr 1fr; }
}

/* Below this, the header nav no longer has room to lay out all 9 items
   (About, 3 dropdowns, Process, Who We Serve, FAQ, Litigation Services,
   Contact) in one row without wrapping or overflowing — covers iPad
   portrait (768-834px), iPad Pro 12.9" portrait (1024px), and smaller
   laptop windows, not just phones. Matches .header-inner's 1300px cap. */
@media (max-width: 1300px){
  .site-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  .site-nav.open{ display: flex; }
  .nav-toggle{ display: flex; }
  .nav-cta, .nav-litigation{ align-self: flex-start; }
  .nav-item-dropdown{ width: 100%; }
  .nav-dropdown{
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 0 12px;
    min-width: 0;
  }
  .nav-item-dropdown:hover .nav-dropdown{ display: none; }
  .nav-item-dropdown.open .nav-dropdown{ display: block; }
}

@media (max-width: 720px){
  .cards-grid{ grid-template-columns: 1fr; }
  .section{ padding: 64px 0; }
  .hero{ padding: 96px 20px 72px; }
  .related-pages{ grid-template-columns: 1fr; }
}
