/* ==========================================================================
   Room for Blooming — Global Styles
   Palette: yellow-led, white background, orange support, green/blue accents
   Fonts: Fraunces (headings), Nunito Sans (body)
   ========================================================================== */

/* 1. Variables
   ========================================================================== */
:root {
    /* Yellows */
    --bloom-yellow: #FFC93C;
    --butter: #FFE79A;
    --honey: #E8A800;

    /* Oranges */
    --marigold: #F28C28;
    --apricot: #FFC48A;

    /* Neutrals */
    --white: #FFFFFF;
    --cream: #FFF8E6;
    --ink: #3A2B12;

    /* Accents */
    --leaf: #5E8B3E;
    --sky: #4FA3C7;

    /* Type */
    --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Nunito Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    /* Layout */
    --container: 1120px;
    --container-narrow: 760px;
    --radius: 16px;
    --radius-small: 10px;
    --shadow: 0 4px 14px rgba(58, 43, 18, 0.10);
    --shadow-hover: 0 10px 24px rgba(58, 43, 18, 0.16);
    --transition: 0.2s ease;
}

/* 2. Reset and base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); transition: color var(--transition); }
a:hover { color: var(--honey); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 16px; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
}

/* 3. Layout helpers
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow { max-width: var(--container-narrow); }
.center { text-align: center; }

.section { padding: 80px 0; }
.section-cream { background: var(--cream); }
.section-yellow { background: var(--bloom-yellow); }

.section-lead {
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--ink);
    color: var(--cream);
    padding: 10px 16px;
    border-radius: var(--radius-small);
    z-index: 200;
}
.skip-link:focus { left: 8px; color: var(--cream); }

/* 4. Buttons
   ========================================================================== */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.center-row { justify-content: center; }

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-small { padding: 9px 20px; font-size: 0.95rem; }

.btn-primary { background: var(--marigold); color: var(--ink); }
.btn-primary:hover { background: var(--honey); color: var(--ink); }

.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #4d3a1a; color: var(--cream); }

.btn-accent { background: var(--marigold); color: var(--ink); }
.btn-accent:hover { background: var(--apricot); color: var(--ink); }

.text-link {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--marigold);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}
.text-link:hover { color: var(--ink); text-decoration-color: var(--honey); }

/* 5. Header and navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 3px solid var(--bloom-yellow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bloom-yellow);
    border: 4px solid var(--honey);
    flex-shrink: 0;
}

.site-nav ul { display: flex; align-items: center; gap: 28px; }

.site-nav a:not(.btn) {
    text-decoration: none;
    font-weight: 600;
    padding: 6px 0;
    border-bottom: 3px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--bloom-yellow); }

.nav-toggle {
    display: none;
    background: var(--bloom-yellow);
    color: var(--ink);
    border: 0;
    border-radius: 999px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

/* 6. Hero
   ========================================================================== */
.hero {
    background: var(--bloom-yellow);
    padding: 100px 0 90px;
    border-bottom: 6px solid var(--butter);
}

.hero-inner { max-width: var(--container); }
.hero h1 { max-width: 14ch; }
.hero-lead { font-size: 1.3rem; max-width: 40em; margin-bottom: 0; }

.eyebrow {
    display: inline-block;
    background: var(--cream);
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* 7. Cards
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: var(--white);
    border: 2px solid var(--butter);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card p:last-child { margin-bottom: 0; }

.card-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bloom-yellow);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.card-green { border-top: 8px solid var(--leaf); }
.card-blue { border-top: 8px solid var(--sky); }
.card-orange { border-top: 8px solid var(--marigold); }

/* 8. Footer
   ========================================================================== */
.site-footer {
    background: var(--ink);
    color: var(--cream);
    padding-top: 64px;
}

.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--bloom-yellow); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--bloom-yellow);
    margin-bottom: 12px;
}

.footer-heading {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    color: var(--butter);
    margin-bottom: 14px;
}

.footer-nav li { margin-bottom: 8px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 248, 230, 0.2);
    padding: 20px 0;
    font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* 9. Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .card-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .section { padding: 60px 0; }
    .hero { padding: 70px 0 60px; }
}

@media (max-width: 760px) {
    body { font-size: 17px; }

    .nav-toggle { display: inline-block; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 3px solid var(--bloom-yellow);
        padding: 12px 24px 24px;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
}

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