/* ============================================
   OttersDesigns - Design tokens
   Concept: river-otter / burrow. A dark "underwater"
   theme with a warm amber "fur" accent and a teal
   "river" accent. Ripple motif used sparingly as the
   signature element (card hover, section dividers).
   ============================================ */

:root {
    --bg: #081B32;
    --surface: #0F2A4A;
    --surface-alt: #133561;
    --text: #EAF2FB;
    --text-muted: #93AAC4;
    --border: #1D3F68;

    --amber: #D6A26C;
    --amber-soft: #E3B583;
    --teal: #4C9BF0;
    --teal-soft: #6FB2FF;

    --success: #3E8E5C;
    --danger: #E0574A;
    --radius: 10px;
    --font-display: 'Sora', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.55;
    transition: background 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Announcement bar ---------- */
.announcement-bar {
    background: var(--teal);
    color: #fff;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 9px 0;
}
.announcement-bar a { color: #fff; }

.discord-link {
    background: var(--surface-alt);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}
.discord-link:hover { color: var(--teal); }

/* ---------- Nav dropdown (Shop mega-menu) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 8px;
    min-width: 200px;
    z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.88rem;
}
.nav-dropdown-menu a:hover { background: var(--surface-alt); color: var(--amber); }

/* ---------- Cookie consent ---------- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 100;
    padding: 14px 0;
}
.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-consent-inner p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Promo popup ---------- */
.promo-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 300px;
    background: var(--surface);
    border: 1px solid var(--amber);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 40px 18px 18px;
    z-index: 90;
    animation: promoSlideIn 0.4s ease;
}
.promo-popup p { margin: 0; font-size: 0.88rem; font-weight: 600; }
.promo-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}
.promo-close:hover { color: var(--text); }
@keyframes promoSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
}

.brand img { height: 34px; width: auto; }

.brand .motto {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
}
.main-nav a:hover { color: var(--amber); }
.main-nav a.active { color: var(--amber); }
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--amber);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 80px;
    background: radial-gradient(ellipse at top right, var(--surface-alt), var(--bg) 60%);
}

.hero .eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-soft);
    margin-bottom: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.6);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    max-width: 14ch;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 4px 24px rgba(0, 0, 0, 0.7);
}

.hero .lede {
    max-width: 46ch;
    color: #DCE6F2;
    font-size: 1.1rem;
    margin: 16px 0 32px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 16px rgba(0, 0, 0, 0.6);
}

.hero .btn-primary { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
.hero .btn-outline {
    background: rgba(8, 20, 38, 0.65);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.ripple-divider {
    width: 100%;
    height: 40px;
    display: block;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--amber); color: #1C1200; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(199,121,31,0.3); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Stats strip ---------- */
.stats-strip {
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 36px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    text-align: center;
}
.stat-icon { font-size: 1.6rem; margin-bottom: 6px; }
.stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--amber); }
.stat-label { color: var(--text-muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }

/* ---------- Reviews marquee ---------- */
.marquee-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-row {
    display: flex;
    gap: 14px;
    width: max-content;
}
.marquee-left { animation: marquee-scroll 45s linear infinite; }
.marquee-right { animation: marquee-scroll 45s linear infinite reverse; }
.marquee-wrap:hover .marquee-row { animation-play-state: paused; }

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.review-card-sm {
    flex: 0 0 260px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
}
.review-card-sm .review-stars { color: var(--amber); letter-spacing: 1px; font-size: 0.85rem; margin-bottom: 6px; }
.review-card-sm .review-text { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 8px; line-height: 1.4; }
.review-card-sm .review-author { font-weight: 700; font-size: 0.82rem; }

@media (max-width: 640px) {
    .review-card-sm { flex-basis: 220px; }
}

/* ---------- Reviews (legacy single-row, kept for reference) ---------- */
.reviews-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}
.review-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}
.review-stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; }
.review-text { color: var(--text-muted); font-size: 0.92rem; min-height: 4.5em; }
.review-author { font-weight: 700; margin-top: 12px; font-size: 0.9rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
}
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--amber); font-weight: 800; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { margin-top: 12px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ---------- Portfolio lightbox ---------- */
.portfolio-card { cursor: pointer; }

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 10, 20, 0.94);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 40px 90px;
    box-sizing: border-box;
}
.lightbox-inner {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-inner img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-caption { text-align: center; margin-top: 18px; color: var(--text); max-width: 600px; }
.lightbox-caption h3 { margin: 8px 0 6px; }
.lightbox-caption p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.lightbox-close, .lightbox-nav {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }

.lightbox-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 1.1rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 1.8rem; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 700px) {
    .lightbox { padding: 20px 20px 100px; }
    .lightbox-nav { width: 44px; height: 44px; font-size: 1.5rem; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ---------- Partnership pitch ---------- */
.partnership-benefits {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    gap: 10px;
}
.partnership-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}
.partnership-benefits .check {
    color: var(--success);
    font-weight: 800;
    flex-shrink: 0;
}

/* ---------- Shop filters ---------- */
.shop-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.shop-filters input, .shop-filters select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.shop-filters input { flex: 1; min-width: 180px; }

/* ---------- Category grid ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.section-head p { color: var(--text-muted); margin: 6px 0 0; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
}
.card:hover { transform: translateY(-4px); border-color: var(--teal); }

.card-media {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--teal);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 18px 18px 20px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.card-body .desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 12px; min-height: 2.6em; }
.card-price { font-weight: 800; color: var(--amber); font-family: var(--font-display); }
.card-price-old { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; margin-right: 2px; }
.sale-badge {
    display: inline-block;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    margin-right: 6px;
}
.sale-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--teal);
    margin-bottom: 10px;
}

/* ---------- Product gallery ---------- */
.product-gallery { margin: 20px 0 24px; max-width: 640px; }
.gallery-main {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 10px;
}
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumbs img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
}
.gallery-thumbs img:hover { border-color: var(--teal); }

/* ---------- Product builder form ---------- */
.builder {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }

.option-field {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 16px;
}
.option-field .field-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.option-field .req { color: var(--danger); margin-left: 4px; }
.price-tag { font-size: 0.8rem; color: var(--amber); font-weight: 700; }

.option-field input[type="text"],
.option-field textarea,
.option-field select {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.option-field textarea { min-height: 120px; resize: vertical; }

.choice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.9rem;
}
.choice-row:last-child { border-bottom: none; }
.choice-row .choice-price { color: var(--amber); font-weight: 700; font-size: 0.82rem; }

.upload-box {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    background: var(--bg);
    font-size: 0.88rem;
    display: block;
}
.upload-box:hover { border-color: var(--teal); color: var(--teal); }

input[type="color"] {
    width: 60px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: none;
    cursor: pointer;
}

/* ---------- Order summary sidebar ---------- */
.summary-box {
    position: sticky;
    top: 96px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.summary-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    padding-top: 16px;
    color: var(--amber);
}

.extras-list {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
}
.extras-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 4px 0;
}
.extras-list li span:last-child { color: var(--amber); font-weight: 600; white-space: nowrap; }

.discord-gate {
    margin-top: 16px;
    padding: 16px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.discord-gate p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Tips ---------- */
.tip-amounts { display: flex; gap: 10px; justify-content: center; margin: 24px 0 16px; flex-wrap: wrap; }
.tip-btn {
    padding: 14px 24px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}
.tip-btn:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Legal page content ---------- */
.legal-content { color: var(--text-muted); line-height: 1.7; }
.legal-content h2, .legal-content h3 { color: var(--text); margin-top: 1.6em; }
.legal-content ul, .legal-content ol { padding-left: 1.4em; }
.legal-content a { color: var(--teal); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
