/* ============================================================
   MOB BOCA — Movement · Order · Balance
   Boutique functional training · Boca Raton, FL
   Aesthetic: calm, warm, approachable — cream + deep navy-blue
   Brand color: #154667 (sampled from their logo)
   Type: Schibsted Grotesk (display) · Hanken Grotesk (body)
   ============================================================ */

:root {
  /* palette */
  --cream:    #F4EEE3;   /* page background, warm paper */
  --cream-2:  #ECE4D5;   /* alt band */
  --card:     #FCFAF4;   /* cards, warm near-white */
  --navy:     #154667;   /* BRAND — deep blue */
  --navy-deep:#0E3149;   /* footer / deepest */
  --blue:     #2C7FA6;   /* brighter friendly accent */
  --ink:      #21384A;   /* body text */
  --muted:    #6E7A84;   /* secondary text */
  --line:     #E4DBC9;   /* warm border */
  --line-blue: rgba(21, 70, 103, .14);
  --navy-soft: rgba(21, 70, 103, .07);
  --mist:     #E7EEF1;   /* cool light tint */

  /* type */
  --display: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* metrics */
  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, .68, .2, 1);
  --shadow: 0 18px 50px -28px rgba(21, 70, 103, .35);
  --shadow-soft: 0 10px 30px -18px rgba(21, 70, 103, .28);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--navy); color: var(--cream); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

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

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--navy); --bd: var(--navy);
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans);
  font-weight: 700; font-size: .84rem;
  letter-spacing: .01em;
  padding: .85em 1.5em; border-radius: 100px;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bd);
  cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background .35s var(--ease),
              color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --bg: var(--navy); --fg: var(--cream); --bd: var(--navy);
  box-shadow: 0 10px 26px -10px rgba(21, 70, 103, .55);
}
.btn-primary:hover { --bg: #1a557d; box-shadow: 0 16px 36px -12px rgba(21, 70, 103, .65); }

.btn-ghost { --bg: transparent; --fg: var(--navy); --bd: var(--line-blue); }
.btn-ghost:hover { --bd: var(--navy); background: var(--navy-soft); }

.btn-lg { padding: 1.05em 1.9em; font-size: .92rem; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(244, 238, 227, .82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
  padding-block: 11px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; line-height: 1; }
.brand-badge { width: 38px; height: 38px; border-radius: 50%; display: block; box-shadow: 0 2px 10px -4px rgba(21,70,103,.5); }
.brand-word { display: inline-flex; align-items: baseline; gap: .26em; }
.brand-mark {
  font-family: var(--sans); font-weight: 800; font-size: 1.18rem;
  letter-spacing: -0.01em; color: var(--navy);
}
.brand-sub {
  font-family: var(--sans); font-weight: 800; font-size: 1.18rem;
  letter-spacing: -0.01em; color: var(--blue);
}
.brand-mark.big, .brand-sub.big { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: .85rem; font-weight: 600; letter-spacing: 0;
  color: var(--ink); position: relative; padding: 4px 0; opacity: .82;
  transition: opacity .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue); border-radius: 2px; transition: width .35s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang { display: inline-flex; border: 1px solid var(--line-blue); border-radius: 100px; padding: 3px; gap: 2px; background: var(--card); }
.lang-btn {
  font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); background: transparent; border: 0; cursor: pointer;
  padding: 5px 10px; border-radius: 100px; transition: color .25s, background .25s;
}
.lang-btn:hover { color: var(--navy); }
.lang-btn.is-active { background: var(--navy); color: var(--cream); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  align-items: center; justify-content: center; background: var(--card);
  border: 1px solid var(--line-blue); border-radius: 12px; cursor: pointer;
}
.hamburger span { width: 17px; height: 1.9px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.hamburger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.hamburger.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px); z-index: 99;
  background: var(--card); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
  padding: 100px 32px 32px; transform: translateX(102%);
  transition: transform .45s var(--ease); pointer-events: none; box-shadow: var(--shadow);
}
.mobile-menu.open { transform: translateX(0); pointer-events: auto; }
.mobile-menu a:not(.btn) {
  font-family: var(--display); font-size: 1.55rem; font-weight: 600; color: var(--navy); letter-spacing: -0.02em;
  padding: 11px 0; border-bottom: 1px solid var(--line); transition: color .25s;
}
.mobile-menu a:not(.btn):hover { color: var(--blue); }
.mobile-menu .btn { margin-top: 20px; justify-content: center; }
.mobile-lang { display: inline-flex; align-self: flex-start; margin-top: 26px; border: 1px solid var(--line-blue); border-radius: 100px; padding: 4px; gap: 3px; background: var(--cream); }
.mobile-lang .lang-btn { font-size: .82rem; padding: 7px 14px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 132px; overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(48vw 48vw at 82% 22%, rgba(44, 127, 166, .14), transparent 62%),
    radial-gradient(40vw 40vw at 8% 92%, rgba(21, 70, 103, .08), transparent 60%);
}
/* concentric rings echoing the round logo badge (Order · Balance) */
.hero-rings {
  position: absolute; top: 50%; right: -14vw; transform: translateY(-50%);
  width: 64vw; height: 64vw; max-width: 820px; max-height: 820px; z-index: 0; pointer-events: none;
  border-radius: 50%; opacity: .5;
  background: repeating-radial-gradient(circle, transparent 0 38px, var(--line-blue) 38px 39px);
  -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 72%);
  mask-image: radial-gradient(circle, #000 60%, transparent 72%);
}
.hero-inner {
  position: relative; z-index: 1; padding-block: 30px;
  display: grid; grid-template-columns: 1.05fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy { max-width: 660px; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 4.7; object-fit: cover; object-position: center 30%;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 34px 80px -44px rgba(21, 70, 103, .6);
}
.hero-media-tag {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(244, 238, 227, .92); backdrop-filter: blur(6px);
  color: var(--navy); font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  padding: 8px 14px; border-radius: 100px; box-shadow: var(--shadow-soft);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 11px; flex-wrap: wrap;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  color: var(--ink); margin-bottom: 30px;
  background: var(--card); border: 1px solid var(--line-blue);
  padding: 8px 16px 8px 12px; border-radius: 100px; box-shadow: var(--shadow-soft);
}
.hero-eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(44,127,166,.18); }
.hero-eyebrow .eyebrow-loc { color: var(--muted); padding-left: 11px; border-left: 1px solid var(--line); font-weight: 600; }

.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.7rem, 6vw, 5.3rem); line-height: 1.0; letter-spacing: -0.035em;
  color: var(--navy); margin-bottom: 28px; max-width: 13ch; text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--blue); }

/* typography polish: balanced headings, no orphan body lines */
.section-title, .intro-head, .visit-title, .finale-head { text-wrap: balance; }
.hero-sub, .intro-lead, .section-note, .visit-lead, .pillar p, .card p, .community-head .section-note { text-wrap: pretty; }

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink); opacity: .82;
  max-width: 54ch; margin-bottom: 18px; line-height: 1.6;
}

.hero-words {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem); color: var(--navy); margin-bottom: 38px; letter-spacing: -0.01em;
}
.hero-words .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); display: inline-block; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* marquee */
.marquee {
  position: relative; z-index: 1; margin-top: auto;
  border-top: 1px solid var(--line-blue); border-bottom: 1px solid var(--line-blue);
  overflow: hidden; padding: 18px 0; background: var(--mist);
}
.marquee-track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee-track span {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem); letter-spacing: -0.01em;
  color: var(--navy); display: inline-flex; align-items: center; white-space: nowrap;
}
.marquee-track i { color: var(--blue); font-style: normal; padding: 0 .55em; font-size: .5em; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- shared section bits ---------- */
.kicker {
  display: inline-block;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 20px;
}
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; color: var(--navy);
}
.section-note { color: var(--muted); margin-top: 16px; font-size: 1.06rem; max-width: 52ch; }

section { padding-block: clamp(78px, 11vw, 140px); position: relative; }

/* ---------- INTRO / MEANING ---------- */
.intro { border-top: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.intro-head {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; color: var(--navy);
}
.intro-head em { font-style: normal; color: var(--blue); }
.intro-lead { font-size: 1.18rem; color: var(--ink); opacity: .9; line-height: 1.6; }
.intro-lead strong { color: var(--navy); font-weight: 700; }
.intro-lead .em { color: var(--blue); font-weight: 600; }

/* ---------- PILLARS (Movement · Order · Balance) ---------- */
.pillars { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(30px, 3vw, 46px); position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar-letter {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3.2rem, 4.6vw, 4.4rem); line-height: 1; color: var(--blue);
  display: block; margin-bottom: 16px; letter-spacing: -0.03em;
}
.pillar h3 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; letter-spacing: -0.02em; }
.pillar p { color: var(--ink); opacity: .82; font-size: 1.02rem; }
.pillar-ring {
  position: absolute; right: -40px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%;
  border: 1.5px solid var(--line-blue); opacity: .7;
}

/* ---------- TRAINING / CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
.card {
  position: relative; padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { border-color: var(--line-blue); transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card-no {
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--blue);
  display: block; margin-bottom: 20px; letter-spacing: -0.01em;
}
.card h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.95rem); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.02em; margin-bottom: 14px; color: var(--navy);
}
.card p { color: var(--ink); opacity: .82; margin-bottom: 22px; font-size: 1.02rem; }
.card-tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  color: var(--blue); border: 1px solid var(--line-blue); background: var(--mist); border-radius: 100px;
  padding: 6px 14px;
}

/* ---------- WHY / STATS ---------- */
.why { border-top: 1px solid var(--line); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px); margin-bottom: clamp(46px, 7vw, 84px);
}
.stat { border-top: 2px solid var(--blue); padding-top: 20px; }
.stat-num {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem); line-height: .95; color: var(--navy); letter-spacing: -0.03em;
}
.stat-num small { font-size: .42em; color: var(--blue); vertical-align: super; }
.stat-label { display: block; color: var(--muted); font-size: .96rem; margin-top: 14px; max-width: 24ch; }

.pull {
  max-width: 30ch;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 2.9vw, 2.5rem); line-height: 1.24; color: var(--navy); letter-spacing: -0.025em;
}
.pull em { color: var(--blue); font-style: normal; }
.pull cite {
  display: block; margin-top: 22px; font-family: var(--sans); font-style: normal;
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ---------- CLASSES ---------- */
.classes { border-top: 1px solid var(--line); background: var(--cream-2); }
.class-list { list-style: none; border-top: 1px solid var(--line-blue); }
.class-row {
  display: grid; grid-template-columns: minmax(170px, 1fr) 2.2fr auto;
  gap: 24px; align-items: center;
  padding: clamp(22px, 3vw, 32px) 4px; border-bottom: 1px solid var(--line-blue);
  position: relative; transition: padding-left .4s var(--ease);
}
.class-row::before {
  content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 0;
  background: var(--blue); border-radius: 3px; transition: width .35s var(--ease);
}
.class-row:hover { padding-left: 22px; }
.class-row:hover::before { width: 3px; }
.class-name {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  color: var(--navy); line-height: 1.08; letter-spacing: -0.03em; transition: color .3s;
}
.class-row:hover .class-name { color: var(--blue); }
.class-desc { color: var(--ink); opacity: .78; font-size: 1.02rem; }
.class-len {
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); border: 1px solid var(--line-blue); background: var(--card);
  border-radius: 100px; padding: 6px 14px; white-space: nowrap;
}

/* ---------- MEMBERSHIP ---------- */
.membership { border-top: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.plan {
  display: flex; flex-direction: column;
  padding: clamp(26px, 2.6vw, 36px) clamp(22px, 2.2vw, 30px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); position: relative; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.plan h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; color: var(--navy); }
.plan-price {
  font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--navy); letter-spacing: -0.03em;
  margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px;
}
.plan-price span {
  font-family: var(--sans); font-size: .84rem; font-weight: 500; letter-spacing: 0;
  color: var(--muted); text-transform: none;
}
.plan ul { list-style: none; margin-bottom: 28px; display: grid; gap: 12px; flex: 1; }
.plan li { position: relative; padding-left: 24px; color: var(--ink); opacity: .85; font-size: .96rem; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
}
.plan .btn { justify-content: center; }
.plan-feature {
  border-color: var(--navy);
  background: linear-gradient(180deg, var(--mist), var(--card) 42%);
  box-shadow: var(--shadow);
}
.plan-flag {
  position: absolute; top: -11px; left: clamp(22px, 2.2vw, 30px);
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--navy); color: var(--cream); padding: 5px 12px; border-radius: 100px;
}
.cp-note { margin-top: 36px; text-align: center; color: var(--ink); opacity: .85; font-size: 1.05rem; }
.cp-note a { color: var(--blue); font-weight: 700; border-bottom: 1.5px solid transparent; transition: border-color .3s; }
.cp-note a:hover { border-bottom-color: var(--blue); }

/* ---------- COMMUNITY ---------- */
.community { border-top: 1px solid var(--line); }
.community-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 56px); }
.community-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: clamp(14px, 1.6vw, 20px); }
.community-photo {
  margin: 0; height: clamp(300px, 34vw, 460px); overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--cream-2);
}
.community-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block;
  transition: transform .7s var(--ease);
}
.community-photo:hover img { transform: scale(1.045); }
.community-link { margin-top: 28px; color: var(--muted); font-size: .95rem; }
.community-link a { color: var(--blue); font-weight: 700; border-bottom: 1.5px solid transparent; transition: border-color .3s; }
.community-link a:hover { border-bottom-color: var(--blue); }

/* ---------- VISIT ---------- */
.visit { border-top: 1px solid var(--line); background: var(--cream-2); }
.visit-photo {
  position: relative; margin: 0; aspect-ratio: 4 / 3.4; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-soft); background: var(--cream-2);
}
.visit-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visit-photo-tag {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(244, 238, 227, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--navy); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 100px; box-shadow: var(--shadow-soft);
}
.visit-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.visit-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; color: var(--navy); margin-bottom: 22px; letter-spacing: -0.035em; }
.visit-lead { color: var(--ink); opacity: .85; font-size: 1.1rem; max-width: 46ch; margin-bottom: 40px; }
.visit-details { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin-bottom: 40px; }
.visit-details dt {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 8px;
}
.visit-details dd { color: var(--navy); font-size: 1.05rem; line-height: 1.5; }
.visit-details a { border-bottom: 1px solid var(--line-blue); transition: border-color .3s, color .3s; }
.visit-details a:hover { border-bottom-color: var(--blue); color: var(--blue); }
.muted { color: var(--muted); font-size: .85em; }

/* stylized map block */
.visit-map {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-soft);
  background: radial-gradient(120% 120% at 70% 25%, var(--mist), var(--card) 60%);
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-blue) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-blue) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .8;
  -webkit-mask-image: radial-gradient(120% 120% at 60% 40%, #000 30%, transparent 82%);
  mask-image: radial-gradient(120% 120% at 60% 40%, #000 30%, transparent 82%);
}
.map-pin { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.pin-dot {
  display: block; width: 16px; height: 16px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 0 rgba(44,127,166,.5); animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(44,127,166,.45);} 70%,100% { box-shadow: 0 0 0 26px rgba(44,127,166,0);} }
.pin-label { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--navy); display: block; letter-spacing: -0.02em; }
.pin-coords { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 6px; }
.map-corner { position: absolute; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.map-corner.tl { top: 16px; left: 18px; }
.map-corner.br { bottom: 16px; right: 18px; color: var(--blue); }

/* ---------- FINALE ---------- */
.finale { text-align: center; border-top: 1px solid var(--line); overflow: hidden; }
.finale-glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 70% at 50% 55%, rgba(44,127,166,.12), transparent 70%);
}
.finale-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.finale .kicker { color: var(--muted); }
.finale-head {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3rem, 10vw, 7.6rem); line-height: 1.0; color: var(--navy); margin-bottom: 22px; letter-spacing: -0.04em;
}
.finale-head em { font-style: normal; color: var(--blue); }
.finale-words {
  font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--muted); margin-bottom: 40px; letter-spacing: -0.01em;
}
.finale .hero-cta { justify-content: center; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy); color: var(--cream); padding-top: clamp(56px, 7vw, 90px); padding-bottom: 30px; }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding-bottom: 52px; border-bottom: 1px solid rgba(244,238,227,.16);
}
.footer-brand { display: flex; flex-direction: column; gap: 0; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-mark.big { color: var(--cream); }
.footer-brand .brand-sub.big { color: #7FB8D6; }
.footer-tag { color: rgba(244,238,227,.66); font-size: .96rem; max-width: 32ch; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.footer-col-h { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,238,227,.5); margin-bottom: 6px; }
.footer-nav a, .footer-social a { color: rgba(244,238,227,.82); font-size: .96rem; width: fit-content; transition: color .3s; }
.footer-nav a:hover, .footer-social a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 22px; color: rgba(244,238,227,.55); font-size: .82rem;
}
.footer-langs { letter-spacing: .1em; font-weight: 700; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-book { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { display: block; margin-top: 32px; }
  .hero-media img { aspect-ratio: 4 / 3.8; }
  .community-grid { grid-template-columns: 1fr; }
  .community-photo { height: auto; aspect-ratio: 4 / 3; }
  .intro-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .lang { display: none; }
  .class-row { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .class-desc { grid-column: 1 / -1; order: 3; }
  .stats { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .plans { grid-template-columns: 1fr; }
  .visit-details { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 116px; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}

/* ---------- motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .pin-dot { animation: none; }
}
