/* ThinkFoundry — palette taken from the original Canva site */
:root {
  --cream: #fffdf8;      /* page / card background */
  --paper: #faf6ed;      /* header */
  --ivory: #fffaf2;      /* audience section */
  --sand: #f0e5d7;       /* approach section */
  --linen: #efe1d1;      /* enquiry section */
  --blush: #e9d1be;      /* trust strip, lesson section */
  --line: #e8d9ca;
  --clay: #bc7355;       /* programme card */
  --accent: #a44729;     /* terracotta */
  --accent-dark: #8a3a21;
  --ink: #382b24;        /* charcoal text */
  --ink-soft: #55463d;
  --muted: #66594f;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(56, 43, 36, .05), 0 8px 24px rgba(56, 43, 36, .06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .9em; }
.muted { color: var(--muted); }
.intro, .lead { color: var(--muted); max-width: 46rem; }
.lead { font-size: 1.15rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 600 1rem/1.2 var(--sans); padding: .95em 1.5em; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-link { color: var(--ink); padding-left: .4em; padding-right: .4em; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--blush); }
.btn-link:hover { text-decoration-color: var(--accent); }
.btn-small { padding: .7em 1.15em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 237, .94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; } .nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; flex-direction: column; gap: 4px; }
.site-nav.is-open { display: flex; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.site-nav .btn { margin-top: 12px; }
.no-js .site-nav { display: flex; position: static; padding: 0 0 12px; }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 24px; }
.hero-offer { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin: 0; }
.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Trust strip */
.trust { background: var(--blush); }
.trust-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; padding-top: 18px; padding-bottom: 18px; font-weight: 500; color: var(--ink-soft); }
.trust-list span { color: var(--accent); margin-right: .35em; }

/* Sections */
.section { padding: 64px 0; }
.audience { background: var(--ivory); }
.approach { background: var(--sand); }
.lesson { background: var(--blush); }
.enquiry { background: var(--linen); }
.two-col { display: grid; gap: 32px; align-items: start; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; margin-top: 32px; }

.card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: .45em; }

.programme-card { background: var(--clay); color: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.programme-card h3 { color: var(--white); font-size: 1.6rem; font-weight: 400; }
.programme-card .card-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; opacity: .85; margin-bottom: .8em; }
.programme-card li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .3); }

.steps .step-num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--linen); color: var(--accent); font: 600 1rem var(--serif); margin-bottom: 14px; }

.rhythm { counter-reset: none; display: grid; gap: 10px; }
.rhythm li { background: var(--cream); border-radius: var(--radius-sm); padding: 16px 20px; display: flex; gap: 16px; align-items: baseline; font-weight: 500; box-shadow: var(--shadow); }
.rhythm span { font-family: var(--serif); color: var(--accent); font-weight: 600; min-width: 2ch; }

.checklist { display: grid; gap: 4px; }
.checklist li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* FAQ */
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 1.2rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 40px 20px 0; margin: 0; }

/* Enquiry form */
.enquiry-form { background: var(--cream); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid #d9c6b4; border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(164, 71, 41, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .88rem; margin: 6px 0 0; }
.form-note { text-align: center; font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.form-status { margin: 16px 0 0; padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.form-status.is-success { background: #eef3ea; color: #2f5130; border: 1px solid #c8d8c2; }
.form-status.is-error { background: #fbeeec; color: #8a1f17; border: 1px solid #efc7c1; }

/* Footer */
.site-footer { background: var(--ink); color: #e9ddd2; padding: 48px 0 28px; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--white); margin: 0 0 .25em; }
.footer-line { color: #cdbfb3; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a { color: #e9ddd2; text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-meta { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #b5a69a; }
.footer-meta p { margin: 0; }

/* Tablet */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .enquiry-form { padding: 32px; }
}

/* Desktop */
@media (min-width: 960px) {
  .section { padding: 96px 0; }
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 28px; background: none; border: 0; padding: 0; }
  .site-nav a:not(.btn) { border: 0; padding: 6px 0; }
  .site-nav a:not(.btn):hover { color: var(--accent); }
  .site-nav .btn { margin-top: 0; }
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; }
  .hero-media { aspect-ratio: 5 / 6; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 64px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .card { padding: 28px; }
  .enquiry .two-col > div:first-child { position: sticky; top: 110px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}
