/* ============================================================
   Stinkin Budz - Main site styles
   Brand palette:
     --pine   #2d5047  (dark green)
     --olive  #9ba55d  (yellow-green)
     --jade   #409e7c  (medium green)
     --mist   #cdcfce  (light gray)
   ============================================================ */

:root {
    --pine: #2d5047;
    --pine-dark: #1f3a33;
    --pine-darker: #162924;
    --olive: #9ba55d;
    --jade: #409e7c;
    --jade-light: #5cb896;
    --mist: #cdcfce;
    --ink: #212a27;
    --paper: #f6f7f6;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(31, 58, 51, 0.12);
    --font: 'Poppins', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

img { max-width: 100%; }

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, var(--jade-light), var(--jade) 60%, #35876a);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(64, 158, 124, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(64, 158, 124, 0.45); }
.btn-ghost {
    background: transparent;
    color: inherit;
    border-color: currentColor;
}
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }

/* ---------------- Age gate ---------------- */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(22, 41, 36, 0.92);
    backdrop-filter: blur(8px);
}
.age-gate[hidden] { display: none; }
.age-gate-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    max-width: 440px;
    text-align: center;
    box-shadow: var(--shadow);
}
.age-gate-logo { height: 80px; margin-bottom: 1rem; }
.age-gate-card h2 { color: var(--pine); font-size: 1.6rem; margin-bottom: 0.5rem; }
.age-gate-card p { color: #5b6663; margin-bottom: 1.5rem; }
.age-gate-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.age-gate-buttons .btn-ghost { color: var(--pine); }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(45, 80, 71, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(22, 41, 36, 0.25);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.brand-logo { height: 42px; }
.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
}
.brand-name span { color: var(--olive); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}
.main-nav a {
    color: var(--mist);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav .nav-portal { color: var(--olive); }
.main-nav .nav-shop { color: var(--white); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------------- Hero ---------------- */
.hero {
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(64, 158, 124, 0.35), transparent 60%),
        radial-gradient(800px 400px at -10% 110%, rgba(155, 165, 93, 0.25), transparent 60%),
        linear-gradient(160deg, var(--pine) 0%, var(--pine-dark) 60%, var(--pine-darker) 100%);
    color: var(--white);
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2rem;
    padding: 5.5rem 0 6rem;
}
.hero-kicker {
    display: inline-block;
    background: rgba(64, 158, 124, 0.25);
    border: 1px solid rgba(92, 184, 150, 0.5);
    color: var(--jade-light);
    padding: 0.3rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.2rem;
}
.hero .accent { color: var(--olive); }
.hero-sub {
    color: var(--mist);
    font-size: 1.1rem;
    max-width: 34rem;
    margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.hero-cta .btn-ghost { color: var(--white); }
.hero-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
    color: var(--mist);
    font-size: 0.92rem;
}

.hero-art { display: flex; justify-content: center; }
.leaf-circle {
    width: min(340px, 80%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(92, 184, 150, 0.4), rgba(64, 158, 124, 0.12));
    border: 2px solid rgba(92, 184, 150, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.leaf-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10%;
}
.leaf-fallback { display: none; font-size: 7rem; }
.leaf-circle.no-img .leaf-fallback { display: block; }

/* ---------------- Sub-page hero (careers etc.) ---------------- */
.page-hero {
    background:
        radial-gradient(900px 400px at 85% -20%, rgba(64, 158, 124, 0.35), transparent 60%),
        linear-gradient(160deg, var(--pine) 0%, var(--pine-dark) 70%, var(--pine-darker) 100%);
    color: var(--white);
    padding: 4rem 0 3.2rem;
}
.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.8rem;
}
.page-hero .accent { color: var(--olive); }
.page-hero-sub { color: var(--mist); font-size: 1.05rem; max-width: 40rem; }

/* ---------------- Careers teaser (home page) ---------------- */
.careers-teaser {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 2rem;
    align-items: center;
}
.careers-teaser .section-sub { margin-bottom: 0; }
.careers-cta { text-align: center; }
@media (max-width: 760px) {
    .careers-teaser { grid-template-columns: 1fr; }
    .careers-cta { text-align: left; }
}

/* ---------------- Sections ---------------- */
.section { padding: 5rem 0; }
.section-kicker {
    color: var(--jade);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}
.section-title {
    color: var(--pine);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
}
.section-sub { color: #5b6663; max-width: 44rem; margin-bottom: 2rem; }

/* ---------------- Deals ---------------- */
.deal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.deal-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--jade);
    transition: transform 0.2s ease;
}
.deal-card:hover { transform: translateY(-6px); }
.deal-card-featured {
    border-top-color: var(--olive);
    background: linear-gradient(160deg, var(--pine), var(--pine-dark));
    color: var(--white);
}
.deal-card-featured p { color: var(--mist); }
.deal-value {
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--jade);
    line-height: 1;
    margin-bottom: 0.8rem;
}
.deal-card-featured .deal-value { color: var(--olive); }
.deal-value span { font-size: 2rem; vertical-align: super; }
.deal-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.deal-card p { color: #5b6663; font-size: 0.95rem; }

/* ---------------- Discount days ---------------- */
.discount-days { background: var(--white); }
.day-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
}
.day-card {
    background: var(--paper);
    border: 2px solid var(--mist);
    border-radius: var(--radius);
    padding: 1.6rem 1rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.day-card:hover { transform: translateY(-4px); border-color: var(--jade); }
.day-name {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--jade);
    margin-bottom: 0.6rem;
}
.day-icon { font-size: 2.2rem; display: block; margin-bottom: 0.6rem; }
.day-card h3 { font-size: 1rem; color: var(--pine); }

.day-card.today {
    background: linear-gradient(160deg, var(--jade), var(--pine));
    border-color: var(--olive);
    box-shadow: 0 12px 28px rgba(64, 158, 124, 0.35);
}
.day-card.today .day-name { color: var(--olive); }
.day-card.today h3 { color: var(--white); }
.day-card.today::after {
    content: 'Today!';
    display: inline-block;
    margin-top: 0.6rem;
    background: var(--olive);
    color: var(--pine-darker);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
}

/* ---------------- Visit ---------------- */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
}
.info-list { list-style: none; display: grid; gap: 1.4rem; margin-top: 1rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 1.3rem;
}
.info-list strong { color: var(--pine); display: block; margin-bottom: 0.1rem; }
.info-list p { color: #5b6663; font-size: 0.95rem; }
.info-list a { color: var(--jade); text-decoration: none; font-weight: 600; }
.info-list a:hover { text-decoration: underline; }

.visit-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.visit-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-placeholder {
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background:
        linear-gradient(rgba(205, 207, 206, 0.55), rgba(205, 207, 206, 0.55)),
        repeating-linear-gradient(45deg, var(--white) 0 24px, var(--paper) 24px 48px);
    color: var(--pine);
}
.map-placeholder span { font-size: 3rem; }
.map-placeholder p { font-weight: 700; }
.map-placeholder small { color: #5b6663; }

/* ---------------- Vendors ---------------- */
.vendors { background: var(--pine); color: var(--white); }
.vendors .section-title { color: var(--white); }
.vendors .section-kicker { color: var(--olive); }
.vendors .section-sub { color: var(--mist); }
.vendors-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}
.vendor-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(205, 207, 206, 0.25);
    border-radius: var(--radius);
    padding: 2rem;
}
.vendor-card h3 { color: var(--olive); margin-bottom: 1rem; }
.vendor-card p { margin-bottom: 0.5rem; font-size: 0.97rem; }
.vendor-card a { color: var(--jade-light); text-decoration: none; font-weight: 600; }
.vendor-card a:hover { text-decoration: underline; }
.vendor-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(205, 207, 206, 0.25);
    color: var(--mist);
    font-size: 0.88rem;
}

/* ---------------- Careers / form ---------------- */
.careers { background: var(--white); }
.apply-form {
    background: var(--paper);
    border: 1px solid var(--mist);
    border-radius: var(--radius);
    padding: 2.2rem;
    max-width: 780px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--pine);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--mist);
    border-radius: 10px;
    background: var(--white);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--jade);
}
.form-group textarea { resize: vertical; }

.flash {
    max-width: 780px;
    padding: 1rem 1.3rem;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.flash-success { background: #e2f2ea; color: #1e5c44; border: 1px solid var(--jade); }
.flash-error { background: #f7e6e4; color: #8c3327; border: 1px solid #cf7a6d; }

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--pine-darker);
    color: var(--mist);
    padding: 3rem 0 2rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
}
.footer-brand p { font-size: 0.9rem; margin-top: 0.4rem; }
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.footer-links a { color: var(--mist); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--white); }
.footer-legal {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(205, 207, 206, 0.2);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: #8b9793;
}
.footer-legal p + p { margin-top: 0.4rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; padding: 4rem 0; }
    .hero-art { order: -1; }
    .leaf-circle { width: min(220px, 60%); }
    .deal-grid { grid-template-columns: 1fr; }
    .day-grid { grid-template-columns: repeat(2, 1fr); }
    .visit-grid, .vendors-inner { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--pine-dark);
        box-shadow: 0 12px 24px rgba(22, 41, 36, 0.4);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .main-nav.open { max-height: 420px; }
    .main-nav a { padding: 0.9rem 1.5rem; border-bottom: 1px solid rgba(205, 207, 206, 0.12); }
    .main-nav .nav-shop {
        margin: 1rem 1.5rem;
        text-align: center;
        border-bottom: 0;
    }
}

@media (max-width: 520px) {
    .day-grid { grid-template-columns: 1fr; }
    .hero-badges { flex-direction: column; gap: 0.5rem; }
}
