﻿/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Ephesis&display=swap');

/* Reset & base improvements */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--linen);
    color: var(--sable);
    line-height: 1.6;
}

/* =========================
   Footer (FINAL LOCK)
   ========================= */
.site-footer {
    width: 100%;
    background: #f3efe7;
    border-top: 1px solid rgba(0,0,0,.08);
    display: block;
}

    .site-footer .footer-inner {
        max-width: 1100px;
        margin: 0 auto;
        padding: 36px 24px;
        text-align: center;
        font-size: 14px;
        color: var(--sable);
    }

/* =========================
   Brand Colors
   ========================= */
:root {
    --auburn: #A8857A;
    --basil: #626E60;
    --sable: #4A413A;
    --linen: #FAF6EE;
    --basil-soft: rgba(98,110,96,.12);
}

/* Headings */
h1, h2, h3 {
    font-family: Georgia, serif;
    margin: 0 0 12px 0;
}

/* =========================
   Header (LOCKED)
   ========================= */
header {
    background: rgba(250,246,238,.92);
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.header-inner {
    max-width: 1100px;
    margin: auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-frame {
    box-shadow: 0 0 0 1px rgba(74,65,58,.35);
    border-radius: 6px;
    padding: 1px;
    background: #FAF6EE;
    display: flex;
    align-items: center;
    overflow: hidden;
}

    .logo-frame img {
        height: 88px;
        display: block;
        max-width: 100%;
        width: auto;
    }

/* Navigation */
nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

    nav a {
        text-decoration: none;
        color: var(--sable);
        font-weight: 600;
    }

        nav a:hover {
            color: var(--basil);
        }

/* Shared button class */
.btn {
    display: inline-block;
    background: var(--auburn);
    color: white;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 650;
}

/* =========================
   Shared layout
   ========================= */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 64px 24px;
}

    /* Ensure pages that use a plain <h1> still look consistent */
    .container > h1,
    .container h1,
    .big {
        font-family: Georgia, serif;
        font-size: 40px;
        margin: 0 0 10px;
        line-height: 1.15;
    }

/* subtitle / sub: normalize both to same styling */
.sub, .subtitle {
    margin-top: 10px;
    font-size: 17px;
    max-width: 70ch;
    opacity: .92;
}

/* general section title */
.section-title {
    font-size: 32px;
    margin-bottom: 12px;
}

/* layout helpers */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.card {
    background: white;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.08);
}

    .card h3 {
        margin-top: 0;
    }

/* visual divider */
.divider {
    width: 120px;
    height: 4px;
    background: var(--basil);
    margin: 28px 0 40px;
    border-radius: 2px;
}

/* =========================
   Refill / How-it-works
   ========================= */
/* make .how-it-works consistent whether inside or outside .container */
.how-it-works {
    background: var(--basil-soft);
    padding: 36px;
    border-radius: 22px;
    border: 1px solid rgba(98,110,96,.35);
    margin: 36px 0;
}

    .how-it-works ul {
        padding-left: 20px;
    }

/* catalog / product grid */
.catalog {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.product {
    background: white;
    padding: 28px;
    border-radius: 20px;
    border-top: 4px solid var(--basil);
    border-left: 1px solid rgba(0,0,0,.08);
    border-right: 1px solid rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.badge {
    display: inline-block;
    background: rgba(98,110,96,.18);
    color: var(--basil);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    margin-bottom: 14px;
}

/* photo / placeholders */
.panel {
    background: var(--basil-soft);
    border: 1px solid rgba(98,110,96,.35);
    border-radius: 22px;
    padding: 22px;
}

.photo {
    background: white;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
}

.ph {
    height: 260px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(98,110,96,.22), rgba(168,133,122,.18));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-weight: 650;
    color: rgba(74,65,58,.9);
}

/* ingredients list */
.ingredients {
    background: white;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: 22px;
}

    .ingredients ul {
        padding-left: 18px;
        margin: 12px 0 0;
    }

    .ingredients li {
        margin: 10px 0;
    }

        .ingredients li::marker {
            color: var(--basil);
        }

/* note block */
.note {
    margin-top: 14px;
    font-size: 13px;
    opacity: .85;
    border-left: 4px solid rgba(98,110,96,.6);
    padding: 10px 12px;
    background: rgba(98,110,96,.08);
    border-radius: 12px;
}

/* actions / buttons */
.actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-block;
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 650;
    color: var(--sable);
}

/* Visit grid and helpers */
.visit-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: start;
    margin-top: 28px;
}

.kicker {
    display: inline-block;
    background: rgba(98,110,96,.18);
    color: var(--basil);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    margin-bottom: 14px;
}

.rows {
    display: grid;
    gap: 14px;
}

.rowline {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

    .rowline:last-child {
        border-bottom: none;
    }

.label {
    font-weight: 700;
}

.muted {
    opacity: .86;
}

/* iframe */
iframe {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 18px;
}
/* =========================
   Refill Category Cards
   ========================= */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.category-card {
    background: white;
    padding: 28px;
    border-radius: 18px;
    border: 2px solid rgba(98,110,96,.15);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .category-card:hover {
        border-color: var(--basil);
        box-shadow: 0 4px 12px rgba(98,110,96,.15);
        transform: translateY(-2px);
    }

    .category-card.active {
        border-color: var(--basil);
        background: var(--basil-soft);
    }

    .category-card h3 {
        margin: 0 0 8px 0;
        color: var(--sable);
    }

    .category-card p {
        margin: 0;
        font-size: 14px;
    }

.subcategory-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.subcategory-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid rgba(98,110,96,.25);
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--sable);
    transition: all 0.2s ease;
}

    .subcategory-btn:hover {
        border-color: var(--basil);
        background: var(--basil-soft);
    }

    .subcategory-btn.active {
        background: var(--basil);
        color: white;
        border-color: var(--basil);
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.product-item {
    background: white;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.08);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s ease;
}

    .product-item:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
        transform: translateY(-2px);
    }

    .product-item .badge {
        margin-bottom: 10px;
    }

    .product-item h4 {
        margin: 0 0 8px 0;
        font-family: Georgia, serif;
        font-size: 18px;
    }

    .product-item p {
        margin: 0;
        font-size: 14px;
        opacity: 0.8;
    }
/* =========================
   Refill Product Lists
   ========================= */
.refill-product-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

    .refill-product-list li {
        margin: 8px 0;
    }

    .refill-product-list a {
        color: var(--basil);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .refill-product-list a::before {
            content: '→';
            color: var(--auburn);
            font-weight: 700;
            transition: transform 0.2s ease;
        }

        .refill-product-list a:hover {
            color: var(--auburn);
        }

            .refill-product-list a:hover::before {
                transform: translateX(4px);
            }
/* =========================
   Mobile & Responsive
   ========================= */

/* Tablets and smaller desktops */
@media (max-width: 900px) {
    .visit-grid {
        grid-template-columns: 1fr;
    }

    iframe {
        height: 320px;
    }

    .pillars {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    /* Header adjustments */
    .header-inner {
        padding: 12px 18px;
        flex-wrap: wrap;
    }

    .logo-frame img {
        height: 56px;
    }

    /* Navigation - stack vertically or wrap */
    nav {
        gap: 10px;
        font-size: 14px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-top: 12px;
    }

        nav a {
            font-size: 14px;
        }

    /* Typography scaling */
    .big, .container h1, .container > h1 {
        font-size: 32px !important;
    }

    .section-title {
        font-size: 26px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    .sub, .subtitle {
        font-size: 16px;
    }

    /* Container padding */
    .container {
        padding: 36px 18px;
    }

    /* Cards and spacing */
    .card {
        padding: 20px;
    }

    .how-it-works {
        padding: 24px 18px;
        margin: 24px 0;
    }

    /* Buttons */
    .btn, .btn-secondary {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Product panels */
    .panel {
        padding: 16px;
    }

    .photo {
        padding: 12px;
    }

    .ingredients {
        padding: 18px;
    }

    /* Actions wrap better */
    .actions {
        flex-direction: column;
    }

        .actions a,
        .actions .btn {
            width: 100%;
            text-align: center;
        }
}

/* Very small phones */
@media (max-width: 480px) {
    .logo-frame img {
        height: 48px;
    }

    nav {
        font-size: 13px;
        gap: 8px;
    }

    .big, .container h1, .container > h1 {
        font-size: 28px !important;
        line-height: 1.2;
    }

    .section-title {
        font-size: 22px;
    }

    .container {
        padding: 24px 14px;
    }

    .card {
        padding: 16px;
    }

    .kicker {
        font-size: 11px;
        padding: 4px 10px;
    }
}
/* --- Append these modal styles at the end of styles.css --- */
.product-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1200; }
.product-modal.open { display: flex; }
.product-modal .modal-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
}
.product-modal .modal {
  position: relative; z-index: 2;
  background: #fff; border-radius: 14px; max-width: 880px; width: 94%;
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
  padding: 28px;
  display: flex; gap: 18px; flex-direction: column;
}
.product-modal .modal-close {
  position: absolute; right: 12px; top: 10px; background: transparent; border: none;
  font-size: 28px; line-height: 1; cursor: pointer; color: rgba(0,0,0,.6);
}
.product-modal .modal-image { max-height: 360px; object-fit: cover; }
@media (min-width: 800px) {
  .product-modal .modal { padding: 32px; }
  .product-modal .modal { display: grid; grid-template-columns: 1fr 1.2fr; align-items: start; gap: 28px; }
  .product-modal .modal-image { width: 100%; height: auto; border-radius: 12px; }
}
.product-modal .modal .modal-body { padding: 0; }
