/* ========================================
   RICE CRAFT — Style Sheet
   ======================================== */

/* --- Tailwind CDN Config (Design Tokens) --- */
:root {
    --brand-dark: #1C100B;
    --brand-brown: #2C1A12;
    --brand-light: #4A3122;
    --brand-gold: #D4A373;
    --brand-gold-hover: #C29161;
    --brand-cream: #F9F6F0;
    --brand-chicken: #2E5A36;
    --brand-biryani: #B87333;
    --brand-garlic: #8B5A2B;
    --brand-basil: #8B0000;
    --font-sans: 'Prompt', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* --- Touch Target Minimum Size (Mobile) --- */
@media (max-width: 768px) {
    a, button, input, select, textarea, .btn-outline {
        min-height: 44px;
    }
    nav a, footer a, .footer-settings-form a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* --- Global --- */
body {
    background-color: #1C100B;
    color: #F9F6F0;
    overflow-x: hidden;
    font-family: var(--font-sans);
    line-height: 1.5;
}

::selection {
    background-color: var(--brand-gold);
    color: var(--brand-dark);
}

/* Section spacing — no collapses */
section + section {
    margin-top: 0;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1C100B; }
::-webkit-scrollbar-thumb { background: #4A3122; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #D4A373; }

/* --- Glass Nav --- */
.glass-nav {
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}
.glass-nav.scrolled {
    background: rgba(28, 16, 11, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: rgba(212, 163, 115, 0.15);
}

/* --- Product Card Hover --- */
.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* --- Buttons --- */
.btn-gold {
    background-color: #D4A373;
    color: #1C100B;
    transition: all 0.3s ease;
    min-height: 44px;
}
.btn-gold:hover {
    background-color: #C29161;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(212, 163, 115, 0.3);
}

.btn-outline {
    border: 1px solid #D4A373;
    color: #D4A373;
    transition: all 0.3s ease;
    opacity: 1;
}
.btn-outline:hover {
    background-color: rgba(212, 163, 115, 0.1);
    transform: translateY(-2px);
}

/* --- Step Connecting Lines --- */
.step-line::after {
    content: '';
    position: absolute;
    top: 24px;
    right: -50%;
    width: 100%;
    height: 2px;
    border-top: 2px dashed #D4A373;
    z-index: 0;
    opacity: 0.5;
}
@media (max-width: 1024px) {
    .step-line::after { display: none; }
}

/* --- How It Works: steps spacing fix --- */
/* Ensure steps don't touch each other on desktop */
@media (min-width: 1024px) {
    section[aria-label="How It Works"] [class*="lg\\:w-1\\/6"] {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    will-change: opacity, transform;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   SCROLLING TRUST BAR
   ============================================================ */

.trust-bar {
    width: 100%;
    background: #120905;
    border-top: 1px solid rgba(201, 160, 99, 0.2);
    border-bottom: 1px solid rgba(201, 160, 99, 0.12);
    padding: 16px 0;
    overflow: hidden;
    position: sticky;
    bottom: 0;
    z-index: 40;
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Marquee track */
.trust-marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 3%,
        black 93%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 3%,
        black 93%,
        transparent 100%
    );
}

.trust-scroll {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scrollTrust 28s linear infinite;
}

.trust-scroll:hover {
    animation-play-state: paused;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

.trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(201, 160, 99, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: rgba(201, 160, 99, 0.04);
    transition: border-color 0.3s, background 0.3s;
}

.trust-item:hover .trust-icon {
    border-color: #C9A063;
    background: rgba(201, 160, 99, 0.1);
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text .en {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.3;
}

.trust-text .th {
    font-size: 10px;
    color: #C9A063;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Vertical divider */
.trust-divider {
    width: 1px;
    height: 48px;
    background: rgba(201, 160, 99, 0.2);
    flex-shrink: 0;
    margin: 0 24px;
}

/* Partner CTA — fixed, not scrolling */
.trust-cta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 4px;
}

.trust-cta-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.trust-cta-text .en {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.3;
}

.trust-cta-text .th {
    font-size: 10px;
    color: #C9A063;
    font-weight: 300;
}

.trust-cta-btn {
    background: #C9A063;
    color: #120905;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.trust-cta-btn:hover {
    background: #B8904D;
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(201, 160, 99, 0.3);
}

.trust-cta-btn .arrow {
    font-size: 14px;
    transition: transform 0.3s;
}

.trust-cta-btn:hover .arrow {
    transform: translateX(3px);
}

@keyframes scrollTrust {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive: trust bar */
@media (max-width: 900px) {
    .trust-bar {
        position: static;
        border-bottom: 1px solid rgba(201, 160, 99, 0.12);
    }
    .trust-bar-inner { padding: 0 16px; }
    .trust-divider { margin: 0 16px; height: 40px; }
    .trust-cta-text { display: none; }
    .trust-scroll { gap: 40px; }
}

@media (max-width: 640px) {
    .trust-bar { padding: 12px 0; }
    .trust-scroll { gap: 30px; }

    .trust-marquee {
        mask-image: linear-gradient(to right, transparent 0%, black 3%, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 85%, transparent 100%);
    }

    .trust-item { gap: 8px; }
    .trust-icon { width: 36px; height: 36px; font-size: 16px; }
    .trust-text .en { font-size: 9px; letter-spacing: 1px; }
    .trust-text .th { font-size: 8px; }

    .trust-cta-btn { padding: 8px 16px; font-size: 10px; }
    .trust-divider { height: 32px; margin: 0 12px; }
}

/* --- Recipe Section Background Adjust --- */
@media (max-width: 640px) {
    .recipe-section { min-height: 40vh; }
}
