/* ==========================================================================
   Samuel Ibgui & Associates — styles.css
   TODO: swap brand colours below if clinic provides exact palette/logo
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  /* Colour — royal / true blue system (not teal) */
  --ink: #0A1628;
  --ink-soft: #4B5C72;
  --blue: #1E4BDB;
  --blue-deep: #1539A8;
  --mist: #E8EEF8;
  --cloud: #F3F5F9;
  --paper: #FFFFFF;
  --star: #E2A93B;
  --line: #D7DEEA;
  --shadow: rgba(10, 22, 40, 0.10);
  --shadow-lg: rgba(10, 22, 40, 0.18);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-md: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-lg: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  --text-xl: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --text-hero: clamp(2.6rem, 1.6rem + 4vw, 5.5rem);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 4rem;
  --space-11: 5rem;
  --space-12: 7rem;

  --section-pad: clamp(5rem, 4rem + 4vw, 9rem);
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius: 12px;
  --radius-pill: 999px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--blue);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

address {
  font-style: normal;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 550;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}

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

p:last-child {
  margin-bottom: 0;
}

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

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-3) var(--space-5);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

.todo-flag,
.todo-note {
  font-size: var(--text-xs);
  color: var(--blue-deep);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.todo-note {
  margin-top: var(--space-2);
  display: block;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

.section__header {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section__header--center {
  margin-inline: auto;
  text-align: center;
}

.section__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.section__lede {
  font-size: var(--text-md);
  color: var(--ink-soft);
  max-width: 36rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.eyebrow--light {
  color: rgba(230, 246, 245, 0.75);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn--sm {
  min-height: 44px;
  padding: 0.65rem 1.25rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--blue);
  color: var(--paper);
  box-shadow: 0 8px 24px rgba(30, 75, 219, 0.28);
}

.btn--primary:hover {
  background: var(--blue-deep);
  color: var(--paper);
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(30, 75, 219, 0.38);
}

.btn--primary:active {
  transform: scale(0.99);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: var(--mist);
  transform: scale(1.02);
}

.btn--text {
  background: transparent;
  color: var(--ink);
  padding-inline: 0.5rem;
  min-height: 44px;
  box-shadow: none;
  border-radius: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.btn--text:hover {
  color: var(--blue-deep);
  transform: none;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition:
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease),
    color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--paper);
}

.site-header:not(.is-scrolled) .wordmark {
  color: var(--paper);
}

.site-header:not(.is-scrolled) .nav-toggle__bar {
  background: var(--paper);
}

/* Nav is a sibling of the header — style links for over-hero vs scrolled */
.site-header:not(.is-scrolled) ~ .nav .nav__link {
  color: rgba(255, 255, 255, 0.88);
}

.site-header:not(.is-scrolled) ~ .nav .nav__link:hover,
.site-header:not(.is-scrolled) ~ .nav .nav__link[aria-current="true"] {
  color: var(--paper);
}

.site-header:not(.is-scrolled) ~ .nav .nav__link::after {
  background: rgba(255, 255, 255, 0.7);
}

.site-header:not(.is-scrolled) ~ .nav .nav__call {
  color: var(--paper);
}

.site-header:not(.is-scrolled) ~ .nav .nav__call:hover {
  color: rgba(255, 255, 255, 0.85);
}

.site-header:not(.is-scrolled) ~ .nav .btn--primary {
  background: var(--paper);
  color: var(--blue-deep);
  box-shadow: none;
}

.site-header:not(.is-scrolled) ~ .nav .btn--primary:hover {
  background: var(--mist);
  color: var(--ink);
  box-shadow: none;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  color: var(--ink);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
  }
}

/* Let clicks pass through empty header chrome to the sibling nav */
.site-header,
.header__inner {
  pointer-events: none;
}

.wordmark,
.nav-toggle {
  pointer-events: auto;
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  transition: color 0.3s var(--ease);
}

.wordmark__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.wordmark__text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.wordmark--light {
  color: var(--paper);
}

.wordmark--light .wordmark__logo {
  width: 36px;
  height: 36px;
  /* Keep brand blue on dark footer — readable and consistent */
  filter: none;
}

.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-6);
  height: var(--header-h);
  width: min(100% - (var(--gutter) * 2), var(--container));
  box-sizing: border-box;
  padding-left: 13rem; /* clear the wordmark */
  pointer-events: none;
}

.nav a,
.nav button {
  pointer-events: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav__link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="true"] {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__call {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.nav__call:hover {
  color: var(--blue-deep);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  z-index: 110;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(10, 22, 40, 0.92) 0%,
      rgba(10, 22, 40, 0.78) 38%,
      rgba(21, 57, 168, 0.35) 68%,
      rgba(10, 22, 40, 0.45) 100%
    ),
    linear-gradient(to top, rgba(10, 22, 40, 0.75) 0%, transparent 45%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  padding: calc(var(--header-h) + 4rem) 0 clamp(4rem, 8vh, 6.5rem);
}

.hero__copy {
  max-width: 38rem;
}

.eyebrow--on-dark {
  color: rgba(255, 255, 255, 0.72);
}

.hero__brand {
  font-size: var(--text-hero);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--paper);
  margin: 0 0 var(--space-5);
  max-width: 12ch;
}

.hero__title {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 var(--space-4);
  max-width: 30ch;
}

.hero__lead {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.68);
  max-width: 36ch;
  margin-bottom: var(--space-7);
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.btn--on-dark {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--paper);
  transform: scale(1.02);
}

/* ---------- Media ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  background: var(--mist);
}

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

.media--about-lg {
  aspect-ratio: 4 / 3;
}

.media--about-sm {
  aspect-ratio: 3 / 4;
}

.media--portrait {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
}

.media--portrait img {
  transition: transform 0.55s var(--ease);
}

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

/* ---------- Trust bar ---------- */
.trust {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem) 0;
  border-top: 1px solid rgba(142, 180, 255, 0.3);
}

.trust__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}

.trust__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 0 var(--space-3);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.trust__item:last-child {
  border-right: none;
}

.trust__stat {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  color: var(--paper);
  line-height: 1.1;
}

.trust__stat--text {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  color: #8EB4FF;
}

.trust__text {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- Services ---------- */
.services {
  background: var(--paper);
}

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-7);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.service-card:nth-child(even) {
  background: var(--mist);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px var(--shadow);
  border-color: rgba(30, 75, 219, 0.35);
  background: var(--paper);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: var(--space-5);
  transition: transform 0.35s var(--ease);
}

.service-card:hover .service-card__icon {
  transform: translateY(-2px) scale(1.06);
}

.service-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.service-card__desc {
  flex: 1;
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}

.service-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.2s;
}

.service-card:hover .service-card__link,
.service-card:focus-within .service-card__link {
  opacity: 1;
  transform: translateY(0);
}

.service-card__link:hover {
  color: var(--blue);
}

.services-invite {
  margin-top: var(--space-10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5) var(--space-7);
  padding: var(--space-6) var(--space-7);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
}

.services-invite__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  max-width: 28ch;
  line-height: 1.35;
}

.services-invite__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

/* ---------- About ---------- */
.about {
  background: var(--cloud);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 4vw, 5rem);
  align-items: center;
}

.about__collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: var(--space-4);
  align-items: end;
}

.about__collage .media--about-sm {
  margin-bottom: 15%;
}

.about__frame {
  position: absolute;
  top: -12px;
  left: -12px;
  right: 20%;
  bottom: 20%;
  border: 1px solid rgba(30, 75, 219, 0.35);
  border-radius: calc(var(--radius) + 6px);
  pointer-events: none;
  opacity: 0.8;
  z-index: -1;
}

.about__content p {
  max-width: 38ch;
}

.feature-list {
  margin-top: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
}

.feature-list__tick {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- Dark feature band ---------- */
.band {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding-block: var(--section-pad);
  position: relative;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8EB4FF, transparent);
  opacity: 0.45;
}

.band__header {
  max-width: 36rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.band__title {
  font-size: var(--text-xl);
  color: var(--paper);
}

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

.band__icon {
  color: #8EB4FF;
  margin-bottom: var(--space-5);
}

.band__item-title {
  color: var(--paper);
  font-size: var(--text-md);
  margin-bottom: var(--space-3);
}

.band__item p {
  font-size: var(--text-sm);
  max-width: 32ch;
}

/* ---------- Team ---------- */
.team {
  background: var(--paper);
}

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

.team-card {
  display: flex;
  flex-direction: column;
}

.team-card__photo {
  margin-bottom: var(--space-5);
  transition: transform 0.5s var(--ease);
}

.team-card:hover .team-card__photo {
  transform: none;
}

.team-card__name {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.team-card__role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: var(--space-2);
}

.team-card__creds {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-4);
}

.team-card__bio {
  font-size: var(--text-sm);
}

/* ---------- Reviews / carousel ---------- */
.reviews {
  background: var(--cloud);
}

.carousel {
  max-width: 720px;
  margin-inline: auto;
  position: relative;
}

.carousel__track {
  position: relative;
  min-height: 280px;
}

.review-card {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: var(--space-8);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.review-card.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.review-card__quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 450;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
}

.review-card__meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.review-card__name {
  font-style: normal;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--ink);
}

.review-card__tag {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.carousel__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.carousel__btn:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: var(--mist);
  transform: scale(1.05);
}

.carousel__dots {
  display: flex;
  gap: var(--space-2);
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.25s, transform 0.25s;
  padding: 0;
}

.carousel__dot[aria-selected="true"] {
  background: var(--blue);
  transform: scale(1.25);
}

/* ---------- Contact / Find us ---------- */
.contact {
  background: var(--cloud);
}

.visit {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 20px 50px var(--shadow);
}

.visit__map {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 280px;
  background: var(--mist);
}

.visit__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}

.visit__directions {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.65rem 1rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px var(--shadow);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.visit__directions:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.visit__desk {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.15fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.visit__col {
  padding: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
  border-right: 1px solid var(--line);
}

.visit__col:last-child {
  border-right: none;
}

.visit__col--book {
  background: var(--mist);
}

.visit__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 var(--space-5);
}

.visit__address {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-6);
}

.visit__hours {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.visit__hours > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
}

.visit__hours > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.visit__hours dt {
  font-weight: 500;
  color: var(--ink);
}

.visit__hours dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.visit__reach {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.visit__reach-label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.visit__reach a {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.visit__reach a:hover {
  color: var(--blue-deep);
}

.visit__book-copy {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin: 0 0 var(--space-5);
  max-width: 28ch;
}

.visit__col--book .btn {
  width: 100%;
  margin-bottom: var(--space-5);
}

.visit__call {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  text-decoration: none;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(30, 75, 219, 0.18);
}

.visit__call-label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.visit__call-number {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.visit__call:hover .visit__call-number {
  color: var(--blue-deep);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(3.5rem, 3rem + 2vw, 5rem);
  padding-bottom: var(--space-8);
  border-top: 1px solid rgba(142, 180, 255, 0.35);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-9);
}

.footer__tagline {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  max-width: 28ch;
  line-height: 1.55;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8EB4FF;
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--paper);
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  color: var(--paper);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
}

.footer__social:hover {
  color: #8EB4FF;
}

.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  justify-content: space-between;
  font-size: var(--text-xs);
}

.footer__legal {
  flex: 1 1 100%;
  color: rgba(255, 255, 255, 0.5);
}

.footer__credit {
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  padding: 0.9rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 40px var(--shadow-lg);
  border: 1px solid rgba(142, 180, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  max-width: calc(100% - 2rem);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[hidden]:not(.is-visible) {
  display: none !important;
}

/* ---------- Scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-18px) translateX(8px); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- 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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__img {
    animation: none !important;
  }

  .service-card:hover,
  .btn--primary:hover,
  .btn--ghost:hover,
  .btn--on-dark:hover,
  .team-card:hover .media--portrait img {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__brand {
    max-width: 14ch;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .visit__desk {
    grid-template-columns: 1fr;
  }

  .visit__col {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .visit__col:last-child {
    border-bottom: none;
  }

  .visit__map {
    aspect-ratio: 16 / 10;
  }

  .services-invite {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-5);
  }

  .services-invite__actions {
    width: 100%;
    flex-direction: column;
  }

  .services-invite__actions .btn {
    width: 100%;
  }

  .band__grid,
  .team__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team__grid .team-card:last-child {
    grid-column: 1 / -1;
    max-width: 360px;
    justify-self: center;
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust__list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .trust__item {
    border-right: none;
    padding-block: var(--space-2);
  }

  .trust__item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 120;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100%, 22rem);
    height: 100%;
    height: 100dvh;
    max-width: none;
    margin: 0;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
    transform: translateX(105%);
    z-index: 110;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: var(--space-8);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #F3F5F9;
    box-shadow: -16px 0 40px rgba(10, 22, 40, 0.18);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.4s var(--ease),
      visibility 0.4s;
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-backdrop {
    display: none;
  }

  .nav-backdrop.is-visible {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 109;
    background: rgba(10, 22, 40, 0.45);
    opacity: 1;
    pointer-events: auto;
    animation: backdropIn 0.35s var(--ease);
  }

  @keyframes backdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .nav a,
  .nav button {
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: var(--space-4);
  }

  .nav__link,
  .site-header:not(.is-scrolled) ~ .nav .nav__link,
  .site-header.is-scrolled ~ .nav .nav__link {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    color: var(--ink) !important;
    padding: 0.85rem 0;
    opacity: 1;
    transform: none;
    border-bottom: 1px solid var(--line);
    letter-spacing: -0.02em;
  }

  .nav__link::after,
  .site-header:not(.is-scrolled) ~ .nav .nav__link::after {
    display: none;
  }

  .nav__link:hover,
  .nav__link[aria-current="true"],
  .site-header:not(.is-scrolled) ~ .nav .nav__link:hover,
  .site-header:not(.is-scrolled) ~ .nav .nav__link[aria-current="true"] {
    color: var(--blue-deep) !important;
  }

  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-4);
  }

  .nav__actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .site-header:not(.is-scrolled) ~ .nav .btn--primary,
  .nav .btn--primary {
    background: var(--blue);
    color: var(--paper);
    box-shadow: 0 8px 24px rgba(30, 75, 219, 0.28);
  }

  .nav__call,
  .site-header:not(.is-scrolled) ~ .nav .nav__call {
    text-align: center;
    padding: var(--space-3);
    color: var(--ink) !important;
    font-size: var(--text-base);
  }

  .hero__inner {
    padding-bottom: clamp(3rem, 6vh, 4.5rem);
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  /* Force readable nav colors inside mobile drawer */
  body.nav-open .site-header {
    z-index: 120;
    background: #F3F5F9;
    border-bottom-color: var(--line);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.nav-open .site-header .wordmark {
    color: var(--ink);
  }

  body.nav-open .nav-toggle__bar {
    background: var(--ink);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card__link {
    opacity: 1;
    transform: none;
  }

  .team__grid {
    grid-template-columns: 1fr;
  }

  .team__grid .team-card:last-child {
    max-width: none;
  }

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

  body.nav-open {
    overflow: hidden;
  }

  html.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .trust__list {
    grid-template-columns: 1fr;
  }

  .trust__item,
  .trust__item:nth-child(odd) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: var(--space-4);
  }

  .trust__item:last-child {
    border-bottom: none;
  }

  .about__collage {
    grid-template-columns: 1fr;
  }

  .about__collage .media--about-sm {
    margin-bottom: 0;
    max-width: 70%;
  }

  .about__frame {
    display: none;
  }

  .review-card {
    padding: var(--space-6);
  }

  .wordmark__text {
    font-size: 0.95rem;
  }
}
