/*
 * Montessori Bees front-page (new homepage design, September 2026).
 * Loaded only on the front page, after brand.css and the parent stylesheet.
 */

/* ── design tokens ───────────────────────────────────────────── */
:root {
  --primary: #68869A;
  --deep: #435D6C;
  --deep-shade: #37505E;
  --cream: #F7F3EC;
  --beige: #E8DED1;
  --honey: #D6AE5D;
  --honey-deep: #B98F3E;
  --sage: #A7B5A0;
  --charcoal: #3E4142;
  --pale-green: #E8EFE7;
  --white: #FFFFFF;

  --ink: var(--charcoal);
  --ink-soft: var(--deep);
  --rule: #DDD3C5;

  --fp-display: "Comfortaa", "Futura", "Century Gothic", system-ui, sans-serif;
  --fp-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fp-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 8px;
  --gutter: clamp(20px, 5vw, 72px);
  --head-h: 60px;
}

/* ── global overrides for the front page ────────────────────── */
body.front-page {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--fp-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.front-page h1,
body.front-page h2,
body.front-page h3,
body.front-page h4 {
  font-family: var(--fp-display);
  font-weight: 400;
  color: var(--charcoal);
  text-wrap: balance;
  margin: 0;
}

body.front-page p { margin: 0; }
body.front-page ul, body.front-page ol { margin: 0; padding: 0; list-style: none; }
body.front-page figure, body.front-page figcaption, body.front-page blockquote { margin: 0; }
body.front-page a { color: inherit; }
body.front-page img, body.front-page canvas { max-width: 100%; display: block; }
body.front-page :focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 3px; }

/* ── layout helpers ──────────────────────────────────────────── */
.fp-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.fp-narrow { max-width: 760px; }

/* ── type scale ─────────────────────────────────────────────── */
.fp-eyebrow {
  font-family: var(--fp-body); font-size: 15px; font-style: italic; letter-spacing: 0; text-transform: none;
  color: var(--primary); margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.fp-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--honey); flex: none; }
.fp-lede { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.fp-small { font-size: 15px; color: var(--ink-soft); }
.fp-meta { font-family: var(--fp-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--primary); font-variant-numeric: tabular-nums; }
.fp-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sage); flex: none; }

/* ── buttons ────────────────────────────────────────────────── */
.fp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fp-body); font-size: 16px; font-weight: 600; letter-spacing: .005em;
  padding: 15px 26px; border: 1px solid transparent; border-radius: 0;
  cursor: pointer; text-decoration: none;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.fp-btn svg { flex: none; }
.fp-btn-primary { background: var(--honey); color: var(--charcoal); border-color: var(--honey); }
.fp-btn-primary:hover { background: var(--honey-deep); border-color: var(--honey-deep); color: var(--white); }
.fp-btn-ghost { background: transparent; color: var(--deep-shade); border-color: var(--deep-shade); }
.fp-btn-ghost:hover { background: var(--deep-shade); color: var(--white); }
.fp-btn-on-dark { background: var(--honey); color: var(--charcoal); border-color: var(--honey); }
.fp-btn-on-dark:hover { background: var(--white); border-color: var(--white); }
.fp-btn-sm { padding: 10px 18px; font-size: 14.5px; }

/* ── header ─────────────────────────────────────────────────── */
.fp-site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  background: var(--deep-shade); color: var(--white);
}
.fp-site-head .fp-wrap { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.fp-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--white); margin-right: auto; }
.fp-brand-mark { width: 26px; height: 29px; flex: none; }
.fp-brand-name { font-family: var(--fp-display); font-size: 18px; letter-spacing: .02em; white-space: nowrap; }
.fp-nav { display: flex; gap: 26px; align-items: center; }
.fp-nav a {
  text-decoration: none; font-size: 15px; color: #DCE6EC; padding: 4px 0;
  border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.fp-nav a:hover, .fp-nav a[aria-current="true"] { color: var(--white); border-color: var(--honey); }
.fp-nav-drop { position: relative; }
.fp-nav-drop > button {
  font: inherit; background: none; border: none; padding: 4px 0; margin: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; color: #DCE6EC; border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.fp-nav-drop > button:hover, .fp-nav-drop:focus-within > button { color: var(--white); border-color: var(--honey); }
.fp-nav-drop svg { transition: transform .2s ease; flex: none; }
.fp-nav-drop:hover svg, .fp-nav-drop:focus-within svg { transform: rotate(180deg); }
.fp-nav-drop-menu {
  position: absolute; top: 100%; left: 0; margin-top: 14px; min-width: 210px; z-index: 70;
  background: var(--deep-shade); border: 1px solid rgba(255,255,255,.16); border-radius: 4px;
  padding: 8px; display: none; flex-direction: column; gap: 2px;
  box-shadow: 0 14px 30px rgba(20,25,28,.4);
}
.fp-nav-drop:hover .fp-nav-drop-menu, .fp-nav-drop:focus-within .fp-nav-drop-menu { display: flex; }
.fp-nav-drop-menu a { font-size: 14.5px; padding: 9px 11px; border-radius: 3px; border-bottom: none; }
.fp-nav-drop-menu a:hover { background: rgba(255,255,255,.09); color: var(--white); }
.fp-progress { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--honey); width: 0; }
@media (max-width: 1100px) { .fp-nav { gap: 18px; } .fp-nav a { font-size: 14px; } }
@media (max-width: 860px) { .fp-nav { display: none; } }
@media (max-width: 560px) {
  .fp-site-head .fp-wrap { gap: 12px; }
  .fp-brand-name { font-size: 15.5px; }
  .fp-brand-mark { width: 22px; height: 25px; }
  .fp-site-head .fp-btn-sm { padding: 9px 13px; font-size: 13.5px; }
}

/* ── hero ───────────────────────────────────────────────────── */
.fp-hero { background: var(--cream); padding-block: clamp(44px,6vw,76px) clamp(48px,7vw,88px); position: relative; overflow: hidden; }
.fp-hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(28px,4.5vw,64px); align-items: center; }
body.front-page .fp-hero h1 { margin-bottom: 22px; }
body.front-page .fp-hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
body.front-page .fp-hero h1 em::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .26em;
  background: var(--honey); opacity: .42; z-index: -1; border-radius: 2px;
}
.fp-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.fp-hero-fine { margin-top: 20px; font-size: 14.5px; color: var(--primary); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fp-hero-fine span { display: flex; align-items: center; gap: 7px; }
@media (max-width: 840px) { .fp-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── photo plates ───────────────────────────────────────────── */
.fp-plate { position: relative; border-radius: var(--r); overflow: hidden; background: var(--beige); }
.fp-plate canvas { width: 100%; height: 100%; display: block; }
.fp-plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-plate-box { aspect-ratio: 4/5; max-width: 100%; }
.fp-plate-wide { aspect-ratio: 16/10; max-width: 100%; }

/* ── section rhythm ─────────────────────────────────────────── */
body.front-page section { padding-block: clamp(64px,8vw,116px); }
.fp-band-cream { background: var(--cream); }
.fp-band-white { background: var(--white); }
.fp-band-beige { background: var(--beige); }
.fp-band-green { background: var(--pale-green); }
.fp-band-deep { background: var(--deep-shade); color: #E9F0F4; }
.fp-band-deep h2, .fp-band-deep h3 { color: var(--white); }
.fp-band-deep .fp-lede, .fp-band-deep .fp-small { color: #C6D6DF; }
.fp-band-deep .fp-eyebrow { color: var(--sage); }
.fp-head-block { max-width: 66ch; margin-bottom: clamp(34px,4vw,56px); }

/* ── 5pm section ────────────────────────────────────────────── */
.fp-aches { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; border-top: 1px solid var(--rule); }
.fp-ache {
  display: flex; gap: 20px; padding: 26px 30px 26px 0;
  border-bottom: 1px solid var(--rule);
}
.fp-ache:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 34px; }
.fp-ache:nth-child(even) { padding-left: 34px; }
.fp-ache-n { font-family: var(--fp-mono); font-size: 12px; color: var(--honey-deep); padding-top: 6px; flex: none; font-variant-numeric: tabular-nums; }
.fp-ache p { font-size: 18px; line-height: 1.5; color: var(--charcoal); }
.fp-ache-out { margin-top: 34px; font-size: clamp(19px,2.2vw,23px); line-height: 1.5; color: var(--deep); max-width: 58ch; }
.fp-ache-out b { font-weight: 400; color: var(--charcoal); box-shadow: inset 0 -.42em 0 rgba(214,174,93,.38); }
@media (max-width: 760px) {
  .fp-aches { grid-template-columns: 1fr; }
  .fp-ache:nth-child(odd) { border-right: 0; padding-right: 0; }
  .fp-ache:nth-child(even) { padding-left: 0; }
}

/* ── the turn (before → after) ──────────────────────────────── */
.fp-turn { background: var(--white); padding-block: 0; }
.fp-turn-stage { padding-block: clamp(56px,7vw,92px); }
@media (min-width: 861px) {
  .fp-turn-stage { min-height: 100svh; display: flex; align-items: center; }
  .fp-turn-stage > .fp-wrap { width: 100%; }
}
.fp-turn-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px,4vw,56px); align-items: center; }
.fp-turn-frames { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16/11; background: var(--beige); }
.fp-turn-frames .fp-frame { position: absolute; inset: 0; margin: 0; }
.fp-turn-frames canvas,
.fp-turn-frames img { width: 100%; height: 100%; object-fit: cover; }
.fp-frame-label {
  display: none; position: absolute; left: 12px; bottom: 12px; z-index: 5;
  font-family: var(--fp-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--white); color: var(--deep-shade); padding: 6px 11px; border-radius: 3px;
  box-shadow: 0 2px 10px rgba(62,65,66,.18);
}
.fp-state-chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 5;
  font-family: var(--fp-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--white); color: var(--deep-shade); padding: 7px 12px; border-radius: 3px;
  box-shadow: 0 2px 10px rgba(62,65,66,.18);
}
@media (max-width: 860px) {
  .fp-turn-grid { grid-template-columns: 1fr; gap: 26px; }
  .fp-state-chip { display: none; }
  .fp-frame-label { display: block; }
  .fp-turn-frames { position: static; aspect-ratio: auto; display: grid; gap: 12px; background: transparent; overflow: visible; }
  .fp-turn-frames .fp-frame { position: relative; inset: auto; aspect-ratio: 16/11; border-radius: var(--r); overflow: hidden; background: var(--beige); }
}

/* ── services ───────────────────────────────────────────────── */
.fp-ways { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.2vw,28px); }
.fp-way {
  background: var(--white); border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid var(--rule);
}
.fp-way-top { position: relative; }
.fp-way-verb {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  background: var(--deep-shade); color: var(--white);
  font-family: var(--fp-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 14px;
}
.fp-way-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; gap: 14px; }
body.front-page .fp-way h3 { margin-bottom: 2px; }
.fp-way-facts { display: flex; flex-wrap: wrap; gap: 7px; }
.fp-fact {
  font-family: var(--fp-mono); font-size: 11.5px; letter-spacing: .02em; color: var(--deep);
  border: 1px solid var(--rule); padding: 5px 9px; border-radius: 3px; background: var(--cream);
  font-variant-numeric: tabular-nums;
}
.fp-way-price { font-family: var(--fp-display); font-size: clamp(24px,3vw,30px); color: var(--primary); margin: 4px 0 0; font-weight: 400; }
.fp-way-price-tbc { font-size: 14px; font-family: var(--fp-mono); color: var(--honey-deep); letter-spacing: .04em; }
.fp-way-actions { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.fp-link-under {
  font-size: 14.5px; color: var(--deep-shade); text-decoration: none;
  border-bottom: 1px solid var(--honey); padding-bottom: 2px; transition: color .2s ease;
}
.fp-link-under:hover { color: var(--honey-deep); }
@media (max-width: 980px) { .fp-ways { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ── how it works ───────────────────────────────────────────── */
.fp-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,3vw,44px); }
.fp-step { border-top: 2px solid var(--honey); padding-top: 20px; }
.fp-step-n { font-family: var(--fp-mono); font-size: 12px; letter-spacing: .1em; color: var(--sage); margin-bottom: 10px; display: block; }
body.front-page .fp-step h3 { font-size: 21px; margin-bottom: 9px; }
@media (max-width: 820px) { .fp-steps { grid-template-columns: 1fr; gap: 26px; } }

/* ── about ──────────────────────────────────────────────────── */
.fp-about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px,4vw,64px); align-items: center; }
body.front-page .fp-about-grid p + p { margin-top: 16px; }
.fp-sig { font-family: var(--fp-display); font-size: 25px; color: var(--deep-shade); margin-top: 22px; }
@media (max-width: 840px) { .fp-about-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ── testimonials ───────────────────────────────────────────── */
.fp-quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.4vw,30px); }
.fp-quote { background: var(--white); border-radius: var(--r); padding: 30px 26px 26px; position: relative; border: 1px solid var(--rule); }
.fp-quote::before {
  content: "\201C"; font-family: var(--fp-display); font-size: 56px; line-height: .7; color: var(--honey);
  display: block; margin-bottom: 14px;
}
body.front-page .fp-quote p { font-size: 17px; line-height: 1.6; color: var(--charcoal); }
.fp-quote footer { margin-top: 18px; font-family: var(--fp-mono); font-size: 12px; letter-spacing: .04em; color: var(--primary); text-transform: uppercase; }
@media (max-width: 900px) { .fp-quotes { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; } }

/* ── faq ────────────────────────────────────────────────────── */
.fp-faq { border-top: 1px solid var(--rule); max-width: 840px; }
.fp-faq details { border-bottom: 1px solid var(--rule); }
.fp-faq summary {
  cursor: pointer; list-style: none; padding: 22px 34px 22px 0; position: relative;
  font-family: var(--fp-display); font-size: clamp(17px,2vw,20px); color: var(--charcoal);
}
.fp-faq summary::-webkit-details-marker { display: none; }
.fp-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  border-right: 1.5px solid var(--primary); border-bottom: 1.5px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease;
}
.fp-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.fp-faq .fp-ans { padding: 0 40px 24px 0; color: var(--ink-soft); font-size: 16.5px; max-width: 62ch; }

/* ── final cta ──────────────────────────────────────────────── */
.fp-close-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px,4vw,64px); align-items: center; }
.fp-capture { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r); padding: 26px 24px; }
body.front-page .fp-capture h3 { font-size: 20px; margin-bottom: 8px; }
.fp-field { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.fp-field input {
  flex: 1 1 180px; min-width: 0; font-family: var(--fp-body); font-size: 16px;
  padding: 13px 14px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.95); color: var(--charcoal);
}
.fp-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 860px) { .fp-close-grid { grid-template-columns: 1fr; } }

/* ── footer ─────────────────────────────────────────────────── */
.fp-site-foot { background: var(--charcoal); color: #CFD4D3; padding-block: 48px 40px; font-size: 15px; }
.fp-foot-grid { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; align-items: flex-start; }
.fp-site-foot a { color: #CFD4D3; text-decoration: none; border-bottom: 1px solid transparent; }
.fp-site-foot a:hover { color: var(--white); border-color: var(--honey); }
.fp-foot-links { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.fp-foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #9AA0A0; }

/* ── reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body.front-page * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
