/* ===================================================================
   Tobacco Brew & Chew — Demo Site Styles
   =================================================================== */

:root{
  --bg: #0e0f12;
  --bg2: #16181d;
  --bg3: #1c1f26;
  --text: #f5f5f3;
  --text-dim: #b9bbc2;
  --text-faint: #9296a0;
  --amber: #f5b53d;
  --amber-soft: rgba(245,181,61,0.1);
  --teal: #22d3a6;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-lg: 0 22px 60px rgba(0,0,0,0.5);
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
  --header-h: 64px;
  --marquee-h: 40px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--marquee-h) + 16px);
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

/* Consistent keyboard focus ring */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
iframe:focus-visible{
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #0e0f12;
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; top: 0; }

.container{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.icon{
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm{ width: 0.9em; height: 0.9em; }

/* ---------------- Marquee ---------------- */
.marquee{
  overflow: hidden;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  height: var(--marquee-h);
  display: flex;
  align-items: center;
}
.marquee--brands{
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.marquee-track{
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-group{
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  flex-shrink: 0;
  white-space: nowrap;
}
.marquee-group span{
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  position: relative;
}
.marquee--top .marquee-group span{ color: #d9dbe0; }
.marquee-group span::after{
  content: "\2022";
  color: var(--amber);
  margin-left: 48px;
  position: absolute;
}
.marquee--brands .marquee-group span{
  color: var(--teal);
  text-shadow: 0 0 12px rgba(34,211,166,0.35);
}
.marquee--brands .marquee-group span::after{ color: var(--amber); }

/* ---------------- Header ---------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,15,18,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark{
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
  white-space: nowrap;
  display: flex;
  gap: 0.35em;
}
.wordmark-main{ color: var(--text); }
.wordmark-amp{ color: var(--amber); }

.main-nav{
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a{
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s var(--ease-out);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active{
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.hamburger span{
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s var(--ease-out);
}
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav{
  display: none;
  flex-direction: column;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 16px 24px 20px;
  gap: 4px;
}
.mobile-nav.open{ display: flex; }
.mobile-nav a{
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-nav .btn{ margin-top: 12px; justify-content: center; }

/* ---------------- Buttons & badges ---------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out),
              background 0.18s var(--ease-out), border-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn--sm{ font-size: 0.78rem; padding: 8px 16px; min-height: 40px; }
.btn--lg{ font-size: 0.9rem; padding: 14px 28px; min-height: 48px; }

.btn--call{
  background: var(--bg2);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--call:hover{ border-color: var(--teal); color: var(--teal); }

.btn--primary{
  background: var(--amber);
  color: #1a1204;
  box-shadow: 0 0 24px rgba(245,181,61,0.35);
}
.btn--primary:hover{ box-shadow: 0 0 34px rgba(245,181,61,0.6); }

.btn--outline{
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--outline:hover{ border-color: var(--teal); color: var(--teal); }

.badge-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.badge--glow{
  color: var(--amber);
  border-color: rgba(245,181,61,0.4);
  background: rgba(245,181,61,0.08);
  text-shadow: 0 0 12px rgba(245,181,61,0.4);
}
.badge--glow .icon{ fill: var(--amber); stroke: var(--amber); }

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  min-height: min(800px, 90vh);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,13,0.75) 0%, rgba(10,11,13,0.55) 35%, rgba(10,11,13,0.92) 100%),
    linear-gradient(90deg, rgba(10,11,13,0.95) 0%, rgba(10,11,13,0.55) 45%, rgba(10,11,13,0.75) 100%);
}
.hero-content{
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 24px 72px;
  width: 100%;
}
.hero-title{
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: clamp(2.1rem, 5.4vw, 3.7rem);
  line-height: 1.06;
  margin: 0 0 18px;
  max-width: 15ch;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.hero-sub{
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #e6e6e3;
  max-width: 54ch;
  margin: 0 0 28px;
}
.hero .badge-row{ margin-bottom: 32px; }
.hero-ctas{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero load-in */
@media (prefers-reduced-motion: no-preference){
  .hero-content > *{ animation: heroIn 0.7s var(--ease-out) both; }
  .hero-title{ animation-delay: 0.05s; }
  .hero-sub{ animation-delay: 0.15s; }
  .hero .badge-row{ animation-delay: 0.25s; }
  .hero-ctas{ animation-delay: 0.35s; }
}
@keyframes heroIn{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: none; }
}

/* ---------------- Sections ---------------- */
.section{ padding: 88px 0; }
.section-title{
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 12px;
  text-wrap: balance;
}
.section-lead{
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 0 44px;
}
.section-lead--center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------- Feature (retail) cards ---------------- */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card{
  position: relative;
  background: linear-gradient(180deg, var(--bg3), var(--bg2));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 24px;
  overflow: hidden;
  transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.feature-card::before{
  content: "";
  position: absolute;
  top: -50px; left: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle at center, rgba(245,181,61,0.20), transparent 68%);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out);
}
.feature-card:hover{
  border-color: rgba(34,211,166,0.45);
  box-shadow: var(--shadow-lg);
}
.feature-card .card-icon{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--amber-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 1.7rem;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), background 0.28s var(--ease-out);
}
.feature-card h3{
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.feature-card p{
  font-size: 0.92rem;
  color: var(--text-dim);
  margin: 0;
}

/* ---------------- Services (utility) tier ---------------- */
.services-head{
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 64px 0 26px;
}
.services-head h3{
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}
.services-rule{
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.service-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.service-item{
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.service-item:hover{
  border-color: rgba(34,211,166,0.35);
  background: #191c22;
}
.service-item .svc-icon{
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(34,211,166,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.15rem;
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
}
.service-item strong{
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  line-height: 1.2;
  margin-bottom: 3px;
}
.service-item span{
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.35;
}

/* ---------------- Reviews ---------------- */
.rating-block{
  text-align: center;
  margin: 0 auto 48px;
}
.stars{
  font-size: 2rem;
  color: var(--amber);
  text-shadow: 0 0 20px rgba(245,181,61,0.5);
  letter-spacing: 0.1em;
}
.rating-text{
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin: 6px 0 10px;
}
.link-arrow{
  color: var(--teal);
  font-weight: 600;
  border-bottom: 1px solid rgba(34,211,166,0.4);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.link-arrow:hover{ color: var(--amber); border-color: var(--amber); }

.reviews-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.review-card{
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px 26px;
  margin: 0;
}
.review-card::before{
  content: "\201C";
  position: absolute;
  top: 2px;
  left: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--amber);
  opacity: 0.35;
}
.review-card p{
  font-size: 1.05rem;
  margin: 0 0 14px;
  color: var(--text);
  text-wrap: pretty;
}
.review-card cite{
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* ---------------- About band ---------------- */
.about-band{
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 88px 0;
}
.about-band-inner{ max-width: 720px; }
.about-copy{
  font-size: 1.1rem;
  color: #dcdde1;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.badge-row--about{ margin-top: 4px; }

/* ---------------- Visit ---------------- */
.visit-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.visit-info{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.visit-line{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.visit-line .icon{ color: var(--teal); flex-shrink: 0; font-size: 1.3rem; }
.visit-line a{ transition: color 0.2s var(--ease-out); }
.visit-line a:hover{ color: var(--teal); }
.visit-line--hours{ align-items: flex-start; }
.hours-list{ margin: 0; display: flex; flex-direction: column; gap: 4px; }
.hours-row{ display: flex; gap: 10px; align-items: baseline; }
.hours-row dt{ min-width: 84px; font-weight: 600; }
.hours-row dd{ margin: 0; color: var(--text-dim); }
.visit-cta{ margin-top: 10px; align-self: flex-start; }

.visit-photo{
  margin: 40px 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.visit-photo img{
  display: block;
  width: 100%;
  height: auto;
}

/* Inside the store gallery */
.section--gallery{ background: var(--bg2); }
.gallery-grid{
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.gallery-item{
  position: relative;
  margin: 0;
  grid-column: span 2;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease-out);
}
.gallery-item--wide{ grid-column: span 3; aspect-ratio: 16 / 9; }
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.gallery-item figcaption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10,11,13,0.88));
}
@media (max-width: 860px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-item,
  .gallery-item--wide{ grid-column: span 1; aspect-ratio: 4 / 3; }
}
@media (max-width: 520px){
  .gallery-grid{ grid-template-columns: 1fr; }
}

.visit-map{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 360px;
  background: var(--bg2);
}
.map-fallback{
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  color: var(--text-faint);
}
.map-fallback .icon{ font-size: 1.8rem; color: var(--teal); }
.map-fallback span{ font-size: 0.9rem; }
.visit-map iframe{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* ---------------- Footer ---------------- */
.site-footer{
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.wordmark--footer{ font-size: 1.3rem; justify-content: center; }
.footer-brand p{
  margin: 6px 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.footer-brand a{ transition: color 0.2s var(--ease-out); }
.footer-brand a:hover{ color: var(--teal); }
.badge-row--footer{ justify-content: center; }
.footer-compliance{
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 10px 0 0;
}
.footer-copyright{
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 4px 0 0;
}

/* ---------------- Scroll reveal ---------------- */
.reveal{ will-change: transform, opacity; }

/* ---------------- Pointer-aware interactions ----------------
   Lifts/zooms/glows only where a fine pointer can hover, so touch taps
   never leave an element stuck in its hover state. */
@media (hover: hover) and (pointer: fine){
  .feature-card:hover{ transform: translateY(-5px); }
  .feature-card:hover::before{ opacity: 1; }
  .feature-card:hover .card-icon{
    transform: translateY(-2px) scale(1.06);
    background: rgba(245,181,61,0.16);
    box-shadow: 0 0 22px rgba(245,181,61,0.28);
  }
  .service-item:hover .svc-icon{
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(34,211,166,0.3);
  }
  .gallery-item:hover img{ transform: scale(1.05); }
}
/* Touch: give tappable cards a quick press-in acknowledgment instead. */
@media (hover: none){
  .feature-card:active,
  .service-item:active,
  .gallery-item:active{ transform: scale(0.985); }
  .gallery-item:active img{ transform: scale(1.03); }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px){
  .feature-grid{ grid-template-columns: repeat(2, 1fr); }
  .service-grid{ grid-template-columns: repeat(2, 1fr); }
  .reviews-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 860px){
  .main-nav{ display: none; }
  .header-actions .btn--call span{ display: none; }
  .header-actions .btn--call{ padding: 10px; border-radius: 50%; width: 44px; height: 44px; justify-content: center; }
  .header-actions .btn--call .icon{ margin: 0; font-size: 1.15rem; }
  .hamburger{ display: flex; }
  .visit-grid{ grid-template-columns: 1fr; }
  .section{ padding: 64px 0; }
  .hero{ min-height: min(560px, 92vh); }
  .hero-content{ padding: 84px 20px 56px; }
}

@media (max-width: 620px){
  .feature-grid{ grid-template-columns: 1fr 1fr; gap: 14px; }
  .service-grid{ grid-template-columns: 1fr; }
  .hero-ctas{ flex-direction: column; align-items: stretch; }
  .hero-ctas .btn{ justify-content: center; }
  .services-head{ margin-top: 48px; }
}

@media (max-width: 420px){
  .feature-card{ padding: 22px 18px; }
  .container{ padding: 0 18px; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .marquee-track{ transform: none !important; animation: none !important; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
