/* ================================================
   ROYAL FLAKE — Premium B2B Design System v2
   Palette: Charcoal #1A1714 | Gold #C9A84C | Cream #F5EFE6
   Fonts: Playfair Display (headings) | Inter (body)
   Model: mixitspices.com layout
================================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --c-dark:      #1A1714;
    --c-dark-2:    #24201C;
    --c-dark-3:    #2F2A24;
    --c-gold:      #C9A84C;
    --c-gold-light:#E8C96A;
    --c-cream:     #F5EFE6;
    --c-cream-2:   #EDE4D6;
    --c-text:      #1A1714;
    --c-text-mid:  #4A433A;
    --c-text-muted:#7A6F62;
    --c-border:    rgba(201,168,76,0.18);
    --c-border-lt: rgba(26,23,20,0.08);

    --f-heading:   'Playfair Display', 'Georgia', serif;
    --f-body:      'Inter', system-ui, sans-serif;

    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --transition:  all 0.45s var(--ease-out);

    --radius-sm:   4px;
    --radius-md:   12px;
    --radius-lg:   24px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--f-body);
    background: var(--c-dark);
    color: var(--c-text);
    overflow-x: hidden;
    line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
textarea { resize: vertical; }

/* ---- Typography ---- */
h1,h2,h3,h4 { font-family: var(--f-heading); font-weight: 600; line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p  { color: var(--c-text-mid); font-weight: 300; }

em { font-style: italic; color: var(--c-gold); }

/* ---- Utilities ---- */
.container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 5%;
}
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 1.2rem;
}
.section-title {
    font-family: var(--f-heading);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.section-sub {
    font-size: 1.1rem;
    color: var(--c-text-muted);
    max-width: 640px;
    margin-bottom: 3.5rem;
    line-height: 1.75;
}
.center { text-align: center; margin-left:auto; margin-right:auto; display:block; }
.light { color: var(--c-cream); }
.light-text { color: rgba(245,239,230,0.7); }
.mt-btn { margin-top: 2.5rem; display: inline-flex; }

/* ---- Scroll Reveal — Multi-direction Animation System ---- */
/* Only activates after JS loads (prevents flash of hidden content) */

/* Base: slide up (default) */
.js-loaded .reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

/* Slide from left */
.js-loaded .reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

/* Slide from right */
.js-loaded .reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

/* Scale up */
.js-loaded .reveal-scale {
    opacity: 0;
    transform: scale(0.88) translateY(24px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

/* Fade only */
.js-loaded .reveal-fade {
    opacity: 0;
    transition: opacity 1.1s ease;
}

/* Stagger delays — apply to any reveal variant */
.js-loaded .reveal.delay-1,
.js-loaded .reveal-left.delay-1,
.js-loaded .reveal-right.delay-1,
.js-loaded .reveal-scale.delay-1,
.js-loaded .reveal-fade.delay-1 { transition-delay: 0.1s; }

.js-loaded .reveal.delay-2,
.js-loaded .reveal-left.delay-2,
.js-loaded .reveal-right.delay-2,
.js-loaded .reveal-scale.delay-2,
.js-loaded .reveal-fade.delay-2 { transition-delay: 0.2s; }

.js-loaded .reveal.delay-3,
.js-loaded .reveal-left.delay-3,
.js-loaded .reveal-right.delay-3,
.js-loaded .reveal-scale.delay-3,
.js-loaded .reveal-fade.delay-3 { transition-delay: 0.3s; }

.js-loaded .reveal.delay-4,
.js-loaded .reveal-left.delay-4,
.js-loaded .reveal-right.delay-4,
.js-loaded .reveal-scale.delay-4,
.js-loaded .reveal-fade.delay-4 { transition-delay: 0.42s; }

.js-loaded .reveal.delay-5,
.js-loaded .reveal-left.delay-5,
.js-loaded .reveal-right.delay-5,
.js-loaded .reveal-scale.delay-5,
.js-loaded .reveal-fade.delay-5 { transition-delay: 0.55s; }

/* Visible state — resets all transforms */
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible,
.reveal-fade.visible {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) scale(1) !important;
}

/* ---- Stat counter pulse on reveal ---- */
@keyframes statPop {
    0%   { transform: scale(0.7); opacity: 0; }
    70%  { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}
.hstat.visible strong {
    animation: statPop 0.7s var(--ease-out) both;
}

/* ---- Section divider line animate ---- */
@keyframes lineGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--c-gold), transparent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1s var(--ease-out);
}
.section-divider.visible { transform: scaleX(1); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--f-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}
.btn-gold {
    background: var(--c-gold);
    color: var(--c-dark);
    border: 2px solid var(--c-gold);
}
.btn-gold:hover {
    background: var(--c-gold-light);
    border-color: var(--c-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201,168,76,0.35);
}
.btn-ghost {
    background: transparent;
    color: var(--c-cream);
    border: 2px solid rgba(245,239,230,0.3);
}
.btn-ghost:hover {
    border-color: var(--c-cream);
    background: rgba(245,239,230,0.08);
}
.btn-ghost .arrow { transition: transform 0.3s ease; }
.btn-ghost:hover .arrow { transform: translateX(6px); }
.btn-outline-dark {
    background: transparent;
    color: var(--c-dark);
    border: 2px solid var(--c-dark);
}
.btn-outline-dark:hover {
    background: var(--c-dark);
    color: var(--c-cream);
}


/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: rgba(26, 23, 20, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201,168,76,0.12);
    transition: var(--transition);
}
.site-header.scrolled {
    background: rgba(26, 23, 20, 0.92);
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 5%;
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    box-sizing: border-box;
}
.logo-wrap { display: flex; align-items: center; }
.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: none;
    transition: opacity 0.3s ease;
}
.logo-img:hover { opacity: 0.8; }

.main-nav {
    display: none;
    gap: 2.5rem;
}
@media (min-width: 900px) { .main-nav { display: flex; } }
.main-nav a {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(245,239,230,0.8);
    letter-spacing: 0.3px;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--c-gold);
    transition: width 0.3s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
@media (min-width: 900px) { .hamburger { display: none; } }
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--c-cream);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Nav Overlay */
@media (max-width: 899px) {
    .main-nav {
        position: fixed;
        inset: 0;                        /* top/right/bottom/left = 0 */
        width: 100vw;
        height: 100vh;
        height: 100dvh;                  /* dynamic viewport on iOS Safari */
        background: rgba(20, 17, 14, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 98;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-16px);
        transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
        display: flex !important;        /* always flex, visibility controlled by opacity */
    }
    .main-nav.mobile-open {
        opacity: 1 !important;
        pointer-events: auto;
        transform: translateY(0);
    }
    .main-nav a {
        font-size: 2rem !important;
        font-family: var(--f-heading) !important;
        color: var(--c-cream) !important;
        font-weight: 600;
        letter-spacing: 1px;
        padding: 0.4rem 1rem;
        text-align: center;
        display: block;
        transition: color 0.3s ease;
    }
    .main-nav a:hover { color: var(--c-gold) !important; }

    /* Hamburger floats above the overlay */
    .hamburger {
        position: relative;
        z-index: 99;
    }
}


.hero-section {
    background: var(--c-dark);
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}
/* Subtle radial glow */
.hero-section::before {
    content: '';
    position: absolute;
    top: -10%; left: -5%;
    width: 55%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 900px) {
    .hero-inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--c-gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 1.8rem;
}
.hero-text h1 {
    color: var(--c-cream);
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.hero-sub {
    color: rgba(245,239,230,0.65);
    font-size: 1.15rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 1px solid rgba(201,168,76,0.15);
    padding-top: 2rem;
}
.hstat { padding: 0 2rem; text-align: center; }
.hstat:first-child { padding-left: 0; }
.hstat strong {
    display: block;
    font-family: var(--f-heading);
    font-size: 2rem;
    color: var(--c-gold);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.hstat span { font-size: 0.8rem; color: rgba(245,239,230,0.5); letter-spacing: 0.5px; }
.hstat-divider {
    width: 1px; height: 40px;
    background: rgba(201,168,76,0.2);
    flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-img-ring {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201,168,76,0.3);
    box-shadow:
        0 0 0 10px rgba(201,168,76,0.07),
        0 0 0 22px rgba(201,168,76,0.035),
        0 0 80px rgba(201,168,76,0.12),
        0 40px 80px rgba(0,0,0,0.6);
    position: relative;
    background: var(--c-dark-3);
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 8s ease;
}
.hero-img-ring:hover .hero-img { transform: scale(1.06); }

.hero-float-tag {
    position: absolute;
    background: rgba(245,239,230,0.95);
    backdrop-filter: blur(10px);
    color: var(--c-dark);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(201,168,76,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    animation: floatTag 3s ease-in-out infinite;
}
.tag-1 { top: 12%; left: -4%; animation-delay: 0s; }
.tag-2 { bottom: 20%; right: -6%; animation-delay: 1s; }
.tag-3 { top: 60%; left: -8%; animation-delay: 2s; }
@keyframes floatTag {
    0%,100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ===== CAPABILITIES SECTION ===== */
.capabilities-section {
    padding: 7rem 0;
    background: var(--c-cream);
}
.cap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
@media (min-width: 700px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }

.cap-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    background: var(--c-cream-2);
    border: 1px solid var(--c-border-lt);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.cap-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.cap-card:hover::before { opacity: 1; }
.cap-card:hover {
    border-color: rgba(201,168,76,0.4);
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(26,23,20,0.1);
}
.cap-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    line-height: 1;
}
.cap-card h3 {
    font-family: var(--f-heading);
    font-size: 1.6rem;
    color: var(--c-dark);
    margin-bottom: 0.8rem;
    line-height: 1.15;
}
.cap-card p {
    font-size: 0.95rem;
    color: var(--c-text-muted);
    flex: 1;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.cap-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-gold);
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.cap-card:hover .cap-link { letter-spacing: 1px; }

/* ===== BRAND STORY SECTION ===== */
.story-section {
    padding: 8rem 0;
    background: var(--c-dark-2);
}
.story-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
}
@media (min-width: 900px) {
    .story-inner { grid-template-columns: 1fr 1fr; }
}
.story-visual { position: relative; }
.story-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.story-cert-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--c-gold);
    color: var(--c-dark);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 20px 40px rgba(201,168,76,0.3);
}
.cert-num {
    display: block;
    font-family: var(--f-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}
.cert-text {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-top: 0.3rem;
}
.story-text .section-label { color: var(--c-gold); }
.story-text .section-title { color: var(--c-cream); }
.story-text p { color: rgba(245,239,230,0.65); margin-bottom: 1.2rem; font-size: 1rem; line-height: 1.8; }

.story-pillars {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201,168,76,0.15);
}
.story-pillar {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.pillar-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c-gold);
    flex-shrink: 0;
    margin-top: 6px;
}
.story-pillar strong {
    display: block;
    color: var(--c-cream);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.story-pillar span { font-size: 0.85rem; color: rgba(245,239,230,0.5); }

/* ===== SPICE PRODUCT GRID ===== */
.spices-section {
    padding: 8rem 0;
    background: var(--c-cream);
}
.spice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 600px) { .spice-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .spice-grid { grid-template-columns: repeat(5, 1fr); } }

.spice-card {
    background: #fff;
    border: 1px solid var(--c-border-lt);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.spice-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}
.spice-card:hover::after { transform: scaleX(1); }
.spice-card:hover {
    box-shadow: 0 20px 48px rgba(26,23,20,0.1);
    transform: translateY(-8px);
    border-color: rgba(201,168,76,0.25);
}
.spice-img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}
.spice-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.spice-card:hover .spice-img-wrap img { transform: scale(1.08); }
.spice-info { flex: 1; margin-bottom: 1rem; }
.spice-info h4 {
    font-family: var(--f-heading);
    font-size: 0.98rem;
    color: var(--c-dark);
    margin-bottom: 0.4rem;
}
.spice-info p { font-size: 0.78rem; color: var(--c-text-muted); line-height: 1.5; }
.spice-cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--c-gold);
    letter-spacing: 0.5px;
    padding: 0.45rem 1.2rem;
    border: 1.5px solid var(--c-gold);
    border-radius: 50px;
    transition: var(--transition);
    display: inline-block;
}
.spice-cta:hover {
    background: var(--c-gold);
    color: var(--c-dark);
}
.spice-footer {
    margin-top: 3.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.spice-footer p { color: var(--c-text-muted); }

/* ===== MARQUEE BAND ===== */
.marquee-band {
    background: var(--c-dark);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(201,168,76,0.15);
    border-bottom: 1px solid rgba(201,168,76,0.15);
}
.marquee-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}
.marquee-track span {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(201,168,76,0.7);
}
.marquee-track .m-dot { color: var(--c-gold); font-size: 0.6rem; align-self: center; }
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }

/* ===== PILLARS SECTION ===== */
.pillars-section {
    padding: 8rem 0;
    background: var(--c-dark);
}
.pillars-section .section-label { display: block; }
.pillars-section .section-title { color: var(--c-cream); }
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3.5rem;
}
@media (min-width: 700px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }

.pillar-card {
    background: var(--c-dark-2);
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
.pillar-card:hover {
    border-color: rgba(201,168,76,0.35);
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
.pillar-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.pillar-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.pillar-card:hover .pillar-img-wrap img { transform: scale(1.05); }
.pillar-body { padding: 1.8rem; }
.pillar-body h3 {
    font-family: var(--f-heading);
    color: var(--c-cream);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}
.pillar-body p { color: rgba(245,239,230,0.6); font-size: 0.95rem; line-height: 1.7; }

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    padding: 8rem 0;
    background: var(--c-cream-2);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3.5rem;
}
@media (min-width: 700px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .testimonials-grid { grid-template-columns: repeat(4, 1fr); } }

.testi-card {
    background: #fff;
    border: 1px solid var(--c-border-lt);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}
.testi-card:hover {
    box-shadow: 0 16px 40px rgba(26,23,20,0.09);
    transform: translateY(-5px);
    border-color: rgba(201,168,76,0.3);
}
.testi-quote {
    font-family: var(--f-heading);
    font-size: 4rem;
    color: var(--c-gold);
    line-height: 0.8;
    margin-bottom: 1rem;
    opacity: 0.6;
}
.testi-text {
    font-size: 0.95rem;
    color: var(--c-text-mid);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.testi-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-top: 1px solid var(--c-border-lt);
    padding-top: 1rem;
}
.testi-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-gold), var(--c-gold-light));
    color: var(--c-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.testi-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--c-dark);
}
.testi-author span {
    font-size: 0.78rem;
    color: var(--c-text-muted);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--c-dark-3);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}
.contact-section::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 50%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 65%);
    pointer-events: none;
}
.contact-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    position: relative;
}
@media (min-width: 900px) {
    .contact-inner { grid-template-columns: 1fr 1.2fr; align-items: flex-start; }
}
.contact-text .section-label { color: var(--c-gold); }
.contact-text .section-title { color: var(--c-cream); margin-bottom: 1.2rem; }
.contact-text > p { color: rgba(245,239,230,0.6); font-size: 1rem; margin-bottom: 2.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(245,239,230,0.75);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.contact-detail-item:hover { color: var(--c-gold); }
.cd-icon { font-size: 1.1rem; }

/* Form */
.contact-form-wrap {
    background: var(--c-dark-2);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.b2b-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(245,239,230,0.5);
}
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(245,239,230,0.05);
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: var(--radius-sm);
    color: var(--c-cream);
    font-family: var(--f-body);
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(245,239,230,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--c-gold);
    background: rgba(201,168,76,0.05);
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--c-dark-2); color: var(--c-cream); }
.submit-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}
.form-note {
    color: rgba(245,239,230,0.3);
    font-size: 0.78rem;
    text-align: center;
    margin-top: 0.3rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--c-dark);
    padding: 5rem 0 0;
    border-top: 1px solid rgba(201,168,76,0.12);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }

.footer-col { display: flex; flex-direction: column; }
.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: none;
    margin-bottom: 1rem;
    align-self: flex-start;
}
.footer-brand > p { color: rgba(245,239,230,0.45); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.25);
    color: rgba(245,239,230,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
    transition: var(--transition);
}
.footer-social a:hover { border-color: var(--c-gold); color: var(--c-gold); }

.footer-col h4 {
    font-family: var(--f-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 1.5rem;
}
.footer-col a {
    color: rgba(245,239,230,0.45);
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--c-gold); }
.footer-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.footer-certs span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 50px;
    color: rgba(201,168,76,0.6);
}
.footer-bottom {
    border-top: 1px solid rgba(201,168,76,0.1);
    text-align: center;
    padding: 1.5rem 0;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(245,239,230,0.25); }

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 700px) {
    .hero-float-tag { display: none; }
    .story-cert-badge { right: 0.5rem; bottom: 0.5rem; }
    .hero-stats { flex-wrap: wrap; gap: 0.5rem; }
    .hstat { flex: 1 1 80px; padding: 0 0.8rem; }
}


/* ===== NEW HERO SEQUENCE (SCROLL ANIMATION) ===== */
.hero-sequence {
    width: 100%;
    height: 600vh; /* scrollable track height */
    background: var(--c-dark);
    position: relative;
    z-index: 10; /* Ensures it sits over background correctly */
}

.hero-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: brightness(0.7);
    pointer-events: none;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 10;
    width: 90%;
    max-width: 650px;
    opacity: 0;
    text-align: left;
    pointer-events: none;
}

#hto-3 {
    pointer-events: auto;
    top: 50%;
    transform: translateY(-50%);
}

.hero-text-overlay h1 {
    color: var(--c-cream);
    font-size: clamp(3rem, 5.5vw, 5rem);
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    line-height: 1.1;
}

.hero-text-overlay h2 {
    color: var(--c-cream);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-overlay-sub {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    line-height: 1.8;
    text-shadow: 0 4px 15px rgba(0,0,0,0.7);
    margin: 0;
    max-width: 600px;
}

.hero-stats-new {
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.hstat-new strong {
    display: block;
    font-family: var(--f-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--c-gold);
    line-height: 1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin-bottom: 0.4rem;
}

.hstat-new span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.hero-actions-new {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ===== MOBILE RESPONSIVE OPTIMIZATIONS ===== */

/* ---- Tablets & Narrow Desktops (≤ 900px) ---- */
@media (max-width: 900px) {
    .story-inner { gap: 3rem; }
    .cap-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr 1fr; }

    /* Reduce heavy section padding on tablets */
    .story-section,
    .spices-section,
    .pillars-section,
    .testimonials-section,
    .contact-section { padding: 5rem 0; }
}

/* ---- Mobile (≤ 700px) ---- */
@media (max-width: 700px) {
    /* Global Section Spacing */
    .section { padding: 4rem 0; }
    .section-header { margin-bottom: 2rem; }
    .capabilities-section,
    .story-section,
    .spices-section,
    .pillars-section,
    .testimonials-section,
    .contact-section { padding: 4rem 0; }

    /* Header */
    .header-inner { padding: 0.8rem 5%; }
    .logo-img { height: 38px; }

    /* Hero Canvas Text */
    .hero-sequence { height: 400vh; }
    .hero-text-overlay {
        left: 5%;
        width: 92%;
        max-width: 100%;
    }
    .hero-text-overlay h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
    .hero-text-overlay h2 { font-size: clamp(1.8rem, 7vw, 3rem); margin-bottom: 1rem; }
    .hero-overlay-sub { font-size: 1rem; line-height: 1.6; }
    .hero-badge { font-size: 0.65rem; padding: 0.3rem 0.8rem; }
    .hero-stats-new { gap: 1.5rem; margin-bottom: 2rem; }
    .hstat-new strong { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .hstat-new span { font-size: 0.75rem; }
    .hero-actions-new {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        align-items: flex-start;
        margin: 0;
        gap: 1rem;
    }
    .hero-actions-new .btn { width: 100%; justify-content: center; }
    /* #hto-3 matches same centering as hto-1 and hto-2 on mobile */
    #hto-3 { top: 50%; transform: translateY(-50%); }

    /* Capability Cards — reduce inner padding */
    .cap-card { padding: 1.8rem 1.4rem; }
    .cap-card h3 { font-size: 1.3rem; }

    /* Story section */
    .story-cert-badge { 
        right: 0.5rem; 
        bottom: 0.5rem; 
        padding: 1rem;
    }
    .cert-num { font-size: 1.6rem; }

    /* Pillars */
    .pillars-grid { grid-template-columns: 1fr; }

    /* Contact form */
    .contact-form-wrap { padding: 1.5rem 1.2rem; }
    .form-row { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid { gap: 2rem; }
    .footer-brand > p { font-size: 0.85rem; }
    .footer-col h4 { margin-bottom: 1rem; }
}

/* ---- Small Phones (≤ 500px) ---- */
@media (max-width: 500px) {
    .logo-img { height: 34px; }

    /* Hero text — tighten even more on tiny screens */
    .hero-text-overlay { left: 4%; width: 96%; }
    .hero-text-overlay h1 { font-size: clamp(1.8rem, 9vw, 2.8rem); }
    .hero-text-overlay h2 { font-size: clamp(1.6rem, 8vw, 2.4rem); }

    /* Float tags — hide so they don't clip on mobile */
    .hero-float-tag { display: none; }

    /* Section title scale */
    .section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }

    /* Testimonial cards */
    .tcard { padding: 1.5rem; }

    /* Spice grid — stay 2-col but tighten inner padding */
    .spice-card { padding: 1rem 0.7rem 0.9rem; }
    .spice-info h4 { font-size: 0.85rem; }
    .spice-info p { font-size: 0.72rem; }
}

/* ---- Very Small Phones (≤ 400px) ---- */
@media (max-width: 400px) {
    /* Spice grid — drop to 1 column only on narrowest screens */
    .spice-grid { grid-template-columns: 1fr; }
    .spice-card { max-width: 320px; margin: 0 auto; }

    /* Story cert badge — prevent overflow */
    .story-cert-badge { 
        width: 90px;
        right: 0.25rem; 
        bottom: 0.25rem; 
    }

    /* Buttons — ensure they don't overflow viewport */
    .btn { padding: 0.75rem 1.4rem; font-size: 0.82rem; }

    /* Stats row — wrap to 2x2 grid */
    .hero-stats-new { gap: 1rem; }
}

