/* ==========================================================================
   The Quantum Clinics — Design tokens
   ========================================================================== */
:root {
  --brown-900: #2e211b;
  --brown-700: #564036;
  --brown-600: #6b5245;
  --taupe-400: #aca298;
  --sand-100: #f2efec;
  --sand-50: #f9f7f5;
  --white: #ffffff;
  --ink: #1f1a17;
  --muted: #5e544e;
  --line: #e3ddd7;
  --focus: #8a5a2b;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs: clamp(0.78rem, 0.75rem + 0.15vw, 0.85rem);
  --fs-sm: clamp(0.9rem, 0.86rem + 0.2vw, 0.98rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --fs-lg: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem);
  --fs-h3: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-h2: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --fs-h1: clamp(2.3rem, 1.6rem + 3.6vw, 4.6rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --space-6: clamp(3.5rem, 2.5rem + 5vw, 7rem);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(46, 33, 27, 0.06);
  --shadow: 0 12px 32px rgba(46, 33, 27, 0.1);
  --shadow-lg: 0 24px 60px rgba(46, 33, 27, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1240px;
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--brown-900);
  margin: 0 0 var(--space-2);
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-lg); }

p {
  margin: 0 0 var(--space-2);
}

a {
  color: var(--brown-700);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brown-900);
}

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

ul {
  padding-inline-start: 1.2rem;
}

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--brown-700);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brown-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brown-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border-color: var(--brown-700);
  color: var(--brown-700);
}

.btn-outline:hover {
  background: var(--brown-700);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--brown-900);
}

.btn-light:hover {
  background: var(--sand-100);
  color: var(--brown-900);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-ghost-light:hover {
  background: var(--white);
  color: var(--brown-900);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--fs-sm);
  text-decoration: none;
}

.link-arrow::after {
  content: "\2192";
  transition: transform 0.25s var(--ease);
}

[dir="rtl"] .link-arrow::after {
  content: "\2190";
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

[dir="rtl"] .link-arrow:hover::after {
  transform: translateX(-4px);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(86, 64, 54, 0.1);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  min-height: 48px;
}

.brand img {
  width: clamp(150px, 40vw, 200px);
  aspect-ratio: 2560 / 710;
  height: auto;
}

.primary-nav {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-actions .btn {
  display: none;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
}

.lang-link:hover {
  background: var(--sand-100);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  color: var(--brown-700);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}

.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--white);
  padding: var(--space-3) clamp(1rem, 0.5rem + 2.5vw, 2.5rem) var(--space-5);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav ul {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
}

.mobile-nav li + li {
  border-top: 1px solid var(--line);
}

.mobile-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brown-900);
  text-decoration: none;
}

.mobile-nav a[aria-current="page"] {
  color: var(--brown-700);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.mobile-nav .btn {
  width: 100%;
}

body.nav-open {
  overflow-y: clip;
}

@media (min-width: 560px) {
  .header-actions .btn {
    display: inline-flex;
    padding-inline: 1.2rem;
  }
}

@media (min-width: 1100px) {
  .primary-nav {
    display: block;
  }

  .primary-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 0.2vw + 0.1rem, 0.75rem);
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .primary-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding-inline: 0.8rem;
    color: var(--ink);
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 0.2s var(--ease);
  }

  .primary-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0.8rem;
    bottom: 8px;
    height: 2px;
    background: var(--brown-700);
    transform: scaleX(0);
    transition: transform 0.25s var(--ease);
  }

  .primary-nav a:hover {
    color: var(--brown-700);
  }

  .primary-nav a:hover::after,
  .primary-nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .primary-nav a[aria-current="page"] {
    color: var(--brown-700);
  }

  .nav-toggle,
  .mobile-nav {
    display: none;
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding-block: var(--space-6);
}

.section-sand {
  background: var(--sand-100);
}

.section-dark {
  background: var(--brown-900);
  color: #efe8e2;
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
  text-align: center;
}

.section-head.start {
  margin-inline: 0;
  text-align: start;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown-700);
}

.section-dark .eyebrow {
  color: #d9cabd;
}

.lead {
  font-size: var(--fs-lg);
  color: var(--muted);
}

.section-dark .lead {
  color: #e2d7ce;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(88vh, 820px);
  padding-block: var(--space-6) var(--space-5);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(30, 21, 17, 0.25) 0%, rgba(30, 21, 17, 0.55) 45%, rgba(30, 21, 17, 0.85) 100%);
}

.hero-content {
  max-width: 820px;
}

.hero .eyebrow {
  color: #eadfd5;
}

.hero h1 {
  color: var(--white);
}

.hero p {
  font-size: var(--fs-lg);
  color: #f1ebe6;
  max-width: 620px;
}

.hero .btn-group {
  margin-top: var(--space-4);
}

.page-hero {
  padding-block: var(--space-6) var(--space-5);
  background:
    radial-gradient(circle at 85% 20%, rgba(172, 162, 152, 0.35), transparent 45%),
    var(--sand-100);
}

.page-hero-inner {
  max-width: 860px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 0.5rem;
  color: var(--taupe-400);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.split {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.split > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split.reverse > :first-child {
    order: 2;
  }
}

.grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.grid > * {
  min-width: 0;
}

@media (min-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand-100);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

.media-stack {
  position: relative;
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.media-stack .media-accent {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 46%;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
}

.media-stack .media-main {
  width: 88%;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card .media {
  border-radius: 0;
}

.card .media img {
  transition: transform 0.6s var(--ease);
}

.card:hover .media img {
  transform: scale(1.04);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-3);
}

.card-body p {
  color: var(--muted);
}

.card-body .link-arrow,
.card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card-meta {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-700);
  margin-bottom: 0.5rem;
}

.pillar-card {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 340px;
  padding: var(--space-3);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  text-decoration: none;
}

.pillar-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.7s var(--ease);
}

.pillar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(30, 21, 17, 0.05) 30%, rgba(30, 21, 17, 0.85) 100%);
}

.pillar-card:hover img {
  transform: scale(1.06);
}

.pillar-card h3 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.pillar-card p {
  margin: 0;
  font-size: var(--fs-sm);
  color: #efe6de;
}

.pillar-card:hover,
.pillar-card:focus-visible {
  color: var(--white);
}

/* Trust / experience block */
.experience-item {
  text-align: center;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  height: 100%;
}

.experience-item img {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-2);
  object-fit: contain;
}

.experience-item h3 {
  font-size: var(--fs-lg);
  margin: 0;
}

/* Feature list */
.feature {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  height: 100%;
}

.feature-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sand-100);
  color: var(--brown-700);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.feature > div {
  min-width: 0;
}

.feature h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.4rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* Team */
.team-card .media img {
  object-position: top center;
}

.team-card h3 {
  margin-bottom: 0.2rem;
}

.team-role {
  color: var(--brown-700);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  line-height: 1;
  color: var(--brown-700);
}

.stat span {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ==========================================================================
   Treatments menu
   ========================================================================== */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--brown-900);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--brown-700);
  background: var(--sand-50);
}

.category {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.category + .category {
  border-top: 1px solid var(--line);
}

.concern {
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
}

.concern h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.75rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--sand-100);
  color: var(--brown-900);
  font-size: var(--fs-sm);
}

.treatment-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

@media (min-width: 768px) {
  .treatment-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .treatment-list.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.treatment {
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--sand-50);
  border-inline-start: 4px solid var(--brown-700);
  min-width: 0;
}

.treatment h4 {
  margin-bottom: 0.4rem;
}

.treatment p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* FAQ accordion */
.faq {
  max-width: 880px;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 64px;
  padding-block: 0.75rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--brown-900);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sand-100);
  color: var(--brown-700);
  font-family: var(--font-body);
  font-size: 1.3rem;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--muted);
  padding-bottom: var(--space-2);
}

/* Before / after gallery */
.gallery {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--brown-700);
  color: var(--white);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -10%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  z-index: -1;
}

.cta-band h2 {
  color: var(--white);
  max-width: 720px;
  margin-inline: auto;
}

.cta-band p {
  color: #efe6de;
  max-width: 600px;
  margin-inline: auto;
}

.cta-band .btn-group {
  justify-content: center;
  margin-top: var(--space-3);
}

/* ==========================================================================
   Contact / Location / Forms
   ========================================================================== */
.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--sand-100);
}

.contact-list {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: var(--space-2);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--line);
}

.contact-list li > div {
  min-width: 0;
}

.contact-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sand-100);
  color: var(--brown-700);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-label {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 500;
}

.form-card {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.form-grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid .full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.field label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--brown-900);
}

.field .req {
  color: #9b3d23;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--sand-50);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brown-700);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(86, 64, 54, 0.18);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #9b3d23;
}

.field-error {
  min-height: 1.2em;
  font-size: var(--fs-xs);
  color: #9b3d23;
}

.form-note {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.form-status {
  margin-top: var(--space-2);
  padding: 0;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.form-status.is-success {
  padding: var(--space-2);
  background: #e9f2ea;
  color: #1f5130;
}

/* ==========================================================================
   Modal (team bio)
   ========================================================================== */
.modal {
  width: min(720px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.modal::backdrop {
  background: rgba(30, 21, 17, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-inner {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--sand-100);
  color: var(--brown-900);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--line);
}

.modal h2 {
  font-size: var(--fs-h3);
  padding-inline-end: 3rem;
}

.modal ul {
  color: var(--muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--brown-900);
  color: #e2d7ce;
  padding-top: var(--space-6);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

.footer-grid > * {
  min-width: 0;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-logo {
  display: inline-block;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.footer-logo img {
  width: 180px;
  aspect-ratio: 2560 / 710;
  height: auto;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: #e2d7ce;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer address p {
  margin-bottom: 0.25rem;
}

.social-link {
  gap: 0.5rem;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  margin-top: var(--space-5);
  padding-block: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  justify-content: space-between;
  color: #cbbcaf;
}

.footer-bottom p {
  margin: 0;
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--brown-700);
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background-color 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brown-900);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}
