/* =========================================================================
   HMF Advocates & Co. — stylesheet
   Palette, type and spacing are all defined as tokens in :root below.
   Change the brand there and the whole site follows.
   ====================================================================== */

:root {
  /* Colour */
  --c-black:      #0c0b09;
  --c-charcoal:   #17150f;
  --c-panel:      #1f1c15;
  --c-ink:        #1b1914;
  --c-stone:      #efece4;
  --c-stone-2:    #e5e1d6;
  --c-white:      #fbfaf7;
  --c-gold:       #c6a15b;
  --c-gold-deep:  #9a7a3a;
  --c-gold-pale:  #e9d9b4;
  --c-muted:      #6e6759;
  --c-muted-light:#b3ab9a;
  --c-line-gold:  rgba(198, 161, 91, .32);
  --c-line-dark:  rgba(27, 25, 20, .16);
  --c-wa:         #25d366;
  --c-error:      #a23b2c;
  --c-ok:         #2f6b3e;

  /* Type */
  --f-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --f-body:    "DM Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-h3: 1.5rem;
  --t-h2: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  --t-h1: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  --t-hero: clamp(2.5rem, 1.3rem + 4.2vw, 4.9rem);

  /* Space & shape */
  --s-1: .5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6.5rem;
  --wrap: 1180px;
  --wrap-narrow: 820px;
  --r-sm: 2px;
  --r-md: 4px;
  --shadow-header: 0 10px 30px rgba(0, 0, 0, .35);
  --header-h: 84px;
}

/* -------------------------------------------------------------------------
   Base
   ---------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-black);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: var(--s-2); top: -100px;
  padding: .5rem .9rem; background: var(--c-gold); color: var(--c-black);
  z-index: 100; text-decoration: none;
}
.skip-link:focus { top: var(--s-2); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-3); }
.wrap--narrow { max-width: var(--wrap-narrow); }

/* Headings */
.h1, .h2, .h3, .hero__heading {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.005em;
}
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h2--sm { font-size: var(--t-h3); margin-bottom: var(--s-2); }
.h3 { font-size: var(--t-h3); }

/* Section backgrounds */
.section { padding: var(--s-6) 0; }
.section--ivory    { background: var(--c-stone); color: var(--c-ink); }
.section--black    { background: var(--c-black); color: var(--c-stone); }
.section--charcoal { background: var(--c-charcoal); color: var(--c-stone); }

.section__head { max-width: 720px; margin-bottom: var(--s-4); }
.section__head--row {
  max-width: none; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
}
.section__intro { margin-top: var(--s-2); font-size: var(--t-lg); line-height: 1.55; }
.section--ivory .section__intro { color: var(--c-muted); }
.section--black .section__intro, .section--charcoal .section__intro { color: var(--c-muted-light); }

/* Two-column "lead + body" layout used throughout */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-4) var(--s-5); align-items: start; }
.split__lead { position: sticky; top: calc(var(--header-h) + var(--s-3)); }
.split__lead .h2 { max-width: 14ch; }
.split__lead .section__intro { max-width: 40ch; }

.prose p + p { margin-top: 1.1em; }
.prose p { max-width: 62ch; }
.prose--light { color: var(--c-stone); }

.text-link {
  font-family: var(--f-body); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.text-link:hover { color: var(--c-gold-deep); }
.text-link--gold { color: var(--c-gold); }
.text-link--gold:hover { color: var(--c-gold-pale); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: var(--r-sm);
  font-family: var(--f-body); font-size: var(--t-sm); font-weight: 500;
  text-decoration: none; line-height: 1.2; border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--gold { background: var(--c-gold); color: var(--c-black); border-color: var(--c-gold); }
.btn--gold:hover { background: var(--c-gold-pale); border-color: var(--c-gold-pale); }
.btn--ghost-light { color: var(--c-stone); border-color: rgba(239, 236, 228, .35); }
.btn--ghost-light:hover { border-color: var(--c-gold); color: var(--c-gold); }
.btn--dark { background: var(--c-black); color: var(--c-gold-pale); border-color: var(--c-black); }
.btn--dark:hover { background: var(--c-panel); }
.btn--ghost-dark { color: var(--c-ink); border-color: rgba(27, 25, 20, .35); }
.btn--ghost-dark:hover { border-color: var(--c-ink); }

/* -------------------------------------------------------------------------
   Logo
   ---------------------------------------------------------------------- */

.logo { display: inline-flex; align-items: center; gap: .8rem; color: var(--c-gold); text-decoration: none; }
.logo__mark { flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; color: var(--c-stone); }
.logo__sub { font-size: .72rem; color: var(--c-gold); margin-top: .25rem; letter-spacing: .02em; }
.brand { text-decoration: none; }

/* -------------------------------------------------------------------------
   Header & navigation
   ---------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 11, 9, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line-gold);
  transition: box-shadow .2s, background-color .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); background: rgba(12, 11, 9, .92); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--s-3); }

.site-nav { display: flex; align-items: center; gap: var(--s-3); }
.site-nav__list { display: flex; align-items: center; gap: .25rem; }
.site-nav__item { position: relative; display: flex; align-items: center; }
.site-nav__item > a {
  display: inline-block; padding: .55rem .8rem; color: var(--c-stone);
  font-size: var(--t-sm); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.site-nav__item > a:hover { color: var(--c-gold-pale); }
.site-nav__item > a[aria-current="page"] { color: var(--c-gold); border-bottom-color: var(--c-gold); }

.site-nav__more { padding: .4rem .3rem; color: var(--c-muted-light); margin-left: -.5rem; display: flex; }
.site-nav__more:hover { color: var(--c-gold); }
.site-nav__more svg { transition: transform .15s; }
.site-nav__more[aria-expanded="true"] svg { transform: rotate(180deg); }

.site-nav__menu {
  position: absolute; top: calc(100% + .6rem); left: 0; min-width: 300px;
  background: var(--c-charcoal); border: 1px solid var(--c-line-gold); border-radius: var(--r-md);
  padding: .5rem 0; box-shadow: var(--shadow-header);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav__menu a {
  display: block; padding: .55rem 1.1rem; color: var(--c-stone); text-decoration: none; font-size: var(--t-sm);
}
.site-nav__menu a:hover, .site-nav__menu a[aria-current="page"] { color: var(--c-gold); background: rgba(198, 161, 91, .06); }
.site-nav__menu-all { border-top: 1px solid var(--c-line-gold); margin-top: .35rem; padding-top: .35rem; }
.site-nav__menu-all a { color: var(--c-gold); }
.has-menu:hover .site-nav__menu, .has-menu:focus-within .site-nav__menu, .has-menu.is-open .site-nav__menu {
  opacity: 1; visibility: visible; transform: none;
}

.site-nav__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; border: 1px solid var(--c-line-gold); border-radius: var(--r-sm);
  color: var(--c-gold); font-size: var(--t-sm); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .15s;
}
.site-nav__phone:hover { background: rgba(198, 161, 91, .1); }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--c-gold); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */

.hero { position: relative; background: var(--c-black); color: var(--c-stone); overflow: hidden; }
.hero__inner { position: relative; z-index: 1; }

.hero--inner .hero__inner { padding: var(--s-5) var(--s-3) var(--s-5); max-width: var(--wrap); }
.hero--inner .hero__heading { max-width: 18ch; font-size: var(--t-h1); }

.hero--home { min-height: min(86vh, 860px); display: flex; align-items: center; }
.hero--home .hero__inner { padding-top: var(--s-6); padding-bottom: var(--s-6); }
.hero--home .hero__heading { font-size: var(--t-hero); max-width: 14ch; line-height: 1.0; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  color: var(--c-gold); font-size: var(--t-sm); font-weight: 500; margin-bottom: var(--s-2);
}
.hero__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--c-gold); }

.hero__lede { margin-top: var(--s-3); max-width: 56ch; font-size: var(--t-lg); line-height: 1.55; color: var(--c-muted-light); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

.hero__stats { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--c-line-gold); }
.hero__stats dt { font-size: var(--t-xs); color: var(--c-muted-light); }
.hero__stats dd { font-family: var(--f-display); font-size: 2rem; color: var(--c-gold); }

.hero__media {
  position: absolute; inset: 0 0 0 auto; width: 58%; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 9, .15), rgba(12, 11, 9, .55));
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(.4) contrast(1.05) sepia(.18); }

@media (prefers-reduced-motion: no-preference) {
  .hero--home .hero__heading, .hero--home .hero__lede, .hero--home .hero__actions {
    animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero--home .hero__lede { animation-delay: .12s; }
  .hero--home .hero__actions { animation-delay: .22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* -------------------------------------------------------------------------
   Breadcrumbs
   ---------------------------------------------------------------------- */

.crumbs { background: var(--c-charcoal); border-top: 1px solid var(--c-line-gold); border-bottom: 1px solid var(--c-line-gold); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .6rem; padding: .8rem 0; font-size: var(--t-xs); color: var(--c-muted-light); }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--c-gold-deep); }
.crumbs a { color: var(--c-stone); text-decoration: none; }
.crumbs a:hover { color: var(--c-gold); }
.crumbs [aria-current] { color: var(--c-gold); }

/* -------------------------------------------------------------------------
   Practice-area cards
   ---------------------------------------------------------------------- */

.pa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--c-line-gold); border: 1px solid var(--c-line-gold); }
.pa-card {
  display: flex; flex-direction: column; gap: .8rem; padding: var(--s-4) var(--s-3);
  background: var(--c-black); color: var(--c-stone); text-decoration: none;
  transition: background-color .2s;
}
.pa-card:hover { background: var(--c-panel); }
.pa-card__icon { color: var(--c-gold); margin-bottom: .4rem; }
.pa-card__title { font-family: var(--f-display); font-size: var(--t-h3); font-weight: 500; line-height: 1.15; }
.pa-card__text { font-size: var(--t-sm); color: var(--c-muted-light); flex: 1; }
.pa-card__link { font-size: var(--t-sm); font-weight: 500; color: var(--c-gold); border-bottom: 1px solid var(--c-line-gold); align-self: flex-start; padding-bottom: 2px; }
.pa-card:hover .pa-card__link { border-bottom-color: var(--c-gold); }

.pa-grid--light { background: var(--c-line-dark); border-color: var(--c-line-dark); }
.pa-grid--light .pa-card { background: var(--c-stone); color: var(--c-ink); }
.pa-grid--light .pa-card:hover { background: var(--c-white); }
.pa-grid--light .pa-card__icon { color: var(--c-gold-deep); }
.pa-grid--light .pa-card__text { color: var(--c-muted); }
.pa-grid--light .pa-card__link { color: var(--c-gold-deep); border-bottom-color: var(--c-line-dark); }

.pa-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.pa-links a {
  display: inline-block; padding: .5rem .9rem; border: 1px solid var(--c-line-gold); border-radius: var(--r-sm);
  font-size: var(--t-sm); text-decoration: none; transition: border-color .15s, color .15s;
}
.pa-links a:hover { border-color: var(--c-gold); color: var(--c-gold); }
.section--ivory .pa-links a { border-color: var(--c-line-dark); }
.section--ivory .pa-links a:hover { border-color: var(--c-ink); color: var(--c-ink); }

/* -------------------------------------------------------------------------
   Register of matters
   ---------------------------------------------------------------------- */

.register-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.register__heading {
  font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: var(--t-h3);
  padding-bottom: .6rem; margin-bottom: .2rem; border-bottom: 1px solid var(--c-ink);
}
.register__list li {
  position: relative; padding: .75rem 0 .75rem 1.4rem;
  font-family: var(--f-display); font-size: 1.25rem; line-height: 1.3;
  border-bottom: 1px solid var(--c-line-dark);
}
.register__list li::before {
  content: ""; position: absolute; left: 0; top: 1.25rem; width: 8px; height: 1px; background: var(--c-gold-deep);
}
.section--black .register__heading { border-bottom-color: var(--c-gold); color: var(--c-gold); }
.section--black .register__list li { border-bottom-color: var(--c-line-gold); }
.section--black .register__list li::before { background: var(--c-gold); }
.split__body .register__list { columns: 2; column-gap: var(--s-4); }
.split__body .register__list li { break-inside: avoid; }

/* -------------------------------------------------------------------------
   Approach & checklist
   ---------------------------------------------------------------------- */

.approach { display: grid; gap: 0; }
.approach__item { padding: var(--s-3) 0; border-top: 1px solid var(--c-line-gold); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-2) var(--s-3); }
.approach__item:last-child { border-bottom: 1px solid var(--c-line-gold); }
.approach dt { font-family: var(--f-display); font-size: var(--t-h3); font-weight: 500; color: var(--c-gold); line-height: 1.15; }
.approach dd { color: var(--c-muted-light); font-size: var(--t-sm); line-height: 1.6; }

.checklist { display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; align-items: baseline; font-size: var(--t-lg); font-family: var(--f-display); line-height: 1.3; }
.checklist svg { flex: none; color: var(--c-gold-deep); position: relative; top: 1px; }

/* -------------------------------------------------------------------------
   Team
   ---------------------------------------------------------------------- */

.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.team-grid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); }
.team-card { display: block; text-decoration: none; color: inherit; }
.team-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-panel); border-bottom: 1px solid var(--c-gold); }
.team-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: grayscale(1) contrast(1.05); transition: filter .3s; }
.team-card:hover .team-photo { filter: grayscale(0) contrast(1); }
.team-photo--placeholder { display: flex; align-items: center; justify-content: center; }
.team-photo--placeholder span { font-family: var(--f-display); font-size: 3.5rem; color: var(--c-gold); letter-spacing: .05em; }
.team-card__body { padding: .9rem 0 0; }
.team-card__name { font-family: var(--f-display); font-size: var(--t-h3); font-weight: 500; line-height: 1.15; }
.team-card__title { font-size: var(--t-sm); margin-top: .2rem; }
.team-card__roles { font-size: var(--t-xs); margin-top: .2rem; }
.section--ivory .team-card__title { color: var(--c-gold-deep); }
.section--ivory .team-card__roles { color: var(--c-muted); }
.section--black .team-card__title { color: var(--c-gold); }
.section--black .team-card__roles { color: var(--c-muted-light); }

.team-cover { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-5); align-items: center; }
.team-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; border: 1px solid var(--c-line-gold); }

/* Profile page */
.profile__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-5); align-items: start; }
.profile__media { position: sticky; top: calc(var(--header-h) + var(--s-3)); }
.profile__photo { position: static; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; background: var(--c-panel); border-bottom: 2px solid var(--c-gold); }
.profile__photo.team-photo--placeholder { display: flex; align-items: center; justify-content: center; }
.profile__title { margin-top: .5rem; font-size: var(--t-lg); color: var(--c-gold-deep); }
.profile__roles { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .6rem 0 var(--s-3); font-size: var(--t-sm); color: var(--c-muted); }
.profile__roles li + li::before { content: "/"; margin-right: 1rem; color: var(--c-gold-deep); }
.profile__body .h2--sm { margin-top: var(--s-4); }
.profile__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

/* -------------------------------------------------------------------------
   FAQ accordion
   ---------------------------------------------------------------------- */

.faq-list { border-top: 1px solid var(--c-ink); }
.faq-item { border-bottom: 1px solid var(--c-line-dark); }
.faq-item__q { font-size: inherit; }
.faq-item__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: 1.1rem 0; text-align: left;
  font-family: var(--f-display); font-size: var(--t-h3); font-weight: 500; line-height: 1.2;
}
.faq-item__btn:hover { color: var(--c-gold-deep); }
.faq-item__chev { flex: none; color: var(--c-gold-deep); transition: transform .25s; }
.faq-item.is-open .faq-item__chev { transform: rotate(180deg); }
.faq-item__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }
.faq-item__inner { overflow: hidden; }
.faq-item__inner p { padding: 0 0 1.3rem; max-width: 64ch; color: var(--c-muted); }

/* -------------------------------------------------------------------------
   CTA band
   ---------------------------------------------------------------------- */

.cta-band { background: var(--c-gold); color: var(--c-black); padding: var(--s-5) 0; }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 3fr) auto; gap: var(--s-4); align-items: center; }
.cta-band__heading { font-family: var(--f-display); font-size: var(--t-h2); font-weight: 500; line-height: 1.1; }
.cta-band__text { margin-top: .8rem; max-width: 58ch; color: rgba(12, 11, 9, .78); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cta-band .btn--gold { background: var(--c-black); color: var(--c-gold-pale); border-color: var(--c-black); }
.cta-band .btn--gold:hover { background: var(--c-panel); border-color: var(--c-panel); }
.cta-band .btn--ghost-light { color: var(--c-black); border-color: rgba(12, 11, 9, .4); }
.cta-band .btn--ghost-light:hover { border-color: var(--c-black); color: var(--c-black); }

/* -------------------------------------------------------------------------
   Contact
   ---------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-5); align-items: start; }
.contact-info__label { font-family: var(--f-body); font-size: var(--t-xs); font-weight: 500; color: var(--c-muted); margin-top: var(--s-3); }
.contact-info__block { margin-top: .35rem; font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.4; }
.contact-info__block a { text-decoration: none; border-bottom: 1px solid var(--c-line-dark); }
.contact-info__block a:hover { border-bottom-color: var(--c-ink); }
.contact-info .btn { margin-top: var(--s-4); }

.contact-form { display: grid; gap: var(--s-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--t-sm); font-weight: 500; }
.field__opt { color: var(--c-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--c-line-dark); border-radius: var(--r-sm);
  background: var(--c-white); transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-gold-deep); box-shadow: 0 0 0 3px rgba(198, 161, 91, .25); }
.field.has-error input, .field.has-error textarea { border-color: var(--c-error); }
.field__error { font-size: var(--t-xs); color: var(--c-error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.contact-form__note { font-size: var(--t-xs); color: var(--c-muted); max-width: 60ch; }

.notice { padding: 1rem 1.2rem; margin-bottom: var(--s-3); border-left: 3px solid; font-size: var(--t-sm); background: var(--c-white); }
.notice--ok { border-color: var(--c-ok); }
.notice--err { border-color: var(--c-error); }

/* -------------------------------------------------------------------------
   404
   ---------------------------------------------------------------------- */

.notfound { min-height: 55vh; }
.notfound__code { font-family: var(--f-display); font-size: 5rem; line-height: 1; color: var(--c-gold-deep); }
.notfound .h1 { margin-top: var(--s-2); }
.notfound__links { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }

/* -------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------- */

.site-footer { background: var(--c-black); color: var(--c-stone); border-top: 1px solid var(--c-line-gold); padding: var(--s-5) 0 var(--s-3); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.site-footer__tagline { margin-top: var(--s-3); font-family: var(--f-display); font-size: var(--t-lg); color: var(--c-gold-pale); max-width: 22ch; line-height: 1.3; }
.site-footer__desc { margin-top: .8rem; font-size: var(--t-sm); color: var(--c-muted-light); max-width: 34ch; }
.site-footer__heading { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 500; color: var(--c-gold); margin-bottom: .9rem; }
.site-footer__links { display: grid; gap: .45rem; font-size: var(--t-sm); }
.site-footer__links a { color: var(--c-stone); text-decoration: none; }
.site-footer__links a:hover { color: var(--c-gold); }
.site-footer__contact { font-size: var(--t-sm); display: grid; gap: .5rem; color: var(--c-muted-light); }
.site-footer__contact a { color: var(--c-stone); text-decoration: none; }
.site-footer__contact a:hover { color: var(--c-gold); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--c-line-gold); font-size: var(--t-xs); color: var(--c-muted-light); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: var(--c-wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .15s;
}
.wa-float:hover { transform: translateY(-2px); }

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .pa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-nav__phone { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .section { padding: var(--s-5) 0; }
  .split { grid-template-columns: 1fr; gap: var(--s-3); }
  .split__lead { position: static; }
  .split__body .register__list { columns: 1; }
  .register-pair { grid-template-columns: 1fr; gap: var(--s-4); }
  .approach__item { grid-template-columns: 1fr; gap: .5rem; }
  .profile__grid, .contact-grid, .team-cover { grid-template-columns: 1fr; }
  .profile__media { position: static; max-width: 360px; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .hero__media { width: 100%; opacity: .45;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 45%); }
  .hero--home { min-height: 0; }
  .hero--home .hero__inner { padding-top: var(--s-5); padding-bottom: var(--s-5); }

  /* Mobile navigation */
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-black); padding: var(--s-2) var(--s-3) var(--s-4); overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease;
  }
  .site-nav.is-open { transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--c-line-gold); }
  .site-nav__item > a { flex: 1; padding: .95rem 0; font-size: var(--t-lg); border-bottom: 0; }
  .site-nav__item > a[aria-current="page"] { border-bottom: 0; }
  .site-nav__more { margin: 0; padding: .6rem; }
  .site-nav__menu {
    position: static; width: 100%; min-width: 0; border: 0; box-shadow: none; background: transparent;
    padding: 0 0 .6rem; transform: none; opacity: 1; visibility: hidden; display: none;
  }
  .has-menu.is-open .site-nav__menu { display: block; visibility: visible; }
  .site-nav__menu a { padding: .5rem 0 .5rem 1rem; }
  .site-nav__phone { display: inline-flex; align-self: flex-start; margin-top: var(--s-3); }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .pa-grid, .team-grid, .team-grid--compact, .site-footer__grid, .field-row { grid-template-columns: 1fr; }
  .logo__sub { display: none; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .wa-float { width: 50px; height: 50px; right: 1rem; bottom: 1rem; }
}

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