/* ============================================================
   SPIRE FITNESS — "classic" theme
   Faithful replica of the Squarespace design: white canvas,
   Shrikhand ink headings, oval photo masks, wavy dividers,
   coral wave footer. Body: Poppins-ish humanist sans.
   ============================================================ */
:root {
  --coral: #E86345;
  --coral-deep: #C94B2F;
  --ink: #000000;
  --ink-soft: #333333;
  --gray: #666666;
  --white: #FFFFFF;
  --teal: #1D8868;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  background: var(--white); color: var(--ink); line-height: 1.7; font-size: 16px;
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.display { font-family: 'Shrikhand', Georgia, serif; font-weight: 400; color: var(--ink); }
.kicker { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); }

/* ---------- nav ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid #eee; }
.topbar-in { max-width: 1360px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; gap: 28px; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { width: 152px; height: auto; aspect-ratio: 1500 / 194; }
.logo small { display: none; }
@media (max-width: 760px) { .logo img { width: 122px; } }
.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { font-size: 15px; font-weight: 400; color: var(--ink); text-decoration: none;
  padding: 2px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { border-bottom-color: var(--ink); }
.nav a.btn { border: none; }

/* buttons: coral pills like the original site's CTAs */
.btn { display: inline-block; font-family: inherit; font-weight: 500; font-size: 16px;
  padding: 14px 32px; text-decoration: none; border: 1px solid var(--coral);
  border-radius: 999px; background: var(--coral); color: var(--white);
  box-shadow: none; transition: background .15s ease, border-color .15s ease; letter-spacing: .3px; }
.btn:hover { background: var(--coral-deep); border-color: var(--coral-deep); color: var(--white); transform: none; box-shadow: none; }
.btn-coral { background: var(--coral); border-color: var(--coral); color: var(--white); }
.btn-coral:hover { background: var(--coral-deep); border-color: var(--coral-deep); }
.btn-teal, .btn-ghost { background: var(--coral); color: var(--white); border-color: var(--coral); }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- hero: full-bleed mural, centered white text, wave bottom ---------- */
.hero { position: relative; color: var(--white); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
/* darkening scrim behind hero copy — matches the original's overlay for legibility */
.hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.34); }
.hero-grid { position: relative; display: block; text-align: center;
  padding: 150px 24px 190px; max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: clamp(44px, 6.5vw, 76px); color: var(--white);
  letter-spacing: -1px; text-transform: uppercase; }
.hero h1 .line2 { display: inline; color: var(--white); }
.hero .sub { font-family: 'Shrikhand', Georgia, serif; font-size: clamp(24px, 3vw, 34px);
  margin: 46px 0 18px; }
.hero .lede { font-size: 16px; max-width: 46ch; margin: 0 auto; color: var(--white); }
.hero-ctas { justify-content: center; display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-ctas .btn { background: transparent; color: var(--white); border-color: var(--white); }
.hero-ctas .btn:hover { background: var(--white); color: var(--ink); }
.hero-photo, .hero-badge { display: none; }
/* wave divider bottom of hero */
.hero .wave { position: absolute; bottom: -1px; left: 0; right: 0; height: 90px; }
.hero .wave svg { width: 100%; height: 100%; display: block; }

/* rise animations neutralized (squarespace is static) */
.rise { animation: none; }

/* ---------- marquee off in classic ---------- */
.marquee { display: none; }
.marquee.show-classic { display: block; background: var(--coral); border: 0;
  overflow: hidden; color: var(--white); }
.marquee.show-classic .marquee-track { display: flex; white-space: nowrap;
  animation: marquee 26s linear infinite; width: max-content; }
.marquee.show-classic span { font-family: 'Shrikhand', Georgia, serif; font-size: 18px;
  padding: 10px 0; text-transform: uppercase; }
.marquee.show-classic span::after { content: "*"; margin: 0 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-head { display: block; text-align: left; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); color: var(--ink); }
.section-head .rule { display: none; }

/* pillars: oval photo + plain lists */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.pillar { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.pillar:hover { transform: none; box-shadow: none; }
.pillar .num { display: none; }
.pillar .oval { aspect-ratio: 1.55/1; border-radius: 50%; overflow: hidden; margin-bottom: 34px; }
.pillar .oval img { width: 100%; height: 100%; object-fit: cover; }
.pillar h3 { font-family: 'Shrikhand', Georgia, serif; color: var(--ink); font-size: 26px; margin-bottom: 12px; }
.pillar ul { list-style: disc; padding-left: 22px; }
.pillar li { padding: 4px 0; border: 0; font-size: 15.5px; color: var(--ink-soft); position: static; }
.pillar li::before { content: none; }

/* class cards -> simple editorial rows */
.classgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 44px; }
.classcard { background: none; border: 0; border-radius: 0; box-shadow: none; }
.classcard:hover { transform: none; box-shadow: none; }
.classcard .bar { display: none; }
.classcard .body { padding: 0; gap: 8px; }
.classcard h3 { font-family: 'Shrikhand', Georgia, serif; font-size: 23px; color: var(--ink); }
.classcard .dur { background: none; border: 0; color: var(--gray); padding: 0;
  font-size: 13px; letter-spacing: 1px; font-weight: 500; }
.classcard p { color: var(--ink-soft); font-size: 15px; }

/* team grid: clean portraits, no card chrome */
.teamgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 28px; }
.person { background: none; border: 0; border-radius: 0; box-shadow: none; text-decoration: none; color: var(--ink); }
.person:hover { transform: none; box-shadow: none; }
.person .ph { aspect-ratio: 1/1.15; overflow: hidden; border: 0; border-radius: 6px; background: #f4f4f4; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; filter: none; transition: transform .3s ease; }
.person:hover .ph img { transform: scale(1.03); filter: none; }
.person .who { padding: 14px 2px 0; }
.person .who b { font-family: 'Shrikhand', Georgia, serif; font-weight: 400; font-size: 17px; display: block; }
.person .who span { font-size: 12px; color: var(--gray); letter-spacing: 1.5px; text-transform: uppercase; }

/* instructor page */
.bio-grid { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: start; }
.bio-grid img { border-radius: 6px; border: 0; box-shadow: none; }
.bio-grid .roles { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 22px; }
.bio-grid .roles span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  background: none; border: 1px solid var(--ink); border-radius: 0; padding: 5px 12px; }
.bio-grid p { margin-bottom: 16px; font-size: 16px; color: var(--ink-soft); }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: none; border: 0; border-bottom: 1px solid #ddd; border-radius: 0; margin: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 4px;
  font-family: 'Shrikhand', Georgia, serif; font-weight: 400; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral); font-size: 24px; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border: 0; }
.faq .a { padding: 0 4px 22px; color: var(--gray); font-size: 15px; }
.faq .a p { margin-bottom: 10px; }

/* mt embed shell: chromeless like squarespace */
.mt-shell { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; min-height: 640px; }

/* prose */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-family: 'Shrikhand', Georgia, serif; color: var(--ink); font-size: 24px; margin: 36px 0 12px; }
.prose p { margin-bottom: 14px; font-size: 15px; color: var(--ink-soft); }

/* band -> app row styling (classic home uses big shrikhand app links) */
.band { background: var(--white); color: var(--ink); border: 0; }
.band .wrap { display: flex; align-items: center; gap: 28px; padding: 30px 24px 60px; flex-wrap: wrap; justify-content: center; text-align: center; }
.band h2 { font-family: 'Shrikhand', Georgia, serif; font-size: clamp(26px, 3.6vw, 42px); flex: initial; width: 100%; }
.band.coral { background: var(--white); color: var(--ink); }
.band .btn { box-shadow: none; border-color: var(--ink); color: var(--ink); }
.apps { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.apps a { border: 1px solid var(--ink); border-radius: 0; background: var(--white);
  color: var(--ink); font-weight: 400; font-size: 15px; padding: 12px 24px; display: inline-block; }
.apps a:hover { background: var(--ink); color: var(--white); }

/* ---------- footer: coral with wave top, centered ---------- */
footer { background: var(--white); color: var(--ink); margin-top: 60px; position: relative; }
.footwave { height: 80px; overflow: hidden; }
.footwave svg { width: 100%; height: 100%; display: block; }
.footbody { background: var(--coral); }
.foot { max-width: var(--maxw); margin: 0 auto; padding: 30px 24px 10px;
  display: block; text-align: center; }
.foot .fl { font-family: 'Shrikhand', Georgia, serif; font-size: 30px; color: var(--ink); }
.foot .fl small { display: none; }
.foot h4 { display: none; }
.foot > div { margin-bottom: 8px; }
.foot a { color: var(--ink); text-decoration: none; display: inline-block; padding: 4px 12px; font-size: 14px; }
.foot a:hover { text-decoration: underline; }
.foot p { display: none; }
.legal { border: 0; background: var(--coral); }
.legal .wrap { display: block; text-align: center; padding: 6px 24px 34px; font-size: 13.5px; color: var(--ink); }
.legal a { color: var(--ink); }

/* page hero (interior) */
.pagehero { padding: 70px 0 6px; text-align: center; }
.pagehero h1 { font-size: clamp(36px, 5vw, 60px); text-transform: uppercase; }
.pagehero .sub { font-size: 17px; color: var(--gray); margin-top: 12px; }

/* experience */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 56px; margin-top: 20px; }
.exp-card { background: none; border: 0; border-radius: 0; padding: 0 0 26px; }
.exp-card h2 { font-family: 'Shrikhand', Georgia, serif; color: var(--ink); font-size: 24px; margin-bottom: 12px; }
.exp-card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; }
.exp-photo img { border-radius: 6px; border: 0; box-shadow: none; }

/* private events */
.pe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pe-card { background: none; border: 0; border-radius: 0; padding: 50px 30px; text-align: center; }
.pe-card h2 { font-family: 'Shrikhand', Georgia, serif; color: var(--ink); font-size: 28px; margin-bottom: 24px; }

@media (max-width: 1020px) {
  .teamgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .hero-grid { padding: 110px 24px 150px; }
  .bio-grid, .exp-grid, .pe-grid { grid-template-columns: 1fr; }
  .pillars, .classgrid { grid-template-columns: 1fr; }
  .teamgrid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- fidelity fixes (agent comparison pass, 2026-07-22) ---- */
/* hero: one-line H1 like the original */
.hero h1 { font-size: clamp(34px, 4.6vw, 66px); white-space: nowrap; letter-spacing: -1px; }
@media (max-width: 760px) { .hero h1 { white-space: normal; } }
.hero-grid { max-width: 1100px; }

/* app download: two giant display headlines, "app." underlined */
.app-heads { text-align: center; padding: 60px 24px 90px; display: flex; gap: 60px;
  justify-content: center; flex-wrap: wrap; }
.app-heads h2 { font-size: clamp(26px, 3.4vw, 44px); }
.app-heads a { color: inherit; text-decoration: underline; text-decoration-thickness: 3px;
  text-underline-offset: 6px; }

/* experience: alternating full-width media/text rows */
.exp-rows { margin-top: 40px; display: flex; flex-direction: column; gap: 70px; }
.exp-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.exp-row .media img, .exp-row .media iframe { width: 100%; border: 0; border-radius: 6px; display: block; }
.exp-row .media iframe { aspect-ratio: 4/3; }
.exp-row .txt h2 { font-size: 26px; margin-bottom: 14px; }
.exp-row .txt p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 12px; }
@media (max-width: 700px) { .exp-row { grid-template-columns: 1fr; } }

/* classes: photos left, list right (original two-column layout) */
.classes-2col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.classes-photos { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 90px; }
.classes-photos img { border-radius: 6px; }
.classitem { margin-bottom: 30px; }
.classitem h3 { font-size: 22px; margin-bottom: 6px; }
.classitem p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 700px) { .classes-2col { grid-template-columns: 1fr; } .classes-photos { position: static; } }

/* footer social glyphs */
.socialicons { display: flex; gap: 18px; justify-content: center; padding: 6px 0 4px; }
.socialicons a { color: var(--ink); display: inline-flex; padding: 4px; }
.socialicons a:hover { color: var(--white); }

/* ---- fidelity fixes round 2 (team/faq/booking agents) ---- */
/* maroon private-events marquee */
.marquee.show-classic.maroon { background: #7A2E1F; color: var(--white); }
.marquee.show-classic.maroon span { font-style: italic; }

/* private events: full-bleed image feature sections */
.pe-feature { position: relative; min-height: 480px; display: flex; align-items: center;
  justify-content: center; background-size: cover; background-position: center; }
.pe-overlay { background: rgba(0,0,0,.45); position: absolute; inset: 0; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px 24px; text-align: center; }
.pe-overlay h1 { color: var(--white); font-size: clamp(28px, 4vw, 48px); }
.pe-btn { background: var(--white); color: var(--ink); border-color: var(--white); border-radius: 999px; }
.pe-btn:hover { background: var(--coral); color: var(--white); border-color: var(--coral); }

/* purchase page: student special replicated */
.student-special { text-align: center; padding: 64px 24px 10px; }
.student-special h2.display { font-size: clamp(30px, 4vw, 46px); }
.ss-sub { font-family: 'Shrikhand', Georgia, serif; font-size: clamp(20px, 2.6vw, 30px); margin: 10px 0 24px; }
.ss-btn { border-radius: 999px; padding: 15px 34px; letter-spacing: .5px; }
.ss-discount { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; font-style: italic;
  max-width: 900px; margin: 48px auto 14px; line-height: 1.35; }
.ss-note { color: var(--ink-soft); font-size: 15px; }
.ss-note a { font-weight: 700; }

/* schedule embed: narrow centered column like the original */
.mt-narrow { max-width: 880px; margin: 0 auto; }

/* thank-you: original two-column rows */
.prose2col { max-width: 980px; margin: 0 auto; }
.p2c-row { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 40px 0;
  border-bottom: 1px solid #ddd; }
.p2c-row:last-child { border-bottom: 0; }
.p2c-h h2 { font-size: 26px; font-style: italic; }
.p2c-b p { margin-bottom: 12px; font-size: 15px; color: var(--ink-soft); }
.p2c-b a { color: var(--coral); text-decoration: underline; }
@media (max-width: 700px) { .p2c-row { grid-template-columns: 1fr; gap: 10px; } }

/* curved repeating-text titles (bio pages + FAQ groups) */
.arc-title { max-width: 1240px; margin: 30px auto -10px; }
.arc-title svg { width: 100%; height: auto; display: block; }
.arc-title text { font-family: 'Shrikhand', Georgia, serif; font-size: 52px; fill: var(--ink);
  letter-spacing: 1px; }

/* team: Read Bio buttons + mixed-case italic roles + coral wavy divider */
.cardcta { padding: 10px 2px 4px; }
.cardcta .btn { border-radius: 999px; font-size: 13px; padding: 9px 22px; }
.person .who span { text-transform: none; letter-spacing: .2px; font-style: italic;
  font-size: 13px; display: block; }
.team-divider { margin: 70px 0 10px; }
.team-divider svg { width: 100%; height: 40px; display: block; }

/* ---- personal training page ---- */
.pt-brand { font-size: 15px; letter-spacing: 1px; color: var(--gray); text-transform: uppercase; }
.pt-assess { background: var(--if-cream, #FDF1ED); padding: 64px 24px; }
.pt-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.pt-tier { border: 1px solid #ddd; border-radius: 12px; padding: 30px 26px; display: flex;
  flex-direction: column; gap: 10px; background: var(--white); }
.pt-featured { border: 2px solid var(--coral); box-shadow: 0 12px 34px rgba(232,99,69,.15); }
.pt-tag { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--coral); font-weight: 600; }
.pt-tier h3 { font-size: 24px; }
.pt-meta { font-size: 13px; color: var(--gray); }
.pt-price { font-family: 'Shrikhand', Georgia, serif; font-size: 34px; margin-top: 6px; }
.pt-price span { font-family: inherit; font-size: 13px; color: var(--gray); }
.pt-price-alt { font-size: 13px; color: var(--gray); margin-top: -6px; }
.pt-persession { font-size: 12.5px; color: var(--gray); margin-top: 4px; padding-top: 6px;
  border-top: 1px dashed #eee; }
.pt-for { font-size: 14px; color: var(--ink-soft); }
.pt-tier ul { list-style: none; padding: 0; margin: 6px 0 0; }
.pt-tier .pt-includes { margin-bottom: 4px; }
.pt-tier li { font-size: 13.5px; color: var(--ink-soft); padding: 6px 0 6px 22px; position: relative;
  border-top: 1px dashed #eee; }
.pt-tier li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.pt-tier .btn { text-align: center; }
/* "Recommended for" block — the goal-fit list that sits above the includes list */
.pt-rec { margin-top: 4px; }
.pt-rec-head { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
  color: var(--ink); }
.pt-rec li::before { content: "•"; font-size: 16px; line-height: 1.1; }
.pt-tiers-cta { margin-top: 30px; text-align: center; }
.pt-tiers-cta p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.pt-addon { margin-top: 34px; border: 1px solid var(--ink); border-radius: 12px; padding: 30px 32px;
  display: flex; gap: 30px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #F7F5F2; }
.pt-addon h3 { font-size: 22px; margin: 4px 0 8px; }
.pt-addon p { font-size: 14.5px; color: var(--ink-soft); max-width: 62ch; }
.pt-creds { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--coral);
  font-weight: 600; margin-top: 8px; }
.pt-policies { list-style: none; padding: 0; }
.pt-policies li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid #eee;
  font-size: 14.5px; color: var(--ink-soft); }
.pt-policies li::before { content: "→"; position: absolute; left: 0; color: var(--coral); }
@media (max-width: 1020px) and (min-width: 701px) { .pt-tiers { grid-template-columns: repeat(3, 1fr); gap: 18px; } .pt-tier { padding: 22px 18px; } }
@media (max-width: 700px) { .pt-tiers { grid-template-columns: 1fr; } }

/* ---- Intuition Fitness brand layer (scoped to /personal-training only) ----
   Palette + faces from Sam Dillie's Intuition Fitness Branding Kit (2026-06).
   Everything here is namespaced under .page-personal-training so the rest of
   the SPIRE site keeps its coral identity untouched. */
.page-personal-training {
  --if-green: #506E39;
  --if-green-deep: #3D5429;
  --if-lime: #E9F5C1;
  --if-cream: #F1ECDA;
}
/* Sam's Intuition portrait is a near-square studio frame, not the tall team
   headshot crop — give it a wider column and let the bio wrap beside it. */
@media (min-width: 701px) {
  .page-personal-training .bio-grid { grid-template-columns: 520px 1fr; gap: 48px; }
}
.if-lockup { display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 8px 24px 0; }
.if-mark { width: 64px; height: 64px; flex: none; }
.if-wordmark { font-family: 'Young Serif', Georgia, serif; font-size: 30px; line-height: 1;
  color: var(--if-green); }
.if-sub { font-family: 'Cabin', 'Poppins', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 2.2px; text-transform: uppercase; color: var(--if-green); margin-top: 7px; }
.page-personal-training .pt-tag,
.page-personal-training .pt-creds,
.page-personal-training .pt-tier li::before,
.page-personal-training .pt-policies li::before { color: var(--if-green); }
.page-personal-training .pt-featured { border-color: var(--if-green);
  box-shadow: 0 12px 34px rgba(80,110,57,.16); }
.page-personal-training .pt-addon { background: var(--if-lime); border-color: var(--if-green); }
/* primary = solid Intuition green; secondary (bare .btn) = outlined green */
.page-personal-training .btn-coral { background: var(--if-green); border-color: var(--if-green); }
.page-personal-training .btn-coral:hover { background: var(--if-green-deep); border-color: var(--if-green-deep); }
.page-personal-training :is(.pt-tier, .pt-addon, .bio-grid, .pt-assess, .pt-tiers-cta) .btn:not(.btn-coral) {
  background: transparent; color: var(--if-green); border-color: var(--if-green); }
.page-personal-training :is(.pt-tier, .pt-addon, .bio-grid, .pt-assess, .pt-tiers-cta) .btn:not(.btn-coral):hover {
  background: var(--if-green); color: var(--white); }
@media (max-width: 560px) {
  .if-lockup { gap: 12px; }
  .if-mark { width: 50px; height: 50px; }
  .if-wordmark { font-size: 23px; }
  .if-sub { font-size: 9.5px; letter-spacing: 1.6px; }
}

/* ---------- mobile navigation + small-screen fixes ---------- */
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: currentColor;
  margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.topbar.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.topbar.open .nav-toggle span:nth-child(2) { opacity: 0; }
.topbar.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 1280px) {
  .nav-toggle { display: block; color: inherit; }
  .nav { display: none; }
  .topbar.open .nav { display: flex; flex-direction: column; align-items: flex-start;
    gap: 4px; width: 100%; padding: 12px 4px 16px; margin-left: 0; }
  .topbar.open .nav a { padding: 10px 4px; font-size: 16px; width: 100%; }
  .topbar-in { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .section { padding: 48px 0; }
  .hero-grid { padding: 70px 20px 110px; }
  .pagehero { padding: 40px 0 4px; }
}
