/* Teakwood Learning Center: "storybook tree". Bark and leaf from the logo,
   cream paper grain, a soft serif like the TEAKWOOD wordmark, arched frames
   like the canopy, and LEARN / GROW / THRIVE in the logo's three colours. */
:root {
  --bark: #6B4226; --bark-dk: #3B2616; --leaf: #6BA539; --leaf-dk: #3F7422; --blue: #2E6DB4;
  --plum: #7D4A9E; --amber: #C46E14; --cream: #FBF6EC; --paper: #FFFDF7;
  --bg: var(--cream); --surface: #F3EAD7; --ink: #33251A; --heading: var(--bark-dk); --muted: #6A5A4B; --line: #E4D6BC;
  --brand: var(--leaf-dk); --brand-ink: #fff; --accent: var(--amber); --kicker: var(--bark);
  --font-d: "Fraunces", Georgia, serif; --font-b: "Nunito", system-ui, sans-serif;
  --btn-r: 12px; --card-r: 18px; --photo-r: 999px 999px 18px 18px; --field-r: 10px;
  --btn-shadow: 0 10px 22px -12px rgba(63, 116, 34, 0.8); --dur: 220ms; --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --foot-bg: var(--bark-dk); --foot-ink: #F7EEDC; --cta-bg: var(--bark); --cta-ink: #FFF7E8;
  --ring: rgba(107, 165, 57, 0.25); --chip-bg: var(--paper); --nav-active: #EADFC6; --link: var(--leaf-dk);
}
body::before { /* paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .foot, .hdr { position: relative; z-index: 1; }
.hdr { z-index: 50; background: rgba(251, 246, 236, 0.93); backdrop-filter: blur(8px); }
h1, h2, h3 { font-weight: 600; font-variation-settings: "SOFT" 100, "WONK" 0; letter-spacing: -0.015em; }
h2 { font-style: italic; }
.brand-name { font-family: var(--font-d); color: var(--bark); }

/* Hero: centred title, video framed in a canopy arch */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); text-align: center; }
.hero-in { display: grid; justify-items: center; gap: clamp(2rem, 4vw, 3rem); }
.hero-copy { max-width: 46rem; display: grid; justify-items: center; }
.hero h1 { font-size: clamp(3rem, 1.4rem + 6vw, 6.4rem); line-height: 0.95; font-weight: 700; font-style: normal; }
.hero h1 .w1 { color: var(--blue); } .hero h1 .w2 { color: var(--leaf-dk); } .hero h1 .w3 { color: var(--amber); }
.hero-sub { margin-inline: auto; }
.hero-actions { justify-content: center; }
.hero-visual { position: relative; width: min(100%, 1000px); }
.hero-frame {
  aspect-ratio: 16 / 9; overflow: hidden; border: 10px solid var(--paper);
  border-radius: 50% 50% 22px 22px / 42% 42% 22px 22px;
  box-shadow: 0 40px 70px -40px rgba(59, 38, 22, 0.6);
}
.leaf { position: absolute; z-index: 2; fill: var(--leaf); animation: sway 6s ease-in-out infinite; transform-origin: 50% 100%; }
.leaf .vein { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 1.5; }
.leaf-1 { width: clamp(34px, 4.5vw, 60px); left: -2%; top: 12%; rotate: -35deg; }
.leaf-2 { width: clamp(26px, 3.2vw, 44px); right: 3%; top: -4%; rotate: 25deg; fill: #88BF4F; animation-delay: -2s; }
.leaf-3 { width: clamp(30px, 3.8vw, 52px); right: -2%; bottom: 14%; rotate: 60deg; fill: var(--leaf-dk); animation-delay: -4s; }
@keyframes sway { 50% { translate: 6px 4px; } }

/* Photos with arched tops, like windows under the tree */
.strip-item img { border-radius: 999px 999px 16px 16px; border: 6px solid var(--paper); box-shadow: 0 20px 34px -24px rgba(59, 38, 22, 0.6); }
.strip-item:nth-child(even) { margin-top: 2.5rem; }

.facts li { border: 1.5px solid var(--line); }
.facts li::before { content: "❧ "; color: var(--leaf); }

/* Age cards: pages from a picture book */
.age { background: var(--paper); border-left: 6px solid var(--c, var(--blue)); border-radius: 6px 18px 18px 6px; box-shadow: 0 16px 30px -24px rgba(59, 38, 22, 0.55); transition: transform var(--dur) var(--ease); }
.age:hover { transform: translateY(-4px) rotate(-0.4deg); }
.age-2 { --c: var(--leaf-dk); } .age-3 { --c: var(--plum); } .age-4 { --c: var(--amber); }
.age-range { color: var(--c, var(--blue)); }
.age h3 { font-style: italic; }
.svc { border-top: 1.5px solid var(--line); }
.svc-num { font-style: italic; color: var(--amber); font-size: 1.3rem; }
.day-photo img { border: 8px solid var(--paper); }

.cta-band {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 40 60'%3E%3Cpath d='M20 58C4 44 2 22 20 2c18 20 16 42 0 56z' fill='%23ffffff' fill-opacity='.05'/%3E%3C/svg%3E");
  background-size: 70px;
}
.cta-band .btn-main { background: var(--leaf); color: var(--bark-dk); }
.cta-band .btn-ghost { color: #FFF7E8; }
.foot-logo { border-radius: 14px; }
.btn-foot { background: var(--leaf); color: var(--bark-dk); }

.page-hero { text-align: left; border-bottom: 1.5px solid var(--line); }
.page-hero h1 { font-style: italic; }
.page-hero::after {
  content: ""; position: absolute; right: 4%; bottom: -30px; width: clamp(120px, 18vw, 220px); aspect-ratio: 40 / 60;
  background: var(--leaf); opacity: 0.18; rotate: 30deg;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 60'%3E%3Cpath d='M20 58C4 44 2 22 20 2c18 20 16 42 0 56z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 60'%3E%3Cpath d='M20 58C4 44 2 22 20 2c18 20 16 42 0 56z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.place { background: var(--paper); border: 1.5px solid var(--line); }

@media (max-width: 860px) {
  .strip-item:nth-child(even) { margin-top: 0; }
  .hero-frame { border-radius: 50% 50% 16px 16px / 34% 34% 16px 16px; border-width: 6px; }
}
