/* =========================================
   Bernhardt Appraisal — Design System
   Language: Precision Authority
   A measured, analytical design language built for
   professional credibility and courtroom-grade trust.
   
   NOT a reskin of the NB personal site. Own identity.
   ========================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Backgrounds — cool bone, not warm pampas */
  --bone:         #f4f2ee;
  --stone:        #eae7e0;
  --chalk:        #faf9f7;

  /* Darks — true deep, not warm brown */
  --ink:          #1a1c1e;
  --graphite:     #2a2d30;
  --slate:        #3d4147;

  /* Accents — restrained forest + warm brass */
  --forest:       #3d5a3f;
  --forest-muted: rgba(61,90,63,0.15);
  --forest-deep:  #2d4530;
  --brass:        #a68b5b;
  --brass-muted:  rgba(166,139,91,0.15);

  /* Text */
  --text:         #1a1c1e;
  --text-muted:   rgba(42,45,48,0.55);
  --text-light:   rgba(255,255,255,0.88);
  --text-light-muted: rgba(255,255,255,0.45);

  /* Fonts */
  --serif:  'EB Garamond', Georgia, serif;
  --sans:   'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-w:    1100px;
  --gutter:   clamp(1.25rem, 4vw, 2.5rem);
  --nav-h:    72px;

  /* Spacing */
  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 5rem;
  --sp-5xl: clamp(3rem, 6vw, 4.5rem);

  /* Motion */
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bone);
  color: var(--text);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background: var(--forest-muted); color: var(--ink); }

/* Subtle scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bone); }
::-webkit-scrollbar-thumb { background: rgba(61,90,63,0.2); border-radius: 2px; }

/* ---------- Noise Overlay ---------- */
.noise {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.02; mix-blend-mode: multiply;
}

/* ---------- Custom Cursor ---------- */
.cursor-dot {
  width: 5px; height: 5px; background: var(--forest);
  border-radius: 50%; position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 10001; transform: translate(-50%,-50%);
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(61,90,63,0.35);
  border-radius: 50%; position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 10000; transform: translate(-50%,-50%);
}
@media (hover: none), (max-width: 1024px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ---------- Typography ---------- */
.t-display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.t-xl { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.95; }
.t-lg { font-size: clamp(2.25rem, 5vw, 3.8rem); line-height: 1.05; }
.t-md { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.15; }
.t-sm { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.25; }
.t-italic { font-style: italic; }

.t-body-xl { font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 400; line-height: 1.75; }
.t-body-lg { font-size: clamp(1rem, 1.3vw, 1.1rem); font-weight: 400; line-height: 1.75; }
.t-body { font-size: 1rem; font-weight: 400; line-height: 1.75; }
.t-body-sm { font-size: 0.875rem; font-weight: 400; line-height: 1.7; }

.t-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sp-5xl) 0; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: var(--sp-lg) var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s;
}
.nav--scrolled {
  background: rgba(244,242,238,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.nav__brand {
  display: flex; align-items: center; gap: var(--sp-sm);
  text-decoration: none;
}
.nav__brand-text {
  display: flex; flex-direction: column;
}
.nav__brand-name {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  letter-spacing: 0.01em; line-height: 1.1; color: var(--ink);
}
.nav__brand-sub {
  font-family: var(--sans); font-size: 0.5rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.25em; color: var(--text-muted);
}
/* On dark hero */
.nav--on-dark .nav__brand-name { color: #fff; }
.nav--on-dark .nav__brand-sub { color: var(--text-light-muted); }
.nav--on-dark .nav__link { color: rgba(255,255,255,0.6); }
.nav--on-dark .nav__link:hover { color: #fff; }
.nav--on-dark .hamburger span { background: #fff; }
.nav--on-dark.nav--scrolled .nav__brand-name { color: var(--ink); }
.nav--on-dark.nav--scrolled .nav__brand-sub { color: var(--text-muted); }
.nav--on-dark.nav--scrolled .nav__link { color: var(--text-muted); }
.nav--on-dark.nav--scrolled .nav__link:hover { color: var(--text); }
.nav--on-dark.nav--scrolled .hamburger span { background: var(--ink); }

.nav__links { display: none; align-items: center; gap: var(--sp-xl); }
@media (min-width: 768px) { .nav__links { display: flex; } }

.nav__link {
  font-family: var(--sans); font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--text-muted); transition: color 0.3s;
}
.nav__link:hover { color: var(--text); }
.nav__link--active { color: var(--forest); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 2rem; font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  overflow: hidden; transition: all 0.35s var(--ease); border-radius: 0;
}
.btn__fill {
  position: absolute; top: 100%; left: 0; width: 100%; height: 100%;
  z-index: 1; transition: top 0.45s var(--ease-out);
}
.btn__text { position: relative; z-index: 2; transition: color 0.35s ease; }
.btn:hover .btn__fill { top: 0; }

.btn--forest { background: var(--forest); color: #fff; }
.btn--forest .btn__fill { background: var(--ink); }
.btn--forest:hover .btn__text { color: var(--chalk); }

.btn--dark { background: var(--ink); color: var(--chalk); }
.btn--dark .btn__fill { background: var(--forest); }
.btn--dark:hover .btn__text { color: #fff; }

.btn--outline {
  background: transparent; border: 1px solid rgba(26,28,30,0.2);
  color: var(--text);
}
.btn--outline .btn__fill { background: var(--forest); }
.btn--outline:hover .btn__text { color: #fff; }
.btn--outline:hover { border-color: transparent; }

.btn--outline-light {
  background: transparent; border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}
.btn--outline-light .btn__fill { background: var(--forest); }
.btn--outline-light:hover .btn__text { color: #fff; }
.btn--outline-light:hover { border-color: transparent; }

.btn--lg { padding: 1.1rem 2.75rem; font-size: 0.65rem; }
.btn--sm { padding: 0.65rem 1.5rem; font-size: 0.55rem; }

/* ---------- Hero (text-first + image strip) ---------- */
.hero {
  background: var(--bone);
  padding-top: calc(var(--nav-h) + var(--sp-4xl));
  padding-bottom: var(--sp-3xl);
}
.hero .container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.hero__text { max-width: 700px; margin-bottom: var(--sp-3xl); }
.hero__tag {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--brass); margin-bottom: var(--sp-lg);
  display: flex; align-items: center; gap: var(--sp-md);
}
.hero__tag::before {
  content: ''; width: 28px; height: 1px; background: var(--brass);
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.92; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: var(--sp-xl);
}
.hero__title em { font-style: italic; color: var(--forest); }
.hero__sub {
  font-family: var(--sans); font-size: 1.1rem; font-weight: 400;
  line-height: 1.65; color: var(--text-muted); max-width: 540px;
  margin-bottom: var(--sp-2xl);
}
.hero__buttons { display: flex; gap: var(--sp-md); flex-wrap: wrap; }
/* Hero image strip */
.hero__image {
  overflow: hidden; width: 100%;
}
.hero__image img {
  width: 100%; aspect-ratio: 21/9; object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transform: scale(1.02);
  transition: transform 12s var(--ease-out);
}
.hero--loaded .hero__image img { transform: scale(1); }
/* Credential strip */
.hero__credentials {
  display: flex; gap: var(--sp-3xl); padding: var(--sp-lg) 0;
  border-top: 1px solid var(--stone); margin-top: var(--sp-xl);
}
.hero__credential-val {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 400;
  color: var(--ink); line-height: 1; letter-spacing: -0.02em;
}
.hero__credential-lbl {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--text-muted); margin-top: 0.2rem;
}

/* ---------- Credential Bar ---------- */
.credential-bar {
  background: var(--ink);
  padding: var(--sp-lg) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.credential-bar__inner {
  display: flex; justify-content: center; align-items: center;
  gap: var(--sp-3xl); flex-wrap: wrap;
}
.credential-bar__item {
  display: flex; align-items: baseline; gap: var(--sp-sm);
  white-space: nowrap;
}
.credential-bar__val {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 400;
  color: rgba(255,255,255,0.85); letter-spacing: -0.02em;
}
.credential-bar__lbl {
  font-family: var(--sans); font-size: 0.55rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
}
.credential-bar__sep {
  color: rgba(255,255,255,0.1); font-size: 0.8rem;
}

/* ---------- Sections ---------- */
.section--bone { background: var(--bone); }
.section--stone { background: var(--stone); }
.section--dark { background: var(--ink); color: var(--text-light); }
.section--graphite { background: var(--graphite); color: var(--text-light); }

/* ---------- Split Grid ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; } }
.split__panel {
  padding: var(--sp-3xl);
  display: flex; flex-direction: column; justify-content: center;
}

/* ---------- Value Propositions ---------- */
.value-list { list-style: none; }
.value-list__item {
  display: flex; gap: var(--sp-2xl); padding: var(--sp-2xl) 0;
  border-bottom: 1px solid rgba(26,28,30,0.08);
}
.value-list__item:first-child { border-top: 1px solid rgba(26,28,30,0.08); }
.value-list__num {
  font-family: var(--serif); font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400; color: var(--brass-muted); line-height: 1; flex-shrink: 0;
  min-width: 60px;
}
.value-list__content h3 {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500;
  margin-bottom: var(--sp-sm); color: var(--text);
}
.value-list__content p {
  font-size: 0.9rem; line-height: 1.75; color: var(--text-muted);
}

/* ---------- Process Timeline ---------- */
.process { display: grid; grid-template-columns: 1fr; gap: 0; }
.process__step {
  display: flex; gap: var(--sp-2xl); padding: var(--sp-2xl) 0;
  border-bottom: 1px solid var(--stone);
}
.process__num {
  font-family: var(--serif); font-size: clamp(3rem, 5vw, 4rem);
  color: var(--forest-muted); line-height: 1; flex-shrink: 0;
  min-width: 80px;
}
.process__step h3 {
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500; margin-bottom: var(--sp-sm);
}
.process__step p {
  font-size: 0.9rem; line-height: 1.75; color: var(--text-muted);
}

/* ---------- Testimonials ---------- */
.testimonial {
  max-width: 750px; margin: 0 auto; text-align: center;
}
.testimonial blockquote {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 400; font-style: italic; line-height: 1.55;
  color: var(--text-light); margin-bottom: var(--sp-xl);
}
.testimonial__cite {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); display: block;
}

/* ---------- FAQ ---------- */
.faq-item { padding: var(--sp-lg) 0; border-bottom: 1px solid rgba(26,28,30,0.08); }
.faq-q {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: var(--sp-md);
}
.faq-q::after {
  content: '+'; font-family: var(--sans); font-size: 1.2rem;
  color: var(--forest); transition: transform 0.3s; flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: 0.875rem; line-height: 1.8; color: var(--text-muted);
  max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out), padding 0.3s;
}
.faq-item.open .faq-a { max-height: 300px; padding-top: var(--sp-sm); }

/* ---------- Service Cards (grid) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--stone); }
.service-card {
  background: var(--bone); padding: var(--sp-3xl) var(--sp-2xl);
  display: flex; flex-direction: column;
  transition: background 0.4s;
}
.service-card:hover { background: var(--chalk); }
.service-card__icon {
  font-family: var(--serif); font-size: 2.5rem;
  color: var(--brass); margin-bottom: var(--sp-lg); line-height: 1;
}
.service-card h3 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  margin-bottom: var(--sp-sm); line-height: 1.2;
}
.service-card p {
  font-size: 0.85rem; line-height: 1.75; color: var(--text-muted); flex: 1;
}
.service-card__link {
  margin-top: var(--sp-xl); font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--forest);
  display: flex; align-items: center; gap: var(--sp-sm);
}
.service-card__link span {
  width: 24px; height: 1px; background: var(--forest);
  transition: width 0.3s var(--ease-out);
}
.service-card:hover .service-card__link span { width: 36px; }

/* ---------- Service List (stacked approach — unique to Bernhardt) ---------- */
.service-list { list-style: none; }
.service-list__item {
  display: grid; grid-template-columns: 140px 1fr; gap: var(--sp-2xl);
  padding: var(--sp-2xl) 0;
  border-bottom: 1px solid var(--stone);
  align-items: baseline;
  transition: padding-left 0.4s var(--ease-out);
}
.service-list__item:first-child { border-top: 1px solid var(--stone); }
.service-list__item:hover { padding-left: var(--sp-md); }
.service-list__label {
  font-family: var(--sans); font-size: 0.55rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--brass); padding-top: 0.35rem;
}
.service-list__body h3 {
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500; margin-bottom: var(--sp-xs); line-height: 1.2;
}
.service-list__body h3 a { transition: color 0.3s; }
.service-list__body h3 a:hover { color: var(--forest); }
.service-list__body p {
  font-size: 0.85rem; line-height: 1.7; color: var(--text-muted); max-width: 520px;
}

/* ---------- Credential Sidebar (woven into content) ---------- */
.credential-sidebar {
  border-left: 1px solid var(--brass);
  padding-left: var(--sp-xl);
}
.credential-sidebar__item { margin-bottom: var(--sp-xl); }
.credential-sidebar__item:last-child { margin-bottom: 0; }
.credential-sidebar__val {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 400;
  color: var(--brass); line-height: 1; letter-spacing: -0.02em;
}
.credential-sidebar__lbl {
  font-family: var(--sans); font-size: 0.5rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--text-muted); margin-top: var(--sp-xs);
}

/* ---------- Compliance Footer ---------- */
.footer__compliance {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: var(--sp-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-lg); flex-wrap: wrap;
}
.footer__compliance-text {
  font-family: var(--sans); font-size: 0.55rem;
  color: rgba(255,255,255,0.15); letter-spacing: 0.05em; line-height: 1.6;
}
.footer__compliance-icons {
  display: flex; align-items: center; gap: var(--sp-md);
}
.footer__compliance-icons svg {
  width: 24px; height: 24px; opacity: 0.2;
}

/* ---------- CTA Section ---------- */
.cta {
  background: var(--graphite); color: var(--text-light);
  text-align: center; padding: var(--sp-5xl) 0;
}
.cta p { max-width: 480px; margin: 0 auto var(--sp-xl); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--bone);
  border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone);
  padding: var(--sp-3xl) 0; text-align: center;
}
.newsletter__form {
  display: flex; gap: var(--sp-sm); max-width: 440px; margin: 0 auto;
}
.newsletter__input {
  flex: 1; padding: 0.85rem 1.2rem; font-family: var(--sans); font-size: 0.875rem;
  background: transparent; border: 1px solid var(--stone);
  color: var(--text); outline: none; transition: border-color 0.3s;
}
.newsletter__input:focus { border-color: var(--forest); }
.newsletter__input::placeholder { color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--text-light); padding: var(--sp-4xl) 0 var(--sp-xl); }
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: var(--sp-3xl); border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: var(--sp-3xl);
}
.footer__brand p {
  font-size: 0.85rem; line-height: 1.7; color: var(--text-light-muted);
  max-width: 320px; margin-top: var(--sp-md);
}
.footer__links { display: flex; gap: var(--sp-3xl); }
.footer__col { display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer__col-title {
  font-size: 0.55rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2em; color: rgba(255,255,255,0.3); margin-bottom: var(--sp-xs);
}
.footer__link {
  font-size: 0.8rem; color: var(--text-light-muted); transition: color 0.3s;
}
.footer__link:hover { color: var(--brass); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp-xl);
}
.footer__copy { font-size: 0.65rem; color: rgba(255,255,255,0.2); }
.footer__legal { display: flex; gap: var(--sp-lg); }
.footer__legal a {
  font-size: 0.6rem; color: rgba(255,255,255,0.2); transition: color 0.3s;
}
.footer__legal a:hover { color: rgba(255,255,255,0.5); }

/* ---------- Contact Form ---------- */
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label {
  font-size: 0.6rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--text-muted);
}
.form-field input, .form-field textarea, .form-field select {
  background: transparent; border: none;
  border-bottom: 1px solid var(--stone);
  padding: 0.75rem 0; font-family: var(--sans); font-size: 1rem;
  color: var(--text); transition: border-color 0.3s; outline: none;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--forest);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* ---------- Reveal Animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); }

/* ---------- Mobile Menu ---------- */
.hamburger {
  display: flex; flex-direction: column; gap: 6px; width: 24px;
  cursor: pointer; z-index: 101; padding: 4px 0;
}
.hamburger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--ink); transition: all 0.3s; transform-origin: center;
}
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger--open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.hamburger--open span:nth-child(2) { opacity: 0; }
.hamburger--open span:nth-child(3) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--bone); color: var(--text); z-index: 99;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 0 var(--gutter); gap: var(--sp-sm);
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.mobile-menu--open { opacity: 1; pointer-events: all; }
.mobile-menu__link {
  font-family: var(--serif); font-size: 2.25rem; font-weight: 400;
  color: var(--text); line-height: 1.4; transition: color 0.3s;
}
.mobile-menu__link:hover { color: var(--forest); }
.mobile-menu__divider { width: 40px; height: 1px; background: var(--stone); margin: var(--sp-lg) 0; }
.mobile-menu__cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 1rem; background: var(--forest); color: #fff;
  font-family: var(--sans); font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.25em;
  transition: background 0.3s;
}
.mobile-menu__cta:hover { background: var(--forest-deep); }

/* ---------- Utilities ---------- */
.mb-xs { margin-bottom: var(--sp-xs); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }
.mb-2xl { margin-bottom: var(--sp-2xl); }
.mb-3xl { margin-bottom: var(--sp-3xl); }
.text-forest { color: var(--forest); }
.text-brass { color: var(--brass); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ══════════════════════════════════════
   RESPONSIVE — COMPREHENSIVE
   ══════════════════════════════════════ */

/* ── TABLET (768–1023) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --max-w: 720px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .split__panel { padding: var(--sp-2xl); }
  .footer__links { gap: var(--sp-xl); }
  .intro-layout { grid-template-columns: 1fr !important; }
  .hero__title { font-size: clamp(2.5rem, 6vw, 4rem); }
  .hero__text { max-width: 600px; }
  .hero__image img { aspect-ratio: 2/1; }
  .t-xl { font-size: clamp(2.5rem, 6vw, 4.5rem); }
}

/* ── MOBILE (≤767px) ── */
@media (max-width: 767px) {
  /* Layout */
  .section { padding: var(--sp-3xl) 0; }
  .container { padding: 0 var(--sp-lg); }

  /* Hero */
  .hero { padding-top: calc(var(--nav-h) + var(--sp-3xl)); padding-bottom: var(--sp-2xl); }
  .hero__text { margin-bottom: var(--sp-2xl); }
  .hero__title { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .hero__sub { font-size: 0.95rem; max-width: 100%; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons a, .hero__buttons button { width: 100%; }
  .hero__credentials { gap: var(--sp-xl); flex-wrap: wrap; }
  .hero__image img { aspect-ratio: 16/9; }

  /* Typography scale */
  .t-xl { font-size: clamp(2.25rem, 8vw, 3.5rem); }
  .t-lg { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .t-md { font-size: clamp(1.5rem, 4vw, 2rem); }
  .t-sm { font-size: clamp(1.25rem, 3vw, 1.5rem); }

  /* Split panels */
  .split { grid-template-columns: 1fr !important; }
  .split__panel { padding: var(--sp-2xl) var(--sp-lg); }

  /* Service grid + lists */
  .service-grid { grid-template-columns: 1fr; }
  .service-list__item { grid-template-columns: 1fr; gap: var(--sp-sm); }
  .service-list__label { font-size: 0.55rem; }

  /* Process */
  .process__step { flex-direction: column; gap: var(--sp-md); }
  .process-grid { grid-template-columns: 1fr 1fr !important; }

  /* Credential bar */
  .credential-bar__inner { gap: var(--sp-xl); flex-wrap: wrap; }
  .credential-bar__val { font-size: 1.4rem; }
  .credential-bar__lbl { font-size: 0.5rem; }
  .credential-sidebar { border-left: none; padding-left: 0; display: flex; gap: var(--sp-2xl); flex-wrap: wrap; border-top: 1px solid var(--brass); padding-top: var(--sp-xl); }

  /* Forms */
  .form-grid { grid-template-columns: 1fr !important; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea { font-size: 16px !important; } /* Prevents iOS zoom */

  /* Layouts */
  .intro-layout { grid-template-columns: 1fr !important; }
  .faq-layout { grid-template-columns: 1fr !important; gap: var(--sp-2xl) !important; }
  .next-steps-grid { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer__top { flex-direction: column; gap: var(--sp-2xl); }
  .footer__links { flex-direction: column; gap: var(--sp-xl); }
  .footer__bottom { flex-direction: column; gap: var(--sp-md); align-items: flex-start; }
  .footer__compliance { flex-direction: column; align-items: flex-start; gap: var(--sp-sm); }

  /* Page headers (inner pages) */
  [style*="padding-top:calc(var(--nav-h)"] { padding-top: calc(var(--nav-h) + var(--sp-3xl)) !important; }

  /* Misc */
  .hero__annotation { display: none; }

  /* Value list on services */
  .value-list__item { padding: var(--sp-lg) 0; }
  .value-list__num { font-size: clamp(2rem, 5vw, 3rem); }
}

/* ── SMALL PHONE (≤480px) ── */
@media (max-width: 480px) {
  .section { padding: var(--sp-2xl) 0; }
  .container { padding: 0 var(--sp-md); }

  /* Type */
  .t-xl { font-size: 2rem; }
  .t-lg { font-size: 1.625rem; }
  .t-md { font-size: 1.375rem; }
  .t-body-xl { font-size: 0.95rem; }

  /* Hero */
  .hero { padding-top: calc(var(--nav-h) + var(--sp-2xl)); padding-bottom: var(--sp-xl); }
  .hero__tag { font-size: 0.5rem; }
  .hero__title { font-size: 2rem; }
  .hero__credentials { gap: var(--sp-lg); }
  .hero__credential-val { font-size: 1.3rem; }
  .hero__credential-lbl { font-size: 0.5rem; }
  .hero__image img { aspect-ratio: 4/3; }

  /* Split cards shrink */
  .split__panel { padding: var(--sp-xl) var(--sp-md); }

  /* Process */
  .process-grid { grid-template-columns: 1fr !important; }
  .process__number { font-size: 2rem; }

  /* Buttons */
  .btn--lg { padding: 0.9rem 2rem; font-size: 0.6rem; }
  .btn--sm { padding: 0.55rem 1.25rem; font-size: 0.5rem; }

  /* Forms */
  .newsletter__form { flex-direction: column; }

  /* Stats */
  .hero__credentials > div { min-width: 60px; }

  /* About page stat numbers */
  [style*="font-size:2.5rem"] { font-size: 2rem !important; }
}

/* ── NAV — always responsive ── */
@media (max-width: 767px) {
  .nav__links { display: none !important; }
  .hamburger { display: flex !important; }
}
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

/* ── LARGE DESKTOP (≥1440px) ── */
@media (min-width: 1440px) {
  :root { --max-w: 1200px; }
  .hero__title { font-size: 5.5rem; }
}

