/* ==========================================================================
   Paul H. Stevens, Esq. — main stylesheet
   Brand system per 01_BRAND_AND_DESIGN_SYSTEM.md. Navy #152C50 / gold #C6A15B.
   ========================================================================== */

:root {
  --navy: #152C50;
  --navy-dark: #0E1F38;
  --gold: #C6A15B;
  --gold-dark: #A9873F;
  --bg: #F7F5F1;
  --white: #FFFFFF;
  --text: #2B2B2B;
  --muted: #5B5F66;
  --border: #E3E0DA;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1140px;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-hover: 0 4px 12px rgba(21, 44, 80, 0.08);
  --shadow-card: 0 2px 8px rgba(21, 44, 80, 0.05);
  --transition: 160ms ease;
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;         /* 17px */
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.2vw, 2.85rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.7rem 1.35rem; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center; line-height: 1.2;
}
.btn--lg { padding: 0.9rem 1.7rem; font-size: 1.06rem; }
.btn--gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* --------------------------- Header / nav ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(21,44,80,0.04);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--navy); flex-shrink: 0; }
.brand:hover { color: var(--navy); }
.brand__seal { width: 52px; height: 52px; }
.brand__wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--navy); white-space: nowrap; }
.brand__esq { color: var(--gold-dark); }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav-list a, .dropdown-toggle {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 500; color: var(--navy);
  padding: 0.55rem 0.7rem; border-radius: 6px; background: none; border: none; cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.nav-list a:hover, .dropdown-toggle:hover { background: var(--bg); color: var(--navy); }
.nav-list a[aria-current="page"] { color: var(--gold-dark); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.has-dropdown { position: relative; }
.dropdown-caret { transition: transform var(--transition); }
.dropdown-toggle[aria-expanded="true"] .dropdown-caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover); list-style: none; margin: 0; padding: 0.4rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all var(--transition);
}
.dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 0.6rem 0.8rem; border-radius: 6px; font-weight: 500; }
.dropdown-menu li:first-child a { color: var(--gold-dark); font-weight: 600; }

.header-cta { flex-shrink: 0; margin-left: 0.5rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; margin-left: auto; }
.nav-toggle__bar { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: var(--transition); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ------------------------------ Sections -------------------------------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tight { padding: clamp(2.25rem, 4vw, 3.25rem) 0; }
.section--light { background: var(--white); }
.section__head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 0.6rem; }

.gold-rule { width: 64px; height: 3px; background: var(--gold); border: none; margin: 1.1rem 0; border-radius: 2px; }
.section__head .gold-rule { margin: 1.1rem auto; }

/* ------------------------------- Hero ----------------------------------- */
.hero { background: var(--bg); padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 5vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero__eyebrow { color: var(--gold-dark); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 0.8rem; }
.hero h1 { margin-bottom: 0.9rem; }
.hero__subhead { font-size: 1.18rem; color: var(--text); max-width: 42ch; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.25rem; }
.hero__reassure { color: var(--muted); font-size: 0.95rem; }

/* Photo placeholder — brand seal on navy until a real headshot is supplied. */
.photo-slot {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--navy); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--navy-dark);
}
.photo-slot--wide { aspect-ratio: 3 / 2; }
.photo-slot::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 50% 42%, rgba(198,161,91,0.18), transparent 60%);
}
.photo-slot__seal { width: 58%; max-width: 220px; opacity: 0.96; position: relative; z-index: 1; }
.photo-slot__caption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
  padding: 0.85rem 1rem; text-align: center; color: rgba(255,255,255,0.8);
  font-size: 0.82rem; background: linear-gradient(transparent, rgba(14,31,56,0.85));
}

/* --------------------------- Credibility strip -------------------------- */
.cred-strip { background: var(--navy); }
.cred-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2rem 0; }
.cred-item { text-align: center; color: #fff; padding: 0.5rem 0.75rem; position: relative; }
.cred-item + .cred-item::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: rgba(198,161,91,0.35); }
.cred-item__stat { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; color: var(--gold); line-height: 1.1; }
.cred-item__label { font-size: 0.92rem; color: rgba(255,255,255,0.85); }

/* ----------------------------- Card grid -------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: none; transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.pa-card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(198,161,91,0.13); color: var(--navy); margin-bottom: 1rem;
}
.pa-card__icon svg { width: 28px; height: 28px; }
.pa-card h3 { margin-bottom: 0.4rem; }
.pa-card p { color: var(--muted); flex-grow: 1; }
.card__link {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--gold-dark); margin-top: 0.6rem;
}
.card__link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.card:hover .card__link svg { transform: translateX(3px); }

/* ---------------------------- About preview ----------------------------- */
.about-preview__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }

/* ---------------------------- Testimonials ------------------------------ */
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.testimonial-card__quote { font-size: 1.05rem; color: var(--text); margin-bottom: 1rem; flex-grow: 1; }
.testimonial-card__quote::before { content: "“"; font-family: var(--font-head); color: var(--gold); font-size: 2.2rem; line-height: 0; vertical-align: -0.35em; margin-right: 0.1em; }
.testimonial-card__attr { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.testimonial-card__attr span { color: var(--muted); font-weight: 400; }

.review-badges { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1rem; }
.review-badge {
  display: inline-flex; align-items: center; gap: 0.55rem; background: var(--white);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.5rem 1.1rem; font-size: 0.95rem; color: var(--navy);
}
.review-badge strong { color: var(--gold-dark); }
.review-badge .stars { color: var(--gold); letter-spacing: 1px; }

/* Filter buttons on testimonials page */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.filter-btn { font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; padding: 0.5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--white); color: var(--navy); cursor: pointer; transition: var(--transition); }
.filter-btn:hover { border-color: var(--gold); }
.filter-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ------------------------------ CTA band -------------------------------- */
.cta-band { background: var(--navy); color: #fff; padding: clamp(2.75rem, 5vw, 4rem) 0; }
.cta-band__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-band__title { color: #fff; margin-bottom: 0.5rem; }
.cta-band__text { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 1.6rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* ------------------------- Practice-area page --------------------------- */
.page-hero { background: var(--navy); color: #fff; padding: clamp(2.5rem, 5vw, 3.75rem) 0; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 60ch; margin-bottom: 0; }
.page-hero__breadcrumb { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 0.9rem; }
.page-hero__breadcrumb a { color: var(--gold); }

.content-narrow { max-width: 760px; }
.content-narrow p { font-size: 1.08rem; }

.topic-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.4rem; }
.topic-list h3 { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.3rem; }
.topic-list h3::before { content: ""; width: 10px; height: 10px; background: var(--gold); border-radius: 2px; transform: rotate(45deg); flex-shrink: 0; }
.topic-list p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 1.05rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-dark); line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { color: var(--muted); padding: 1rem 0; margin: 0; }

.related-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.related-links a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; font-weight: 600; }
.related-links a:hover { border-color: var(--gold); }

/* ------------------------------ About ----------------------------------- */
.prose { max-width: 760px; }
.prose p { font-size: 1.08rem; }
.prose h2 { margin-top: 2.5rem; }
.cred-facts { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.75rem; }
.cred-facts li { display: flex; align-items: flex-start; gap: 0.65rem; }
.cred-facts svg { color: var(--gold-dark); flex-shrink: 0; margin-top: 3px; }

.endorsement { border-left: 3px solid var(--gold); padding: 0.25rem 0 0.25rem 1.25rem; margin: 0 0 1.5rem; }
.endorsement p { font-size: 1.05rem; color: var(--text); }
.endorsement cite { font-style: normal; font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.endorsement cite span { display: block; color: var(--muted); font-weight: 400; }

/* ------------------------------ Contact --------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-info { display: grid; gap: 1.25rem; }
.contact-info__item { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-info__item svg { color: var(--gold-dark); flex-shrink: 0; margin-top: 3px; }
.contact-info__item h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.contact-info__item p, .contact-info__item address { margin: 0; color: var(--muted); font-style: normal; }
.map-embed { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

.form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-card); }
.form__row { margin-bottom: 1.1rem; }
.form__row label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--navy); margin-bottom: 0.35rem; }
.form__row .req { color: var(--gold-dark); }
.form input, .form select, .form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: 0.7rem 0.85rem; border: 1.5px solid var(--border); border-radius: 7px; background: var(--bg);
  transition: border-color var(--transition);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); outline: none; background: #fff; }
.form textarea { resize: vertical; min-height: 130px; }
.form__hidden { position: absolute; left: -9999px; }
.form__note { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

/* ------------------------------ Fees ------------------------------------ */
.fee-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.9rem; }
.fee-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 1.06rem; }
.fee-list svg { color: var(--gold-dark); flex-shrink: 0; margin-top: 4px; }
.callout { background: rgba(198,161,91,0.09); border: 1px solid rgba(198,161,91,0.4); border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; }
.callout h3 { margin-bottom: 0.4rem; }
.placeholder-box { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; color: var(--muted); background: var(--white); }

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.82); margin-top: auto; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer__seal { width: 72px; height: 72px; margin-bottom: 0.75rem; }
.site-footer__name { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.15rem; margin-bottom: 0.3rem; }
.site-footer__tagline { font-size: 0.95rem; color: rgba(255,255,255,0.7); font-style: italic; }
.site-footer__heading { font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 1rem; }
.site-footer__address a, .site-footer__links a { color: rgba(255,255,255,0.82); }
.site-footer__address a:hover, .site-footer__links a:hover { color: var(--gold); }
.site-footer__hours { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.95rem; color: rgba(255,255,255,0.7); }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.5rem 0 2rem; }
.site-footer__disclaimer { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 0.6rem; }
.site-footer__copyright { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin: 0; }

body { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------------------------- Responsive -------------------------------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__grid, .about-preview__grid, .contact-grid { grid-template-columns: 1fr; }
  .about-preview__grid .photo-slot, .hero__photo { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 820px) {
  .header-cta span { display: none; }
  .header-cta { padding: 0.7rem 0.85rem; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--white); margin: 0;
    border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px rgba(21,44,80,0.1);
    max-height: 0; overflow: hidden; transition: max-height 240ms ease; z-index: 99;
  }
  .primary-nav.open { max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1rem 1.25rem; }
  .nav-list > li { border-bottom: 1px solid var(--border); }
  .nav-list a, .dropdown-toggle { padding: 0.9rem 0.5rem; width: 100%; font-size: 1.05rem; justify-content: space-between; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-radius: 0; padding: 0 0 0.5rem 0.75rem; max-height: 0; overflow: hidden; transition: max-height 200ms ease;
  }
  .dropdown-menu.open { max-height: 500px; }
  .nav-list a[aria-current="page"] { box-shadow: none; }
}

@media (max-width: 620px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .cred-strip__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .cred-item + .cred-item::before { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .brand__wordmark { font-size: 1rem; }
  .cta-band__actions, .hero__actions { flex-direction: column; }
  .cta-band__actions .btn, .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
