/* ---------------------------------

   Willow & Hue

   --------------------------------- */

:root {

    --cream: #fbf5e9;

    --cream-dark: #f2e7d2;

    --paper: #fffdf8;

    --brown: #5f4434;

    --brown-light: #866858;

    --willow: #8e9d22;

    --willow-dark: #555e14;

    --willow-light: #dce5d8;

    --peach: #e5a26f;

    --yellow: #fabc35;

    --text: #54443a;

    --muted: #7b6b61;

    --max-width: 1180px;

    --radius-small: 14px;

    --radius: 24px;

    --radius-large: 40px;

    --shadow:

        0 16px 40px rgba(82, 59, 43, 0.10);

}

/* ---------------------------------

   RESET

   --------------------------------- */

* {

    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    margin: 0;

    background: var(--paper);

    color: var(--text);

    font-family:

        -apple-system,

        BlinkMacSystemFont,

        "Segoe UI",

        sans-serif;

    line-height: 1.6;

}

img {

    display: block;

    max-width: 100%;

}

a {

    color: inherit;

    text-decoration: none;

}

button {

    font: inherit;

}

/* ---------------------------------

   TYPOGRAPHY

   --------------------------------- */

h1,

h2,

h3 {

    margin-top: 0;

    color: var(--brown);

    font-family: Georgia, "Times New Roman", serif;

    line-height: 1.08;

}

h1 {

    font-size: clamp(3rem, 6vw, 5.8rem);

    letter-spacing: -0.045em;

    margin-bottom: 26px;

}

h1 span,

h2 span {

    color: var(--willow);

}

h2 {

    font-size: clamp(2.3rem, 4vw, 4rem);

    letter-spacing: -0.035em;

    margin-bottom: 20px;

}

h3 {

    font-size: 1.35rem;

}

p {

    margin-top: 0;

}

.eyebrow {

    color: var(--peach);

    font-size: 0.78rem;

    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;

}

/* ---------------------------------

   LAYOUT

   --------------------------------- */

.container {

    width: min(calc(100% - 40px), var(--max-width));

    margin-inline: auto;

}

/* ---------------------------------

   HEADER

   --------------------------------- */

.site-header {

    position: relative;

    z-index: 2;

    background: var(--cream);

}

.header-inner {

    min-height: 100px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}

.brand {

    display: flex;

    align-items: center;

    flex-shrink: 0;

}

.brand-logo {

    display: block;

    width: auto;

    height: 68px;

    object-fit: contain;

}

.main-nav {

    display: flex;

    align-items: center;

    gap: 34px;

    font-size: 0.95rem;

    font-weight: 600;

}

.main-nav a {

    transition:

        color 160ms ease,

        transform 160ms ease;

}

.main-nav a:hover {

    color: var(--willow-dark);

    transform: translateY(-1px);

}

.menu-toggle {

    display: none;

    width: 44px;

    height: 44px;

    border: 0;

    background: transparent;

    cursor: pointer;

}

.menu-toggle span {

    display: block;

    width: 24px;

    height: 2px;

    margin: 5px auto;

    background: var(--brown);

}

/* ---------------------------------
   HERO: FLOATING BOOK COVERS
   --------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 2rem;

    min-height: 620px;
    padding-top: 120px;
    padding-bottom: 65px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 600px;
}

.hero .eyebrow { margin-bottom: 22px; }

.hero h1 {
    margin-bottom: 26px;
    font-size: clamp(2.8rem, 3.3vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero h1 span {
    color: var(--willow);
    white-space: nowrap;
}

.hero-text {
    max-width: 560px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 34px;
}

.hero-book-display {
    position: relative;
    width: 100%;
    height: 390px;
    min-width: 0;
    isolation: isolate;
}

.hero-book {
    position: absolute;
    width: 38%;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.hero-book img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;

    box-shadow:
        0 18px 35px rgba(67, 50, 34, 0.18),
        0 4px 10px rgba(67, 50, 34, 0.08);
}

.hero-book--farm {
    left: -5%;
    top: 55px;
    transform: rotate(-9deg);
    z-index: 1;
}

.hero-book--ocean {
    left: 20%;
    top: 105px;
    transform: rotate(-4deg);
    z-index: 3;
}

.hero-book--jungle {
    left: 44%;
    top: 15px;
    transform: rotate(7deg);
    z-index: 2;
}

.hero-book--pirate {
    left: 70%;
    top: 85px;
    transform: rotate(-7deg);
    z-index: 1;
}

.hero-book--farm:hover {
    transform: rotate(-5deg) translateY(-12px);
}

.hero-book--ocean:hover {
    transform: rotate(0deg) translateY(-12px);
}

.hero-book--jungle:hover {
    transform: rotate(3deg) translateY(-12px);
}

.hero-book--pirate:hover {
    transform: rotate(-3deg) translateY(-12px);
    z-index: 20;
}

.hero-book:hover {
    z-index: 10;
}

/* ---------------------------------

   BUTTONS

   --------------------------------- */

.button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 52px;

    padding: 0 25px;

    border-radius: 999px;

    font-weight: 700;

    transition:

        transform 160ms ease,

        box-shadow 160ms ease,

background 160ms ease;

}

.button:hover {

    transform: translateY(-2px);

}

.button-primary {

    background: var(--willow);

    color: white;

    box-shadow:

        0 8px 20px rgba(95, 122, 103, 0.22);

}

.button-primary:hover {

    background: var(--willow-dark);

}

.button-secondary {

    min-height: 45px;

    background: var(--willow);

    color: var(--paper);

    font-size: 0.9rem;

}

.button-secondary:hover {
    background-color: var(--willow-dark);
}

.button-light {

    background: white;

    color: var(--willow-dark);

}

.text-link {

    color: var(--brown);

    font-weight: 700;

}

/* ---------------------------------

   BENEFITS

   --------------------------------- */

.benefits {

    position: relative;

    z-index: 10;

    padding: 80px 0 90px;

    background: var(--paper);

}

.benefits-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 45px;

}

.benefit {

    text-align: center;

}

.benefit-icon {

    width: 70px;

    height: 70px;

    display: grid;

    place-items: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: var(--cream);

    color: var(--peach);

    font-size: 2rem;

}

.benefit h3 {

    margin-bottom: 10px;

}

.benefit p {

    color: var(--muted);

    font-size: 0.9rem;

}

/* ---------------------------------

   BOOKS

   --------------------------------- */

.books-section {

    padding: 110px 0;

    background: rgba(142, 157, 34, 0.21);

}

.section-heading {

    max-width: 670px;

    margin: 0 auto 65px;

    text-align: center;

}

.section-heading > p:last-child {

    color: var(--muted);

}

.books-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;

}

.book-card {

    padding: 18px 18px 24px;

    border-radius: var(--radius);

    background: rgba(255, 255, 255, 0.66);

    text-align: center;

    transition:

        transform 180ms ease,

        box-shadow 180ms ease;

}

.book-card:hover {

    transform: translateY(-6px);

    box-shadow: var(--shadow);

}

.book-cover {

    overflow: hidden;

    aspect-ratio: 1 / 1;

    margin-bottom: 25px;

    border-radius: var(--radius-small);

    background: var(--cream-dark);

}

.book-cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.book-card h3 {

    margin-bottom: 9px;

}

.book-card p {

    min-height: 70px;

    color: var(--muted);

    font-size: 0.9rem;

}

/* ---------------------------------

   ABOUT

   --------------------------------- */

.about-section {

    padding: 120px 0;

}

.about-grid {

    display: grid;

    grid-template-columns: 0.95fr 1fr;

    align-items: center;

    gap: 80px;

}

.about-artwork {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 460px;

    padding: 30px;

    border-radius: var(--radius-large);

    background: var(--cream);

    overflow: hidden;

}

.about-artwork img {

    display: block;

    width: 100%;

    max-width: 500px;

    height: auto;

    object-fit: contain;

}

.about-copy > p:not(.eyebrow) {

    max-width: 560px;

    color: var(--muted);

    font-size: 1.05rem;

}

/* ---------------------------------

   FREE COLOURING CTA

   --------------------------------- */

.colouring-cta {

    padding: 20px 0 110px;

}

.cta-card {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

    padding: 55px 65px;

    border-radius: var(--radius-large);

    background: var(--willow-dark);

    color: white;

}

.cta-card h2 {

    margin-bottom: 10px;

    color: white;

}

.cta-card p:not(.eyebrow) {

    margin-bottom: 0;

}

.cta-card .eyebrow {

    color: var(--yellow);

}

/* =========================================================

   FOOTER

   ========================================================= */

.site-footer {

    padding: 38px 0 22px;

    background: var(--brown);

    color: var(--cream);

}

.footer-main {

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 35px;

}

.footer-brand {

    justify-self: start;

}

.footer-brand img {

    display: block;

    width: auto;

    height: 54px;

    opacity: 0.95;

}

.footer-nav {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

}

.footer-nav a,

.footer-social a {

    color: var(--cream);

    text-decoration: none;

    font-size: 0.88rem;

    opacity: 0.9;

    transition: opacity 0.2s ease;

}

.footer-nav a:hover,

.footer-social a:hover {

    opacity: 1;

}

.footer-social {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 18px;

}

.footer-social a {

    font-weight: 700;

}

.footer-bottom {

    margin-top: 25px;

    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);

    text-align: center;

}

.footer-bottom p {

    margin: 0;

    color: var(--cream);

    font-size: 0.78rem;

    opacity: 0.7;

}

.site-footer .footer-social { gap: 10px; }

.site-footer .social-link {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 40px;

    height: 40px;

    border-radius: 50%;

    transition:

background 0.2s ease,

        transform 0.2s ease;

}

.site-footer .social-link img {

    display: block;

    width: 22px;

    height: 22px;

    object-fit: contain;

    filter: brightness(0) invert(1);

}

.site-footer .social-link:hover {

    background: rgba(255, 255, 255, 0.1);

    transform: translateY(-2px);

}

/* ---------------------------------
   RESPONSIVE: TABLET
   --------------------------------- */

@media (max-width: 1024px) {
    .hero-inner { gap: 1.5rem; min-height: 540px; }
    .hero-book { width: 36%; }
    .hero-book-display { height: 330px; }
    .hero-book--farm { left: 0%; }
    .hero-book--ocean { left: 23%; }
    .hero-book--jungle { left: 45%; }
    .hero-book--pirate { left: 68%; }
}

@media (max-width: 900px) {
    .benefits-grid, .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-copy { text-align: center; }
    .about-copy > p:not(.eyebrow) { margin-inline: auto; }
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 7vw, 3.5rem);
    }
    .hero-copy { max-width: 650px; }

    .hero-book {
        width: 32%;
    }

    .hero-book--farm {
        left: 0%;
        top: 50px;
    }

    .hero-book--ocean {
        left: 22%;
        top: 95px;
    }

    .hero-book--jungle {
        left: 45%;
        top: 15px;
    }

    .hero-book--pirate {
        left: 70%;
        top: 75px;
    }
}

@media (max-width: 750px) {
    .footer-main { grid-template-columns: 1fr; justify-items: center; gap: 25px; text-align: center; }
    .footer-brand { justify-self: center; }
    .footer-nav { flex-wrap: wrap; gap: 12px 22px; }
    .footer-social, .site-footer .footer-social { justify-content: center; }
}

@media (max-width: 650px) {
    .container { width: min(calc(100% - 30px), var(--max-width)); }
    .header-inner { min-height: 76px; }
    .brand-logo { height: 54px; }
    .menu-toggle { display: block; }
    .site-header { position: relative; z-index: 100; }
    .main-nav {
        position: absolute;
        z-index: 1000;
        top: 76px;
        left: 15px;
        right: 15px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 18px;
        background: var(--paper);
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .main-nav a { display: block; padding: 13px 12px; }
    .hero-inner { padding-top: 48px; }
    .hero-copy { text-align: left; }
    .hero .eyebrow { margin-bottom: 16px; }
    .hero h1 { font-size: clamp(2.7rem, 12vw, 4.3rem); }
    .hero-text { max-width: 92%; font-size: 1rem; }
    .hero-actions { justify-content: flex-start; margin-top: 28px; }
    .benefits { padding-top: 70px; }
    .benefits-grid, .books-grid { grid-template-columns: 1fr; }
    .books-grid { max-width: 390px; margin-inline: auto; }
    .benefits-grid { gap: 35px; }
    .cta-card { flex-direction: column; align-items: flex-start; padding: 40px 30px; }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
    }

    .hero-book-display {
        height: 245px;
    }

    .hero-book {
        width: 34%;
    }

    .hero-book--farm {
        left: 0%;
        top: 35px;
    }

    .hero-book--ocean {
        left: 22%;
        top: 65px;
    }

    .hero-book--jungle {
        left: 45%;
        top: 10px;
    }

    .hero-book--pirate {
        left: 69%;
        top: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-book { transition: none; }
}