/*
Theme Name: Twisted Spirits
Theme URI: https://twistedspirits.ca
Author: Twisted Spirits Liquor Store
Author URI: https://twistedspirits.ca
Description: Clean, minimal WordPress theme for Twisted Spirits Liquor Store, Kamloops BC. White background with blue accents.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: twisted-spirits
*/

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ===== VARIABLES ===== */
:root {
  --blue: #387ed1;
  --blue-dark: #2d6bb8;
  --blue-light: #f0f6ff;
  --blue-border: #d0e4f7;
  --text: #1a1a2e;
  --muted: #6b7280;
  --hint: #9ca3af;
  --surface: #f8f9fc;
  --border: #e8eaf0;
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 6px;
  --max-width: 1140px;
}

/* ===== BASE ===== */
body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25rem; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin-bottom: 1rem; color: var(--muted); }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--sm { padding: 40px 0; }
.section--grey { background: var(--surface); }

/* ===== HEADER / NAV ===== */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.site-logo:hover { color: var(--text); }
.logo-mark {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; fill: #fff; }
.primary-nav { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.primary-nav a {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 4px;
  transition: all .15s;
}
.primary-nav a:hover { color: var(--blue); background: var(--blue-light); }
.primary-nav .current-menu-item a,
.primary-nav a.active { color: var(--blue); background: var(--blue-light); }
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 8px 16px !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: all .3s; }

/* ===== DELIVERY BAR ===== */
.delivery-bar {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.delivery-bar a { color: #fff; text-decoration: underline; }

/* ===== AGE GATE OVERLAY ===== */
#age-gate {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.age-gate-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 36px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}
.age-gate-tag {
  font-size: 11px;
  color: var(--blue);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.age-gate-box h2 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text); }
.age-gate-box p { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.age-gate-btns { display: flex; gap: 10px; justify-content: center; }
.btn-yes {
  background: var(--blue); color: #fff; border: none;
  padding: 10px 28px; border-radius: 4px;
  font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background .15s;
}
.btn-yes:hover { background: var(--blue-dark); }
.btn-no {
  background: var(--white); color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px 28px; border-radius: 4px;
  font-family: var(--font); font-size: 13px; cursor: pointer;
  transition: all .15s;
}
.btn-no:hover { border-color: var(--muted); }
.age-gate-note { font-size: 11px; color: var(--hint); margin-top: 16px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 11px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-light); color: var(--blue); }
.btn-lg { padding: 14px 32px; font-size: 14px; }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-size: 11px;
  color: var(--blue);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 560px;
}
.hero p {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-meta-item { display: flex; align-items: center; gap: 8px; }
.hero-meta-dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; flex-shrink: 0; }
.hero-meta-text { font-size: 13px; color: var(--muted); }

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  background: var(--white);
  padding: 28px 24px;
}
.feature-icon {
  width: 36px; height: 36px;
  background: var(--blue-light);
  border-radius: 6px;
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 18px; height: 18px; fill: var(--blue); }
.feature-card h3 { font-size: 14px; margin-bottom: 6px; }
.feature-card p { font-size: 13px; margin: 0; }

/* ===== CATEGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.category-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
  text-decoration: none;
  background: var(--white);
}
.category-card:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}
.category-icon { font-size: 28px; margin-bottom: 8px; display: block; }

/* ===== SHOP EMBED ===== */
.shop-embed-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.shop-embed-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shop-embed-bar-title { font-size: 13px; font-weight: 500; color: var(--text); }
.shop-embed-url {
  font-size: 11px;
  color: var(--blue);
  font-family: monospace;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  padding: 2px 10px;
  border-radius: 3px;
}
.shop-embed-iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}
.shop-embed-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 18px;
  font-size: 12px;
  color: var(--hint);
}
.shop-embed-footer a { color: var(--blue); }

/* ===== INFO STRIP ===== */
.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}
.info-strip-cell {
  background: var(--white);
  padding: 20px 22px;
}
.info-strip-label {
  font-size: 10px;
  color: var(--hint);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 4px;
}
.info-strip-value { font-size: 14px; font-weight: 500; color: var(--text); }

/* ===== POLICY PAGES ===== */
.policy-wrap { max-width: 720px; margin: 0 auto; }
.policy-block { padding: 24px 0; border-bottom: 1px solid var(--border); }
.policy-block:last-child { border-bottom: none; }
.policy-block h3 { font-size: 16px; margin-bottom: 6px; }
.policy-block h4 {
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 500;
  margin: 18px 0 6px;
}
.policy-block p { font-size: 14px; }
.policy-block ul { font-size: 14px; color: var(--muted); line-height: 1.9; }
.policy-eff { font-size: 12px; color: var(--hint); margin-bottom: 16px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-row:last-child { border-bottom: none; }
.contact-info-icon {
  width: 32px; height: 32px;
  background: var(--blue-light);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 15px; height: 15px; fill: var(--blue); }
.contact-info-label { font-size: 11px; color: var(--hint); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.contact-info-val { font-size: 14px; color: var(--text); font-weight: 500; }
.contact-map { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 340px; }
.contact-map iframe { width: 100%; height: 100%; border: none; }

/* ===== FORM ===== */
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select,
.ts-form input,
.ts-form textarea,
.ts-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
  margin-bottom: 14px;
  outline: none;
}
.wpcf7-form input:focus,
.ts-form input:focus,
.ts-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56,126,209,0.1); }
.ts-form label { font-size: 12px; font-weight: 500; color: var(--text); display: block; margin-bottom: 5px; }

/* ===== FAQ ===== */
.faq-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 18px 20px; font-family: var(--font); font-size: 14px;
  font-weight: 500; color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-question:hover { background: var(--surface); color: var(--blue); }
.faq-question.open { color: var(--blue); }
.faq-chevron { width: 16px; height: 16px; fill: var(--hint); transition: transform .2s; flex-shrink: 0; }
.faq-question.open .faq-chevron { transform: rotate(180deg); fill: var(--blue); }
.faq-answer { padding: 0 20px 18px; font-size: 14px; color: var(--muted); display: none; }
.faq-answer.open { display: block; }

/* ===== DELIVERY PAGE ===== */
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.delivery-cell { background: var(--white); padding: 24px; }
.delivery-cell h3 { font-size: 14px; margin-bottom: 12px; }
.delivery-cell ul { list-style: none; padding: 0; font-size: 14px; color: var(--muted); line-height: 2; }
.delivery-cell li::before { content: "— "; color: var(--blue); }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 32px 0; }
.step { background: var(--white); padding: 28px 22px; text-align: center; }
.step-num { width: 32px; height: 32px; background: var(--blue); color: #fff; border-radius: 50%; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.step h4 { font-size: 14px; margin-bottom: 6px; }
.step p { font-size: 13px; margin: 0; }

/* ===== FOOTER ===== */
#site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-about p { font-size: 13px; margin-top: 12px; }
.footer-col h4 { font-size: 12px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 12px; color: var(--hint); margin: 0; }
.footer-bottom a { color: var(--hint); }
.footer-bottom a:hover { color: var(--blue); }

/* ===== WIDGETS / SIDEBAR ===== */
.widget { margin-bottom: 32px; }
.widget-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--hint); margin-bottom: 14px; }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: border-color .15s; }
.blog-card:hover { border-color: var(--blue); }
.blog-card-img { height: 180px; background: var(--surface); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-tag { font-size: 11px; color: var(--blue); font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.blog-card h3 { font-size: 15px; margin-bottom: 8px; }
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--blue); }
.blog-card p { font-size: 13px; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs { padding: 14px 0; font-size: 12px; color: var(--hint); border-bottom: 1px solid var(--border); }
.breadcrumbs a { color: var(--hint); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span { margin: 0 6px; }

/* ===== PILLS / BADGES ===== */
.badge { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 11px; font-weight: 500; }
.badge-blue { background: var(--blue-light); border: 1px solid var(--blue-border); color: #2d6bb8; }
.badge-green { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.9rem; }
  .primary-nav { display: none; }
  .hamburger { display: block; }
  .primary-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px; gap: 4px; z-index: 99;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .delivery-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .info-strip { grid-template-columns: 1fr; }
}
