/* NeuroShield - Custom Styles */

/* ========================================
   Base
   ======================================== */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    color: #374151;
    font-family: 'Outfit', 'Space Grotesk', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    overflow-x: hidden;
    max-width: 100vw;
}

section {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

h1, h2 {
    font-family: 'Outfit', 'Space Grotesk', sans-serif;
    letter-spacing: -0.035em;
    line-height: 0.95;
    font-weight: 800;
}
h3, h4, h5, h6 {
    font-family: 'Outfit', 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-weight: 700;
}

/* Section headings — Outfit bold, natural store */
section h2 {
    font-family: 'Outfit', 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    line-height: 0.95;
    letter-spacing: -0.03em;
    font-weight: 800;
    overflow-wrap: normal;
    word-break: normal;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}
@media (min-width: 640px) {
    section h2 {
        font-size: 2.25rem;
    }
}
@media (min-width: 768px) {
    section h2 {
        font-size: 2.75rem;
    }
}
@media (min-width: 1024px) {
    section h2 {
        font-size: 3.25rem;
    }
}

section h3 {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}
@media (min-width: 640px) {
    section h3 {
        font-size: 1.5rem;
    }
}
@media (min-width: 768px) {
    section h3 {
        font-size: 1.75rem;
    }
}

/* Hero headline — Outfit extra-bold, natural supplement store */
.hero-headline {
    font-family: 'Outfit', 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    line-height: 0.9;
    letter-spacing: -0.035em;
    font-weight: 800;
    overflow-wrap: normal;
    word-break: normal;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}
@media (min-width: 640px) {
    .hero-headline {
        font-size: 3rem;
    }
}
@media (min-width: 768px) {
    .hero-headline {
        font-size: 3.5rem;
    }
}
@media (min-width: 1024px) {
    .hero-headline {
        font-size: 4rem;
    }
}
@media (min-width: 1280px) {
    .hero-headline {
        font-size: 4.5rem;
    }
}

/* Paragraphs — editorial style across entire page */
p {
    font-family: 'Outfit', 'Space Grotesk', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.01em;
    overflow-wrap: normal;
    word-break: normal;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

/* Blockquotes — prominent, modern */
blockquote {
    position: relative;
    padding-left: 1.5rem;
    border-left: 4px solid #1a237e;
    font-family: 'Outfit', 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-style: italic;
    color: #111827;
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
    overflow-wrap: normal;
    word-break: normal;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}
@media (min-width: 768px) {
    blockquote {
        font-size: 1.5rem;
    }
}
@media (min-width: 1024px) {
    blockquote {
        font-size: 1.75rem;
    }
}

/* Prevent heading letter cutoff — never hyphenate or split words */
h1, h2, h3, h4, h5, h6, p, blockquote, span, a, li {
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    hyphens: none !important;
    overflow-wrap: normal;
    word-break: normal;
}

h1, h2, h3 {
    overflow: visible;
}

/* Allow wrapping in cards where needed */
.flip-card-name,
.flip-card-benefit {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.faq-toggle span {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Section badge / label */
section .inline-flex.items-center.gap-2.px-3 {
    letter-spacing: 0.08em;
}

/* Product card hover — premium feel */
section .group {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

/* Trust badge hover */
section .group:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.08);
}

#nav-logo {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

::selection {
    background-color: rgba(26, 35, 126, 0.2);
    color: #1a237e;
}

/* ========================================
   Scrollbar
   ======================================== */

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

::-webkit-scrollbar-track {
    background: #f9fafb;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a237e;
}

/* ========================================
   Components
   ======================================== */

input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.15);
}

/* ========================================
   Mobile Menu
   ======================================== */

#mobile-menu {
    transition: transform 0.3s ease;
}

#mobile-menu::-webkit-scrollbar {
    width: 4px;
}

#mobile-menu::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

/* ========================================
   Cart Dropdown
   ======================================== */

#cart-dropdown {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#cart-dropdown::-webkit-scrollbar {
    width: 4px;
}

#cart-dropdown::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

/* ========================================
   FAQ Accordion
   ======================================== */

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-content {
    max-height: 320px;
}

.faq-toggle svg {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle svg {
    transform: rotate(180deg);
}

/* ========================================
   Formula Product Tabs
   ======================================== */

.formula-tab {
    background: #f3f4f6;
    color: #4b5563;
    border: 2px solid transparent;
}

.formula-tab:hover:not(.formula-tab-active) {
    background: rgba(31, 41, 55, 0.08);
    color: #1f2937;
}

.formula-tab-active {
    background: #1f2937;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(31, 41, 55, 0.25);
}

/* ========================================
   Cart Toast
   ======================================== */

#cart-toast {
    opacity: 0;
    transform: translate(-50%, 1rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#cart-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ========================================
   Mobile Optimizations
   ======================================== */

@media (max-width: 640px) {
    .faq-toggle span {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .faq-toggle {
        padding: 1rem 1.25rem;
    }

    html,
    body {
        overflow-x: hidden;
    }

    button,
    a {
        min-height: 44px;
    }

    /* Hero stays vertically centered on mobile, with logo clearance via pt-20 *//* Cart & menu fit small screens */
    #cart-dropdown {
        width: calc(100vw - 2rem) !important;
        right: 1rem !important;
    }

    #mobile-menu {
        width: calc(100vw - 2rem) !important;
        max-width: 20rem;
    }

    

}

/* ========================================
   Hero Section - Swiper Cube 1:1 AgroFarm
   gridwidth:1240,1024,778,480 gridheight:750,768,960,720
   perspective:600 global
   ======================================== */

.hero-section-full {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-swiper {
    width: 100%;
    min-height: 100vh !important;
    min-height: 100svh !important;
    height: auto !important;
}

.hero-swiper .swiper-wrapper {
    width: 100%;
    min-height: 100vh !important;
    min-height: 100svh !important;
    height: auto !important;
}

.hero-swiper .swiper-slide {
    width: 100%;
    min-height: 100vh !important;
    min-height: 100svh !important;
    height: auto !important;
    pointer-events: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-swiper .swiper-slide-active {
    pointer-events: auto;
}

/* Hero legibility: stronger white overlay on mobile */
@media (max-width: 1023px) {
    .hero-swiper .absolute.inset-0.bg-gradient-to-r {
        background: linear-gradient(to right, #fff 0%, #fff 72%, rgba(255,255,255,0.3) 100%) !important;
    }
}

/* Hades Arrows - elegant 48px circular, hide_under 1024px */

@media (max-width: 1024px) {
    
}

/* Hero headline — no hyphenation, words never cut */
.hero-headline {
    text-wrap: pretty;
    overflow-wrap: normal;
    word-break: normal;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    -webkit-hyphenate-limit-chars: auto 0;
    hyphens: none;
}

/* ========================================
   Sequential Reveal System — Enterprise
   ======================================== */

/* Hero load sequence */
@keyframes heroInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes heroScaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.hero-seq {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-seq-1 { animation: heroInLeft 0.9s forwards; animation-delay: 0.15s; }
.hero-seq-2 { animation: heroInUp 0.8s forwards; animation-delay: 0.45s; }
.hero-seq-3 { animation: heroInUp 0.8s forwards; animation-delay: 0.65s; }
.hero-seq-4 { animation: heroScaleIn 0.7s forwards; animation-delay: 0.85s; }
.hero-seq-5 { animation: heroInUp 0.7s forwards; animation-delay: 1.05s; }
.hero-seq-6 { animation: heroInUp 0.6s forwards; animation-delay: 1.25s; }

/* Staggered children — reveal one by one */
.stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger.revealed > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(7) { transition-delay: 600ms; opacity: 1; transform: none; }
.stagger.revealed > *:nth-child(8) { transition-delay: 700ms; opacity: 1; transform: none; }

/* Infographic colorful breaks — compact */
.story-break {
    max-width: 18rem;
    margin-left: auto;
    margin-right: auto;
    height: 3.25rem;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    position: relative;
    padding: 0 1rem;
}
@media (min-width: 640px) {
    .story-break { max-width: 20rem; height: 3.5rem; }
}
.story-break--amber { background: #fffbeb; border-color: #fde68a; color: #d97706; }
.story-break--sky { background: #f0f9ff; border-color: #bae6fd; color: #0284c7; }
.story-break--indigo { background: #eef2ff; border-color: #c7d2fe; color: #4f46e5; }

.quote-card--rose { background: #fff1f2; border-color: #fecdd3; }
.quote-card--sky { background: #f0f9ff; border-color: #bae6fd; }
.quote-card--amber { background: #fffbeb; border-color: #fde68a; }
.quote-card--violet { background: #f5f3ff; border-color: #ddd6fe; }

.infographic-chaos {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border: 1px dashed #fecaca;
}
.infographic-order {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
}

.purely-natural-card {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    border: 1px solid #bae6fd;
}
.petal {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50% 50% 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid;
    position: relative;
}
@media (min-width: 640px) {
    .petal { width: 6.5rem; height: 6.5rem; font-size: 0.7rem; }
}
.blend-grid {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    overflow: hidden;
}
.photo-grid-cell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.2/1;
}

/* ZOKU typographic system — Bebas Neue labels + outline numbers */
.zoku-label {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.22em;
    font-weight: 400;
    line-height: 1;
}
.zoku-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5.5rem;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(26,35,126,0.12);
    font-weight: 400;
}
@media (min-width: 768px) {
    .zoku-number { font-size: 6.5rem; }
}
.zoku-piramid-label {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.18em;
}
.dark-zoku {
    background: #0f172a;
    color: #e2e8f0;
}
.dark-zoku h2, .dark-zoku h3, .dark-zoku p {
    color: #f8fafc;
}
.dark-zoku .text-gray-600 { color: #cbd5e1 !important; }
.dark-zoku .text-gray-500 { color: #94a3b8 !important; }
.dark-zoku .bg-white { background: #1e293b !important; border-color: #334155 !important; }
.dark-zoku .venn-connector { opacity: 1; background: linear-gradient(to right, #f59e0b, #10b981, #8b5cf6) !important; }
.photo-grid-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venn-connector {
    height: 2px;
    background: linear-gradient(to right, #f59e0b, #10b981, #8b5cf6);
    opacity: 0.6;
}

.trust-card--colored:nth-child(1) .trust-icon { background: #eff6ff; }
.trust-card--colored:nth-child(2) .trust-icon { background: #fffbeb; }
.trust-card--colored:nth-child(3) .trust-icon { background: #f0fdf4; }
.trust-card--colored:nth-child(4) .trust-icon { background: #fef2f2; }
.trust-card--colored:nth-child(5) .trust-icon { background: #f5f3ff; }
.trust-card--colored:nth-child(6) .trust-icon { background: #ecfeff; }
.trust-card--colored:nth-child(7) .trust-icon { background: #fff7ed; }

@media (prefers-reduced-motion: reduce) {
    .stagger > *, .hero-seq {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
        transition: none !important;
    }
}

.hero-cta-3d:hover .cta-inner {
    transform: none;
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a237e, #1565c0);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

/* ========================================
   Ingredient Flip Cards
   ======================================== */

.flip-card {
    perspective: 1000px;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.flip-card-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    border-radius: 1rem;
    color: #ffffff;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.flip-card-img {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: contain;
    border: none;
    box-shadow: none;
    background: transparent;
    flex-shrink: 0;
}

.flip-card-front {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.flip-card-back {
    transform: rotateY(180deg);
    background: #1a237e;
    border-top: 4px solid var(--c1);
}

.flip-card-name {
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.25;
}

.flip-card-dose {
    font-size: 0.75rem;
    opacity: 0.9;
}

.flip-card-benefit {
    font-size: 1.125rem;
    line-height: 1.45;
    opacity: 0.95;
}

.flip-card:focus-within .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

@media (hover: hover) {
    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}

@media (min-width: 640px) {
    .flip-card {
        aspect-ratio: 4/5;
    }
}

/* Hero CTA gradient primary */
.hero-cta-primary {
    background: linear-gradient(135deg, #1a237e 0%, #1565c0 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(26,35,126,0.25);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    position: relative;
    z-index: 15;
}

.hero-cta-primary:hover {
    background: linear-gradient(135deg, #0d1557 0%, #1a237e 100%);
    box-shadow: 0 15px 40px rgba(26,35,126,0.35);
    transform: translateY(-2px);
}

/* Hero trust row */
.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #6b7280;
    pointer-events: none;
}

/* Ensure all hero interactive elements receive clicks */

/* ========================================
   Hero Interaction Fix — Swiper Cube
   Only active slide receives pointer events
   ======================================== */
/* ========================================
   Product Card Carousels
   ======================================== */
.product-swiper {
    width: 100%;
    height: 100%;
}
.product-swiper .swiper-slide {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.product-swiper .swiper-slide-active {
    opacity: 1;
}
.product-swiper .swiper-pagination {
    position: absolute;
    bottom: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
}
.product-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
}
.product-swiper .swiper-pagination-bullet-active {
    background: #1a237e;
    width: 18px;
    border-radius: 4px;
}
