/* ============================================
   HACHI - Children's Book Website
   "Handmade Storybook" Design

   Fonts: Fraunces (headings) + Nunito (body)
   Palette: Parchment, Ink, Amber, Sage, Terracotta
   Features: Paw cursor, CSS watercolor illustrations
   ============================================ */

/* ===== WALCOMEONE FONT ===== */
@font-face {
    font-family: 'Walcomeone';
    src: url('fonts/walcomeone.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Walcomeone';
    src: url('fonts/walcomeone-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== CUSTOM PROPERTIES ===== */
:root {
    --parchment: #F8F4F0;
    --parchment-dark: #EDE9E4;
    --parchment-deep: #DDD8D2;
    --cream: #FEFCFA;
    --ink: #2D3436;
    --ink-medium: #4A5568;
    --ink-light: #718096;
    --ink-faint: #A0AEC0;
    --amber: #4DB572;
    --amber-light: #F7C04A;
    --amber-glow: #E8F5E9;
    --amber-dark: #3A9D5C;
    --terracotta: #E89F5A;
    --terracotta-light: #F0B87A;
    --sage: #3F93D3;
    --sage-dark: #2D7BB8;
    --sage-light: #B8D8F0;
    --dusty-blue: #3F93D3;
    --dusty-blue-light: #D0E8F7;
    --sepia: #2D3436;

    --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.06);
    --shadow-md: 0 6px 24px rgba(45, 52, 54, 0.1);
    --shadow-lg: 0 12px 48px rgba(45, 52, 54, 0.14);
    --shadow-xl: 0 20px 60px rgba(45, 52, 54, 0.18);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --radius-round: 50%;

    --font-display: 'Walcomeone', 'Fraunces', Georgia, serif;
    --font-body: 'Nunito', -apple-system, sans-serif;

    /* Revert: add class="font-original" to <body> to switch back to Fraunces */

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Paw cursor using 🐾 emoji */
    --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 100 100'%3E%3Ctext y='0.9em' font-size='80'%3E%F0%9F%90%BE%3C/text%3E%3C/svg%3E");
    --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 100 100'%3E%3Ctext y='0.9em' font-size='80'%3E%F0%9F%90%BE%3C/text%3E%3C/svg%3E");
}

/* Revert to original Fraunces font — just add class="font-original" to <body> */
body.font-original {
    --font-display: 'Fraunces', Georgia, serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    cursor: var(--cursor-default) 12 14, auto;
}

body {
    font-family: var(--font-body);
    background: var(--parchment);
    color: var(--ink);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: var(--cursor-default) 12 14, auto;
}

/* Paw cursor for interactive elements */
a, button, [role="button"], .slider-btn, .dot, .nav-toggle,
.hero-illustration, .purchase-hachi-img, input[type="submit"],
.btn, .nav-cta, .mobile-sticky {
    cursor: var(--cursor-pointer) 13 15, pointer !important;
}

/* Keep text cursor for input fields */
input[type="text"], input[type="email"], input[type="tel"],
textarea, select {
    cursor: text !important;
}

::selection {
    background: var(--amber-glow);
    color: var(--ink);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--parchment-dark); }
::-webkit-scrollbar-thumb { background: var(--ink-faint); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-light); }

.hidden {
    opacity: 0;
    visibility: hidden;
}

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

/* ===== GRAIN OVERLAY ===== */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.03;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* ===== LOADING SCREEN ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1s var(--ease-smooth), visibility 1s var(--ease-smooth);
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content { text-align: center; }

.loader-book {
    width: 80px;
    height: 60px;
    margin: 0 auto 32px;
    position: relative;
    perspective: 600px;
}

.loader-page {
    position: absolute;
    width: 36px;
    height: 50px;
    background: var(--cream);
    border: 2px solid var(--parchment-deep);
    top: 5px;
}

.loader-page-left {
    left: 2px;
    border-radius: 4px 0 0 4px;
    transform-origin: right center;
    animation: bookPageLeft 1.8s ease-in-out infinite;
}

.loader-page-right {
    right: 2px;
    border-radius: 0 4px 4px 0;
    transform-origin: left center;
    animation: bookPageRight 1.8s ease-in-out infinite;
}

.loader-spine {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 56px;
    background: var(--amber);
    border-radius: 3px;
    top: 2px;
}

@keyframes bookPageLeft {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(-30deg); }
}

@keyframes bookPageRight {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(30deg); }
}

.loader-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -1px;
    margin-bottom: 8px;
    animation: fadeInUp 0.8s var(--ease-out-expo) both;
}

.loader-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-light);
    margin-bottom: 24px;
    font-style: italic;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.15s both;
}

.loader-paws {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

.paw-dot {
    font-size: 1.25rem;
    animation: pawBounce 1.4s ease-in-out infinite;
}
.paw-dot:nth-child(2) { animation-delay: 0.2s; }
.paw-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pawBounce {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-8px) scale(1.15); opacity: 1; }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: all 0.4s var(--ease-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(248, 244, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(45, 52, 54, 0.06);
    padding: 12px 40px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-paw {
    font-size: 1.3rem;
    display: inline-block;
    animation: gentleRock 2s ease-in-out infinite;
}

@keyframes gentleRock {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

.nav-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    transition: color 0.4s var(--ease-smooth);
}

.navbar.scrolled .nav-title { color: var(--ink); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.4s var(--ease-smooth);
    position: relative;
}

.navbar.scrolled .nav-links a { color: var(--ink-medium); }

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: width 0.3s var(--ease-out-expo), background 0.4s var(--ease-smooth);
}

.navbar.scrolled .nav-links a:not(.nav-cta)::after { background: var(--amber); }

.nav-links a:not(.nav-cta):hover { color: #fff; }
.navbar.scrolled .nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    background: var(--amber);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out-expo) !important;
    letter-spacing: 0.06em;
    font-size: 0.8rem !important;
}

.nav-cta:hover {
    background: var(--amber-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(77, 181, 114, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-toggle span {
    background: var(--ink);
}

.nav-toggle.active span {
    background: #fff !important;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 120px 60px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    width: 100%;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hachi-hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-text {
    max-width: 460px;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--amber);
    margin-bottom: 12px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s both;
}

.hero-title { margin-bottom: 20px; line-height: 1.1; }

.title-hi {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}

.title-name {
    display: block;
    font-family: var(--font-display);
    font-size: 5.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -3px;
    line-height: 1;
    margin: 4px 0 8px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.7s both;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.title-paw {
    font-size: 2.5rem;
    display: inline-block;
    vertical-align: middle;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s both;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.9s both;
}

.hero-quote-bubble {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px 16px 16px 4px;
    padding: 14px 20px 14px 16px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 1s both;
    max-width: 460px;
}

.quote-paw-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.hero-quote {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    min-height: 1.6em;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 16px 36px;
    border: none;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--amber);
    color: #fff;
    box-shadow: 0 4px 16px rgba(77, 181, 114, 0.25);
}

.btn-primary:hover {
    background: var(--amber-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(77, 181, 114, 0.35);
}

.btn-primary:active { transform: translateY(-1px); }

.btn-arrow { transition: transform 0.3s var(--ease-out-expo); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-paw-icon { font-size: 1.1rem; transition: transform 0.3s ease; }
.btn:hover .btn-paw-icon { animation: gentleRock 0.4s ease-in-out infinite; }

.btn-large { font-size: 1.1rem; padding: 20px 44px; }
.btn-full { width: 100%; justify-content: center; }

.btn-outline {
    background: transparent;
    color: var(--amber);
    border: 2px solid var(--amber);
}

.btn-outline:hover {
    background: var(--amber);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(77, 181, 114, 0.25);
}

.btn-outline:active { transform: translateY(-1px); }

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out-expo) 1.15s both;
}

.hero-cta { animation: none; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: fadeInUp 1s var(--ease-out-expo) 2s both;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.scroll-indicator:hover .scroll-mouse {
    opacity: 0.8;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%   { opacity: 1; top: 6px; }
    50%  { opacity: 0; top: 18px; }
    51%  { opacity: 0; top: 6px; }
    100% { opacity: 1; top: 8px; }
    100% { top: 100%; }
}

/* ===== WAVE DIVIDERS ===== */
.wave-divider {
    position: relative;
    z-index: 5;
    margin-top: -1px;
    line-height: 0;
}

.wave-divider svg {
    width: 100%;
    height: 80px;
    display: block;
}

.wave-to-about { color: var(--parchment); margin-top: -80px; }
.wave-to-parents { color: var(--parchment); margin-top: -80px; }


/* ===========================================================
   SPLIT SECTION — image one side, text the other
   =========================================================== */

.split-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 600px;
    overflow: hidden;
}

.split-image {
    position: relative;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.split-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 48px;
    background: var(--cream);
}

.split-content .story-card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border: none;
    padding: 0;
    max-width: 520px;
    text-align: center;
}

.split-reverse .split-image { order: 2; }
.split-reverse .split-content { order: 1; }

.story-heading {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 24px;
}

/* ===========================================================
   FAMILY SECTION — single-column, heading over image
   =========================================================== */

.family-section {
    background: #fff;
    padding: 96px 24px;
    text-align: center;
}

.family-header {
    max-width: 720px;
    margin: 0 auto 48px;
}

.family-header .story-heading {
    margin-bottom: 12px;
}

.family-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--ink-medium);
    line-height: 1.6;
    margin-bottom: 16px;
}

.family-image {
    max-width: 720px;
    margin: 0 auto;
}

.family-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================================================
   THE BOOK — full-width split section
   =========================================================== */

.book-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

.book-split-text {
    background: var(--parchment);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 80px 48px 80px 48px;
}

.book-split-text-inner {
    max-width: 480px;
}

.book-split-text .section-eyebrow {
    text-align: left;
}

.book-split-text .section-title {
    text-align: left;
    font-size: 2.8rem;
    letter-spacing: -1px;
}

.book-split-text .title-flourish {
    justify-content: flex-start;
    margin: 12px 0 24px;
}

.book-split-subtitle {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--ink-medium);
    line-height: 1.7;
    margin-bottom: 36px;
}

.book-buy-btn {
    align-self: flex-start;
}

.book-split-image {
    position: relative;
    overflow: hidden;
}

.book-split-image-inner {
    width: 100%;
    height: 100%;
}

.book-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===========================================================
   MEET THE TEAM
   =========================================================== */

.team-section {
    background: var(--cream);
    padding: 96px 24px;
    text-align: center;
}

.team-header {
    max-width: 720px;
    margin: 0 auto 64px;
}

.team-header .story-heading {
    margin-bottom: 16px;
}

.team-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--ink-medium);
    line-height: 1.6;
}

.team-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    background: var(--parchment-dark);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.team-role {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.team-bio {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink-medium);
    line-height: 1.6;
}

/* ===========================================================
   CAUSE / WORLD FOR ALL
   =========================================================== */

.cause-section {
    background: var(--parchment-dark);
    padding: 96px 24px;
}

.cause-section .section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.cause-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.cause-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}

.cause-heading {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 8px;
}

.cause-lead {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--ink-medium);
    line-height: 1.65;
}

.cause-lead strong {
    color: var(--ink);
    font-weight: 700;
}

.cause-logo {
    display: inline-block;
    align-self: center;
    margin: 4px 0 8px;
    transition: transform 0.2s ease;
}

.cause-logo img {
    max-width: 180px;
    height: auto;
    display: block;
}

.cause-logo:hover {
    transform: translateY(-2px);
}

.cause-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--parchment-deep);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.cause-link:hover {
    text-decoration-color: var(--ink);
}

.cause-fineprint {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--ink-light);
    line-height: 1.6;
}

.cause-fineprint:first-of-type {
    margin-top: auto;
}

.cause-programs {
    list-style: none;
    padding: 0;
    margin: 48px 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cause-programs li {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--parchment);
    border: 1px solid var(--parchment-deep);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.program-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* ===========================================================
   ILLUSTRATED PARALLAX SECTIONS — AI-generated watercolor images
   =========================================================== */

.parallax-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    inset: -10%;
    z-index: 0;
}

.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.parallax-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 32px;
}

/* Soft overlays for text readability on each scene */
.park-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(248, 244, 240, 0.15) 0%, rgba(248, 244, 240, 0.05) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.rain-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 54, 64, 0.1) 0%, rgba(42, 54, 64, 0.15) 100%);
    z-index: 1;
    pointer-events: none;
}

.sunset-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center bottom, rgba(255, 183, 77, 0.08) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Rain drops — layered on top of the image */
.rain-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.raindrop {
    position: absolute;
    width: 1.5px;
    background: linear-gradient(transparent, rgba(180, 200, 215, 0.5));
    animation: rainFall linear infinite;
}

@keyframes rainFall {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}


/* ===== STORY CARDS (on parallax) ===== */
.story-card {
    background: rgba(248, 244, 240, 0.93);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 52px 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.story-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: iconBreathe 3s ease-in-out infinite;
}

@keyframes iconBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.story-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.6;
    margin-bottom: 20px;
}

.story-paws {
    display: flex;
    gap: 12px;
    justify-content: center;
    font-size: 1rem;
    opacity: 0.4;
}

.story-paws span {
    animation: pawStep 2.5s ease-in-out infinite;
}
.story-paws span:nth-child(2) { animation-delay: 0.3s; }
.story-paws span:nth-child(3) { animation-delay: 0.6s; }

@keyframes pawStep {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.rain-card { background: rgba(248, 244, 240, 0.9) !important; }
.sunset-card { background: rgba(248, 244, 240, 0.88) !important; }


/* ===== SECTION SHARED STYLES ===== */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--amber);
    text-align: center;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--ink);
    text-align: center;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.title-flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 16px 0 48px;
}

.flourish-line {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--parchment-deep);
}

.flourish-paw { font-size: 1.2rem; opacity: 0.5; }


/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 120px 40px;
    background: var(--parchment);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.about-story {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    background: var(--cream);
    padding: 32px 36px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    position: relative;
    border: 1px solid var(--parchment-deep);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-card-num {
    position: absolute;
    top: -10px;
    left: 24px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--amber);
    background: var(--parchment);
    padding: 2px 10px;
    border-radius: 100px;
    letter-spacing: 0.1em;
}

.about-card p {
    font-size: 1.05rem;
    color: var(--ink-medium);
    font-style: italic;
    line-height: 1.85;
}

.about-lessons {
    background: var(--cream);
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--parchment-deep);
}

.about-lessons h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.lesson-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lesson-item {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius-md);
    background: var(--parchment);
    transition: transform 0.4s var(--ease-out-expo);
    border: 1px solid transparent;
}

.lesson-item:hover {
    transform: translateY(-4px);
    border-color: var(--parchment-deep);
}

.lesson-icon { font-size: 2.2rem; margin-bottom: 10px; }

.lesson-item h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.lesson-item p {
    font-size: 0.88rem;
    color: var(--ink-light);
    line-height: 1.5;
}


/* ===== PREVIEW SECTION ===== */
.preview-section {
    padding: 120px 40px;
    background: var(--parchment-dark);
}

.preview-subtitle {
    text-align: center;
    font-style: italic;
    color: var(--ink-light);
    font-size: 1.05rem;
    margin-top: -32px;
    margin-bottom: 48px;
}

.slider-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

.book-frame {
    position: relative;
    background: var(--cream);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(45, 52, 54, 0.06);
    overflow: hidden;
}

.book-spine {
    position: absolute;
    left: 0; top: 0;
    width: 6px; height: 100%;
    background: linear-gradient(90deg, var(--parchment-deep) 0%, var(--parchment-dark) 50%, transparent 100%);
    z-index: 5;
}

.slider { position: relative; overflow: hidden; }

.slide {
    display: none;
    animation: slideIn 0.6s var(--ease-out-expo);
}

.slide.active { display: block; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-page { overflow: hidden; }
.slide-illustration { width: 100%; overflow: hidden; aspect-ratio: 1 / 1; }
.slide-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-text {
    padding: 32px 40px;
    text-align: center;
    background: var(--cream);
}

.slide-quote {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--ink-medium);
    font-style: italic;
    line-height: 1.75;
    margin-bottom: 10px;
}

.slide-page-num {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--amber);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}

.slider-btn {
    width: 44px; height: 44px;
    border-radius: var(--radius-round);
    background: var(--cream);
    border: 1px solid var(--parchment-deep);
    color: var(--ink-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out-expo);
}

.slider-btn:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
    transform: scale(1.08);
}

.slider-dots { display: flex; gap: 10px; }

.dot {
    width: 10px; height: 10px;
    border-radius: var(--radius-round);
    background: var(--parchment-deep);
    border: none;
    transition: all 0.3s var(--ease-out-expo);
}

.dot.active { background: var(--ink); transform: scale(1.3); }
.dot:hover:not(.active) { background: var(--ink-faint); }


/* ===== PARENTS SECTION ===== */
.parents-section {
    padding: 120px 40px;
    background: var(--parchment);
}

.parents-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.parents-image {
    width: 280px;
}

.parents-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(45, 52, 54, 0.1));
    transition: transform 0.5s var(--ease-out-expo);
    animation: gentleFloat 5s ease-in-out infinite;
}

.parents-image img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.parents-text {
    text-align: center;
    max-width: 500px;
    margin: 8px auto 0;
}

.parents-subtitle {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ink-medium);
    line-height: 1.6;
    margin-bottom: 12px;
}

.parents-subtitle:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--ink-light);
}


/* ===== PURCHASE SECTION ===== */
.purchase-section {
    padding: 120px 40px;
    background: var(--parchment-dark);
    position: relative;
    overflow: hidden;
}

.purchase-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -15%;
    width: 50%; height: 200%;
    background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.purchase-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.purchase-hachi { flex-shrink: 0; width: 240px; }

.purchase-hachi-img {
    width: 100%;
    height: auto;
    padding: 10px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: #fff;
    transition: transform 0.5s var(--ease-out-expo);
}

.purchase-hachi-img:hover {
    transform: scale(1.03) rotate(1deg);
}

.purchase-text h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.purchase-text p {
    font-size: 1.05rem;
    color: var(--ink-medium);
    line-height: 1.85;
    margin-bottom: 28px;
}

.purchase-note {
    font-size: 0.82rem !important;
    color: var(--ink-faint) !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.05em;
}


/* ===== CONTACT / WRITE TO US ===== */
.contact-section {
    padding: 120px 40px;
    background: var(--parchment);
}

.contact-header {
    text-align: center;
    margin-bottom: 48px;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--parchment-deep);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="email"] {
    background: #ffffff;
}

.contact-form textarea:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(77, 181, 114, 0.1);
}

.contact-form textarea.error {
    border-color: var(--terracotta);
}

.contact-form .btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
}

.contact-form-banner {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.contact-form-banner.success {
    background: rgba(77, 181, 114, 0.12);
    color: var(--amber-dark);
    border: 1px solid rgba(77, 181, 114, 0.3);
}

.contact-form-banner.error {
    background: rgba(198, 93, 7, 0.08);
    color: var(--terracotta);
    border: 1px solid rgba(198, 93, 7, 0.2);
}

.contact-hidden { display: none; }

@media (max-width: 480px) {
    .contact-form-row { grid-template-columns: 1fr; }
    .contact-section { padding: 72px 20px; }
}


/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, #1E2A30 0%, #2D3436 100%);
    padding: 64px 40px 36px;
    text-align: center;
}

.footer-content {
    max-width: 640px;
    margin: 0 auto;
}

.footer-top {
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-paw { font-size: 1.4rem; }

.footer-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.footer-quote {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 28px;
}

.footer-links {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.footer-links a {
    color: var(--amber);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out-expo);
}

.footer-links a:hover { color: var(--amber); }
.footer-links a:hover::after { width: 100%; }

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 0 auto 24px;
    max-width: 400px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-love {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    font-style: italic;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}


/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 15, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-smooth);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 44px;
    max-width: 560px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.4s var(--ease-out-expo);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border: 1px solid var(--parchment-deep);
}

.modal::-webkit-scrollbar { display: none; }

.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border: none;
    background: var(--parchment);
    border-radius: var(--radius-round);
    font-size: 1.4rem;
    color: var(--ink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover { background: var(--parchment-dark); color: var(--terracotta); }

.modal-step { position: relative; }
.modal-hidden { display: none; }

.modal-header { text-align: center; margin-bottom: 32px; }
.modal-paw { font-size: 2rem; display: block; margin-bottom: 10px; }

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.modal-header p { font-size: 0.9rem; color: var(--ink-light); font-style: italic; }

.modal-price {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 14px;
    padding: 10px 22px;
    background: var(--amber-glow);
    border: 1px solid var(--amber-light);
    border-radius: var(--radius-sm);
}

.modal-price-amount {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--amber-dark);
    line-height: 1;
}

.modal-price-meta {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-medium);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-section-heading {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink-medium);
    margin: 8px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--parchment-deep);
    letter-spacing: 0.02em;
}
.form-section-heading:first-of-type { margin-top: 0; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-row .form-group { margin-bottom: 16px; }

.form-banner {
    background: #FDE8E0;
    border: 1px solid var(--terracotta-light);
    color: var(--terracotta);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.5;
}

.form-page {
    animation: fadeSlideIn 0.3s var(--ease-out-expo);
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

.form-step-indicator {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.form-btn-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.form-secure {
    text-align: center;
    font-size: 0.75rem;
    color: var(--ink-light);
    margin-top: 12px;
    letter-spacing: 0.02em;
}

.success-order-info {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--ink-light);
    background: var(--parchment);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    display: inline-block;
    margin-bottom: 16px;
    word-break: break-all;
}

.modal-success .btn { margin-top: 12px; }

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--parchment-deep);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--parchment);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(77, 181, 114, 0.1);
}

.form-group input.error,
.form-group select.error { border-color: var(--terracotta); }

.state-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--parchment-deep);
    border-radius: var(--radius-sm);
    background: var(--parchment);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234A5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
    cursor: var(--cursor-pointer) 13 15, pointer !important;
}

.state-select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(77, 181, 114, 0.1);
}

.mobile-input-row {
    display: flex;
    gap: 8px;
}

.country-code-select {
    width: 110px;
    flex-shrink: 0;
    padding: 12px 10px;
    border: 1px solid var(--parchment-deep);
    border-radius: var(--radius-sm);
    background: var(--parchment);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: var(--cursor-pointer) 13 15, pointer !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234A5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 26px;
}

.country-code-select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(77, 181, 114, 0.1);
}

.mobile-input-row input[type="tel"] {
    flex: 1;
    min-width: 0;
}

.form-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 0 0;
    border-top: 1px solid var(--parchment-deep, #e2d9cc);
}

.footer-qty {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.footer-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--leaf);
    white-space: nowrap;
    min-width: 36px;
    text-align: center;
}

.footer-next {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--parchment-deep);
    background: var(--parchment);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    cursor: var(--cursor-pointer) 13 15, pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
}

.footer-qty .qty-btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none;
}

.footer-qty .qty-btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: none;
}

.qty-btn:hover {
    background: var(--mint-light, #e0f5e8);
    border-color: var(--leaf);
}

.qty-btn:active {
    background: var(--leaf);
    color: #fff;
}

#quantity {
    width: 36px;
    height: 34px;
    border: 1px solid var(--parchment-deep);
    border-radius: 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-error {
    display: block;
    font-size: 0.78rem;
    color: var(--terracotta);
    margin-top: 4px;
    min-height: 18px;
    font-weight: 600;
}

.form-checkbox {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px; height: 18px;
    accent-color: var(--amber);
    flex-shrink: 0;
}

.form-checkbox label {
    flex: 1;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--ink-medium);
    font-weight: 600;
}

/* ===== SUCCESS SCREEN ===== */
.modal-success {
    text-align: center;
    padding: 32px 8px 20px;
}

/* -- Animated checkmark -- */
.success-anim {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.success-check {
    width: 80px;
    height: 80px;
}

.checkmark-svg {
    width: 80px;
    height: 80px;
}

.checkmark-circle {
    stroke: var(--amber);
    stroke-width: 2.5;
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: circleIn 0.6s ease-out 0.2s forwards;
}

.checkmark-tick {
    stroke: var(--amber);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: tickIn 0.4s ease-out 0.7s forwards;
}

@keyframes circleIn {
    to { stroke-dashoffset: 0; }
}

@keyframes tickIn {
    to { stroke-dashoffset: 0; }
}

/* -- Confetti paws -- */
.success-confetti {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.confetti-paw {
    position: absolute;
    font-size: 1rem;
    opacity: 0;
    animation: pawBurst 1s ease-out 0.9s forwards;
}

.confetti-paw:nth-child(1) { animation-delay: 0.9s;  --px: -40px; --py: -50px; --rot: -20deg; }
.confetti-paw:nth-child(2) { animation-delay: 1.0s;  --px:  40px; --py: -45px; --rot:  25deg; }
.confetti-paw:nth-child(3) { animation-delay: 1.1s;  --px: -55px; --py:   5px; --rot: -35deg; }
.confetti-paw:nth-child(4) { animation-delay: 1.15s; --px:  55px; --py:  10px; --rot:  30deg; }
.confetti-paw:nth-child(5) { animation-delay: 1.2s;  --px: -25px; --py:  45px; --rot: -10deg; }
.confetti-paw:nth-child(6) { animation-delay: 1.25s; --px:  30px; --py:  50px; --rot:  15deg; }

@keyframes pawBurst {
    0%   { opacity: 0; transform: translate(0, 0) rotate(0) scale(0.5); }
    40%  { opacity: 1; transform: translate(var(--px), var(--py)) rotate(var(--rot)) scale(1.1); }
    100% { opacity: 0; transform: translate(var(--px), calc(var(--py) + 20px)) rotate(var(--rot)) scale(0.6); }
}

/* -- Title & subtitle -- */
.success-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
    line-height: 1.3;
    opacity: 0;
    animation: fadeSlideUp 0.5s ease-out 0.5s forwards;
}

.success-subtitle {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--ink-medium);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeSlideUp 0.5s ease-out 0.65s forwards;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* -- Detail card -- */
.success-detail-card {
    background: var(--parchment);
    border: 1px solid var(--parchment-deep);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 auto 16px;
    max-width: 320px;
    opacity: 0;
    animation: fadeSlideUp 0.5s ease-out 0.8s forwards;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
}

.success-detail-row + .success-detail-row {
    border-top: 1px solid var(--parchment-deep);
    margin-top: 6px;
    padding-top: 12px;
}

.success-detail-label {
    font-size: 0.82rem;
    color: var(--ink-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.success-detail-value {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--ink);
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

.success-badge {
    background: var(--amber-glow);
    color: var(--amber-dark);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* -- Email note -- */
.success-email-note {
    font-size: 0.82rem;
    color: var(--ink-faint);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeSlideUp 0.5s ease-out 0.95s forwards;
}

/* -- Done button -- */
.success-done-btn {
    min-width: 200px;
    justify-content: center;
    opacity: 0;
    animation: fadeSlideUp 0.5s ease-out 1.1s forwards;
}


/* ===== MOBILE STICKY ===== */
.mobile-sticky {
    display: none;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    padding: 12px 16px;
    background: rgba(248, 244, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -2px 16px rgba(45, 52, 54, 0.08);
    z-index: 900;
}

.btn-sticky {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 14px 24px;
}


/* ===== PAW TRAIL ===== */
.paw-trail {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
}

.paw-print {
    position: absolute;
    font-size: 1rem;
    opacity: 0;
    animation: pawAppear 2.5s ease forwards;
    pointer-events: none;
}

@keyframes pawAppear {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    15% { opacity: 0.5; transform: scale(1) rotate(-15deg); }
    100% { opacity: 0; transform: scale(0.7) rotate(-15deg); }
}


/* ===== SECRET MESSAGE ===== */
.secret-message {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--cream);
    padding: 36px 52px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 9998;
    text-align: center;
    transition: transform 0.5s var(--ease-spring);
    border: 1px solid var(--parchment-deep);
}

.secret-message.show { transform: translate(-50%, -50%) scale(1); }

.secret-message p {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
}

.secret-message small {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--ink-light);
}


/* ===== FADE IN ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in[style*="--delay: 0"] { transition-delay: 0s; }
.fade-in[style*="--delay: 1"] { transition-delay: 0.1s; }
.fade-in[style*="--delay: 2"] { transition-delay: 0.2s; }
.fade-in[style*="--delay: 3"] { transition-delay: 0.3s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .parents-image { width: 220px; }
    .hero { padding: 120px 40px 80px; }
    .title-name { font-size: 4.5rem; }
    .section-title { font-size: 2.5rem; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .book-split-text { padding: 64px 40px; }
    .book-split-text .section-title { font-size: 2.4rem; }
    .cause-programs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .navbar { padding: 14px 20px; }
    .navbar.scrolled { padding: 10px 20px; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: #2E6BA4;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 36px;
        gap: 32px;
        box-shadow: none;
        transition: right 0.4s var(--ease-out-expo);
        z-index: 999;
    }

    .nav-links a {
        color: rgba(255, 255, 255, 0.85) !important;
        font-size: 1.2rem !important;
    }

    .nav-links a:hover { color: #fff !important; }

    .nav-links.open { right: 0; }
    .nav-toggle { display: flex; }

    .nav-brand { opacity: 0; transition: opacity 0.4s var(--ease-smooth); }
    .navbar.scrolled .nav-brand { opacity: 1; }

    .hero {
        padding: 100px 20px 40px;
        align-items: stretch;
        justify-content: center;
    }

    .hero-bg-img {
        object-position: center center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: calc(100vh - 140px);
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .title-hi { font-size: 1.2rem; }
    .title-name { font-size: 3.5rem; letter-spacing: -2px; }
    .title-paw { display: none; }

    .hero-quote-bubble {
        margin-left: auto;
        margin-right: auto;
        max-width: 300px;
        border-radius: 16px;
    }

    .hero-ctas {
        justify-content: center;
        margin-top: auto;
        padding-bottom: 20px;
    }

    .parallax-section {
        height: auto;
        min-height: 80vh;
        padding: 60px 0;
    }

    .split-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .split-image { height: 320px; }
    .split-content { padding: 56px 28px; }
    .split-reverse .split-image { order: 1; }
    .split-reverse .split-content { order: 2; }
    .story-heading { font-size: 2.2rem; }
    .family-section { padding: 64px 20px; }
    .family-header { margin-bottom: 32px; }
    .book-split { grid-template-columns: 1fr; min-height: auto; }
    .book-split-text { justify-content: center; padding: 56px 28px 40px; }
    .book-split-text-inner { text-align: center; }
    .book-split-text .section-eyebrow { text-align: center; }
    .book-split-text .section-title { text-align: center; font-size: 2.2rem; }
    .book-split-text .title-flourish { justify-content: center; }
    .book-buy-btn { align-self: center; }
    .book-split-image { min-height: 320px; }
    .team-section { padding: 64px 20px; }
    .team-header { margin-bottom: 40px; }
    .team-grid { grid-template-columns: 1fr; gap: 40px; max-width: 420px; }
    .cause-section { padding: 64px 20px; }
    .cause-grid { grid-template-columns: 1fr; gap: 48px; }
    .cause-heading { font-size: 1.8rem; }
    .cause-programs { grid-template-columns: 1fr; }

    .story-card { padding: 36px 28px; margin: 0 20px; }
    .story-text { font-size: 1.2rem; }
    .section-title { font-size: 2.2rem; }

    .about-section,
    .preview-section,
    .parents-section,
    .purchase-section { padding: 72px 20px; }

    .parents-image { width: 200px; }
    .parents-subtitle { font-size: 1.2rem; }
    .lesson-grid { grid-template-columns: 1fr; }

    .purchase-content {
        flex-direction: column;
        text-align: center;
    }

    .purchase-hachi { width: 180px; }
    .purchase-text h2 { font-size: 2.2rem; }
    .mobile-sticky { display: block; }
    .footer { padding: 48px 20px 88px; }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Bottom sheet modal on mobile */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal {
        padding: 28px 24px 40px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-width: 100%;
        max-height: 92vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateY(100%);
        transition: transform 0.4s var(--ease-out-expo);
    }

    .modal-overlay.active .modal {
        transform: translateY(0);
    }

    .pay-btn-extra { display: none; }

    .scroll-indicator { display: none; }
    .slider-wrapper { margin: 0 -4px; }
    .slide-text { padding: 24px 20px; }

    .wave-divider svg { height: 50px; }
    .wave-to-about, .wave-to-parents { margin-top: -50px; }

    /* Parallax images on mobile */
    .parallax-bg { inset: -5%; }
}

@media (max-width: 375px) {
    .title-name { font-size: 2.8rem; }
    .story-text { font-size: 1.1rem; }
    .section-title { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .hero-bg-img { animation: none !important; }
}
