/*
Theme Name: Sunrise POC
Description: Lean, fast theme for the Sunrise Dispensary demo. Pages are built with normal WordPress blocks; stores and Dutchie menus come from the Sunrise Dutchie plugin.
Version: 0.1.0
Author: Agri-Genesis IT
*/

:root {
  --ink: #1d1f1e;
  --ink-2: #3a3d3b;
  --sun: #ffc21a;
  --sun-2: #ffd75e;
  --flame: #e8452c;
  --flame-2: #c9361f;
  --cream: #f6f1e7;
  --paper: #ffffff;
  --line: #e6e0d3;
  --green: #1f8a4c;
  --radius: 14px;
  --wrap: 1200px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Work Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.gated body { overflow: hidden; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--flame-2); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1.02; letter-spacing: .3px; margin: 0 0 .4em; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.5vw, 46px); }
h3 { font-size: 26px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 99; background: var(--sun); padding: 8px 12px; }

/* Buttons */
.btn, .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--head); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 19px; letter-spacing: .5px;
  background: var(--flame); color: #fff; border: 2px solid var(--flame); border-radius: 999px; padding: 10px 22px;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover, .wp-block-button__link:hover { background: var(--flame-2); border-color: var(--flame-2); color: #fff; }
.btn-ghost, .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover, .is-style-outline .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-2); border-color: var(--sun-2); color: var(--ink); }

/* Demo banner */
.demo-bar { background: var(--sun); color: var(--ink); font-size: 13px; text-align: center; padding: 4px 10px; font-weight: 600; }

/* Header */
.site-head { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.logo img { display: block; height: 40px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: #fff; text-decoration: none; font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 18px; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav .current-menu-item a { background: rgba(255,255,255,.1); color: var(--sun); }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sd-chip { display: flex; flex-direction: column; line-height: 1.15; font-size: 13px; color: #ddd; text-decoration: none; padding: 4px 10px; border: 1px solid #444; border-radius: 10px; }
.sd-chip strong { color: #fff; }
.sd-chip:hover { border-color: var(--sun); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 28px; padding: 6px; cursor: pointer; }

.sd-open { font-size: 12px; font-weight: 600; color: #b9b9b9; }
.sd-open.is-open { color: #59d38c; }
.sd-store-card .sd-open, .sd-pick .sd-open { color: #8a7f6a; }
.sd-store-card .sd-open.is-open, .sd-pick .sd-open.is-open { color: var(--green); }

/* Main content (blocks) */
main { min-height: 50vh; }
.entry > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.entry > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.entry > .alignwide { max-width: 1320px; }
.entry > p, .entry > ul, .entry > ol, .entry > .wp-block-details { max-width: 820px; }
.entry > p, .entry > ul, .entry > ol, .entry > .wp-block-details { margin-left: max(20px, calc((100% - var(--wrap)) / 2 + 20px)); padding-left: 0; }
.entry > h2 { margin-top: 28px; }
.page-title { padding-top: 36px; }

/* Hero (Cover block) */
.wp-block-cover.hero { min-height: 520px !important; border-radius: 0; }
.wp-block-cover.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.wp-block-cover.hero p { font-size: 20px; color: #fff; }
.hero .wp-block-cover__inner-container { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Sections */
.band { padding: 48px 0; }
.band-cream { background: var(--cream); }
.band-ink { background: var(--ink); color: #fff; }
.band-sun { background: var(--sun); }

/* Store picker */
.sd-picker { padding-top: 40px; padding-bottom: 8px; }
.sd-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sd-pick { text-align: left; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, transform .15s; }
.sd-pick:hover { border-color: var(--ink); transform: translateY(-1px); }
.sd-pick.is-current { border-color: var(--flame); box-shadow: 0 0 0 3px rgba(232,69,44,.15); }
.sd-pick-name { font-family: var(--head); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 22px; line-height: 1; }
.sd-pick-city { font-size: 13px; color: #6b6458; }

/* Carousels */
.sd-carousels { padding-top: 24px; padding-bottom: 40px; }
.sd-row-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sd-row-head h2 { margin: 0; }
.sd-carousel { margin: 10px 0 24px; min-height: 380px; }
.sd-note { color: #6b6458; font-style: italic; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-grid a { display: block; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 14px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 22px; }
.cat-grid a { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; padding:12px 10px 14px; }
.cat-grid img { width: 96px; height: 96px; object-fit: contain; }
.cat-grid a:hover { border-color: var(--flame); color: var(--flame-2); }

/* Store list + store page */
.sd-store-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-top: 10px; padding-bottom: 40px; }
.sd-store-card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sd-store-card h3 { margin-bottom: 6px; }
.sd-store-card h3 a { color: var(--ink); text-decoration: none; }
.sd-addr { margin: 0 0 6px; }
.sd-hours { margin: 0 0 14px; font-size: 15px; color: #4b463d; }
.sd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.sd-actions .btn { font-size: 16px; padding: 8px 16px; }

.store-hero { background: var(--ink); color: #fff; padding: 40px 0 36px; }
.store-hero .kicker { color: var(--sun); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.store-hero .grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.store-facts { background: #2a2c2b; border-radius: var(--radius); padding: 20px; }
.store-facts dt { color: var(--sun); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-top: 10px; }
.store-facts dt:first-child { margin-top: 0; }
.store-facts dd { margin: 2px 0 0; }
.store-facts a { color: #fff; }

/* Shop page */
.shop-head { background: var(--cream); border-bottom: 1px solid var(--line); }
.shop-head .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.shop-head h1 { font-size: 34px; margin: 0; }
.shop-head .switch { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.shop-head select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid #bbb; }
.sd-menu { min-height: 80vh; }

/* Footer */
.site-foot { background: var(--ink); color: #cfcfcf; padding: 44px 0 30px; font-size: 15px; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 4px 0; }
.foot-legal { border-top: 1px solid #333; margin-top: 28px; padding-top: 16px; font-size: 13px; color: #9a9a9a; }

/* 21+ gate */
.sd-gate { position: fixed; inset: 0; z-index: 1000; background: rgba(20,21,20,.96); display: grid; place-items: center; padding: 20px; }
.sd-gate-box { background: var(--ink); color: #fff; border: 2px solid var(--sun); border-radius: 18px; padding: 32px 26px; max-width: 420px; text-align: center; }
.sd-gate-box h2 { color: var(--sun); }
.sd-gate-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.sd-gate .btn-ghost { color: #fff; border-color: #fff; }

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); padding: 8px 12px 16px; flex-direction: column; margin: 0; }
  .nav ul { flex-direction: column; }
  body.nav-open .nav { display: flex; }
  .site-head .wrap { gap: 10px; }
  .logo img { height: 32px; }
  .sd-chip { display: none; }
  .store-hero .grid, .foot-grid { grid-template-columns: 1fr; }
  .wp-block-cover.hero { min-height: 420px !important; }
}

/* ---- Content pages, FAQ, forms (added 2026-11-17) ---- */
.page-body { max-width: 860px; margin: 0 auto; padding: 0 20px 56px; }
.page-body h2 { font-size: 30px; margin-top: 1.4em; }
.page-body h3 { font-size: 22px; margin-top: 1.2em; }
.page-body.legal { font-size: 15.5px; }
.page-body.legal h2 { font-size: 24px; }
details.faq { border: 2px solid var(--line); border-radius: var(--radius); padding: 0; margin: 10px 0; background: #fff; }
details.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 24px; color: var(--flame); }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 18px 8px; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sd-form { display: grid; gap: 14px; background: var(--cream); border-radius: var(--radius); padding: 22px; margin: 18px 0 8px; }
.sd-form label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.sd-form input, .sd-form select, .sd-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfc6b4; border-radius: 10px; background: #fff; width: 100%; }
.sd-form fieldset { border: 1px solid #cfc6b4; border-radius: 10px; padding: 10px 14px; display: grid; gap: 6px; }
.sd-form legend { font-weight: 700; padding: 0 6px; }
.sd-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.sd-form label.check input { width: auto; margin-top: 5px; }
.sd-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sd-form .row3 { display: grid; grid-template-columns: 1fr .7fr 1fr; gap: 14px; }
.sd-form .req { color: var(--flame); }
.sd-form .hp { position: absolute; left: -5000px; }
.sd-form button { justify-self: start; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.foot-links a { color: #bdbdbd; font-size: 13px; }
@media (max-width: 640px) { .sd-form .row2, .sd-form .row3 { grid-template-columns: 1fr; } }
