/* ============================================================
   SVT Rice Mall — stylesheet (production)
   ============================================================ */

:root {
    --surface: #eef2f5;
    --brand: #144121;
    --brand-light: #286a3b;
    --gold: #d4a900;
    --gold-light: #f3c300;
    --text-main: #374151;
    --text-light: #6b7280;

    /* 3D Shadows */
    --out: 12px 12px 24px #cbd3d9, -12px -12px 24px #ffffff;
    --out-hover: 16px 16px 32px #cbd3d9, -16px -16px 32px #ffffff;
    --in: inset 8px 8px 16px #cbd3d9, inset -8px -8px 16px #ffffff;
    --glass: 0 8px 32px 0 rgba(20, 65, 33, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
html { -webkit-text-size-adjust: 100%; }
body { background-color: var(--surface); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* ---------- Layout ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.pt-page { padding-top: 140px; }
.pb-page { padding-bottom: 80px; }
.section { padding: 80px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-gap { display: flex; gap: 16px; flex-wrap: wrap; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* ---------- Typography ---------- */
.h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 800; color: var(--brand); line-height: 1.1; margin-bottom: 24px; word-wrap: break-word; overflow-wrap: break-word; }
.h2 { font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 800; color: var(--brand); margin-bottom: 32px; word-wrap: break-word; overflow-wrap: break-word; }
.h3 { font-size: 1.5rem; font-weight: 800; color: var(--brand); margin-bottom: 12px; word-wrap: break-word; overflow-wrap: break-word; }
.text-lead { font-size: 1.125rem; font-weight: 300; margin-bottom: 32px; max-width: 800px; color: var(--text-light); }
.text-gold { color: var(--gold); }
.text-brand { color: var(--brand); }
.label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); display: block; margin-bottom: 8px; }

/* ---------- Neumorphic Components ---------- */
.neo-card { background: var(--surface); box-shadow: var(--out); border: 1px solid rgba(255,255,255,0.5); border-radius: 24px; padding: 32px; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.neo-card:hover { box-shadow: var(--out-hover); transform: translateY(-4px); }
.neo-inner { background: var(--surface); box-shadow: var(--in); border-radius: 16px; padding: 24px; }
.neo-pill { background: var(--surface); box-shadow: var(--in); display: inline-block; padding: 8px 16px; border-radius: 99px; font-weight: 700; font-size: 0.85rem; color: var(--brand); margin-bottom: 16px; }

/* ---------- Buttons ---------- */
.btn { padding: 16px 32px; border-radius: 16px; font-weight: 700; text-align: center; cursor: pointer; transition: box-shadow 0.3s ease, transform 0.3s ease; display: inline-block; border: none; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: white; box-shadow: var(--out); }
.btn-primary:hover { box-shadow: var(--in); transform: scale(0.98); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--brand); box-shadow: 4px 4px 10px rgba(212,169,0,0.4), -4px -4px 10px rgba(255,255,255,0.8); }
.btn-gold:hover { box-shadow: var(--in); transform: scale(0.98); }
.btn-ghost { background: var(--surface); color: var(--brand); box-shadow: var(--out); border: 1px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { box-shadow: var(--out-hover); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header { position: fixed; top: 16px; width: 100%; z-index: 50; padding: 0 24px; }
.nav-glass { max-width: 1280px; margin: 0 auto; background: rgba(255,255,255,0.4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.6); box-shadow: var(--glass); border-radius: 24px; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo img {
    height: 44px;
    width: auto;
    transform: scale(1.5);
    transform-origin: left center;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.3s;
}
.logo img:hover { transform: scale(1.55); }

.nav-links { display: flex; gap: 32px; font-weight: 600; color: var(--brand); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* Hamburger — hidden on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--brand);
    cursor: pointer;
    padding: 6px 12px;
    line-height: 1;
    border-radius: 12px;
    transition: background 0.2s;
}
.menu-toggle:hover { background: rgba(20, 65, 33, 0.08); }

/* ---------- Lists ---------- */
.neo-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(20, 65, 33, 0.1); font-weight: 700; font-size: 0.9rem; gap: 12px; }
.neo-list li:last-child { border-bottom: none; }
.neo-list span:first-child { color: var(--text-light); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; }

/* ---------- Marquee ---------- */
.marquee { background: var(--surface); box-shadow: var(--out); padding: 24px 0; overflow: hidden; white-space: nowrap; margin: 60px 0; border-top: 1px solid rgba(255,255,255,0.6); }
.marquee-inner { display: inline-block; animation: marquee 40s linear infinite; font-weight: 800; letter-spacing: 0.1em; color: var(--brand); font-size: 0.9rem; }
.marquee-inner span { margin: 0 24px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.footer { box-shadow: inset 0 10px 20px rgba(0,0,0,0.05); padding: 48px 0; margin-top: 60px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — scale logo down slightly */
@media (max-width: 1024px) {
    .logo img { transform: scale(1.3); }
    .logo img:hover { transform: scale(1.35); }
    .nav-links { gap: 20px; }
}

/* Small tablet / large phone */
@media (max-width: 900px) {
    .logo img { transform: scale(1.15); }
    .logo img:hover { transform: scale(1.2); }
    .nav-links { gap: 16px; font-size: 0.95rem; }
}

/* Mobile menu kicks in */
@media (max-width: 820px) {
    .menu-toggle { display: block; }

    /* Hide the desktop Get Rate button on mobile */
    .nav-glass > .btn.btn-ghost { display: none; }

    /* Nav links become a floating card */
    .nav-links {
        position: fixed;
        top: 88px;
        left: 16px;
        right: 16px;
        background: var(--surface);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 24px;
        border-radius: 24px;
        box-shadow: var(--out);
        border: 1px solid rgba(255,255,255,0.6);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
        z-index: 40;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        width: 100%;
        padding: 14px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(20, 65, 33, 0.08);
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a.active { color: var(--gold); }

    /* Layout stacks */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

    /* Neo-list becomes vertical */
    .neo-list li { flex-direction: column; align-items: flex-start; gap: 4px; }

    /* Section spacing tighter */
    .section { padding: 60px 0; }
    .pt-page { padding-top: 120px; }
    .pb-page { padding-bottom: 60px; }

    /* Flex-gap buttons stack nicely */
    .flex-gap { gap: 12px; }
}

/* Small phones */
@media (max-width: 520px) {
    .container { padding: 0 16px; }
    .header { padding: 0 12px; top: 12px; }
    .nav-glass { padding: 10px 16px; border-radius: 20px; gap: 8px; }
    .logo img { height: 36px; transform: scale(1.05); }
    .logo img:hover { transform: scale(1.1); }
    .menu-toggle { font-size: 1.4rem; padding: 4px 8px; }

    .nav-links {
        top: 78px;
        left: 12px;
        right: 12px;
        padding: 10px 20px;
    }
    .nav-links a { padding: 12px 0; font-size: 1rem; }

    .pt-page { padding-top: 110px; }
    .section { padding: 40px 0; }

    /* Buttons go full width */
    .btn { padding: 14px 24px; font-size: 0.95rem; }
    .flex-gap { flex-direction: column; }
    .flex-gap .btn { width: 100%; }

    /* Marquee slower on small screens, smaller text */
    .marquee { padding: 16px 0; margin: 40px 0; }
    .marquee-inner { font-size: 0.75rem; animation-duration: 60s; }
    .marquee-inner span { margin: 0 16px; }

    /* Cards tighter padding */
    .neo-card { padding: 22px; border-radius: 20px; }
    .neo-inner { padding: 18px; border-radius: 14px; }

    /* Footer stacks */
    .footer { padding: 32px 0; margin-top: 40px; }
    .footer .flex-between { flex-direction: column; gap: 12px; text-align: center; }

    /* Marquee overflow guard */
    body { overflow-x: hidden; }
}

/* Very small phones */
@media (max-width: 380px) {
    .container { padding: 0 12px; }
    .nav-glass { padding: 8px 12px; }
    .logo img { height: 32px; }
    .nav-links { left: 8px; right: 8px; }
    .neo-card { padding: 18px; }
}

/* Reduced motion — turn off animations for accessibility */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .marquee-inner { animation: none; }
}