/* ============================================================
   iNyla — premium dark theme
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --line: #1f1f1f;
  --text: #ebe7df;
  --text-dim: #9a948a;
  --gold: #c9a96a;
  --gold-2: #e3c98c;
  --danger: #b00020;
  --warning-bar-bg: #0d0d0d;
  --warning-bar-text: #ffffff;
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color .25s ease;
}
a:hover { color: var(--gold-2); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .5px;
  color: #f5f1e8;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.text-gold { color: var(--gold) !important; }
.text-dim  { color: var(--text-dim) !important; }
.bg-dark-2 { background: var(--bg-2); }
.bg-dark-3 { background: var(--bg-3); }

/* ---------- Surgeon General Warning — scrolling ticker ---------- */
/* Sticky warning ticker — visually styled as a heading, but semantically
   a role="alert" banner (correct ARIA, doesn't pollute heading outline). */
.sg-warning {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1080;
  background: #ffffff;
  color: #000000;
  border-bottom: 2px solid var(--gold);
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  height: 44px;
  display: flex;
  align-items: center;
  font-family: var(--sans);
}
.sg-warning__track {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  animation: sgTicker 55s linear infinite;
  padding-left: 100%;
  will-change: transform;
}
.sg-warning__item {
  display: inline-flex;
  align-items: center;
  padding: 0 2.5rem;
  flex-shrink: 0;
}
/* h2-styled visible label — uses heading typography without the <h2> tag. */
.sg-warning__h2 {
  display: inline;
  margin: 0;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.2;
  color: #000;
  text-transform: none;
}
.sg-warning__sep {
  margin: 0 .75rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}
.sg-warning:hover .sg-warning__track { animation-play-state: paused; }

@keyframes sgTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

body { padding-top: 44px; } /* offset for sticky ticker */

/* ---------- Navbar ---------- */
.site-nav {
  position: sticky;
  top: 44px;
  z-index: 1070;
  background: rgba(10,10,10,.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
  transition: background .3s ease, padding .3s ease;
}
.site-nav.scrolled { padding: .55rem 0; background: rgba(10,10,10,.95); }
.site-nav .nav-link {
  color: var(--text) !important;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .5rem 1rem !important;
  position: relative;
}
.site-nav .nav-link.active { color: var(--gold) !important; }
.site-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem; bottom: .25rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease;
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }

/* Navbar logo — fixed-height for predictable alignment */
.site-nav .navbar-brand {
  padding: .15rem 0;
  margin-right: 2rem;
  display: inline-flex;
  align-items: center;
}
.site-nav .navbar-brand img {
  height: 44px;
  width: auto;
  display: block;
  max-width: 200px;
  object-fit: contain;
}

/* ---------- Buttons ---------- */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1a1408;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
  padding: .75rem 1.6rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: all .3s ease;
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
  padding: .75rem 1.6rem;
  border-radius: 2px;
  transition: all .3s ease;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: #1a1408;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.55) saturate(.95);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.4) 0%, rgba(10,10,10,.85) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 4rem 0;
}
.hero__eyebrow {
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.hero__sub {
  color: var(--text-dim);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 560px;
}

/* ---------- Sections ---------- */
.section {
  padding: 6rem 0;
  position: relative;
}
.section--tight { padding: 4rem 0; }
.section__eyebrow {
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}
.section__title { margin-bottom: 1rem; }
.section__lead {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* ---------- Product cards ---------- */
.product-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(201,169,106,.12);
}
.product-card__media {
  aspect-ratio: 4 / 5;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-card__media img {
  max-width: 80%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .6s ease;
  display: block;
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-card__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: .35rem;
}
.product-card__meta {
  color: var(--text-dim);
  font-size: .9rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.product-card__price {
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ---------- How it works steps ---------- */
.step {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: border-color .3s ease, transform .3s ease;
}
.step:hover { border-color: var(--gold); transform: translateY(-4px); }
.step__num {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: .9;
}
.step__title { font-size: 1.35rem; margin-bottom: .75rem; }
.step__desc { color: var(--text-dim); }

/* ---------- FAQ ---------- */
.accordion .accordion-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px !important;
  margin-bottom: .75rem;
}
.accordion .accordion-button {
  background: transparent;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
}
.accordion .accordion-button:not(.collapsed) { color: var(--gold); }
.accordion .accordion-button::after {
  filter: invert(78%) sepia(35%) saturate(420%) hue-rotate(8deg) brightness(95%) contrast(85%);
}
.accordion .accordion-body {
  background: var(--bg-3);
  color: var(--text-dim);
  padding: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ---------- Forms ---------- */
.form-control, .form-select {
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text);
  padding: .85rem 1rem;
  border-radius: 3px;
  font-size: .95rem;
  transition: border-color .25s ease, background .25s ease;
}
.form-control:focus, .form-select:focus {
  background: var(--bg-3);
  border-color: var(--gold);
  color: var(--text);
  box-shadow: 0 0 0 .15rem rgba(201,169,106,.18);
}
.form-control::placeholder { color: var(--text-dim); }
.form-label {
  color: var(--text-dim);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.form-check-input {
  background-color: var(--bg-3);
  border-color: var(--line);
}
.form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}
.invalid-feedback { color: #e57878; }

/* ---------- Age verification landing ---------- */
.age-gate {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  overflow: hidden;
}
.age-gate__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.4) saturate(.9);
}
.age-gate__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,.45) 0%, rgba(10,10,10,.9) 75%);
}
.age-gate__card {
  position: relative;
  z-index: 2;
  max-width: 580px;
  width: 100%;
  background: rgba(15,15,15,.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3rem 2.5rem;
  text-align: center;
}
.age-gate__logo { max-width: 180px; margin-bottom: 1.5rem; }
.age-gate__title {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: .5rem;
}
.age-gate__warn {
  color: var(--text-dim);
  font-size: .92rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(0,0,0,.3);
}
.age-gate__warn strong { color: var(--gold); }
.age-gate__form { text-align: left; }
.age-gate__legal {
  color: var(--text-dim);
  font-size: .75rem;
  margin-top: 1.25rem;
  text-align: center;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #060606;
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer__title {
  font-family: var(--sans);
  color: var(--gold);
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer__about { color: var(--text-dim); font-size: .95rem; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: .5rem; }
.footer__links a {
  color: var(--text-dim);
  font-size: .92rem;
}
.footer__links a:hover { color: var(--gold); }
.footer__mail { color: var(--gold); }
.footer__rule {
  border-color: var(--line);
  margin: 2.5rem 0 1.5rem;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1408 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0;
  text-align: center;
}

/* ---------- Contact info ---------- */
.contact-info-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem;
  height: 100%;
}
.contact-info-card h6 {
  color: var(--gold);
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---------- Product category tabs (Core Devices / Sticks) ---------- */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  border: none;
}
.product-tabs .nav-link {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: 2px;
  transition: all .3s ease;
  cursor: pointer;
}
.product-tabs .nav-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.product-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1a1408;
  border-color: var(--gold);
}
.product-tabs .nav-link.active:hover {
  color: #1a1408;
}
.tab-pane.fade { transition: opacity .35s ease; }

/* ---------- Core™ Features grid ---------- */
.feature-block {
  text-align: center;
  padding: 1.5rem 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature-block__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,169,106,.15) 0%, rgba(201,169,106,.04) 100%);
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  transition: transform .3s ease, background .3s ease;
}
.feature-block:hover .feature-block__icon {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(201,169,106,.25) 0%, rgba(201,169,106,.08) 100%);
}
.feature-block__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: .5rem;
  letter-spacing: .02em;
  color: #f5f1e8;
}
.feature-block__desc {
  color: var(--text-dim);
  font-size: .92rem;
  line-height: 1.55;
  max-width: 260px;
}

/* ---------- Misc ---------- */
.divider-gold {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto;
}
