/* ── Flow Strength Maine — style.css ── */
/* Palette: light cream #F8F4EF | near-black #1A1714 | forest green #2D6A4F (app green) */
/* Fonts: Montserrat (h1/h2/h3/stats) · Inter (body) · Barlow Condensed (accents) */
/* Playfair Display removed 2026-08-01 — no serifs on this site. */
/* Motion + layout library ported from the Flow BJJ site, re-skinned to the cream/green light theme. */

:root {
  --bg: #F8F4EF;              /* light cream page background */
  --bg-card: #FFFFFF;         /* white cards/sections pop on cream */
  --bg-dark: #1A1714;
  --bg-dark-2: #231F1C;
  --border: #E6DED2;          /* warm border to match cream */
  --border-dark: rgba(255,255,255,0.1);
  --text: #1A1714;
  --muted: #6B6560;
  --muted-light: #9A948E;
  --white: #FFFFFF;
  --green: #2D6A4F;           /* app green (unchanged) */
  --green-dark: #1B4332;
  --green-light: rgba(45,106,79,0.12);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.15; }
h1 { font-family: 'Montserrat', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; }
h2 { font-family: 'Montserrat', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: -0.005em; font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.1rem; letter-spacing: 0.005em; }
h4 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem; }
p { color: var(--muted); line-height: 1.7; font-size: 0.875rem; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.section-label { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-style: italic; font-size: 0.92rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem; }
.section-header { max-width: 640px; margin-bottom: 3rem; }
.section-header p { font-size: 0.9rem; margin-top: 0.75rem; }

/* ── Nav ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--bg-dark); height: var(--nav-h); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.75); letter-spacing: 0.03em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { background: linear-gradient(rgba(255,255,255,0.10), rgba(0,0,0,0.12)), var(--green); color: var(--white) !important; font-weight: 600 !important; padding: 0.55rem 1.25rem !important; transition: background 0.2s !important; }
.nav-cta:hover { background: linear-gradient(rgba(255,255,255,0.10), rgba(0,0,0,0.12)), var(--green-dark) !important; }

/* Member-login person icon — far right of the header, links to the app */
/* .nav-login is now a labelled button — see the 2026-08-01 block at the end. */

/* ── Hamburger ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.25s; border-radius: 2px; }
body:has(#mobileMenu.open) .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--green); }
body:has(#mobileMenu.open) .hamburger span:nth-child(2) { opacity: 0; }
body:has(#mobileMenu.open) .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--green); }

/* ── Mobile Menu (Apple frosted-glass slide-down) ── */
.mobile-menu { display: none; flex-direction: column; background: rgba(26,23,20,0.82); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); transform: translateZ(0); padding: 1.5rem; gap: 0; border-top: 1px solid rgba(255,255,255,0.08); }
.mobile-menu.open { display: flex; animation: menuSlideIn 0.22s ease; }
@keyframes menuSlideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu a { color: rgba(255,255,255,0.8); font-size: 1rem; font-weight: 500; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); transition: color 0.2s; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--white); }
.mobile-menu .mobile-cta { color: var(--green) !important; font-weight: 600; border-bottom: none; margin-top: 0.5rem; }
.mobile-menu .mobile-login { color: rgba(255,255,255,0.6) !important; font-size: 0.85rem; letter-spacing: 0.04em; }

/* ── Buttons ── */
.btn-primary { display: inline-block; background: linear-gradient(rgba(255,255,255,0.10), rgba(0,0,0,0.12)), var(--green); color: var(--white); font-weight: 700; font-size: 0.88rem; padding: 0.72rem 1.8rem; letter-spacing: 0.03em; transition: background 0.2s, transform 0.15s; text-align: center; }
.btn-primary:hover { background: linear-gradient(rgba(255,255,255,0.10), rgba(0,0,0,0.12)), var(--green-dark); transform: translateY(-1px); }
.btn-secondary { display: inline-block; border: 1.5px solid var(--green); color: var(--green); font-weight: 600; font-size: 0.88rem; padding: 0.75rem 1.75rem; letter-spacing: 0.03em; transition: background 0.2s, color 0.2s; text-align: center; }
.btn-secondary:hover { background: var(--green); color: var(--white); }
.btn-dark { display: inline-block; background: var(--bg-dark); color: var(--white); font-weight: 700; font-size: 0.88rem; padding: 0.8rem 2rem; letter-spacing: 0.03em; transition: background 0.2s; text-align: center; }
.btn-dark:hover { background: var(--bg-dark-2); }
/* Light "ghost" button for use on dark/photo sections */
.btn-ghost { display: inline-block; border: 1.5px solid rgba(255,255,255,0.5); color: #fff; font-weight: 600; font-size: 0.88rem; padding: 0.75rem 1.75rem; letter-spacing: 0.03em; transition: background 0.2s, border-color 0.2s; text-align: center; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* Equal-width side-by-side button pairs (BJJ .btn-pair alignment) — square corners to match FSM */
.btn-pair { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn-pair > a, .btn-pair > button { flex: 1 1 0; min-width: 150px; }
@media (min-width: 760px) { .btn-pair > a, .btn-pair > button { flex: 0 1 auto; } }
.btn-pair.center { justify-content: center; align-items: center; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(248,244,239,0.95) 0%, rgba(248,244,239,0.88) 45%, rgba(248,244,239,0.72) 100%), url('../images/hero-bg.webp') 50% 92%/cover no-repeat; padding: calc(var(--nav-h) + 5rem) 0 5rem; }
.hero-badge { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-style: italic; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); border: 1px solid var(--green); padding: 0.3rem 0.8rem; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); color: var(--text); line-height: 1.05; margin-bottom: 1.25rem; }
.hero h1 .text-green { color: var(--green); }
.hero-sub { font-size: 0.98rem; color: var(--muted); max-width: 680px; margin-bottom: 2rem; line-height: 1.7; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Optional Ken-Burns zoom layer for the hero image (applied via .hero.hero-anim in markup).
   Keeps the cream gradient static while the photo slowly zooms underneath. */
.hero.hero-anim { background: var(--bg); }
.hero.hero-anim::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url('../images/hero-bg.webp') 50% 92%/cover no-repeat; animation: heroZoom 26s ease-out infinite alternate; }
.hero.hero-anim::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(248,244,239,0.95) 0%, rgba(248,244,239,0.88) 45%, rgba(248,244,239,0.72) 100%); }
.hero.hero-anim .container { position: relative; z-index: 2; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero.hero-anim::before { animation: none; } }

/* ── Page Hero (inner pages — dark) ── */

/* ── Page Head (light) — cream interior header w/ faint green logo watermark (BJJ .page-head-light) ── */
.page-head-light { position: relative; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--border); padding: calc(var(--nav-h) + 3rem) 0 3rem; }
.page-head-light h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); color: var(--text); max-width: min(920px, 100%); text-wrap: balance; }
.page-head-light .lede { color: var(--muted); max-width: 52ch; margin-top: 1rem; font-size: 0.9rem; line-height: 1.7; }
.page-head-light::after { content: ''; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); width: min(48%, 520px); aspect-ratio: 5.3 / 1; background-color: var(--green); -webkit-mask: url('../images/flow-strength-logo-white.png') center/contain no-repeat; mask: url('../images/flow-strength-logo-white.png') center/contain no-repeat; opacity: 0.06; pointer-events: none; }
.page-head-light .container { position: relative; z-index: 1; }

/* Reusable faint wave/logo watermark on any section */
.wave-bg { position: relative; overflow: hidden; }
.wave-bg::after { content: ''; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); width: min(48%, 520px); aspect-ratio: 5.3 / 1; background-color: var(--green); -webkit-mask: url('../images/flow-strength-logo-white.png') center/contain no-repeat; mask: url('../images/flow-strength-logo-white.png') center/contain no-repeat; opacity: 0.05; pointer-events: none; }
.wave-bg .container { position: relative; z-index: 1; }

/* ── Stats Bar ── */
.stats-bar { background: var(--green); padding: 1.25rem 0; }
.stats-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.95rem; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.88); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.2rem; }

/* ── Philosophy Section ── */
.philosophy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.philosophy-text h2 { margin-bottom: 1.5rem; }
.philosophy-text p { color: var(--muted); line-height: 1.85; }
.philosophy-image img { width: 100%; height: 480px; object-fit: cover; display: block; }

/* ── Coach Section ── */
.coach-section { background: var(--bg-dark); }
.coach-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 3rem; align-items: center; }
.coach-image { position: relative; }
.coach-image img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 48%; display: block; }
.coach-text .section-label { color: var(--green); }
.coach-text h2 { color: var(--white); margin-bottom: 1.5rem; }
.coach-text p { color: rgba(255,255,255,0.75); line-height: 1.85; }

/* ── Why Grid ── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.why-card { background: var(--bg-card); border: 1px solid var(--border); padding: 2rem; }
.why-icon { width: 44px; height: 44px; background: var(--green-light); border: 1px solid rgba(45,106,79,0.3); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.why-icon svg { color: var(--green); }
.why-card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.why-card p { font-size: 0.875rem; }

/* ── CTA Section (dark) ── */
.cta-section { background: var(--bg-dark); text-align: center; }
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 2rem; font-size: 0.92rem; }

/* ── CTA Band (green, full-width — BJJ .cta-band) ── */
.cta-band { background: var(--green); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 520px; margin: 0 auto 2rem; font-size: 0.92rem; }
.cta-band .btn-dark { background: var(--bg-dark); color: #fff; }
.cta-band .btn-dark:hover { background: #06110b; }

/* ── Event / promo bar (BJJ .event-bar) ── */

/* ── Alternating image + text band (BJJ .band) ── */
.band { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.band .band-media { width: 100%; }
.band .band-media img { width: 100%; max-height: 560px; object-fit: cover; object-position: var(--media-pos, 50% 30%); display: block; }
.band .band-body h2 { margin-bottom: 1rem; }
.band .band-body p { color: var(--muted); margin-bottom: 1.5rem; }
@media (min-width: 760px) {
  .band { flex-direction: row; }
  .band > * { flex: 1; }
  .band.reverse { flex-direction: row-reverse; }
}

/* ── Community gallery (BJJ .cg-grid hover-zoom) ── */
.cg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cg-tile { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--bg-card); }
.cg-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.cg-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(26,23,20,0.4)); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
@media (hover: hover) { .cg-tile:hover img { transform: scale(1.07); } .cg-tile:hover::after { opacity: 1; } }
@media (min-width: 760px) { .cg-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

/* ── Review rotator (BJJ Pattern 6 — light re-skin) ── */
@media (prefers-reduced-motion: reduce) {
}

/* ── Scroll-stacking deck (BJJ Pattern 16 — light re-skin) ──
   NOTE: never add html{overflow-x:clip} — it breaks position:sticky sitewide. */
@media (prefers-reduced-motion: reduce) { .stack-card { position: static; box-shadow: none; } }

/* ── Cursor spotlight cards (BJJ Pattern 9) ── */
.spot-card { position: relative; overflow: hidden; }
.spot-card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s; pointer-events: none; z-index: 3; background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(45,106,79,0.14), transparent 65%); }
.spot-card > * { position: relative; z-index: 2; }
@media (hover: hover) { .spot-card:hover::before { opacity: 1; } .spot-card:hover { border-color: var(--green); } }

/* ── Schedule Page ── */
.schedule-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.schedule-day { background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; }
.schedule-day-header { background: var(--bg-dark); padding: 1rem 1.25rem; }
.schedule-day-header h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-style: italic; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); }
.schedule-slots { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.schedule-slot { border-left: 3px solid var(--green); padding: 0.6rem 0.75rem; background: var(--bg); }
.schedule-slot .time { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text); letter-spacing: 0.03em; }
.schedule-slot .class-name { font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; }
.schedule-note { background: var(--green-light); border: 1px solid rgba(45,106,79,0.3); padding: 1.25rem 1.5rem; margin-top: 2.5rem; display: flex; align-items: center; gap: 1rem; }
.schedule-note p { color: var(--text); font-size: 0.875rem; margin: 0; }

/* ── Training Page ── */
.training-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.program-badge { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-style: italic; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--green); color: var(--white); padding: 0.25rem 0.65rem; margin-bottom: 1rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.75rem; }
.feature-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.feature-list li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; }
.feature-list li span::before { content: '✓'; font-size: 0.7rem; font-weight: 700; color: var(--white); }

/* ── InBody Page ── */
.inbody-hero-image { width: 100%; max-height: 400px; object-fit: cover; display: block; margin: 3rem 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.benefit-card { background: var(--bg-card); border: 1px solid var(--border); padding: 2rem; }
.benefit-card h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.6rem; }
.benefit-card h3::before { content: ''; width: 8px; height: 8px; background: var(--green); flex-shrink: 0; display: inline-block; }
.benefit-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); padding: 2.5rem; text-align: center; }
.pricing-card.featured { border-color: var(--green); border-width: 2px; }
.pricing-card .price { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 3rem; color: var(--green); line-height: 1; margin: 0.75rem 0 0.25rem; }
.pricing-card .price-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }

/* ── About Page ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-image img { width: 100%; height: 540px; object-fit: cover; display: block; }
.about-image .photo-placeholder { width: 100%; height: 540px; background: var(--bg-card); border: 2px dashed var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); gap: 0.75rem; }
.about-image .photo-placeholder svg { opacity: 0.4; }
.location-block { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.location-item h3 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 0.5rem; font-family: 'Barlow Condensed', sans-serif; font-style: italic; }
.location-item p { font-size: 1rem; color: var(--text); margin: 0; line-height: 1.6; }
.map-embed { margin-top: 3rem; }
.map-embed iframe { width: 100%; height: 380px; border: none; display: block; }

/* ── Contact Page ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-aside h3 { margin-bottom: 1.5rem; }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-detail-icon { width: 40px; height: 40px; background: var(--green-light); border: 1px solid rgba(45,106,79,0.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-detail-icon svg { color: var(--green); }
.contact-detail-text strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 0.2rem; }
.contact-detail-text span { font-size: 0.95rem; color: var(--text); }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.45rem; letter-spacing: 0.02em; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--border); background: var(--white); color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.95rem; transition: border-color 0.2s; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-success { display: none; background: var(--green-light); border: 1px solid rgba(45,106,79,0.4); padding: 1rem 1.25rem; color: var(--text); font-size: 0.95rem; margin-top: 1rem; }
.form-success.visible { display: block; }

/* ── Footer ── */
footer { background: var(--bg-dark); padding: 2.25rem 0 1.25rem; position: relative; overflow: hidden; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.35rem; border-bottom: 1px solid rgba(255,255,255,0.08); position: relative; z-index: 1; }
.footer-logo img { height: 32px; width: auto; display: block; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-links a { font-size: 0.84rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.12); display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); transition: color 0.2s, border-color 0.2s; }
.footer-social a:hover { color: var(--green); border-color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; flex-wrap: wrap; gap: 1rem; position: relative; z-index: 1; }
.footer-copy { font-size: 0.76rem; color: rgba(255,255,255,0.35); }
.footer-address { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
/* Oversized faint logo watermark centered behind the footer */
footer::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(80%, 520px); aspect-ratio: 1; background-color: #fff; -webkit-mask: url('../images/flow-strength-logo-white.png') center/contain no-repeat; mask: url('../images/flow-strength-logo-white.png') center/contain no-repeat; opacity: 0.03; pointer-events: none; }

/* ── Mobile Sticky CTA (supports 1 or 2 buttons — BJJ .mobile-cta sizing) ── */
.mobile-cta-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: rgba(26,23,20,0.88); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); transform: translateZ(0); padding: 0.75rem 1.5rem calc(0.75rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,0.08); gap: 0.6rem; }
.mobile-cta-bar a { flex: 1; display: block; text-align: center; background: linear-gradient(rgba(255,255,255,0.10), rgba(0,0,0,0.12)), var(--green); color: var(--white); font-weight: 700; font-size: 0.95rem; padding: 0.85rem; letter-spacing: 0.04em; }
.mobile-cta-bar a.ghost { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.3); }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.divider-dark { border-color: rgba(255,255,255,0.08); }

/* ── Utilities ── */
.text-green { color: var(--green); }
.text-white { color: var(--white); }
.text-muted { color: var(--muted); }
.bg-dark { background: var(--bg-dark); }
.bg-card { background: var(--bg-card); }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }

/* ── Scroll animations (anim.js hooks) ── */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--green), #52B788); }
html.anim [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.anim [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.anim [data-reveal] { opacity: 1 !important; transform: none !important; } }
/* word-stagger heading reveal (Pattern 4) */
html.anim .wr { display: inline-block; opacity: 0; transform: translateY(0.4em); transition: opacity 0.5s ease, transform 0.5s ease; }
html.anim .wr.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.anim .wr { opacity: 1 !important; transform: none !important; } }
/* hero mask-wipe heading reveal */
.mask-reveal { overflow: hidden; }
html.anim .mask-reveal .mask-inner { display: inline-block; animation: maskUp 0.9s cubic-bezier(.2,.85,.25,1) both; }
@keyframes maskUp { from { transform: translateY(118%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html.anim .mask-reveal .mask-inner { animation: none; } }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 64px; }
}
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .philosophy-grid, .coach-grid, .about-grid, .training-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .coach-image img, .philosophy-image img, .about-image img { height: 300px; }
  .why-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .stat-item { text-align: center; }
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: 0.72rem; }
}
@media (max-width: 767px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas a { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 1.6rem; }
}

/* ══════════════════════════════════════════════════════════════════
   2026-08-01 — header rebuild, button alignment, photo-backed tiles
   ══════════════════════════════════════════════════════════════════ */

/* ── Header right cluster: social icons + Member Login button ── */
.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.nav-social { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: rgba(255,255,255,0.6); border-radius: 4px; transition: color 0.15s, background 0.15s; }
.nav-social:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-login { display: inline-flex; align-items: center; justify-content: center; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.28); padding: 0.42rem 0.85rem; margin-left: 0.3rem; transition: background 0.18s, border-color 0.18s, color 0.18s; }
.nav-login:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.5); color: var(--white); }

/* ── Training dropdown (mirrors the Flow BJJ Classes menu) ── */
.nav-item.has-dd { position: relative; }
.dd-toggle { display: inline-flex; align-items: center; gap: 0.3rem; background: none; border: 0; padding: 0; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.75); letter-spacing: 0.03em; transition: color 0.2s; }
.dd-toggle:hover, .has-dd.open .dd-toggle, .dd-toggle.active { color: var(--white); }
.dd-caret { width: 13px; height: 13px; transition: transform 0.2s; }
.has-dd.open .dd-caret { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 0.9rem); left: 50%; transform: translateX(-50%) translateY(-6px); min-width: 190px; list-style: none; background: var(--bg-dark-2); border: 1px solid rgba(255,255,255,0.10); padding: 0.4rem 0; opacity: 0; visibility: hidden; transition: opacity 0.18s, transform 0.18s, visibility 0.18s; }
.has-dd.open .dd-menu, .has-dd:hover .dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dd-menu a { display: block; padding: 0.5rem 1rem; font-size: 0.82rem; color: rgba(255,255,255,0.72); white-space: nowrap; }
.dd-menu a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
/* hover-bridge so the menu doesn't close crossing the gap */
.has-dd::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 0.9rem; }

/* ── Buttons: centred sitewide, and groups split or stack cleanly ── */
.btn-pair { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; justify-content: center;
  margin-left: auto; margin-right: auto; }  /* auto margins so a max-width'd pair centres its BOX, not just its buttons */
.btn-pair > a, .btn-pair > button { flex: 1 1 0; min-width: 160px; text-align: center; }
@media (min-width: 760px) { .btn-pair > a, .btn-pair > button { flex: 0 1 auto; } }
/* three-up groups split evenly rather than wrapping 2+1 */
@media (max-width: 759px) { .btn-pair > a, .btn-pair > button { flex: 1 1 100%; } }
.btn-sm { font-size: 0.78rem !important; padding: 0.55rem 1.2rem !important; }

/* ── Certification pills ── */
.cert-list, .creds, .pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.cert, .cred, .pill { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-style: italic; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); background: var(--green-light); border: 1px solid rgba(45,106,79,0.22); padding: 0.32rem 0.75rem; }

/* ── Sticky mobile bar: centred content ── */
.mobile-cta-bar { justify-content: center; align-items: center; max-width: 640px; margin: 0 auto; }
.mobile-cta-bar a { max-width: 280px; }

/* ── Why-tiles with a photo behind the copy ──
   The image sits UNDER a solid base colour, not just at low opacity on the
   tile — without the base, body text contrast goes soft against the lighter
   parts of the photo. Same visual language as the logo watermarks. */
.why-tile { position: relative; isolation: isolate; background: var(--bg-card); border: 1px solid var(--border); padding: 2rem 1.75rem; overflow: hidden; }
.why-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--tile-img); background-size: cover; background-position: center; filter: grayscale(1) contrast(1.05); opacity: 0.10; pointer-events: none; }
.why-tile > * { position: relative; }
@media (prefers-contrast: more) { .why-tile::after { opacity: 0.04; } }

/* ── Choose-your-path cards ── */
.path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.path-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 2rem 1.75rem; color: var(--white); overflow: hidden; isolation: isolate; }
/* the photo goes on ::before, not the element, so it can scale on hover
   without moving the scrim or the copy. Pages set --card-img. */
.path-card::before { content: ''; position: absolute; inset: 0; z-index: -2; background-image: var(--card-img); background-size: cover; background-position: var(--card-pos, center); transition: transform 0.6s ease; }
.path-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,23,20,0.10) 0%, rgba(26,23,20,0.62) 52%, rgba(26,23,20,0.93) 100%); }
.path-card:hover::before { transform: scale(1.04); }
.path-card h3 { color: var(--white); font-size: 1.35rem; margin-bottom: 0.4rem; }
.path-card p { color: rgba(255,255,255,0.82); font-size: 0.9rem; margin-bottom: 1.1rem; }
.path-card .path-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-style: italic; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 0.5rem; display: block; }
.path-card .btn-primary { align-self: flex-start; }

/* ── Full-width art band ── */
.art-band { position: relative; min-height: 320px; background-size: cover; background-position: center; }

/* ── Footer refinements ── */
.footer-heading { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 0.9rem; }
.footer-detail { font-size: 0.84rem; color: rgba(255,255,255,0.6); margin-bottom: 0.35rem; }
.footer-detail a { color: inherit; transition: color 0.2s; }
.footer-detail a:hover { color: var(--white); }
.footer-cta { margin-top: 1rem; }

/* ── Mobile menu social row ── */
.mobile-social { display: flex; gap: 1rem; justify-content: center; padding-top: 1.25rem; margin-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-social a { color: rgba(255,255,255,0.6); padding: 0.35rem; }
.mobile-social a:hover { color: var(--white); }

/* ── Mobile: dropdown flattens, header stays tight ── */
@media (max-width: 1024px) {
  .nav-links, .nav-right { display: none; }
}

/* Hero CTA row — three buttons. Left-aligned deliberately: the headline and
   sub-copy above are left-aligned, so a centred button row would not line up
   with anything. Split/stack behaviour matches .btn-pair. */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-ctas > a { text-align: center; }
@media (max-width: 759px) { .hero-ctas > a { flex: 1 1 100%; } }

/* Centred section header — .section-header is left-aligned and 640px wide by
   default, which left "What to Expect in Class." hanging off to one side
   above a centred grid. */
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center p { margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════════════════════════════
   2026-08-02 — Hayden's review list
   ══════════════════════════════════════════════════════════════════ */

/* 18 — path-card copy legibility. A shadow does the work the scrim would
   otherwise have to, so the photograph stays readable. */
.path-card h3, .path-card p, .path-card .path-label { text-shadow: 0 1px 12px rgba(0,0,0,0.55); }

/* 21 — cream vignette. Fades the frame into the page instead of darkening it,
   which suits a light background and quiets a cluttered gym backdrop. */
.photo-vignette { position: relative; }
.photo-vignette img { filter: contrast(1.06) saturate(1.04); }
.photo-vignette::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(248,244,239,0) 58%, rgba(248,244,239,0.22) 82%, rgba(248,244,239,0.72) 100%); }

/* 30 / 32 / 35 — interior page headers: tighter, and they animate in.
   A CSS entrance is used rather than the scroll-reveal JS because these sit
   at the top of the page and are already in view on load. */
.page-head-light { padding: calc(var(--nav-h) + 2.5rem) 0 2.5rem; }
.page-head-light .section-label,
.page-head-light h1,
.page-head-light p,
.page-head-light .btn-pair,
.page-head-light .cert-list { animation: headEnter 0.62s cubic-bezier(.2,.7,.3,1) both; }
.page-head-light .section-label { animation-delay: 0.02s; }
.page-head-light h1            { animation-delay: 0.10s; }
.page-head-light p             { animation-delay: 0.20s; }
.page-head-light .cert-list    { animation-delay: 0.28s; }
.page-head-light .btn-pair     { animation-delay: 0.34s; }
@keyframes headEnter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .page-head-light .section-label, .page-head-light h1, .page-head-light p,
  .page-head-light .btn-pair, .page-head-light .cert-list { animation: none; }
}

/* 24 — Group Fitness header carries the barbell detail behind it, same
   low-opacity language as the why-tiles. */
.page-head-light.has-bg::before { content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: var(--head-img); background-size: cover; background-position: 50% 60%;
  filter: grayscale(1); opacity: 0.13; pointer-events: none; }
.page-head-light.has-bg > .container { position: relative; z-index: 1; }

/* 25 — Group Fitness bullets: smaller and indented from the copy above */
.feature-list { padding-left: 1.15rem; }
.feature-list li { font-size: 0.84rem; }

/* 26 — certification tiles share the button row's width so the block reads
   as one column rather than two different measures */
.cert-block { max-width: 420px; }
.cert-block .cert-list { justify-content: flex-start; }
.cert-block .btn-pair { margin-top: 1rem; }
.cert-block .btn-pair > a { flex: 1 1 0; }

/* 29 — Inside a Class becomes 2x2 so four photos show at roughly double size */
.cg-grid.two-by-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cg-grid.two-by-two .cg-tile { aspect-ratio: 16 / 11; }
.cg-grid.two-by-two .cg-tile img { width: 100%; height: 100%; object-fit: cover;
  object-position: var(--tile-pos, 50% 40%); display: block; }

/* 34 — InBody: the device render sits in a full-height left column with both
   copy blocks stacked beside it */
.inbody-split { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; }
.inbody-split .inbody-figure img { width: 100%; height: auto; display: block; }
.inbody-split .inbody-copy { display: grid; gap: 2.5rem; }
@media (max-width: 860px) { .inbody-split { grid-template-columns: 1fr; gap: 2rem; }
  .inbody-split .inbody-figure { max-width: 220px; margin: 0 auto; } }

/* 37 — About bio sits over a faint portrait */
.bio-bg { position: relative; isolation: isolate; overflow: hidden; }
.bio-bg::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: var(--bio-img); background-size: cover; background-position: 50% 22%;
  filter: grayscale(1); opacity: 0.09; }

/* Heading-level utilities. PSI flagged three pages for skipping heading
   levels (h2 -> h4, h1 -> h3). The tags are corrected for semantics and
   screen readers; these classes preserve the previous visual size so nothing
   moves on the page. */
.h-sub  { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.1rem;
          letter-spacing: 0.005em; text-transform: none; }
.h-mini { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
          letter-spacing: normal; text-transform: none; }

/* Art band headline. The global h2 clamp tops out at 2.15rem, which wrapped
   "YOU." onto a second line. Measured: 1.9rem fits on one line in the 1160px
   container, so cap just under it. text-wrap:balance keeps the mobile wrap
   even rather than leaving one orphaned word. */
.art-band h2 { font-size: clamp(1.05rem, 2vw, 1.85rem); text-wrap: balance; }

/* Interior page headers: a left-aligned block in a 1160px container always
   strands the right half. On wide screens the header becomes two columns —
   eyebrow and headline left, intro copy and any CTAs right, aligned to the
   headline's baseline — so the row is used instead of padded. */
.page-head-light p { max-width: 52ch; }
@media (min-width: 900px) {
  .page-head-light > .container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    column-gap: 3.5rem;
    align-items: end;
  }
  /* right column centres vertically against the headline row, excluding the
     eyebrow which lives in row 1 */
  .page-head-light > .container > *:not(.section-label):not(h1) { align-self: center; }
  .page-head-light > .container > .section-label { grid-column: 1; grid-row: 1; }
  .page-head-light > .container > h1            { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .page-head-light > .container > *:not(.section-label):not(h1) { grid-column: 2; }
  /* Column-2 items must stack DOWNWARD from the headline row. Without
     explicit rows a second paragraph auto-places into row 1 and renders
     ABOVE the lede - it did exactly that on Schedule. */
  .page-head-light > .container > p:nth-of-type(1) { grid-row: 2; margin-bottom: 0.9rem; }
  .page-head-light > .container > p:nth-of-type(2) { grid-row: 3; }
  .page-head-light > .container > p:nth-of-type(3) { grid-row: 4; }
  .page-head-light > .container > .btn-pair,
  .page-head-light > .container > .cert-list { grid-row: 5; }
  .page-head-light h1 { max-width: none; }
}

/* The Group Fitness headline is the longest on the site and took three lines
   in the two-column header. Scoped to that layout only - unscoped it shrank
   the h1 on About, Contact, InBody, Personal Training and Schedule too. */
@media (min-width: 900px) {
  .page-head-light h1 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
}

/* Homepage class gallery. The shared .cg-grid is 4 columns at >=760px, but
   this section has 3 tiles - the empty fourth column was pushing the whole
   row left of the centred heading above it. Three columns, and a 4:5 tile
   instead of a square so these portrait sources are not squeezed. */
@media (min-width: 760px) {
  .cg-grid.three-up { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.cg-grid.three-up .cg-tile { aspect-ratio: 4 / 5; }
.cg-grid.three-up .cg-tile img { object-position: var(--tile-pos, 50% 50%); }

/* Mid-page block that reads like the interior page headers: two columns on
   wide screens, with the photo demoted to a grayscale wash behind the copy
   instead of sitting beside it as a full-height slab. */
.band-head { position: relative; isolation: isolate; overflow: hidden;
  padding: 2.75rem 2rem; }
.band-head::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: var(--head-img); background-size: cover;
  background-position: var(--head-pos, 50% 50%);
  filter: grayscale(1) contrast(1.05); opacity: 0.13; pointer-events: none; }
.band-head p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .band-head { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
    column-gap: 3.5rem; align-items: end; }
  .band-head > .section-label { grid-column: 1; grid-row: 1; }
  .band-head > h2 { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .band-head > *:not(.section-label):not(h2) { grid-column: 2; align-self: center; }
  .band-head > p:nth-of-type(1) { grid-row: 2; }
  .band-head > p:nth-of-type(2) { grid-row: 3; }
  .band-head > p:nth-of-type(3) { grid-row: 4; }
}

/* The section directly after a page header carried a full 5rem top padding on
   top of the header's own bottom padding, leaving a dead band between them. */
.page-head-light + section { padding-top: 2.5rem; }

/* A header carrying a real photo background must not also paint the logo
   watermark on top of it - both fire on .page-head-light and ::after wins. */
.page-head-light.has-bg::after { display: none; }

/* 6 - path cards could overflow a 320px viewport at the 280px track floor */
@media (max-width: 359px) { .path-grid { grid-template-columns: 1fr; } }
