/* ==========================================================================
   Utopia Brewery — Brewery CSS
   Dark editorial aesthetic matching the provided design mockup
   ========================================================================== */

:root {
    --bg:          #f5f0e8;
    --bg-dark:     #1a1008;
    --text:        #1a1008;
    --text-muted:  #6b5e4e;
    --accent:      #5c7a3e;      /* forest green — "Acquire" button */
    --accent-warm: #c8a96e;      /* gold — price, labels */
    --border:      #d8cfc0;
    --white:       #ffffff;
    --font-serif:  'Georgia', 'Times New Roman', serif;
    --font-sans:   'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-bottom: 2px;
    transition: color 0.15s;
}

nav a:hover,
nav a.nav-active {
    color: var(--text);
    border-bottom: 2px solid var(--accent-warm);
}

/* ==========================================================================
   Archive index — intro
   ========================================================================== */
.archive-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.archive-intro {
    margin-bottom: 2.5rem;
}

.release-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 0.75rem;
}

.archive-intro h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.archive-sub {
    color: var(--text-muted);
    max-width: 520px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Product grid
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 640px) {
    .product-grid { grid-template-columns: 1fr; }
}

.product-card {
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.product-card:hover { opacity: 0.88; }

.card-image-wrap {
    position: relative;
    overflow: hidden;
    background: #e0d8cc;
    aspect-ratio: 4/3;
}

.product-card--featured .card-image-wrap {
    aspect-ratio: 3/2;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--bg-dark);
    color: var(--bg);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
}

.card-info {
    padding: 0.75rem 0;
}

.card-info h2 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.card-sub {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.card-price {
    font-size: 0.95rem;
    color: var(--accent-warm);
}

/* ==========================================================================
   Tasting Room banner
   ========================================================================== */
.tasting-banner {
    background: var(--accent);
    color: var(--white);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.tasting-text h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.tasting-text p {
    font-size: 0.85rem;
    opacity: 0.85;
}

.btn-tasting {
    background: var(--accent-warm);
    color: var(--bg-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
}

/* ==========================================================================
   Product detail page
   ========================================================================== */
.product-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

@media (max-width: 768px) {
    .product-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.product-image-col img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

.product-info-col h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.product-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    line-height: 1.7;
}

.flavor-heading {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.flavor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.flavor-tag {
    background: var(--bg-dark);
    color: var(--bg);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.75rem;
}

/* Purchase box */
.product-purchase-box {
    border: 1px solid var(--border);
    padding: 1.25rem 1.5rem 1.5rem;
    margin-bottom: 1.75rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.box-label {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.product-price-large {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text);
}

.availability-col { text-align: right; }

.availability-text {
    font-size: 0.8rem;
    color: var(--accent-warm);
}

.btn-acquire {
    width: 100%;
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 1rem;
    font-size: 0.78rem;
    font-family: var(--font-sans);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 0.6rem;
}

.btn-acquire:hover { background: #4a6832; }
.btn-acquire:disabled { opacity: 0.5; cursor: not-allowed; }

.delivery-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

/* Meta grid */
.product-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    margin-bottom: 1rem;
}

.product-origin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.meta-label {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.meta-value {
    font-size: 0.88rem;
    color: var(--text);
}

/* Philosophy section */
.philosophy-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

@media (max-width: 768px) {
    .philosophy-section { grid-template-columns: 1fr; gap: 2rem; }
}

.philosophy-text h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.philosophy-text p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.read-more-link {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--text);
    padding-bottom: 1px;
}

.philosophy-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.philosophy-images img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Overlays
   ========================================================================== */
.result-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 16, 8, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 1rem;
}

.result-overlay.hidden { display: none; }

.result-box {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.result-approved { border-top: 4px solid var(--accent); }
.result-declined  { border-top: 4px solid #b94040; }

.result-box h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.result-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.btn-close {
    margin-top: 1.5rem;
    background: var(--bg-dark);
    color: var(--bg);
    border: none;
    padding: 0.6rem 1.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

/* Loading box */
.loading-box {
    text-align: center;
    padding: 3rem 2.5rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Back navigation (product page)
   ========================================================================== */
.back-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem 0;
}

.back-link {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0;          /* larger tap target on mobile */
}

.back-link:hover {
    color: var(--text);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-dark);
    color: #c8b89a;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 600px;
    gap: 2rem;
    max-width: 100%;
}

@media (max-width: 640px) {
    .site-footer { grid-template-columns: 1fr; }
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: #e8d9b0;
    margin-bottom: 0.5rem;
}

.footer-tag {
    font-size: 0.78rem;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.footer-copy {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    opacity: 0.5;
}

.footer-heading {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e8d9b0;
    margin-bottom: 0.75rem;
}

.site-footer a {
    display: block;
    font-size: 0.78rem;
    opacity: 0.7;
    margin-bottom: 0.4rem;
    transition: opacity 0.15s;
}

.site-footer a:hover { opacity: 1; }
