/* Sorriso BJJ Botany — homepage styles */
/* ==========================================================================
   Tokens — white-and-black variation of the Sorriso theme.
   Same variable names as the main site; values inverted, gold removed.
   ========================================================================== */
:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 0%;
  --card: 0 0% 97%;
  --card-foreground: 0 0% 0%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 0%;
  --primary: 0 0% 0%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 94%;
  --secondary-foreground: 0 0% 0%;
  --muted: 0 0% 94%;
  --muted-foreground: 0 0% 30%;
  --border: 0 0% 84%;
  --input: 0 0% 78%;
  --ring: 0 0% 0%;
  --radius: .25rem;

  /* Photos render in greyscale to keep the page black and white.
     Set to grayscale(0) to show them in colour. */
  --photo-filter: grayscale(1);

  --font-heading: Syncopate, sans-serif;
  /* Page titles on every page: 2.25rem on a phone, growing to 4.25rem on a wide screen.
     The min() only matters on screens narrower than 340px, where the longest single word
     ("EVERYTHING" on the Store page) would not fit at 2.25rem. */
  --title-size: clamp(min(2.25rem, 10.6vw), 1.546rem + 3vw, 4.25rem);
  /* The paragraph under the page title, on every page (line-height 1.6) */
  --lead-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: inherit; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: .75rem 1rem; background: hsl(var(--foreground)); color: hsl(var(--background));
  font-family: var(--font-heading); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%; margin-inline: auto; padding-inline: 1rem;
}
@media (min-width: 1400px) { .container { max-width: 90%; } }

.eyebrow {
  font-family: var(--font-heading);
  font-size: .75rem; line-height: 1rem; letter-spacing: .25em;
  text-transform: uppercase; font-weight: 400;
  color: hsl(var(--primary));
}

/* Replaces the gold gradient text: an inverted block, black on white */
.text-highlight {
  background: hsl(var(--foreground)); color: hsl(var(--background));
  padding: .04em .22em .02em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  white-space: nowrap;
  font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
  border-radius: calc(var(--radius) - 2px);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--sm { height: 2.25rem; padding-inline: 1rem; font-size: .875rem; line-height: 1.25rem; }
.btn--md { height: 3rem; padding-inline: 2rem; font-size: 1rem; line-height: 1.5rem; }
.btn--lg { height: 3.5rem; padding-inline: 2.5rem; font-size: 1.125rem; line-height: 1.75rem; }
.btn--primary {
  background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  border: 2px solid hsl(var(--primary));
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
}
.btn--primary:hover { background-color: hsl(var(--background)); color: hsl(var(--foreground)); }
.btn--outline {
  background-color: transparent; color: hsl(var(--foreground));
  border: 2px solid hsl(var(--foreground));
}
.btn--outline:hover { background-color: hsl(var(--foreground)); color: hsl(var(--background)); }
@media (max-width: 479px) {
  .btn--lg { width: 100%; padding-inline: 1rem; font-size: .9375rem; }
  /* bold labels are wider: on a narrow phone a long one may take two lines instead of spilling out */
  .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background-color: hsl(var(--background));      /* solid: it sits over a black hero */
  border-bottom: 1px solid hsl(var(--border));
}
.header-grid { display: flex; align-items: center; justify-content: space-between; height: 5rem; gap: 1rem; }
.header-logo { display: flex; align-items: center; gap: .75rem; }
.header-logo img { height: 2.5rem; width: clamp(7.5rem, 5.354vw + 6.429rem, 11rem); }
/* The brand logo file is white; invert it to black for the white theme */
.logo-invert { filter: invert(1); }
.logo-text {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.header-logo__location {
  padding-left: .75rem; border-left: 1px solid hsl(var(--foreground));
  font-family: var(--font-heading); font-size: .6875rem; line-height: 1rem;
  letter-spacing: .25em; text-transform: uppercase;
}
.desktop-menu { display: none; align-items: center; gap: 1.125rem; }
@media (min-width: 1300px) { .desktop-menu { display: flex; } }
@media (min-width: 1300px) and (max-width: 1499px) { .header-logo img { width: 9rem; height: auto; } }
@media (min-width: 1600px) { .desktop-menu { gap: 1.5rem; } }
.header .btn--sm { font-size: .75rem; padding-inline: .875rem; }
@media (min-width: 1600px) { .header .btn--sm { font-size: .875rem; padding-inline: 1rem; } }
.desktop-links {
  position: relative; padding-block: .375rem;
  font-family: var(--font-heading); font-size: .75rem; line-height: 1rem;
  letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--foreground));
  white-space: nowrap;
}
.desktop-links::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: hsl(var(--foreground)); transform: scaleX(0); transform-origin: left;
  transition: transform .2s var(--ease);
}
.desktop-links:hover::after, .desktop-links[aria-current="page"]::after { transform: scaleX(1); }
.mobile-nav-button { color: hsl(var(--foreground)); padding: .5rem; }
.mobile-nav-button [data-icon="close"] { display: none; }
.mobile-nav-button[aria-expanded="true"] [data-icon="open"] { display: none; }
.mobile-nav-button[aria-expanded="true"] [data-icon="close"] { display: block; }
@media (min-width: 1300px) { .mobile-nav-button { display: none; } }
/* very small phones, when the logo falls back to text */
@media (max-width: 359px) { .logo-text { font-size: .9375rem; } .header-logo { gap: .5rem; } .header-logo__location { padding-left: .5rem; letter-spacing: .12em; } }
.mobile-menu {
  width: 100%; display: grid; grid-template-rows: 0fr;
  opacity: 0; visibility: hidden;
  transition: grid-template-rows .3s ease, opacity .3s ease, visibility 0s linear .3s;
}
.mobile-menu.show {
  grid-template-rows: 1fr; opacity: 1; visibility: visible;
  border-top: 1px solid hsl(var(--border));
  transition: grid-template-rows .3s ease, opacity .3s ease, visibility 0s;
}
.mobile-menu__inner { min-height: 0; overflow: hidden; }
.mobile-menu.show .mobile-menu__inner { max-height: calc(100vh - 5rem); overflow-y: auto; }
@media (min-width: 1300px) { .mobile-menu { display: none; } }
.mobile-menu-grid {
  display: flex; flex-direction: column; gap: 1rem;
  max-width: 90%; margin: 0 auto; padding-block: 1.5rem;
}
.mobile-links {
  font-family: var(--font-heading); font-size: .875rem; line-height: 1.25rem;
  letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--foreground));
  padding-block: .5rem;
}
.mobile-links:hover { text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 2px; }
.mobile-links[aria-current="page"] { font-weight: 700; }
.mobile-links__soon { margin-left: .5rem; padding: .15rem .4rem; background: hsl(var(--foreground)); color: hsl(var(--background)); font-size: .5625rem; letter-spacing: .12em; vertical-align: middle; }
.mobile-menu-grid { gap: .5rem; }
.mobile-menu-cta { display: flex; flex-direction: column; gap: .75rem; padding-top: 1rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background-color: #000; color: #fff;      /* black, like the hero on the Adults page */
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: 50% 58%; background-repeat: no-repeat;
  filter: var(--photo-filter);
}
/* A black veil over the greyscale photo, darkest at the bottom where the buttons sit */
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / .62), rgb(0 0 0 / .7) 45%, rgb(0 0 0 / .92));
}
/* on the black hero the highlight and buttons invert */
.hero .text-highlight { background: #fff; color: #000; }
.hero .btn--primary { background-color: #fff; color: #000; border-color: #fff; }
.hero .btn--primary:hover { background-color: transparent; color: #fff; }
/* the one hero button: same size as "Book a Trial Class" on the Adults page */
.hero__book { height: 3.5rem; padding-inline: 1.75rem; font-size: .875rem; border-width: 2px; }
@media (max-width: 479px) { .hero__book { width: 100%; padding-inline: 1rem; font-size: .8125rem; } }
.hero__container {
  width: 100%; margin-inline: auto; padding: 7rem 1rem 3rem;
  position: relative; z-index: 10; text-align: center;
}
@media (min-width: 1400px) { .hero__container { max-width: 90%; } }
.hero__content { margin-inline: auto; max-width: 56rem; }
.hero__content > * + * { margin-top: 2rem; }
.hero__eyebrow {
  font-family: var(--font-heading); font-size: .75rem; line-height: 1.25rem;
  letter-spacing: .25em; text-transform: uppercase; font-weight: 400; color: hsl(0 0% 86%);
}
.hero__title {
  font-family: var(--font-heading); font-weight: 700; letter-spacing: -.025em;
  line-height: 1.3; font-size: var(--title-size); overflow-wrap: break-word;
}
.hero__lead {
  margin-inline: auto; max-width: 42rem;
  font-size: var(--lead-size); line-height: 1.6; color: hsl(0 0% 82%);
}
.hero__actions {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding-top: 1rem; flex-direction: column;
}
@media (min-width: 640px) { .hero__actions { flex-direction: row; } }
@media (min-width: 768px) {
  .hero__eyebrow { font-size: .875rem; }
  .hero__title { line-height: 1.15; }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section { padding-block: 6rem; background-color: hsl(var(--background)); color: hsl(var(--foreground)); }
.section__header { text-align: center; margin-bottom: 4rem; }
.section__header .eyebrow { margin-bottom: 1rem; }
.section__title { margin-bottom: 1rem; font-size: 1.75rem; line-height: 2.25rem; overflow-wrap: break-word; }
@media (min-width: 768px) { .section__title { font-size: 3rem; line-height: 1.1; } }

/* ==========================================================================
   Programs
   ========================================================================== */
.programs__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .programs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .programs__grid { gap: 3rem; } }
.program-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background-color: hsl(var(--card)); border: 1px solid hsl(var(--border));
  display: flex; flex-direction: column;
}
.program-card__media { overflow: hidden; aspect-ratio: 4 / 3; background: hsl(var(--secondary)); }
.program-card__img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--photo-filter);
  transition: transform .5s ease, filter .5s var(--ease);
}
.program-card:hover .program-card__img { transform: scale(1.05); filter: grayscale(0); }
.program-card__body { padding: 2rem; }
.program-card__body > * + * { margin-top: 1rem; }
.program-card__title { font-size: 1.5rem; line-height: 2rem; overflow-wrap: break-word; }
.program-card__text { color: hsl(var(--muted-foreground)); line-height: 1.625; font-size: 1rem; }
.program-card__tags { display: flex; flex-wrap: wrap; gap: .5rem; padding-block: .5rem; }
.tag {
  display: inline-block; padding: .25rem .75rem;
  font-family: var(--font-heading); font-size: .75rem; line-height: 1rem;
  letter-spacing: .025em; text-transform: uppercase;
  color: hsl(var(--muted-foreground)); background-color: hsl(var(--secondary));
}
/* "Learn More" and "Meet the Coaches": the standard site button (.btn .btn--primary) at the size used on the inner pages */
.program-card__link { height: 3.5rem; padding-inline: 1.75rem; font-size: .875rem; line-height: 1.25rem; }

/* ==========================================================================
   Coaches
   ========================================================================== */
/* the coaches band is black: white heading, dark cards, light text */
.coaches { background-color: #000; color: #fff; }
.coaches .coach-card { background-color: #0d0d0d; border-color: hsl(0 0% 100% / .22); color: #fff; }
.coaches .coach-card:hover { border-color: #fff; }
.coaches .coach-card__role { color: hsl(0 0% 72%); }
.coaches .coach-card__text { color: hsl(0 0% 84%); }
.coaches .btn--primary { background-color: #fff; color: #000; border-color: #fff; }
.coaches .btn--primary:hover { background-color: transparent; color: #fff; }
.coaches__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .coaches__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.coach-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background-color: hsl(var(--card)); border: 1px solid hsl(var(--border));
  transition: border-color .15s var(--ease);
}
.coach-card:hover { border-color: hsl(var(--foreground)); }
.coach-card__photo { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #000; }
.coach-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: var(--photo-filter); transition: transform .5s ease, filter .5s var(--ease); }
.coach-card:hover .coach-card__photo img { transform: scale(1.05); filter: grayscale(0); }
.coach-card__photo--mono {
  display: grid; place-items: center;
  background: #0b0b0b repeating-linear-gradient(135deg, transparent 0 22px, rgb(255 255 255 / .045) 22px 23px);
  font-family: var(--font-heading); font-weight: 700; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / .7);
}
.coach-card__body { display: grid; gap: .5rem; padding: 1.5rem; }
.coach-card__role { font-family: var(--font-heading); font-size: .625rem; line-height: 1rem; letter-spacing: .16em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.coach-card__name { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; line-height: 1.4; letter-spacing: .05em; text-transform: uppercase; }
.coach-card__text { font-size: .9375rem; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.coaches__more { margin-top: 2.5rem; text-align: center; }

/* photo layer behind the closing call to action */
.cta__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: var(--photo-filter);
}

/* ==========================================================================
   Location + timetable
   ========================================================================== */
.location__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .location__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.location-card {
  background-color: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 2); padding: 2rem;
  transition: border-color .15s var(--ease);
}
.location-card:hover { border-color: hsl(var(--foreground)); }
.location-card__title { font-size: 1.5rem; line-height: 2rem; margin-bottom: 1.5rem; }
.location-card__rows > * + * { margin-top: 1rem; }
.location-row { display: flex; align-items: center; gap: .75rem; font-size: .875rem; line-height: 1.25rem; }
.location-row--top { align-items: flex-start; }
.location-row svg { flex-shrink: 0; color: hsl(var(--muted-foreground)); }
.location-row--top svg { margin-top: .125rem; }
.location-row a:hover { text-decoration: underline; text-underline-offset: .25em; }
.text-muted { color: hsl(var(--muted-foreground)); }
.location-card__access { margin-top: .75rem; }
.location-card__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.location-map {
  min-height: 22rem; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) * 2);
  overflow: hidden; background: hsl(var(--secondary));
}
.location-map iframe { display: block; width: 100%; height: 100%; min-height: 22rem; border: 0; filter: grayscale(1) contrast(1.05); }

.timetable { max-width: 72rem; margin: 5rem auto 0; }
#location .timetable { max-width: none; }      /* homepage: the timetable runs the full container width, like the sections above it */
.timetable__heading {
  display: flex; justify-content: center; margin-bottom: 2rem; padding: 1rem;
  font-family: var(--font-heading); font-size: .875rem; line-height: 1.25rem;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 400;
  background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground));
}
.timetable__scroll { overflow-x: auto; }
.timetable table { width: 100%; table-layout: fixed; font-size: .875rem; line-height: 1.25rem; }
.th-days, .td-time {
  padding: .75rem 1rem; font-family: var(--font-heading);
  font-size: .75rem; line-height: 1rem; letter-spacing: .1em; text-transform: uppercase;
  background-color: hsl(var(--secondary)); border: 1px solid hsl(var(--border));
}
.th-days { font-weight: 400; }
.td-time { font-weight: 700; text-align: center; }
.td-class-card {
  padding: .75rem 1rem; font-size: .75rem; line-height: 1rem; text-align: center;
  background-color: hsl(var(--background)); border: 1px solid hsl(var(--border));
}
.td-class-title { display: block; font-weight: 600; font-size: 12px; text-transform: uppercase; }
.td-class-subtitle { display: block; font-size: 10px; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.timetable__hint { display: none; margin-bottom: .75rem; text-align: center; font-size: .75rem; color: hsl(var(--muted-foreground)); }
@media (max-width: 767px) {
  .timetable__hint { display: block; }
  .timetable table { min-width: 41rem; }
  .th-days, .td-time { padding: .75rem .375rem; font-size: 10px; }
  .td-class-card { padding: .75rem .375rem; }
  .td-class-title { font-size: 11px; }
  /* keep the time column in view while swiping across the days */
  .timetable th:first-child { position: sticky; left: 0; z-index: 1; width: 4.75rem; box-shadow: -2px 0 0 hsl(var(--secondary)), 1px 0 0 hsl(var(--border)); }
}

/* ==========================================================================
   CTA
   ========================================================================== */
/* dark band: the team photo under a black veil, white text, light buttons */
.cta { position: relative; overflow: hidden; padding-block: 8rem; background: #000; color: #fff; }
.cta__veil { position: absolute; inset: 0; background-color: rgb(0 0 0 / .9); }
.cta .btn--primary { background-color: #fff; color: #000; border-color: #fff; }
.cta .btn--primary:hover { background-color: transparent; color: #fff; }
.cta .btn--outline { background-color: transparent; color: #fff; border-color: #fff; }
.cta .btn--outline:hover { background-color: #fff; color: #000; }
.cta__container { position: relative; z-index: 10; text-align: center; }
.cta__content { margin-inline: auto; max-width: 48rem; }
.cta__content > * + * { margin-top: 2rem; }
.cta__title { line-height: 1.25; font-size: 1.75rem; overflow-wrap: break-word; }
@media (min-width: 768px) { .cta__title { font-size: 3rem; line-height: 1.1; } }
@media (min-width: 1024px) { .cta__title { font-size: 3.75rem; } }
.cta__lead { margin-inline: auto; max-width: 36rem; font-size: 1.125rem; line-height: 1.625; color: hsl(0 0% 84%); }
.cta__actions { display: flex; align-items: center; justify-content: center; gap: 1rem; padding-top: 1rem; flex-direction: column; }
@media (min-width: 640px) { .cta__actions { flex-direction: row; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background-color: hsl(var(--secondary)); padding-top: 4rem; padding-bottom: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-stack > * + * { margin-top: 1rem; }
.footer-logo { display: inline-block; max-width: 184px; }
.footer-logo img { width: 184px; height: auto; }
.footer-text { font-size: .875rem; line-height: 1.625; color: hsl(var(--muted-foreground)); }
.footer-text a { text-decoration: underline; text-underline-offset: .2em; }
.footer-text a:hover { color: hsl(var(--foreground)); }
.footer-socials { display: flex; gap: 1rem; }
.footer-social { color: hsl(var(--muted-foreground)); transition: color .15s ease; }
.footer-social:hover { color: hsl(var(--foreground)); }
.footer-review {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .375rem .875rem;
  font-size: .875rem; line-height: 1.25rem; font-weight: 500;
  border: 1px solid hsl(var(--foreground)); border-radius: calc(var(--radius) - 2px);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.footer-review:hover { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.footer-nav-heading {
  font-family: var(--font-heading); font-size: .875rem; line-height: 1.25rem;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem;
}
.footer-nav-links { display: inline-flex; flex-direction: column; gap: .5rem; }
.footer-link { font-size: .875rem; line-height: 1.25rem; color: hsl(var(--muted-foreground)); transition: color .15s var(--ease); }
.footer-link:hover { color: hsl(var(--foreground)); }
.footer-location { font-size: .875rem; line-height: 1.25rem; color: hsl(var(--muted-foreground)); }
.footer-location > * + * { margin-top: .75rem; }
.footer-location-content { display: flex; align-items: flex-start; gap: .5rem; transition: color .15s var(--ease); }
.footer-location-content:hover { color: hsl(var(--foreground)); }
.footer-location-icon { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: .125rem; }
.footer-legal {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid hsl(var(--border));
  text-align: center;
}
@media (min-width: 768px) { .footer-legal { flex-direction: row; text-align: left; } }

/* ==========================================================================
   Quick contact tab on the right edge: call, WhatsApp, book a trial
   ========================================================================== */
.quick {
  position: fixed; right: 0; top: 50%; z-index: 40; transform: translateY(-50%);
  display: flex; flex-direction: column; width: 3rem; overflow: hidden;
  border-radius: .5rem 0 0 .5rem;
  box-shadow: 0 0 0 1px hsl(0 0% 50% / .45), 0 10px 30px rgb(0 0 0 / .28);
}
.quick a { display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background-color .25s var(--ease), color .25s var(--ease); }
.quick a:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.quick__btn { height: 3rem; background: #000; color: #fff; }
.quick__btn svg { width: 1.25rem; height: 1.25rem; }
.quick__btn--wa { background: hsl(0 0% 22%); }
.quick__btn--call:hover { background: #fff; color: #000; }
.quick__btn--wa:hover { background: #25d366; color: #fff; }
.quick__cta {
  padding: 1.25rem 0; background: #fff; color: #000;
  font-family: var(--font-heading); font-weight: 700; font-size: .6875rem; line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  writing-mode: vertical-rl; white-space: nowrap;
}
.quick__cta:hover { background: #000; color: #fff; }
/* phones: the tab would sit on top of the text, so it becomes a bar along the bottom edge */
@media (max-width: 639px) {
  .quick {
    top: auto; bottom: 0; left: 0; right: 0; width: auto; transform: none; flex-direction: row;
    padding-bottom: env(safe-area-inset-bottom); border-radius: 0; background: #000;
    box-shadow: 0 -1px 0 hsl(0 0% 50% / .45), 0 -8px 24px rgb(0 0 0 / .18);
  }
  .quick__btn { flex: 0 0 3.25rem; height: 3.25rem; }
  .quick__btn--wa { box-shadow: inset 1px 0 0 hsl(0 0% 100% / .14); }
  .quick__cta { flex: 1 1 auto; height: 3.25rem; padding: 0 .5rem; font-size: clamp(.5625rem, 2.9vw, .6875rem); letter-spacing: .08em; writing-mode: horizontal-tb; }
  body:has(> .quick) { padding-bottom: calc(3.25rem + env(safe-area-inset-bottom)); }
  .hero__container { padding-bottom: 5.5rem; }      /* keeps the hero button clear of the bar */
}
@media (min-width: 640px) and (max-height: 479px) { .quick__cta { display: none; } }      /* short screens keep the two icons only */
@media print { .quick { display: none; } }

/* ==========================================================================
   Free-trial popup (was the founding-member popup)
   ========================================================================== */
#sfm-popup {
  position: fixed; inset: 0; z-index: 100000; display: none;
  align-items: center; justify-content: center; padding: 1rem; color: hsl(var(--foreground));
}
#sfm-popup.sfm-open { display: flex; }
.sfm-backdrop {
  position: absolute; inset: 0; background: rgb(0 0 0 / .62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s var(--ease);
}
#sfm-popup.sfm-in .sfm-backdrop { opacity: 1; }
.sfm-panel {
  position: relative; width: min(600px, 100%); max-height: min(92dvh, 92vh);
  display: flex; flex-direction: column;
  background: hsl(var(--popover)); border: 1px solid hsl(var(--foreground));
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / .35), 0 8px 10px -6px rgb(0 0 0 / .35);
  opacity: 0; transform: translateY(16px) scale(.985);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
#sfm-popup.sfm-in .sfm-panel { opacity: 1; transform: none; }
.sfm-close {
  position: absolute; top: .875rem; right: .875rem; z-index: 5; width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--background)); border: 1px solid hsl(var(--foreground));
  border-radius: calc(var(--radius) - 2px); color: hsl(var(--foreground));
  font-size: 15px; line-height: 1;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.sfm-close:hover { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.sfm-body { flex: 1 1 auto; min-width: 0; padding: 2.25rem 2.25rem 2rem; overflow-y: auto; }
.sfm-title { font-size: clamp(1.25rem, 3.4vw, 1.625rem); line-height: 1.25; margin: 0 2.75rem .75rem 0; }
.sfm-sub { font-size: 1rem; line-height: 1.6; color: hsl(var(--muted-foreground)); }

/* Form */
.trial-form { margin-top: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.125rem; }
.trial-form__row { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* on a phone an email address needs the full width, so that one pair stacks */
@media (max-width: 479px) { .trial-form__row--stack { grid-template-columns: minmax(0, 1fr); gap: 1.125rem; } }
.trial-form label {
  display: block; margin-bottom: .5rem;
  font-family: var(--font-heading); font-size: .75rem; line-height: 1rem;
  letter-spacing: .025em; text-transform: uppercase; color: hsl(var(--muted-foreground));
}
.trial-form label span { color: hsl(var(--foreground)); }
.trial-form input, .trial-form select, .trial-form textarea {
  display: block; width: 100%; height: 2.875rem; padding: .5rem .75rem;
  font: inherit; font-size: 1rem; color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--input)); border-radius: calc(var(--radius) - 2px);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.trial-form select { text-overflow: ellipsis; }
.trial-form textarea { height: auto; min-height: 5.5rem; resize: vertical; }
.trial-form textarea::placeholder { color: hsl(0 0% 45%); opacity: 1; }
.trial-form input:focus, .trial-form select:focus, .trial-form textarea:focus {
  outline: none; border-color: hsl(var(--foreground)); box-shadow: 0 0 0 1px hsl(var(--foreground));
}
.trial-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.trial-form .btn { width: 100%; padding-inline: .75rem; font-size: clamp(.8125rem, 3.7vw, 1rem); }
.trial-form .btn[disabled] { opacity: .5; pointer-events: none; }
.trial-form__status { font-size: .875rem; line-height: 1.5; color: hsl(var(--foreground)); }
.trial-form__status:empty { display: none; }
.trial-form__status a { text-decoration: underline; text-underline-offset: .2em; }
.trial-done { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid hsl(var(--foreground)); border-radius: var(--radius); }
.trial-done h3 { font-size: 1rem; line-height: 1.4; margin-bottom: .5rem; }
.trial-done p { font-size: .875rem; line-height: 1.625; color: hsl(var(--muted-foreground)); }
.trial-done a { color: hsl(var(--foreground)); text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 719px) {
  #sfm-popup { padding: .75rem; align-items: flex-end; }
  .sfm-body { padding: 1.5rem 1.25rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
