/* ============================================================
   julianbrookstone.com — Main Stylesheet
   Fonts: Outfit (headings) + DM Sans (body) via Google Fonts
   Themes: .theme-dark on <html> for dark mode
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap');

/* ============================================================
   1. CUSTOM PROPERTIES — LIGHT THEME (default)
   ============================================================ */

:root {
  /* Colours — light theme (from style config export) */
  --bg-primary:         #f5f4f0;
  --bg-section-a:       #eeeee9;
  --bg-section-b:       #eeeee9;
  --text-primary:       #1a1a1f;
  --text-muted:         #6b6a72;
  --accent:             #70addb;
  --color-accent-hover: #5497b5;
  --color-accent-fg:    #0d2030;
  --color-border:       #d5d4cf;
  --color-hero-bg:      #0d1520;
  --color-hero-text:    #f0f0ec;
  --color-hero-muted:   #8a9aad;
  --color-hero-accent:  #70addb;

  /* Fonts */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:  150ms ease;
  --transition-base:  250ms ease;
  --transition-slow:  400ms ease;

  /* Layout */
  --max-width:     1100px;
  --nav-height:    64px;

  /* Parallax offset (set by JS) */
  /* --parallax-y removed (blobs replaced by hero image) */

  /* Dot wave */
  --dot-wave-bg:    #eeeee9;
  --dot-wave-color: var(--accent);

  /* Typography weights */
  --font-heading-weight: 600;
  --font-body-weight:    400;

  /* Button tokens — from style config export */
  --btn-radius:    13px;
  --btn-padding-x: 30px;
  --btn-padding-y: 12px;
  --btn-font-size: 0.9rem;
}

/* ============================================================
   2. DARK THEME OVERRIDES
   ============================================================ */

.theme-dark {
  --bg-primary:         #1b1f27;
  --bg-section-a:       #222835;
  --bg-section-b:       #222835;
  --text-primary:       #e8e6e1;
  --text-muted:         #8a8995;
  --accent:             #70addb;
  --color-accent-hover: #8bbee6;
  --color-accent-fg:    #0d1520;
  --color-border:       #2a3040;
  --color-hero-bg:      #0d1520;
  --color-hero-text:    #f0f0ec;
  --color-hero-muted:   #8a9aad;
  --color-hero-accent:  #70addb;
  --dot-wave-bg:        #222835;
}

/* ============================================================
   3. CSS RESET
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-body-weight);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  max-width: 68ch;
}

.lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   5. LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-20);
}

.section--alt {
  background-color: var(--bg-section-b);
}

.section--surface {
  background-color: var(--bg-section-a);
}

/* ============================================================
   6. HEADER & NAV
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background-color: transparent;
  transition: background-color var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background-color: color-mix(in srgb, var(--bg-section-a) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.nav__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-hero-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

.site-header.scrolled .nav__logo {
  color: var(--text-primary);
}

/* Light mode: brand logo turns accent blue once scrolled (stays white over the hero) */
html:not(.theme-dark) .site-header.scrolled .nav__logo {
  color: var(--accent);
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-hero-muted);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-hero-text);
}

.site-header.scrolled .nav__link {
  color: var(--text-muted);
}

.site-header.scrolled .nav__link:hover {
  color: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  color: var(--color-hero-muted);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--color-hero-text);
  background-color: rgba(255, 255, 255, 0.1);
}

.site-header.scrolled .theme-toggle {
  color: var(--text-muted);
}

.site-header.scrolled .theme-toggle:hover {
  color: var(--text-primary);
  background-color: var(--bg-section-b);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 20px;
  height: 20px;
}

.theme-dark .theme-toggle .icon-sun  { display: none; }
.theme-dark .theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-hero-muted);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav__hamburger:hover {
  color: var(--color-hero-text);
  background-color: rgba(255, 255, 255, 0.1);
}

.site-header.scrolled .nav__hamburger {
  color: var(--text-muted);
}

.site-header.scrolled .nav__hamburger:hover {
  color: var(--text-primary);
  background-color: var(--bg-section-b);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.nav__hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--bg-section-a);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-6);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-lg);
  text-decoration: none;
  color: var(--text-primary);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.nav__mobile-link:last-child {
  border-bottom: none;
}

.nav__mobile-link:hover {
  color: var(--accent);
}

/* ============================================================
   7. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--btn-font-size);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--color-accent-fg);
  border-color: var(--accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-accent-fg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn--primary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: none;
}

.btn--outline {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn--outline:hover {
  background-color: var(--accent);
  color: var(--color-accent-fg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn--outline:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: none;
}

.btn--hero {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-hero-accent);
  border-color: var(--color-hero-text);
}

.btn--hero:hover {
  color: var(--color-hero-accent);
  border-color: var(--color-hero-text);
  transform: translateY(-2px);
}

.btn--hero:active {
  transform: translateY(1px) scale(0.98);
}

.btn--hero-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-hero-accent);
  border-color: var(--color-hero-text);
}

.btn--hero-outline:hover {
  color: var(--color-hero-accent);
  border-color: var(--color-hero-text);
  transform: translateY(-2px);
}

.btn--hero-outline:active {
  transform: translateY(1px) scale(0.98);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

/* ============================================================
   8. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-hero-bg);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image img {
  width: 100%;
  height: 104%;
  object-fit: cover;
  object-position: left bottom;
  transform: scaleX(-1);
  will-change: transform;
}

@media (min-width: 768px) {
  .hero__bg-image img {
    height: 120%;
    object-position: left 95%;
  }
}

.hero__overlay {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-20) var(--space-6) var(--space-16);
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-hero-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-5);
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-hero-text);
  max-width: 14ch;
  margin-bottom: var(--space-6);
}

.hero__title em {
  font-style: normal;
  color: var(--color-hero-accent);
}

.hero__subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: #6b6a72;
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 0;
}

.hero__links {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.hero__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: #6b6a72;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hero__link:hover {
  color: var(--color-hero-accent);
}

.hero__link span {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.hero__link:hover span {
  transform: translateX(3px);
}

.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-hero-muted);
  font-size: var(--text-xs);
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.hero__scroll-cue svg {
  width: 20px;
  height: 20px;
  animation: scroll-bounce 2s ease-in-out infinite 0.2s;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   9. DOT WAVE DIVIDERS
   Canvas-based animated dot wave, scroll-driven with lerp easing.
   ============================================================ */

.dot-wave-divider {
  display: flex;
  justify-content: center;
  padding: var(--space-4) 0;
  overflow: hidden;
  background-color: var(--dot-wave-bg);
  transition: background-color var(--transition-slow);
}

/* ============================================================
   10. SCROLL ANIMATIONS
   ============================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.stagger-children.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 80ms; }
.stagger-children.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 160ms; }
.stagger-children.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 240ms; }
.stagger-children.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 320ms; }
.stagger-children.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 400ms; }

/* ============================================================
   11. SECTION INTRO (shared heading block)
   ============================================================ */

.section-intro {
  margin-bottom: var(--space-12);
}

.section-intro__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.section-intro__tag::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
}

.section-intro h2 {
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  color: var(--accent);
}

.section-intro p {
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* ============================================================
   12. ABOUT SECTION
   ============================================================ */

.about__grid {
  display: block;
}

.about__body {
  display: grid;
  gap: var(--space-12);
  align-items: start;
}

.about__photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.about__photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  background-color: var(--bg-section-b);
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.about__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.about__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.about__logo-img {
  height: 55px;
  width: auto;
  display: block;
  object-fit: contain;
}

.about__content {}

.about__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.credential-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  background-color: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  letter-spacing: 0.03em;
}

/* ============================================================
   13. SERVICES SECTIONS
   ============================================================ */

/* Service cards grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.service-card {
  background-color: var(--bg-section-a);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.section--alt .service-card {
  background-color: var(--bg-primary);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--text-primary) 8%, transparent);
  border-color: var(--accent);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  background-color: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: none;
}

/* Provider chips */
.providers {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.providers__label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.providers__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.provider-chip {
  font-size: var(--text-sm);
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--bg-section-b);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
}

/* Tax fees */
.tax-fees {
  margin-top: var(--space-8);
  max-width: 600px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tax-fees__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.tax-fees__table thead {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.tax-fees__table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--color-border);
}

.tax-fees__table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--text-primary);
  vertical-align: top;
}

.tax-fees__table tr:last-child td {
  border-bottom: none;
}

.tax-fees__table tbody tr:hover {
  background-color: var(--bg-section-b);
}

.fee-note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* ============================================================
   14. CONTACT SECTION
   ============================================================ */

.contact-cards {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.contact-card {
  background-color: var(--bg-section-a);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 12%, transparent);
}

.contact-card__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.contact-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.contact-card__email {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

/* ============================================================
   15. FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--color-hero-bg);
  color: var(--color-hero-muted);
  padding: var(--space-16) var(--space-6) var(--space-8);
}

.site-footer .container {
  max-width: var(--max-width);
}

.footer__top {
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-8);
}

.footer__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-hero-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-hero-muted);
  line-height: 1.6;
}

.footer__disclaimers {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__disclaimer {
  font-size: var(--text-xs);
  line-height: 1.7;
  color: rgba(168, 181, 177, 0.7);
  max-width: none;
}

.footer__disclaimer strong {
  color: var(--color-hero-muted);
  font-weight: 500;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-8);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(168, 181, 177, 0.5);
}

/* ============================================================
   16. FAQ PAGE
   ============================================================ */

.faq-page {
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-24);
  min-height: 100vh;
}

.faq-search-wrap {
  margin-bottom: var(--space-10);
  position: relative;
}

.faq-search-wrap svg {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.faq-search {
  width: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-10);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--bg-section-a);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

/* Strip WebKit's native search-field chrome that overrides the rounded shape */
.faq-search::-webkit-search-decoration,
.faq-search::-webkit-search-cancel-button,
.faq-search::-webkit-search-results-button,
.faq-search::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.faq-search:focus {
  border-color: var(--accent);
  /* keep the pill shape — overrides the global :focus-visible radius */
  border-radius: var(--radius-full);
}

/* Only the thin accent border on focus — no outer ring/outline */
.faq-search:focus-visible {
  outline: none;
}

.faq-search::placeholder {
  color: var(--text-muted);
}

/* Category groups */
.faq-category {
  margin-bottom: var(--space-10);
}

.faq-category__heading {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.faq-category__heading::before {
  content: '';
  display: block;
  width: 14px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
}

/* FAQ accordion (details/summary) */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--color-border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item summary .faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-base), color var(--transition-fast);
}

.faq-item[open] summary {
  color: var(--accent);
}

.faq-item[open] summary .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Height animation is driven by JS. The inner element just needs
   padding and overflow cleared when JS is animating. */
.faq-body {
  overflow: hidden;
}

.faq-body__inner {
  padding-bottom: var(--space-5);
}

.faq-body__inner p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: var(--text-sm);
  max-width: 70ch;
}

.faq-body__inner a {
  color: var(--accent);
  font-weight: 500;
}

/* No results */
.faq-no-results {
  display: none;
  text-align: center;
  padding: var(--space-16) var(--space-6);
  color: var(--text-muted);
}

.faq-no-results svg {
  margin-inline: auto;
  margin-bottom: var(--space-4);
  opacity: 0.3;
  width: 48px;
  height: 48px;
}

.faq-no-results p {
  font-size: var(--text-lg);
  max-width: none;
}

/* ============================================================
   17. RESPONSIVE — TABLET (768px+)
   ============================================================ */

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }

  .nav__links {
    display: flex;
  }

  .nav__hamburger {
    display: none;
  }

  .about__body {
    grid-template-columns: 1fr 280px;
  }

  .about__text {
    grid-column: 1;
    grid-row: 1;
  }

  .about__photo-wrap {
    grid-column: 2;
    grid-row: 1;
  }

  .about__photo {
    max-width: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__top {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
    align-items: start;
  }
}

/* ============================================================
   18. RESPONSIVE — DESKTOP (1024px+)
   ============================================================ */

@media (min-width: 1024px) {
  .hero__content {
    padding-block: var(--space-32) var(--space-20);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   19. FOCUS STYLES (accessibility)
   ============================================================ */

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   20. PREFERS-REDUCED-MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-on-scroll,
  .stagger-children > * {
    opacity: 1;
    transform: none;
  }

  .hero__scroll-cue {
    animation: none;
  }

  .hero__scroll-cue svg {
    animation: none;
  }
}
