/* =========================================================
   Kutitap Collective – styles
   Change the colours here and they update everywhere.
   ========================================================= */
:root {
  --ink: #16182B;        /* main text, dark sections */
  --berry: #B0124A;      /* main accent (buttons, labels) */
  --berry-dark: #8E0E3C; /* button hover */
  --pink-light: #F7B6CB; /* accent on dark backgrounds */
  --gold: #E0A82E;       /* logo star */
  --grey-bg: #F6F5F8;    /* light section background */
  --line: #E8E8EE;       /* borders */
  --body: #4B4E63;       /* paragraph text */
  --muted: #6A6D82;      /* small text */
  --heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --text: 'Inter', system-ui, sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--text); color: var(--ink); background: #fff; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); margin: 0; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
section { padding: 104px 0; }
.section-grey { background: var(--grey-bg); }
.section-dark { background: var(--ink); color: #fff; padding: 96px 0; }

/* ---------- Text ---------- */
.eyebrow { display: block; font-size: 15px; font-weight: 600; color: var(--berry); margin-bottom: 14px; }
.eyebrow-pink { color: var(--pink-light); }
h1 { font-weight: 800; font-size: 60px; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-weight: 700; font-size: 42px; line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-weight: 700; font-size: 22px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--body); max-width: 560px; }
.lead-light { color: #C9CAD6; font-size: 18px; margin-top: 16px; }
.body-text { font-size: 18px; line-height: 1.7; color: var(--body); }
.body-text p + p { margin-top: 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.5; }
.dark { color: var(--ink); font-weight: 600; }
.link-accent { color: var(--berry); font-weight: 500; }
.link-pink { color: var(--pink-light); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 15px 24px; border-radius: 10px; text-align: center; border: 1.5px solid transparent; cursor: pointer; font-family: var(--text); transition: background .2s, border-color .2s; }
.btn-primary { background: var(--berry); color: #fff; }
.btn-primary:hover { background: var(--berry-dark); }
.btn-dark { background: var(--ink); color: #fff; font-size: 15px; padding: 12px 20px; white-space: nowrap; }
.btn-outline { background: #fff; color: var(--ink); border-color: #C9CAD6; }
.btn-outline:hover { border-color: var(--ink); }
.btn-full { width: 100%; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 32px; padding-top: 18px; padding-bottom: 18px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 10px; font-family: var(--heading); font-weight: 800; font-size: 21px; margin-right: auto; }
.logo span { font-weight: 500; color: var(--muted); }
.twinkle { fill: var(--gold); animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .55; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.main-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; color: var(--body); }
.main-nav a:hover { color: var(--berry); }

/* ---------- Hero ---------- */
#top { padding: 88px 0 96px; }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero-text .eyebrow { margin-bottom: 0; }
.tagline { font-size: 16px; color: var(--muted); }
.tagline strong { color: var(--ink); font-weight: 600; }
.hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.hero-panel { background: var(--ink); color: #fff; border-radius: 20px; aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 40px; position: relative; overflow: hidden; }
.hero-star { position: absolute; top: 40px; right: 40px; width: 96px; height: 96px; fill: var(--gold); animation: twinkle 3.2s ease-in-out infinite; }
.hero-panel-big { font-family: var(--heading); font-weight: 800; font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; }
.hero-panel-small { font-size: 16px; line-height: 1.5; color: #C9CAD6; }

/* ---------- Registration strip ---------- */
.trust { padding: 28px 0; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: center; font-size: 15px; }
.trust-grid a { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.trust-grid strong { font-weight: 600; }

/* ---------- Two-column sections ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about { grid-template-columns: 0.9fr 1.1fr; }
.programmes { grid-template-columns: 0.8fr 1.2fr; }
.programmes .body-text { font-size: 17px; margin-top: 16px; }
.signup { align-items: center; }

/* ---------- Service cards ---------- */
.section-head { max-width: 680px; margin-bottom: 40px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--berry); transform: translateY(-2px); }
.card p { font-size: 16px; line-height: 1.6; color: var(--body); }
.card-num { font-family: var(--heading); font-weight: 700; font-size: 15px; color: var(--berry); }
.card-dark { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; justify-content: space-between; gap: 20px; }
.card-dark h3 { line-height: 1.3; }

/* ---------- Accordion ---------- */
.accordion { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.accordion li { border-bottom: 1px solid var(--line); }
.acc-btn { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; min-height: 64px; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--heading); font-weight: 600; font-size: 21px; }
.acc-btn:focus-visible { outline: 2px solid var(--berry); outline-offset: 4px; border-radius: 4px; }
.acc-btn svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--berry); stroke-width: 2; stroke-linecap: round; transition: transform .2s; }
.acc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-static { min-height: 64px; padding: 20px 0; display: flex; align-items: center; font-family: var(--heading); font-weight: 600; font-size: 21px; }
.acc-panel p { padding-bottom: 22px; font-size: 16px; line-height: 1.6; color: var(--body); max-width: 600px; }
.acc-panel a { color: var(--berry); }

/* ---------- Sign-up form ---------- */
.form-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 32px; }
.form-card form { display: flex; flex-direction: column; gap: 16px; }
.form-card label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.form-card input, .form-card select { min-height: 50px; padding: 0 14px; border-radius: 10px; border: 1.5px solid #C9CAD6; font: 400 16px var(--text); background: #fff; color: var(--ink); }
.form-card input:focus, .form-card select:focus { outline: 2px solid var(--berry); outline-offset: 1px; }
.form-card input.invalid { border-color: #A0103F; }
.form-error { color: #A0103F; font-size: 15px; font-weight: 600; }
.form-success { display: flex; flex-direction: column; gap: 10px; }
.form-success strong { font-family: var(--heading); font-size: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; font-size: 15px; }
.footer-name { display: block; font-family: var(--heading); font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.footer-grid .muted { line-height: 1.6; max-width: 340px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--berry); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 32px; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 860px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  #top { padding: 56px 0 64px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .main-nav { display: none; }
  .hero, .two-col, .about, .programmes, .trust-grid, .card-grid, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .button-row { flex-direction: column; }
  .button-row .btn { width: 100%; }
  .form-card { padding: 24px; }
  .hero-panel { aspect-ratio: auto; min-height: 320px; padding: 28px; }
  .hero-star { top: 28px; right: 28px; width: 64px; height: 64px; }
  .hero-panel-big { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .twinkle, .hero-star, .card { animation: none; transition: none; }
}
