/* ==========================================================================
   Handwriting Champions: global tokens, base, typography, buttons
   Layout system measured from the reference template (1170px container,
   120px section rhythm, Nunito type scale). Colors derived from the logo:
   navy #103A69 (script + ribbon) and gold #EB9B24 (trophy + nib).
   ========================================================================== */

:root {
  /* Brand */
  --color-primary: #103a69;        /* logo navy */
  --color-primary-700: #0b2a4f;
  --color-primary-900: #0a1f3d;    /* headings */
  --color-secondary: #eb9b24;      /* logo gold */
  --color-secondary-400: #f5b53a;  /* CTA fill */
  --color-secondary-600: #c97f12;
  --color-ink-red: #d4405a;        /* notebook margin line, step numerals */
  --color-whatsapp: #1fa855;

  /* Neutrals */
  --color-background: #ffffff;
  --color-surface: #f3f4f7;        /* product tile grey */
  --color-surface-cool: #edf1f7;   /* hero / band backgrounds */
  --color-surface-gold: #fdf1da;   /* deal band */
  --color-surface-sky: #e8f0fa;    /* footer */
  --color-text: #585e72;
  --color-text-strong: #3b4160;
  --color-muted: #6f7488;
  --color-border: #e1e5ee;
  --color-white: #ffffff;
  --color-black: #000000;

  /* Pastel tiles (program details) */
  --tint-gold: #fde9c4;
  --tint-navy: #dfe7f4;
  --tint-rose: #f9dde2;

  /* Type */
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-hand: "Kalam", "Segoe Print", cursive;

  --text-xs: 0.875rem;   /* 14 */
  --text-sm: 0.9375rem;  /* 15 */
  --text-base: 1rem;     /* 16 */
  --text-md: 1.0625rem;  /* 17 */
  --text-lg: 1.125rem;   /* 18 */
  --text-xl: 1.25rem;    /* 20 */
  --text-2xl: 1.5rem;    /* 24 */
  --text-3xl: 2.125rem;  /* 34 */
  --text-4xl: 2.5rem;    /* 40 */
  --text-5xl: 2.875rem;  /* 46 */
  --text-6xl: 4rem;      /* 64 */

  /* Space & shape */
  --container: 1170px;
  --gutter: 15px;
  --grid-gap: 30px;
  --section-y: 120px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-pill: 45px;

  --shadow-sm: 0 4px 10px rgba(10, 31, 61, 0.05);
  --shadow-md: 0 14px 40px rgba(10, 31, 61, 0.08);
  --shadow-paper: 0 22px 50px rgba(10, 31, 61, 0.16);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.35s;

  --header-h: 83px;
  --topbar-h: 44px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease-out); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-primary-900);
  line-height: 1.2;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  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: 16px; top: -60px; z-index: 1000;
  background: var(--color-primary); color: var(--color-white);
  padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--flush-top { padding-top: 0; }
.section--tight-bottom { padding-bottom: 20px; }

.icon {
  width: 1em; height: 1em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- Section heading (title + sub + wave) ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.section-head__title {
  font-size: var(--text-4xl);
  line-height: 1;
}
.section-head__sub {
  margin-top: 18px;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
}
.wave {
  display: block;
  width: 74px; height: 10px;
  margin: 22px auto 0;
  color: var(--color-secondary);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--color-secondary-400);
  --btn-fg: var(--color-primary-900);
  --btn-bd: var(--color-secondary-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 42px;
  border: 1px solid var(--btn-bd);
  border-radius: 30px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--text-base);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    transform 0.2s var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.btn:hover {
  --btn-bg: var(--color-primary);
  --btn-fg: var(--color-white);
  --btn-bd: var(--color-primary);
  box-shadow: 0 10px 24px rgba(16, 58, 105, 0.22);
}
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--sm { padding: 15px 34px; font-size: var(--text-sm); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--color-primary);
  --btn-bd: var(--color-primary);
  padding: 11px 27px;
  font-size: var(--text-sm);
  font-weight: 700;
}
.btn--outline:hover { --btn-bg: var(--color-primary); --btn-fg: var(--color-white); box-shadow: none; }

.btn--white {
  --btn-bg: var(--color-white);
  --btn-fg: var(--color-primary);
  --btn-bd: var(--color-white);
  padding: 15px 40px;
}
.btn--white:hover { --btn-bg: var(--color-secondary-400); --btn-fg: var(--color-primary-900); --btn-bd: var(--color-secondary-400); }

/* Dashed "stamp" button used by the reference contact CTA */
.btn--dashed {
  position: relative;
  padding: 17px 40px;
  border-color: var(--color-secondary-400);
}
.btn--dashed::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px dashed rgba(10, 31, 61, 0.55);
  border-radius: inherit;
  pointer-events: none;
  transition: border-color var(--dur) var(--ease-out);
}
.btn--dashed:hover::after { border-color: rgba(255, 255, 255, 0.7); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--color-primary);
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 2px;
}
.text-link .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.text-link:hover { color: var(--color-secondary-600); }
.text-link:hover .icon { transform: translateX(4px); }
