/* ============================================
   EGLIN SMOKE SHOP
   Palette: cured tobacco / humidor
   ============================================ */

:root {
  /* Color */
  --ink:        #1A1512;   /* deep tobacco brown-black */
  --ink-2:      #241D18;   /* raised surface */
  --ink-3:      #2E251E;   /* border / hairline */
  --ember:      #C8703A;   /* cured amber — primary accent */
  --ember-lo:   #8F4E28;   /* pressed / shadow amber */
  --brass:      #D9B071;   /* brass hardware — secondary */
  --smoke:      #EDE6DC;   /* warm off-white text */
  --smoke-dim:  #A2958A;   /* muted text */
  --leaf:       #6B7F5E;   /* dried leaf green — tertiary */

  /* Type */
  --display: 'Bitter', Georgia, serif;
  --body:    'Karla', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Space */
  --gut: clamp(1.25rem, 4vw, 3rem);
  --sec: clamp(4rem, 9vw, 7.5rem);

  --radius: 3px;   /* almost square — humidor corners, not app cards */
  --shadow: 0 18px 50px -20px rgba(0,0,0,.75);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--smoke);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper-grain texture over the whole page. Subtle. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gut);
  position: relative;
  z-index: 2;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }

/* Section eyebrow — a stamped label, like a humidor tag */
.eyebrow {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ember);
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--ember);
  flex-shrink: 0;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--smoke-dim);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .93rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ember);
  color: #14100D;
  box-shadow: 0 8px 24px -10px rgba(200,112,58,.6);
}
.btn-primary:hover { background: #D57D45; }

.btn-ghost {
  background: transparent;
  color: var(--smoke);
  border-color: var(--ink-3);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,21,18,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.logo b { color: var(--ember); }

.logo-mark {
  width: 30px; height: 30px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--smoke-dim);
  letter-spacing: .02em;
  transition: color .16s;
  padding: .4rem 0;
  position: relative;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--smoke); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--ember);
}

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  width: 42px; height: 42px;
  cursor: pointer;
  color: var(--smoke);
  align-items: center;
  justify-content: center;
}

/* ---------- Age gate ---------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(14,11,9,.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gut);
}
.gate[hidden] { display: none; }

.gate-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--ink-3);
  background: var(--ink-2);
  border-radius: var(--radius);
  padding: clamp(2rem, 6vw, 3rem);
  box-shadow: var(--shadow);
}
.gate-card h2 { font-size: 1.9rem; margin-bottom: .8rem; }
.gate-card p  { color: var(--smoke-dim); font-size: .97rem; margin-bottom: 1.9rem; }
.gate-card .btn-row { justify-content: center; }
.gate-deny {
  margin-top: 1.4rem;
  font-size: .82rem;
  color: var(--smoke-dim);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

/* Warm ember bloom behind the headline */
.hero::after {
  content: '';
  position: absolute;
  top: -18%;
  right: -8%;
  width: 62vw;
  height: 62vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle,
              rgba(200,112,58,.19) 0%,
              rgba(200,112,58,.06) 42%,
              transparent 68%);
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0,0)      scale(1); }
  to   { transform: translate(-4%, 5%)  scale(1.1); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em {
  font-style: normal;
  color: var(--ember);
  display: block;
}
.hero .lead { margin-bottom: 2.2rem; }

/* Trust bar — three facts, hairline-separated */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2.6rem;
  border-top: 1px solid var(--ink-3);
  padding-top: 1.5rem;
}
.trust div {
  padding-right: 2rem;
  margin-right: 2rem;
  border-right: 1px solid var(--ink-3);
}
.trust div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.trust dt {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brass);
  line-height: 1.2;
}
.trust dd {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--smoke-dim);
  margin-top: .2rem;
}

/* Hero side panel — the "counter" card */
.counter {
  border: 1px solid var(--ink-3);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.counter::before {
  content: '';
  position: absolute;
  top: 0; left: 2rem; right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}
.counter h3 { margin-bottom: 1.3rem; }

.hours-list { list-style: none; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .62rem 0;
  border-bottom: 1px dashed var(--ink-3);
  font-size: .93rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list span:first-child { color: var(--smoke-dim); }
.hours-list span:last-child  { font-weight: 700; }
.hours-list li.today span     { color: var(--brass); }

.counter .btn { width: 100%; margin-top: 1.5rem; }

/* ---------- Sections ---------- */

section { padding: var(--sec) 0; position: relative; }

.sec-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.8rem); }
.sec-head h2 { margin-bottom: 1rem; }

/* ---------- Category grid ---------- */

.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 1px;
  background: var(--ink-3);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  overflow: hidden;
}

.cat {
  background: var(--ink);
  padding: 2.2rem 1.9rem;
  transition: background .22s ease;
  position: relative;
}
.cat:hover { background: var(--ink-2); }
.cat:hover .cat-num { color: var(--ember); }

.cat-num {
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: .1em;
  transition: color .22s;
  display: block;
  margin-bottom: 1.4rem;
}
.cat h3 { margin-bottom: .6rem; }
.cat p  { color: var(--smoke-dim); font-size: .92rem; line-height: 1.65; }

/* ---------- Features ---------- */

.feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(2rem, 4vw, 3.2rem);
}
.feat-ico {
  width: 40px; height: 40px;
  color: var(--ember);
  margin-bottom: 1.1rem;
}
.feat h3 { margin-bottom: .55rem; }
.feat p  { color: var(--smoke-dim); font-size: .93rem; }

/* ---------- Reviews ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
}
.review {
  border: 1px solid var(--ink-3);
  background: var(--ink-2);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.stars { color: var(--brass); letter-spacing: .18em; font-size: .95rem; margin-bottom: 1.1rem; }
.review p {
  font-family: var(--display);
  font-size: 1.06rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.4rem;
}
.review cite {
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--smoke-dim);
  font-weight: 700;
}

/* ---------- Map / visit ---------- */

.visit {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.map-frame {
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-frame iframe {
  width: 100%;
  height: 400px;
  border: 0;
  filter: grayscale(1) invert(.9) contrast(.86) sepia(.28) hue-rotate(345deg);
}

.nap { list-style: none; margin: 1.8rem 0; }
.nap li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ink-3);
  align-items: flex-start;
}
.nap svg { width: 19px; height: 19px; color: var(--ember); flex-shrink: 0; margin-top: 4px; }
.nap strong {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--smoke-dim);
  font-weight: 700;
  margin-bottom: .15rem;
}
.nap a:hover { color: var(--ember); }

/* ---------- CTA band ---------- */

.band {
  background: linear-gradient(135deg, var(--ember-lo), var(--ember));
  color: #14100D;
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gut);
  border-radius: var(--radius);
}
.band h2 { margin-bottom: .9rem; }
.band p  { margin: 0 auto 2rem; max-width: 50ch; opacity: .82; font-weight: 500; }
.band .btn-row { justify-content: center; }
.band .btn-primary { background: #14100D; color: var(--smoke); box-shadow: none; }
.band .btn-primary:hover { background: #241D18; }
.band .btn-ghost { border-color: rgba(20,16,13,.35); color: #14100D; }
.band .btn-ghost:hover { border-color: #14100D; background: rgba(20,16,13,.07); color: #14100D; }

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--smoke-dim);
}
.field input,
.field textarea {
  background: var(--ink);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  color: var(--smoke);
  font-family: var(--body);
  font-size: 1rem;
  transition: border-color .16s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ember);
}
.field textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: .84rem; color: var(--smoke-dim); margin-top: 1rem; }

/* ---------- Gallery ---------- */

.gallery {
  columns: 3;
  column-gap: 1rem;
}
.gallery figure {
  break-inside: avoid;
  margin-bottom: 1rem;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--ink-2);
}
.gallery img { transition: transform .5s cubic-bezier(.2,.8,.2,1); width: 100%; }
.gallery figure:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(14,11,9,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gut);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: contain;
}

/* ---------- Product detail sections (products.html) ---------- */

.prod {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--ink-3);
  align-items: start;
}
.prod:last-child { border-bottom: 0; }
.prod-label {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  position: sticky;
  top: 100px;
}
.prod-label span {
  display: block;
  font-family: var(--body);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--ember);
  font-weight: 700;
  margin-bottom: .5rem;
}
.prod-body p { color: var(--smoke-dim); margin-bottom: 1.3rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-size: .78rem;
  padding: .35rem .8rem;
  border: 1px solid var(--ink-3);
  border-radius: 100px;
  color: var(--smoke-dim);
  background: var(--ink-2);
}

/* ---------- Prose (about page) ---------- */

.prose { max-width: 66ch; }
.prose p { margin-bottom: 1.4rem; color: var(--smoke-dim); }
.prose p:first-of-type {
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1.6;
  color: var(--smoke);
}

/* Pull-quote — the humidor stamp */
.pull {
  border-left: 3px solid var(--ember);
  padding: 1.2rem 0 1.2rem 1.8rem;
  margin: 2.5rem 0;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--smoke);
}

/* ---------- Page hero (inner pages) ---------- */

.page-head {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--ink-3);
}
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 1rem; }

/* ---------- Compliance strip ---------- */

.compliance {
  background: var(--ink-2);
  border-top: 1px solid var(--ink-3);
  border-bottom: 1px solid var(--ink-3);
  padding: 1.1rem 0;
  text-align: center;
}
.compliance p {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--ink-3);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  background: #150F0C;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
}
.foot-grid h4 {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--smoke-dim);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: .6rem; }
.foot-grid a { color: var(--smoke-dim); font-size: .93rem; transition: color .16s; }
.foot-grid a:hover { color: var(--ember); }
.foot-about p { color: var(--smoke-dim); font-size: .92rem; margin-top: 1rem; max-width: 40ch; }

.foot-bottom {
  border-top: 1px solid var(--ink-3);
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--smoke-dim);
}

/* ---------- Sticky mobile call bar ---------- */

.callbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--ember);
  color: #14100D;
  padding: .95rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .92rem;
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,.7);
}

/* ---------- Scroll reveal ---------- */

.rise {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1),
              transform .7s cubic-bezier(.2,.8,.2,1);
}
.rise.in { opacity: 1; transform: none; }

/* ---------- Focus ---------- */

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .visit,
  .foot-grid { grid-template-columns: 1fr; }

  .prod { grid-template-columns: 1fr; }
  .prod-label { position: static; }

  .gallery { columns: 2; }

  .nav-links {
    display: none;
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--ink-3);
    padding: .5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: .95rem var(--gut);
    border-bottom: 1px solid var(--ink-3);
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a[aria-current="page"]::after { display: none; }

  .burger { display: flex; }
  .nav-cta .btn { display: none; }

  .callbar { display: block; }
  footer   { padding-bottom: 5.5rem; }
}

@media (max-width: 560px) {
  .gallery { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .trust div {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
    width: 100%;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--ink-3);
  }
  .trust div:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .rise { opacity: 1; transform: none; }
}

/* ============================================
   Illustration imagery
   ============================================ */

/* Homepage category card thumbnails */
.cat-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--ink-3);
  background: var(--ink-2);
}
.cat:hover .cat-thumb { border-color: var(--ember-lo); }

/* Product detail illustrations */
.prod-img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--ink-3);
  margin-top: 1.6rem;
  background: var(--ink-2);
}

/* Gallery images — art fills each figure cleanly */
.gallery figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background: var(--ink-2);
}
