*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Fredoka One only ships one real weight — requesting 600 forces the browser
   to synthesize extra boldness on top of an already-bold face. Use 'normal'. */
h1, h2, h3, h4, h5, .display {
    font-family: var(--font-display);
    font-weight: normal;
    line-height: 1.15;
    color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }

p { line-height: 1.65; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 88px 0; position: relative; }
.section-sm { padding: 56px 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.78rem;
    color: #b47c2e;
    background: #FFEEC2;
    padding: 5px 16px;
    border-radius: var(--r-pill);
    margin-bottom: 16px;
}
.eyebrow.on-dark { background: rgba(255,255,255,0.15); color: var(--white); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }

.text-center { text-align: center; }
.muted { color: var(--muted); }

.bg-cream { background: var(--cream); }
.bg-navy { background: var(--grad-navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy .muted { color: rgba(255,255,255,0.65); }
.bg-blue { background: var(--section-blue); color: var(--white); }
.bg-blue h2, .bg-blue h3 { color: var(--white); }
.bg-blue .muted, .bg-blue p { color: rgba(255,255,255,0.85); }
.bg-teal { background: var(--section-teal); color: var(--white); }
.bg-teal h2, .bg-teal h3 { color: var(--white); }
.bg-teal .muted { color: rgba(255,255,255,0.8); }

.grid {
    display: grid;
    gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .section { padding: 56px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Wavy section divider */
.wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    transform: rotate(180deg);
}
.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}
.wave-top svg, .wave-bottom svg { width: 100%; height: 60px; display: block; }

/* Decorative blobs */
.decor {
    position: absolute;
    pointer-events: none;
    opacity: 0.9;
    z-index: 0;
}
.decor-star { width: 28px; height: 28px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--navy);
    color: var(--white);
    padding: 12px 20px;
    z-index: 10000;
    border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

::selection { background: var(--yellow); color: var(--navy); }

/* Focus states for keyboard navigation, applied once globally */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--ocean);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}
