/*
Theme Name: Shake & Sip
Description: A drink builder theme. Guests pick a base, flavours, mixers and garnish, then get matching recipes. Build by taste. Discover by culture.
Version: 1.0
Author: Kayla and Christina
Text Domain: shakeandsip
*/

:root {
  --sage: #A7B795;
  --sage-light: #dfe6d6;
  --cream: #F8F7F2;
  --navy: #10212B;
  --gold: #D5A34A;
  --gold-dark: #b88a35;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(16, 33, 43, 0.08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: var(--sans); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* Buttons */
.btn { display: inline-block; background: var(--gold); color: var(--navy); border: 0; border-radius: 999px; padding: 14px 28px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 2px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-small { padding: 9px 18px; font-size: .9rem; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid rgba(16,33,43,.1); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; max-width: 1180px; margin: 0 auto; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; text-decoration: none; }
.logo span { color: var(--gold-dark); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a, .main-nav button.nav-link { text-decoration: none; font: 500 .95rem var(--sans); background: none; border: 0; cursor: pointer; color: var(--navy); padding: 6px 0; }
.main-nav a:hover, .main-nav button.nav-link:hover { color: var(--gold-dark); }
.has-dropdown { position: relative; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); padding: 10px; z-index: 60; }
.dropdown a { display: block; padding: 8px 12px; border-radius: 8px; }
.dropdown a:hover { background: var(--sage-light); }
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { display: block; }
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); border-radius: 8px; padding: 6px 12px; font: 600 .9rem var(--sans); cursor: pointer; }
.search-drawer { display: none; background: var(--sage-light); padding: 14px 0; }
.search-drawer.open { display: block; }
.search-form { display: flex; gap: 10px; max-width: 600px; margin: 0 auto; padding: 0 20px; }
.search-form input[type=search] { flex: 1; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(16,33,43,.2); font: 1rem var(--sans); background: var(--white); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--sage-light), var(--cream)); padding: 70px 0; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.eyebrow { letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; color: rgba(16,33,43,.6); margin-bottom: 10px; }
.hero p.lead { font-size: 1.15rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { background: var(--sage); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.hero-art svg { width: 100%; height: auto; }
.hero-search { margin-top: 26px; max-width: 520px; }
.hero-search .search-form { padding: 0; margin: 0; }

/* Steps strip */
.steps-strip { padding: 50px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.step-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--sage-light); display: grid; place-items: center; font: 700 1.4rem var(--serif); }
.steps-grid h4 { font-family: var(--sans); font-size: 1rem; margin-bottom: 4px; }
.steps-grid p { margin: 0; font-size: .92rem; opacity: .8; }

/* Builder */
.builder-wrap { padding: 40px 0 60px; }
.builder-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
.panel { background: var(--white); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.builder-form .tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 22px; }
.tab { border: 0; background: var(--sage-light); border-radius: 999px; padding: 8px 16px; font: 600 .85rem var(--sans); cursor: pointer; color: var(--navy); }
.tab.is-active { background: var(--navy); color: var(--cream); }
.step { display: none; }
.step.is-active { display: block; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 22px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: block; text-align: center; padding: 14px 10px; border: 2px solid rgba(16,33,43,.12); border-radius: 12px; cursor: pointer; font-weight: 500; background: var(--cream); transition: all .15s; }
.pill:hover span { border-color: var(--gold); }
.pill input:checked + span { border-color: var(--gold); background: #fbf1dc; font-weight: 700; }
.pill input:focus-visible + span { outline: 3px solid var(--navy); }
.step-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.hint { font-size: .9rem; opacity: .7; margin-top: -10px; margin-bottom: 14px; }

/* Cards */
.section { padding: 50px 0; }
.section-sage { background: var(--sage); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sage-light); }
.card-img img, .card-img svg { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.35rem; }
.card-body h3 a { text-decoration: none; }
.card-meta { margin: 0; font-size: .88rem; opacity: .75; flex: 1; }
.match-tag { display: inline-block; background: var(--sage-light); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 600; width: fit-content; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tile { background: var(--white); border-radius: var(--radius); padding: 20px; text-decoration: none; box-shadow: var(--shadow); display: block; }
.tile h4 { font-family: var(--sans); font-size: 1rem; margin-bottom: 4px; }
.tile p { margin: 0; font-size: .9rem; opacity: .75; }
.tile:hover { transform: translateY(-2px); }

/* Daily feature */
.feature-card .card-img { aspect-ratio: 16 / 10; }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(16,33,43,.2); display: block; }
.dots i.on { background: var(--navy); }
.feature-label { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 10px; }

/* Archive and results */
.page-head { padding: 50px 0 20px; }
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 28px; }
.filter-pills a { padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid rgba(16,33,43,.15); text-decoration: none; font-size: .9rem; font-weight: 500; }
.filter-pills a.is-active, .filter-pills a:hover { background: var(--navy); color: var(--cream); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.chip { background: var(--sage-light); padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.empty { background: var(--white); border-radius: var(--radius); padding: 30px; text-align: center; }
.pagination { margin: 30px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; background: var(--white); border-radius: 8px; text-decoration: none; }
.pagination .current { background: var(--navy); color: var(--cream); }

/* Single recipe */
.recipe { padding: 40px 0 60px; }
.recipe-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.recipe-photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--sage-light); }
.recipe-photo img, .recipe-photo svg { width: 100%; height: auto; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.badges a { background: var(--sage-light); padding: 4px 12px; border-radius: 999px; text-decoration: none; font-size: .85rem; font-weight: 600; }
.ingredients li { padding: 6px 0; border-bottom: 1px solid rgba(16,33,43,.08); }
.ingredients, .method { padding-left: 0; list-style: none; margin: 0 0 24px; }
.method { counter-reset: s; }
.method li { counter-increment: s; position: relative; padding: 8px 0 8px 44px; }
.method li::before { content: counter(s); position: absolute; left: 0; top: 6px; width: 30px; height: 30px; background: var(--gold); border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.source-note { font-size: .88rem; background: var(--white); padding: 12px 16px; border-radius: 10px; border-left: 4px solid var(--gold); }
.recipe-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.rating-row { display: flex; gap: 30px; flex-wrap: wrap; margin: 12px 0 20px; font-size: .9rem; }

/* Footer */
.site-footer { background: var(--navy); color: var(--cream); padding: 40px 0; margin-top: 40px; }
.site-footer a { color: var(--gold); }
.site-footer p { margin: 4px 0; font-size: .9rem; }

/* Age gate */
.age-gate { position: fixed; inset: 0; background: rgba(16,33,43,.85); display: none; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.age-gate.show { display: flex; }
.age-box { background: var(--cream); border-radius: 20px; padding: 36px; max-width: 460px; text-align: center; }
.age-box .btn { margin: 6px; }

.entry-content { max-width: 760px; }

@media (max-width: 900px) {
  .hero-inner, .builder-layout, .recipe-top { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .main-nav { display: none; flex-direction: column; align-items: flex-start; width: 100%; gap: 10px; }
  .main-nav.open { display: flex; }
  .dropdown { position: static; box-shadow: none; }
}

.hero-art img { width: 100%; height: auto; border-radius: 16px; display: block; }
.custom-logo { max-height: 56px; width: auto; }
