/* ============================================================
   AUNTY HELEN'S KITCHEN — Design System
   Premium Pet Lifestyle Brand Homepage
   ============================================================ */

/* — Google Fonts — */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Caveat:wght@400;500;600;700&display=swap');

/* ============================================================
   0. RESET & TOKENS
   ============================================================ */
:root {
    /* Brand Colors */
    --color-brand: #3C2415;
    --color-accent: #E8526C;
    --color-accent-soft: #F2A0AE;
    --color-accent-bg: #FEF0F2;

    /* Neutral Palette */
    --color-bg-warm: #FAFAF5;
    --color-bg-dark: #1D1D1F;
    --color-bg-dark-alt: #111111;
    --color-text-primary: #1D1D1F;
    --color-text-secondary: #86868B;
    --color-text-light: #F5F5F7;
    --color-text-muted: #ABABAB;
    --color-border: #E5E5E5;

    /* Typography */
    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-script: 'Caveat', cursive;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    /* Content Width */
    --content-max: 1120px;
    --content-wide: 1440px;

    /* Transitions */
    --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.4s var(--ease-out-quad);
    --transition-slow: 0.8s var(--ease-out-expo);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    background-color: var(--color-bg-warm);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================================
   1. UTILITY CLASSES
   ============================================================ */
.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-wide {
    max-width: var(--content-wide);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-2xl) 0;
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.section-dark-alt {
    background-color: var(--color-bg-dark-alt);
    color: var(--color-text-light);
}

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

.text-accent {
    color: var(--color-accent);
}

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

.text-script {
    font-family: var(--font-script);
}

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */
.heading-hero {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heading-section {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.heading-sub {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
}

.heading-card {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    line-height: 1.3;
}

.body-large {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.7;
    font-weight: 400;
}

.body-text {
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

.label-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============================================================
   3. BUTTONS & LINKS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: #D9425C;
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(232, 82, 108, 0.3);
}

.btn-outline {
    border: 1.5px solid var(--color-text-light);
    color: var(--color-text-light);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.03);
}

.btn-outline-dark {
    border: 1.5px solid var(--color-text-primary);
    color: var(--color-text-primary);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--color-text-primary);
    color: #fff;
    transform: scale(1.03);
}

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

.btn-brand-outline:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(232, 82, 108, 0.25);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-accent);
    transition: gap var(--transition-base);
}

.link-arrow:hover {
    gap: 0.65rem;
}

.link-arrow::after {
    content: '→';
    font-size: 1.2em;
    transition: transform var(--transition-base);
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

/* ============================================================
   4. SCROLL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s var(--ease-out-expo);
}

.fade-in.visible {
    opacity: 1;
}

/* ============================================================
   5. SECTION 1 — HERO
   ============================================================ */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--color-bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photos-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-photo {
    position: absolute;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    will-change: transform, opacity, left, top;
    /* Base size set in JS */
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

.hero-content.show {
    opacity: 1;
    transform: scale(1);
}

.hero-logo {
    width: clamp(200px, 35vw, 380px);
    filter: drop-shadow(0 4px 20px rgba(60, 36, 21, 0.1));
}

.hero-slogan {
    width: clamp(180px, 28vw, 320px);
    margin-top: -0.5rem;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 1s var(--ease-out-expo) 1.5s;
}

.hero-scroll-hint.show {
    opacity: 1;
}

.hero-scroll-hint span {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--color-text-secondary);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ============================================================
   6. SECTION 2 — BRAND STORY
   ============================================================ */
#story {
    background: var(--color-bg-warm);
    padding: var(--space-2xl) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Scatter Photos — fly-in animation overlay */
body.scroll-locked {
    overflow: hidden !important;
}

#story .container {
    position: relative;
}

.scatter-photos {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.scatter-photo {
    position: absolute;
    width: clamp(140px, 22vw, 260px);
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    /* Start state: hidden below */
    opacity: 0;
    left: var(--end-x);
    top: var(--end-y);
    transform: translateY(140px) rotate(0deg) scale(0.6);
    will-change: transform, opacity;
}

/* Staggered delays */
.scatter-photo:nth-child(1) {
    --delay: 0.1s;
}

.scatter-photo:nth-child(2) {
    --delay: 0.3s;
}

.scatter-photo:nth-child(3) {
    --delay: 0.5s;
}

.scatter-photo:nth-child(4) {
    --delay: 0.7s;
}

/* When parent is .active, trigger fly-in */
.scatter-photos.active .scatter-photo {
    animation: scatterFlyIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--delay) forwards;
}

@keyframes scatterFlyIn {
    0% {
        opacity: 0;
        transform: translateY(140px) rotate(0deg) scale(0.6);
    }

    60% {
        opacity: 1;
        transform: translateY(-10px) rotate(calc(var(--end-rot) * 1.2)) scale(1.03);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(var(--end-rot)) scale(1);
    }
}

.scatter-clear-btn {
    display: none;
    margin-top: 12px;
    padding: 6px 18px;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    position: relative;
}

.scatter-clear-btn.show {
    display: inline-block;
    animation: fadeIn 0.5s ease forwards;
}

.scatter-clear-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.6);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-layout {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

@media (max-width: 900px) {
    .story-layout {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

/* Left Column: Image */
.story-left {
    flex: 1;
    width: 100%;
}

.story-img-card {
    width: 100%;
    aspect-ratio: 4/4;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(60, 36, 21, 0.08);
    transition: transform var(--transition-base);
}

.story-img-card:hover {
    transform: scale(1.02);
}

.story-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column: Content */
.story-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center content horizontally */
    width: 100%;
    text-align: center;
}

.story-slogan-container {
    margin-bottom: var(--space-lg);
}

.story-slogan-img {
    width: clamp(240px, 40vw, 400px);
    height: auto;
    display: block;
}



.story-scrolling-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-text-item {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    line-height: 1.8;
    color: var(--color-brand);
    font-weight: 500;
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

/* Markpen Highlighter Animation */
.highlight-wave {
    position: relative;
    white-space: nowrap;
    display: inline-block;
    z-index: 1;
    /* Ensure text is on top */
}

/* The Marker Stroke */
.highlight-wave::after {
    content: '';
    position: absolute;
    top: 50%;
    /* Center mostly on the bottom half or full height? "Markpen" usually covers text */
    left: -2px;
    /* Slight bleed */
    right: -2px;
    height: 0.7em;
    /* Height of the marker stroke */
    background: var(--color-accent);
    /* Theme color */
    opacity: 0.5;
    /* Transparency to keep text readable */
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Slower speed */
    z-index: -1;
    border-radius: 2px;
    mix-blend-mode: multiply;
}

/* Trigger animation sequentially */
.reveal.visible .highlight-wave:nth-of-type(1)::after {
    transform: translateY(-50%) scaleX(1);
    transition-delay: 0.4s;
}

.reveal.visible .highlight-wave:nth-of-type(2)::after {
    transform: translateY(-50%) scaleX(1);
    transition-delay: 1.2s;
    /* Starts after 1st finishes */
}

.reveal.visible .highlight-wave:nth-of-type(3)::after {
    transform: translateY(-50%) scaleX(1);
    transition-delay: 2.2s;
    /* Starts after 2nd finishes */
}



/* ============================================================
   6b. FRESH INGREDIENTS BLOCK
   ============================================================ */
.fresh-block {
    text-align: left;
    margin-bottom: var(--space-xl);
}

.fresh-header {
    max-width: 1000px;
    /* Slightly wider for left align reading */
    margin: 0 0 var(--space-lg);
}

.fresh-title-img {
    height: 96px;
    /* Tripled size */
    width: auto;
    margin-bottom: var(--space-md);
    display: block;
}

.heading-img {
    height: 260px;
    /* Similar to fresh title */
    width: auto;
    max-width: 100%;
    margin: 0 auto var(--space-md);
    /* Reduced from md to xs */
    display: block;
}

.fresh-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    line-height: 1.8;
    color: var(--color-brand);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: left;
}

/* Horizontal Scrolling Gallery */
.fresh-gallery {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Break out of container */
    overflow: hidden;
    position: relative;
}

.fresh-gallery-track {
    display: flex;
    gap: 16px;
    padding: 0 var(--space-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.fresh-gallery-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Section Divider */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin: var(--space-xl) 0;
}

.heading-section {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.subheading-section {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.fresh-gallery-track img {
    flex: 0 0 auto;
    width: clamp(300px, 40vw, 500px);
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    scroll-snap-align: start;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.fresh-gallery-track img:hover {
    transform: scale(1.02);
}

.fresh-gallery-caption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    opacity: 0.6;
    margin-top: var(--space-sm);
    padding: 0 var(--space-lg);
}

/* ============================================================
   7. SECTION 3 — QUALITY PROMISE
   ============================================================ */
#quality {
    background: var(--color-bg-warm);
    padding: var(--space-2xl) 0;
}

.quality-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-md);
    /* Reduced from lg to md */
}

.label-text {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.product-title-img {
    max-height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto var(--space-md);
    display: block;
}

/* 3x3 Quality Grid */
.quality-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    /* Reduced from md */
    margin-bottom: var(--space-xl);
}

.quality-item {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    padding-top: 100px;
    /* Fixed spacing instead of % */
    text-align: left;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
    display: block;
    position: relative;
    /* aspect-ratio removed to reduce bottom space */
    min-height: 260px;
    /* Ensure minimum height */
}

.quality-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.quality-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-brand);
    line-height: 1;
}

.quality-icon-img {
    height: 64px;
    /* Default height */
    width: auto;
    position: absolute;
    top: 24px;
    /* Down a bit */
    left: 24px;
    /* Right a bit */
    margin: 0;
    display: block;
}

.quality-label {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    /* Lighter color */
    font-weight: 400;
    line-height: 1.5;
}

.quality-label strong {
    color: var(--color-text-primary);
    /* Darker, bold color */
    font-weight: 700;
}



.promise-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.promise-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.promise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.promise-card-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--color-accent-bg), #F5EDE8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.promise-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promise-card-body {
    padding: var(--space-md);
}

.promise-card-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.promise-card-body p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.quality-cta {
    text-align: center;
    padding-top: var(--space-md);
}

/* ============================================================
   8. SECTION 4 — CHANNEL PARTNERSHIPS
   ============================================================ */
#channels {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: var(--space-2xl) 0;
    overflow: hidden;
}

.channels-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.channels-header .label-text {
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

/* Dot Map */
.dot-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    aspect-ratio: 1.3 / 1;
}

#dotMapCanvas {
    width: 100%;
    height: 100%;
}

/* Channels Content Row */
.channels-content-row {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
    margin-bottom: var(--space-xl);
}

.channels-map-col {
    flex: 1.2;
    width: 100%;
}

.channels-stats-col {
    flex: 1;
    width: 100%;
}

@media (max-width: 900px) {
    .channels-content-row {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

/* Dot Map overrides for new layout */
.channels-map-col .dot-map-wrapper {
    margin: 0 auto;
}

/* Stats Accordion */
.stats-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.stat-card {
    text-align: left;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    cursor: pointer;
    overflow: hidden;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
}

.accordion-header .stat-info {
    flex: 1;
}

.stat-number {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.accordion-icon {
    font-size: 1.8rem;
    color: var(--color-accent);
    transition: transform var(--transition-base);
    font-weight: 800;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -15px;
    /* 推向右侧 */
    transform-origin: center;
}

.accordion-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 var(--space-lg);
}

.accordion-body p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-bottom: var(--space-md);
    margin: 0;
}

/* Active State */
.stat-card.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-card.active .accordion-icon {
    transform: rotate(45deg);
}

.stat-card.active .accordion-body {
    max-height: 500px;
    opacity: 1;
}

/* CTA Block — "Become a partner" */
.channel-cta-block {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-lg) 0 var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.channel-cta-block h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.channel-cta-block p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin: 0 auto var(--space-md);
    line-height: 1.7;
}

.channel-cta-block .note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

.channel-cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

/* Designer service */
.designer-service {
    margin-top: var(--space-md);
    text-align: center;
}

.designer-service h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.designer-service p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.designer-carousel-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
}

.designer-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 calc(50vw - min(42.5vw, 500px));
    /* Hide scrollbar for clean look */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.designer-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 min(85vw, 1000px);
    aspect-ratio: 16/9;
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}


.carousel-controls-inside {
    align-self: flex-end;
    margin-right: calc(50vw - min(42.5vw, 500px));
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.slider-btn.slider-btn-dark {
    color: var(--color-text);
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.05);
}

.slider-btn.slider-btn-dark:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* ============================================================
   9. SECTION 5 — PRODUCTS
   ============================================================ */
#products {
    background: var(--color-bg-warm);
    padding: var(--space-2xl) 0;
}

.products-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.products-header .label-text {
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.product-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #FAF0EB, #F5E8E0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-body {
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card-body .link-arrow {
    font-size: 0.9rem;
}

/* Featured (first) product card — full-width */
.product-card.featured {
    grid-column: 1 / -1;
}

.product-card.featured .product-card-image {
    aspect-ratio: 21/9;
}

.products-cta {
    text-align: center;
    padding-top: var(--space-md);
}

/* ============================================================
   10. SECTION 6 — TECHNOLOGY
   ============================================================ */
#technology {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: var(--space-2xl) 0;
}

.tech-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.tech-header .label-text {
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.tech-hero-statement {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.tech-hero-statement h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: var(--color-text-light);
    line-height: 1.6;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.tech-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.tech-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent), #D9425C);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    font-size: 1.3rem;
}

.tech-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Full-width tech card */
.tech-card.full-width {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: center;
}

.tech-card.full-width .tech-card-content {
    padding-right: var(--space-md);
}

.tech-card.full-width .tech-card-visual {
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-card.full-width .tech-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   11. SECTION 7 — CHARITY
   ============================================================ */
#charity {
    background: var(--color-bg-dark-alt);
    color: var(--color-text-light);
    padding: var(--space-2xl) 0;
    text-align: center;
}

.charity-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.charity-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.charity-wrapper h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.charity-wrapper p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.charity-wrapper a.email-link {
    color: var(--color-accent);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base);
}

.charity-wrapper a.email-link:hover {
    border-bottom-color: var(--color-accent);
}

/* ============================================================
   12. SECTION 8 — FOOTER
   ============================================================ */
#footer {
    background: #000;
    color: var(--color-text-muted);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: var(--space-md);
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    line-height: 2;
    color: var(--color-text-muted);
    display: block;
    transition: color var(--transition-base);
}

.footer-col a:hover {
    color: var(--color-text-light);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    padding-top: var(--space-sm);
}

/* ============================================================
   13. QR CODE MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: #fff;
    border-radius: 24px;
    padding: var(--space-lg);
    max-width: 360px;
    width: 90%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s var(--ease-out-expo);
}

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

.modal-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.modal-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.modal-qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--space-md);
    background: var(--color-bg-warm);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

.modal-close {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    border: 1.5px solid var(--color-accent);
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: var(--color-accent);
    color: #fff;
}

/* ============================================================
   14. RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
    /* .four-zero-grid removed */

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    .tech-card.full-width {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   15. RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 734px) {
    :root {
        --space-2xl: 5rem;
    }

    /* Removed specific mobile overrides for hero-photo as JS handles sizing relative to viewport */
    /* .four-zero-grid removed */
    .quality-grid-3x3 {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        gap: 10px;
        /* Tighter gap on mobile */
    }

    .quality-item {
        padding: 20px;
        /* Slightly less side padding on mobile */
        padding-top: 100px;
        /* Ensure clearance for icon */
        border-radius: 20px;
        aspect-ratio: auto;
        /* Allow flexible height */
        min-height: 160px;
    }

    .quality-icon {
        font-size: 2rem;
        margin-bottom: var(--space-xs);
    }



    .promise-cards {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .stat-card {
        padding: var(--space-md) var(--space-sm);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card.featured .product-card-image {
        aspect-ratio: 16/9;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-card.full-width {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .channel-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .story-image-wrapper img {
        height: 260px;
    }
}

/* ============================================================
   16. SMOOTH SCROLLBAR & MISC
   ============================================================ */
::selection {
    background: var(--color-accent);
    color: #fff;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Loading state & Preloader */
body.loading {
    overflow: hidden;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-bg-warm, #FAF6F1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.6s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo {
    width: clamp(120px, 25vw, 200px);
    height: auto;
}

.preloader-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--color-brand, #6B3A2A);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Placeholder image style */
.placeholder-img {
    background: linear-gradient(135deg, var(--color-accent-bg), #F5EDE8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

/* Nav bar (floating) */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.5s var(--ease-out-expo);
}

.floating-nav.visible {
    transform: translateX(-50%) translateY(0);
}

.floating-nav .nav-logo {
    height: 28px;
}

.floating-nav a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
    white-space: nowrap;
}

.floating-nav a:hover {
    color: var(--color-text-primary);
}

.floating-nav .nav-cta {
    background: var(--color-accent);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.floating-nav .nav-cta:hover {
    background: #D9425C;
}

@media (max-width: 734px) {
    .floating-nav {
        gap: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .floating-nav a:not(.nav-cta) {
        display: none;
    }

    .floating-nav a.nav-cta {
        display: inline-flex;
    }
}

/* STORY MODAL STYLES */
/* STORY MODAL STYLES */
.story-modal-card {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 900px;
    padding: 24px;
    /* Padding around content */
    gap: 24px;
    /* Gap between image and text */
    overflow: hidden;
    background: #fff;
    border-radius: 24px;
    position: relative;
    /* Anchor for absolute close button */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Close/Exit Button - Top Right */
.story-modal-card .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #666;
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
}

.story-modal-card .modal-close:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: rotate(90deg);
}

.story-modal-content {
    display: flex;
    width: 100%;
    gap: 24px;
}

.story-modal-image {
    flex: 0 0 40%;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.story-modal-image img {
    width: 100%;
    height: auto;
    /* Natural height, no cropping */
    display: block;
    transition: transform 0.6s ease;
}

.story-modal-image:hover img {
    transform: scale(1.05);
}

.story-modal-text {
    flex: 1;
    padding: var(--space-md) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--color-text-primary);
}

.story-modal-text p {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #444;
}

.story-modal-text p strong {
    color: var(--color-brand);
    font-weight: 600;
}

.story-modal-footer {
    border-top: 1px solid #eee;
    padding-top: var(--space-md);
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.founder-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-brand);
}

.pet-info {
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 768px) {
    .story-modal-card {
        padding: 16px;
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
    }

    .story-modal-content {
        flex-direction: column;
        gap: 16px;
    }

    .story-modal-image {
        width: 80%;
        max-width: 320px;
        margin: 0 auto;
        flex: 0 0 auto;
        aspect-ratio: 1/1;
        /* Square */
        height: auto;
    }

    .story-modal-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Fill square */
        object-position: center 25%;
        /* Custom focus */
    }

    .story-modal-text {
        width: 100%;
        padding: 0;
    }

    .story-modal-card .modal-close {
        top: 12px;
        right: 12px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}