/*
 * esodapeak.com - Portal Spec-Sheet v1 Stylesheet
 * Custom Palette: Deep Bronze, Dark Amber, Rich Charcoal, Warm Gold
 */

:root {
    --color-bg: #FAF8F5;
    --color-surface: #FFFFFF;
    --color-surface-alt: #F4EFEA;
    --color-surface-dark: #120C08;
    --color-surface-card-dark: #1F1510;
    --color-surface-dark-border: #3A261C;

    --color-primary: #8C3A10;
    --color-primary-dark: #632608;
    --color-primary-light: #B85A1A;
    --color-accent-gold: #C98A2C;
    --color-accent-amber: #E5A842;
    --color-accent-glow: rgba(201, 138, 44, 0.2);

    --color-text-main: #1C1A18;
    --color-text-muted: #57524E;
    --color-text-light: #FAF8F5;
    --color-text-light-muted: #D1C7BD;

    --color-border: #E5DCD3;
    --color-success: #1E7E34;
    --color-success-bg: #EAF6ED;
    --color-warning: #9A6700;
    --color-danger: #B3261E;

    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --shadow-sm: 0 2px 4px rgba(18, 12, 8, 0.05);
    --shadow-md: 0 4px 12px rgba(18, 12, 8, 0.08);
    --shadow-lg: 0 10px 25px rgba(18, 12, 8, 0.12);
    --shadow-gold: 0 8px 24px rgba(201, 138, 44, 0.25);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --max-w: 1200px;
    --max-w-narrow: 840px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-main);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
    width: 100%;
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.container-narrow {
    max-width: var(--max-w-narrow);
}

/* Micro-label & Kickers */
.micro-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-primary-light);
    margin-bottom: 0.5rem;
}

.micro-label.light {
    color: var(--color-accent-amber);
}

/* Ribbon */
.official-ribbon {
    background: #0E0A07;
    color: var(--color-text-light-muted);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(201, 138, 44, 0.3);
}

.ribbon-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ribbon-badge {
    background: var(--color-primary);
    color: #FFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2ECC71;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 0 rgba(46, 204, 113, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Masthead */
.masthead {
    background: var(--color-surface-dark);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-wordmark {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #FFF;
    line-height: 1.1;
}

.brand-name::after {
    content: "®";
    font-size: 0.8rem;
    color: var(--color-accent-amber);
    margin-left: 2px;
}

.brand-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent-amber);
    font-weight: 600;
}

/* Primary Navigation */
.primary-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.primary-nav a {
    color: var(--color-text-light-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    padding: 6px 0;
    position: relative;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: #FFF;
}

.primary-nav a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent-amber);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: #FFF;
    transition: transform 0.2s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #B85A1A 0%, #8C3A10 100%);
    color: #FFF;
    box-shadow: 0 4px 14px rgba(140, 58, 16, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #C96B2B 0%, #9D4515 100%);
    color: #FFF;
    box-shadow: 0 6px 20px rgba(140, 58, 16, 0.5);
}

.btn-gold {
    background: linear-gradient(135deg, #E5A842 0%, #C98A2C 100%);
    color: #120C08;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #F0B855 0%, #D89838 100%);
    color: #120C08;
    box-shadow: 0 10px 28px rgba(201, 138, 44, 0.4);
}

.btn-header {
    background: linear-gradient(135deg, #E5A842 0%, #C98A2C 100%);
    color: #120C08;
    font-size: 0.85rem;
    padding: 9px 16px;
    box-shadow: 0 2px 8px rgba(201, 138, 44, 0.3);
}

.btn-price-tag {
    background: #120C08;
    color: #FFF;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    margin-left: 6px;
}

.btn-secondary {
    background: #FFF;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--color-surface-alt);
    color: var(--color-primary-dark);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-dark {
    background: var(--color-surface-dark);
    color: var(--color-text-light);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #FFF;
}

.section-alt {
    background: var(--color-surface-alt);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #120C08 0%, #20150F 70%, #FAF8F5 100%);
    padding: 40px 0 60px 0;
    color: #FFF;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    color: #FFF;
    margin-bottom: 0.75rem;
}

.hero-subheadline {
    font-size: 1.15rem;
    color: var(--color-accent-amber);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.portal-phrase-box {
    background: rgba(255, 255, 255, 0.06);
    border-left: 4px solid var(--color-accent-gold);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-light-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 1.75rem;
}

.hero-badges-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.badge-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 138, 44, 0.25);
    padding: 10px 8px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFF;
    line-height: 1.2;
}

.hero-visual {
    text-align: center;
    position: relative;
}

.hero-visual img {
    margin: 0 auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
    max-height: 480px;
}

/* Summary-First Box */
.summary-first-section {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.summary-card {
    background: #FFF;
    border: 1px solid var(--color-border);
    border-top: 5px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.summary-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.canonical-phrase-target {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-main);
    background: #FFF9F2;
    border: 1px dashed rgba(201, 138, 44, 0.5);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

/* Spec Sheet Table */
.spec-sheet-card {
    background: #FFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 1.5rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.spec-table th,
.spec-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.spec-table tr:nth-child(even) td {
    background: #FAF8F5;
}

.spec-table tr:hover td {
    background: #F4EFEA;
}

.spec-key {
    font-weight: 700;
    color: var(--color-text-muted);
    width: 28%;
    background: #F9F6F2;
}

.spec-val {
    color: var(--color-text-main);
}

/* Lot Table */
.lot-card {
    background: #FFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-top: 1.5rem;
}

.lot-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 1rem;
}

.lot-table th {
    background: var(--color-surface-dark);
    color: #FFF;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

.lot-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
}

.status-verified {
    display: inline-flex;
    align-items: center;
    color: var(--color-success);
    font-weight: 700;
    font-size: 0.8rem;
}

.status-verified::before {
    content: "✓";
    display: inline-block;
    margin-right: 4px;
    font-weight: 900;
}

/* Pricing Grid */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 2rem;
    align-items: stretch;
}

.pack-card {
    background: #FFF;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pack-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pack-card.featured {
    border-color: var(--color-accent-gold);
    background: #FFFDF9;
    box-shadow: var(--shadow-gold);
    transform: scale(1.03);
}

.pack-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pack-ribbon-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #E5A842 0%, #C98A2C 100%);
    color: #120C08;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.pack-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.pack-supply {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.pack-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.pack-img img {
    max-height: 100%;
    object-fit: contain;
}

.pack-pricing {
    margin-bottom: 1.25rem;
}

.price-per-bottle {
    display: flex;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
}

.price-currency {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-number {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.price-unit {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-left: 4px;
    text-align: left;
    line-height: 1.1;
}

.pack-savings-pill {
    display: inline-block;
    background: var(--color-success-bg);
    color: var(--color-success);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 8px;
}

.pack-details-list {
    list-style: none;
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    text-align: left;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.pack-details-list li {
    padding: 6px 0;
    display: flex;
    align-items: center;
}

.pack-details-list li::before {
    content: "✓";
    color: var(--color-success);
    font-weight: 900;
    margin-right: 8px;
}

.pack-total-line {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    color: var(--color-text-muted);
}

.pack-total-line strong {
    color: var(--color-text-main);
    font-size: 1.1rem;
}

.pack-cta {
    margin-top: auto;
}

.pack-cta .btn {
    width: 100%;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.review-card {
    background: #FFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.reviewer-name {
    font-weight: 700;
    font-size: 1rem;
}

.reviewer-loc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.star-rating {
    color: #F4B400;
    font-size: 1rem;
    letter-spacing: 2px;
}

.verified-badge {
    color: var(--color-success);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 2px;
}

.review-body {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-text-main);
}

/* FAQ Accordion */
.faq-accordion {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #FFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question:hover {
    background: #FAF8F5;
}

.faq-icon {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
    color: var(--color-primary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.faq-item.active .faq-answer {
    display: block;
}

/* References Box */
.references-box {
    background: #F4EFEA;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 1.5rem;
}

.references-list {
    list-style: decimal;
    padding-left: 20px;
    font-size: 0.88rem;
}

.references-list li {
    margin-bottom: 0.75rem;
}

.references-list a {
    font-weight: 600;
}

/* Close Ink Band */
.band-ink {
    background: linear-gradient(180deg, #1A120B 0%, #0E0A07 100%);
    color: #FFF;
    padding: 70px 0;
    text-align: center;
}

.band-ink h2 {
    color: #FFF;
    margin-bottom: 1rem;
}

.band-ink p {
    color: var(--color-text-light-muted);
    max-width: 680px;
    margin: 0 auto 1.5rem auto;
}

/* Footer */
.site-footer {
    background: #080503;
    color: #8C847E;
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(201, 138, 44, 0.2);
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #FFF;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-heading {
    color: #FFF;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #A89F96;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-accent-amber);
    text-decoration: underline;
}

.disclaimer-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.78rem;
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.footer-meta code {
    color: var(--color-accent-amber);
    font-family: var(--font-mono);
}

/* Responsive Rules */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .portal-phrase-box {
        text-align: left;
    }
    .packs-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }
    .pack-card.featured {
        transform: none;
    }
    .pack-card.featured:hover {
        transform: translateY(-4px);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface-dark);
        border-top: 1px solid rgba(201, 138, 44, 0.3);
        padding: 20px;
    }
    .primary-nav.open {
        display: block;
    }
    .primary-nav .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .masthead-cta {
        display: none;
    }
    .hero-badges-row {
        grid-template-columns: 1fr 1fr;
    }
    .spec-key {
        width: 38%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
