/* ============================================================
   MARIGOLD — a neighborhood movement & wellness studio
   Style register: "Drew Barrymore" — warm, approachable, candid,
   rounded, a little playful. Real photography does the work.
   Demo build for the Stack Studios portfolio.
   ============================================================ */

:root {
  /* warm, multi-tone palette */
  --cream:    #FBF5EA;
  --cream-2:  #F4EBDB;
  --paper:    #FFFDF8;
  --ink:      #362B1E;
  --ink-soft: #5F5140;
  --muted:    #8C7C67;
  --clay:     #C6674A;    /* terracotta — primary warm accent */
  --sig:      var(--clay);                                   /* Stack Studios signature — the demo's own accent */
  --sig-line: color-mix(in srgb, var(--sig) 55%, transparent);
  --clay-deep:#AE5539;
  --clay-soft:#EBC9B8;
  --sage:     #7E9070;
  --sage-soft:#DCE3D0;
  --marigold: #E7A63B;    /* sunny accent — used sparingly */
  --hairline: rgba(54,43,30,0.12);
  --hairline-2: rgba(54,43,30,0.07);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "DM Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 140px);
  --r: 20px; --r-lg: 34px; --r-sm: 12px; --pill: 100px;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 50px -24px rgba(120, 78, 45, 0.35);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body {
  margin:0; background:var(--cream); color:var(--ink);
  font-family:var(--body); font-size:17px; line-height:1.65; font-weight:400;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img,svg { display:block; max-width:100%; }
a { color:inherit; text-decoration:none; }
button { font:inherit; cursor:pointer; }
h1,h2,h3,h4 { margin:0; font-family:var(--display); font-weight:500; line-height:1.05; letter-spacing:-0.015em; }
p { margin:0; }
::selection { background:var(--clay); color:#fff; }

/* layout */
.wrap { max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.section { padding-block:var(--section); }
.section-sm { padding-block: clamp(48px,7vw,90px); }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0; }
.skip-link { position:absolute;left:-999px;top:8px;z-index:200;background:var(--ink);color:var(--cream);padding:10px 18px;border-radius:var(--pill); }
.skip-link:focus { left:8px; }

/* type */
.eyebrow { font-family:var(--body); font-weight:600; font-size:0.8rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--clay); display:inline-flex; align-items:center; gap:9px; }
.eyebrow::before { content:""; width:20px; height:20px; border-radius:50%; background:radial-gradient(circle at 50% 45%, var(--marigold) 0 30%, transparent 32%), conic-gradient(from 0deg, var(--marigold) 0 100%); -webkit-mask:radial-gradient(circle at 50% 50%, transparent 22%, #000 24%); flex:none; opacity:.9; }
.display-xl { font-size:clamp(2.9rem, 7vw, 6rem); font-weight:400; letter-spacing:-0.02em; }
.display-l  { font-size:clamp(2.2rem, 4.6vw, 3.7rem); font-weight:400; }
.display-m  { font-size:clamp(1.6rem, 3vw, 2.4rem); font-weight:500; }
.lede { font-size:clamp(1.1rem, 1.7vw, 1.35rem); line-height:1.6; color:var(--ink-soft); max-width:46ch; }
.muted { color:var(--muted); }
.measure { max-width:58ch; }
em, .fancy { font-style:italic; }

/* focus */
:focus-visible { outline:2.5px solid var(--clay); outline-offset:3px; border-radius:6px; }

/* nav */
.nav { position:sticky; top:0; z-index:100; background:color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter:saturate(150%) blur(10px); -webkit-backdrop-filter:saturate(150%) blur(10px); border-bottom:1px solid var(--hairline-2); }
.nav-in { display:flex; align-items:center; justify-content:space-between; height:70px; }
.brand { display:inline-flex; align-items:center; gap:10px; font-family:var(--display); font-weight:500; font-size:1.35rem; letter-spacing:-0.01em; color:var(--ink); }
.nav-links { display:flex; align-items:center; gap:clamp(18px,2.6vw,34px); list-style:none; margin:0; padding:0; }
.nav-links a { font-size:0.98rem; color:var(--ink-soft); font-weight:500; transition:color .18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color:var(--clay); }
.nav-actions { display:flex; align-items:center; gap:14px; }
.nav-toggle { display:none; background:none; border:0; padding:8px; }
.nav-toggle span { display:block; width:24px; height:2px; background:var(--ink); border-radius:2px; margin:5px 0; }

/* buttons — pill, warm, with a playful bounce */
.btn { display:inline-flex; align-items:center; gap:9px; font-family:var(--body); font-weight:600; font-size:1rem; padding:14px 28px; border-radius:var(--pill); border:2px solid transparent; transition:transform .35s var(--bounce), background .2s, color .2s, border-color .2s; }
.btn-primary { background:var(--clay); color:#fff; }
.btn-primary:hover { background:var(--clay-deep); transform:translateY(-2px) scale(1.03); }
.btn:active, .btn-primary:active, .nav-toggle:active { transform:scale(.97); }
.btn-ghost { background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-ghost:hover { background:var(--ink); color:var(--cream); transform:translateY(-2px) scale(1.03); }
.btn-cream { background:var(--paper); color:var(--ink); box-shadow:var(--shadow); }
.btn-cream:hover { transform:translateY(-2px) scale(1.03); }
.btn-sm { padding:10px 20px; font-size:0.92rem; }
.btn .arw { transition:transform .3s var(--bounce); }
.btn:hover .arw { transform:translateX(4px); }

/* hero */
.hero { padding-top: clamp(40px,6vw,72px); padding-bottom: var(--section); }
.hero-grid { display:grid; grid-template-columns:1.02fr 0.98fr; gap:clamp(32px,5vw,64px); align-items:center; }
.hero h1 { margin-top:20px; }
.hero .lede { margin-top:22px; }
.hero-cta { margin-top:30px; display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.hero-note { margin-top:18px; font-size:0.92rem; color:var(--muted); display:flex; align-items:center; gap:8px; }
.hero-photo { border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow); aspect-ratio:3/3.4; }
.hero-photo img { width:100%; height:100%; object-fit:cover; }
.hero-photo.tilt { transform:rotate(1.4deg); }

/* photos / media */
.photo { border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow); background:var(--cream-2); }
.photo img { width:100%; height:100%; object-fit:cover; display:block; }
.photo-round { border-radius:var(--r-lg); }
.split { display:grid; grid-template-columns:1fr 1fr; gap:clamp(30px,5vw,68px); align-items:center; }
.split.rev .split-media { order:-1; }

/* section header */
.sec-head { max-width:620px; }
.sec-head.center { margin-inline:auto; text-align:center; }
.sec-head .display-l { margin-top:14px; }
.sec-head p { margin-top:16px; }

/* class cards */
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.class-card { background:var(--paper); border-radius:var(--r-lg); padding:30px 28px; box-shadow:0 16px 36px -26px rgba(120,78,45,.4); transition:transform .4s var(--bounce), box-shadow .4s; border:1px solid var(--hairline-2); }
.class-card:hover { transform:translateY(-6px); box-shadow:0 30px 54px -26px rgba(120,78,45,.45); }
.class-card .tag { display:inline-block; font-family:var(--body); font-weight:600; font-size:0.74rem; letter-spacing:.06em; text-transform:uppercase; padding:5px 13px; border-radius:var(--pill); margin-bottom:16px; }
.tag-clay { background:var(--clay-soft); color:var(--clay-deep); }
.tag-sage { background:var(--sage-soft); color:#4f5f43; }
.tag-gold { background:#F5E2BD; color:#9a6d16; }
.class-card h3 { font-size:1.4rem; margin-bottom:8px; }
.class-card p { font-size:0.95rem; color:var(--muted); }
.class-card .meta { margin-top:16px; font-size:0.85rem; color:var(--ink-soft); font-weight:500; display:flex; gap:14px; }

/* schedule strip */
.sched { background:var(--paper); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow); }
.sched-row { display:grid; grid-template-columns:auto 1fr auto auto; gap:18px; align-items:center; padding:18px 26px; border-top:1px solid var(--hairline-2); }
.sched-row:first-child { border-top:0; }
.sched-row .day { font-family:var(--display); font-size:1.05rem; width:52px; }
.sched-row .cls { font-weight:600; }
.sched-row .time, .sched-row .who { color:var(--muted); font-size:0.9rem; }

/* stats / warm band */
.band { background:var(--clay); color:#fff; border-radius:var(--r-lg); padding:clamp(40px,6vw,68px); }
.band.sage { background:var(--sage); }
.band .stat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; text-align:center; }
.band .n { font-family:var(--display); font-size:clamp(2.4rem,5vw,3.6rem); font-weight:400; }
.band .k { margin-top:6px; opacity:.9; font-size:0.95rem; }

/* testimonial */
.quote { max-width:760px; margin-inline:auto; text-align:center; }
.quote blockquote { font-family:var(--display); font-size:clamp(1.5rem,3vw,2.3rem); font-weight:400; line-height:1.25; margin:0; }
.quote .cite { margin-top:22px; display:inline-flex; align-items:center; gap:12px; }
.quote .cite img { width:46px; height:46px; border-radius:50%; object-fit:cover; }
.quote .cite b { font-weight:600; } .quote .cite span { color:var(--muted); font-size:0.9rem; }

/* pricing / first week */
.price-card { background:var(--paper); border-radius:var(--r-lg); padding:36px 32px; box-shadow:var(--shadow); text-align:center; border:2px solid transparent; }
.price-card.feature { border-color:var(--clay); }
.price-card .amt { font-family:var(--display); font-size:3rem; }
.price-card .amt small { font-size:0.34em; color:var(--muted); }
.price-card ul { list-style:none; padding:0; margin:20px 0 26px; text-align:left; display:grid; gap:10px; }
.price-card li { display:flex; gap:10px; font-size:0.95rem; color:var(--ink-soft); }
.price-card li::before { content:""; width:18px; height:18px; border-radius:50%; background:var(--sage-soft); flex:none; margin-top:2px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E9070' stroke-width='3'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E"); background-size:12px; background-repeat:no-repeat; background-position:center; }

/* form */
.field { display:grid; gap:7px; margin-bottom:18px; }
.field label { font-weight:600; font-size:0.9rem; }
.field input, .field select, .field textarea { font:inherit; padding:13px 16px; border:1.5px solid var(--hairline); border-radius:var(--r-sm); background:var(--paper); color:var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline:2.5px solid var(--clay); outline-offset:0; border-color:transparent; }

/* footer */
.footer { background:var(--cream-2); border-top:1px solid var(--hairline-2); padding-block:clamp(52px,7vw,80px) 40px; }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:32px; }
.footer h4 { font-family:var(--body); font-weight:700; font-size:0.78rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:14px; }
.footer nav a { display:block; padding:6px 0; color:var(--ink-soft); font-size:0.94rem; }
.footer nav a:hover { color:var(--clay); }
.footer-bot { display:flex; justify-content:space-between; align-items:center; margin-top:44px; padding-top:24px; border-top:1px solid var(--hairline); flex-wrap:wrap; gap:10px; font-size:0.85rem; color:var(--muted); }
.demo-flag { font-weight:600; font-size:0.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); border:1.5px solid var(--hairline); border-radius:var(--pill); padding:6px 14px; }

/* page hero / crumbs */
.page-hero { padding-top:clamp(40px,6vw,72px); }
.crumbs { font-weight:600; font-size:0.82rem; color:var(--muted); margin-bottom:18px; }
.crumbs a:hover { color:var(--clay); }
.rule { border:0; border-top:1px solid var(--hairline-2); margin:0; }

/* ============================================================
   STACK STUDIOS SIGNATURE — recurring craft, in this demo's own
   accent (--sig). Seam hairline · one orchestrated first-load
   moment · footer mark · press feedback. Style-agnostic by design.
   ============================================================ */
.sig-kicker { display:inline-flex; align-items:center; gap:14px; }
.sig-seam   { display:inline-block; width:34px; height:1px; background:var(--sig); transform-origin:left center; flex:none; }
.sig-mask   { display:block; overflow:hidden; padding-block:.12em; margin-block:-.12em; }
.sig-rule   { display:flex; align-items:center; gap:16px; }
.sig-rule::after { content:""; flex:1; height:1px; background:var(--sig-line); }
.sig-credit  { display:inline-flex; align-items:center; gap:9px; }
.sig-emblem  { width:15px; height:15px; color:var(--sig); flex:none; }
/* marigold: the seam replaces the flower dot on the one hero kicker */
.eyebrow.sig-kicker::before { display:none; }

@media (prefers-reduced-motion: no-preference){
  /* First-load choreography — pure CSS, plays on load once the inline <head>
     bootstrap adds `.js` (synchronous, before first paint). No dependency on any
     script finishing; with JS off or reduced motion the rules simply don't apply
     and all content is fully visible. Seam draws → headline rises from its mask
     → hero items stagger up. */
  .js .sig-seam      { animation:sig-draw .70s var(--ease) .12s both; }
  .js .sig-mask > h1 { animation:sig-rise .85s var(--ease) .18s both; }
  .js .sig-hero      { animation:sig-up   .60s var(--ease) both; }
  .js .sig-d1 { animation-delay:.08s; }
  .js .sig-d2 { animation-delay:.30s; }
  .js .sig-d3 { animation-delay:.40s; }
  @keyframes sig-draw { from{transform:scaleX(0);}        to{transform:scaleX(1);} }
  @keyframes sig-rise { from{transform:translateY(118%);} to{transform:translateY(0);} }
  @keyframes sig-up   { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:none;} }
}

/* reveal + bounce-in */
@media (prefers-reduced-motion: no-preference) {
  .js .fade { opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--bounce); }
  .js .fade.in { opacity:1; transform:none; }
}

/* responsive */
@media (max-width:900px) {
  .hero-grid, .split, .grid-3, .grid-2, .band .stat-grid, .footer-grid { grid-template-columns:1fr; }
  .grid-3, .grid-2 { gap:18px; }
  .band .stat-grid { gap:24px; }
  .split.rev .split-media { order:0; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .hero-photo.tilt { transform:none; }
  .nav-links, .nav-actions .btn-ghost { display:none; }
  .nav-toggle { display:block; }
  .nav-links.open { display:flex; position:fixed; inset:70px 0 auto 0; flex-direction:column; align-items:flex-start; gap:0; background:var(--cream); border-bottom:1px solid var(--hairline); padding:10px var(--gutter) 20px; }
  .nav-links.open li { width:100%; border-top:1px solid var(--hairline-2); }
  .nav-links.open a { display:block; padding:15px 0; font-size:1.1rem; }
  .sched-row { grid-template-columns:auto 1fr; row-gap:4px; }
  .sched-row .time, .sched-row .who { grid-column:2; }
}
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
