/* ============================================================
   THE STERLING SOCIETY — Global Stylesheet
   Palette: Black · White · Electric Yellow #FFF300
   Fonts:   Staatliches (hero) · New Spirit (editorial) · Oswald (utility)
   ============================================================ */

/* ── Font Faces ─────────────────────────────────────────── */
@font-face {
  font-family: 'Staatliches';
  src: url('../fonts/Staatliches-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'New Spirit';
  src: url('../fonts/New Spirit Light Condensed.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600&display=swap');

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --black:       #0a0a0a;
  --white:       #f5f5f0;
  --yellow:      #FFF300;
  --yellow-dim:  #e6da00;
  --grey:        rgba(245,245,240,0.08);
  --grey-mid:    rgba(245,245,240,0.15);
  --grey-text:   rgba(245,245,240,0.65);

  --font-hero:      'Staatliches', 'Arial Narrow', sans-serif;
  --font-editorial: 'New Spirit', Georgia, serif;
  --font-body:      'Oswald', 'Arial Narrow', sans-serif;

  --nav-h: 68px;

  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  7rem;
  --sp-xxl: 11rem;

  --max-w:      1160px;
  --max-w-text: 700px;

  --ease: 0.2s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Type Scale ──────────────────────────────────────────── */
.t-hero { font-family: var(--font-hero); font-weight: 400; line-height: 0.73; letter-spacing: -0.02em; text-transform: uppercase; }
.t-h1   { font-size: clamp(4.5rem, 16vw, 14rem); }
.t-h2   { font-size: clamp(3.5rem, 10vw, 9rem); }
.t-h3   { font-size: clamp(2.5rem, 6vw,  6rem); }
.t-h4   { font-size: clamp(2rem,   4vw,  4rem); }

/* New Spirit — used for the master tagline and key editorial moments */
.t-serif { font-family: var(--font-editorial); font-weight: 300; font-style: italic; line-height: 1.15; }
.t-serif-xl { font-size: clamp(2rem, 4vw, 3.5rem); }
.t-serif-lg { font-size: clamp(1.4rem, 2.5vw, 2.2rem); }
.t-serif-md { font-size: clamp(1.1rem, 1.8vw, 1.6rem); }

/* Tagline — New Spirit, large, used as editorial counterpoint to Staatliches hero blocks */
.t-tagline {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-size: clamp(3rem, 9vw, 8rem);
}
.t-tagline--sm {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.t-label { font-family: var(--font-body); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; }
.t-body  { font-size: clamp(0.95rem, 1.2vw, 1.1rem); line-height: 1.72; }
.t-body-lg { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.72; }
.t-small { font-size: 0.78rem; line-height: 1.55; }

/* Colour helpers */
.c-yellow { color: var(--yellow); }
.c-white  { color: var(--white); }
.c-black  { color: var(--black); }
.c-dim    { color: var(--grey-text); }
.bg-yellow { background: var(--yellow); }
.bg-white  { background: var(--white); }
.bg-black  { background: var(--black); }
.bg-tint   { background: rgba(255,243,0,0.03); }

/* ── Layout ──────────────────────────────────────────────── */
.wrap    { width: 100%; max-width: var(--max-w);      margin-inline: auto; padding-inline: 1.25rem; }
.wrap-sm { width: 100%; max-width: var(--max-w-text); margin-inline: auto; padding-inline: 1.25rem; }

.section    { padding-block: var(--sp-lg); }
.section-xl { padding-block: var(--sp-xl); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--grey-mid); }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--grey-mid); }

@media (min-width: 768px)  { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.flex   { display: flex; }
.flex-w { display: flex; flex-wrap: wrap; }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.ai-c   { align-items: center; }
.jc-b   { justify-content: space-between; }
.col    { flex-direction: column; }

.text-c { text-align: center; }
.text-r { text-align: right; }

.mt-xs { margin-top: var(--sp-xs); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }

.rule        { width: 100%; height: 1px; background: var(--grey); }
.rule-yellow { width: 100%; height: 2px; background: var(--yellow); }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid var(--grey);
  display: flex; align-items: center;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo  {
  font-family: var(--font-hero);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--yellow);
  font-weight: 700;
}

.nav__links { display: none; gap: 2rem; align-items: center; }
.nav__links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.6);
  transition: color var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__links .nav-cta {
  background: var(--yellow);
  color: var(--black);
  padding: 0.5rem 1.25rem;
  font-weight: 600;
}
.nav__links .nav-cta:hover { background: var(--yellow-dim); color: var(--black); }

.burger { display: flex; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform var(--ease), opacity var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--black); z-index: 199;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-hero);
  font-size: clamp(2.5rem, 9vw, 5rem);
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--ease);
}
.nav-mobile a:hover { color: var(--yellow); }
.nav-mobile .mob-cta {
  background: var(--yellow); color: var(--black);
  padding: 0.7rem 2.5rem;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.page { padding-top: var(--nav-h); }

@media (min-width: 768px) { .nav__links { display: flex; } .burger { display: none; } }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  transition: background var(--ease), color var(--ease), transform 0.1s;
  white-space: nowrap; cursor: pointer; border: none;
}
.btn:active { transform: scale(0.98); }
.btn-y  { background: var(--yellow); color: var(--black); }
.btn-y:hover { background: var(--yellow-dim); }
.btn-o  { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-o:hover { background: var(--white); color: var(--black); }
.btn-oy { border: 2px solid var(--yellow); color: var(--yellow); background: transparent; }
.btn-oy:hover { background: var(--yellow); color: var(--black); }
.btn-ob { border: 2px solid var(--black); color: var(--black); background: transparent; }
.btn-ob:hover { background: var(--black); color: var(--white); }
.btn-lg { font-size: 0.95rem; padding: 1.2rem 3rem; }
.btn-full { width: 100%; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--grey); padding-block: var(--sp-lg); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-md); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.footer__brand { font-family: var(--font-hero); font-size: 2rem; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1; }
.footer__brand .star { color: var(--yellow); }
.footer__tag { font-family: var(--font-editorial); font-style: italic; font-size: 0.95rem; color: rgba(245,245,240,0.45); margin-top: 0.4rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__nav a { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,245,240,0.4); transition: color var(--ease); }
.footer__nav a:hover { color: var(--white); }
.footer__legal { margin-top: var(--sp-md); padding-top: var(--sp-md); border-top: 1px solid var(--grey); font-size: 0.7rem; color: rgba(245,245,240,0.25); line-height: 1.6; }
.footer__social { display:flex; gap:1.5rem; flex-wrap:wrap; margin-top:var(--sp-sm); }
.footer__social a { font-size:0.7rem; letter-spacing:0.12em; text-transform:uppercase; color:rgba(245,245,240,0.4); text-decoration:none; transition:color var(--ease); }
.footer__social a:hover { color:var(--yellow); }

/* ── Contact Form ────────────────────────────────────────── */
.contact-form { display:flex; flex-direction:column; gap:0.75rem; margin-top:var(--sp-md); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  background:#111 !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  border:1px solid rgba(245,245,240,0.18);
  color:#f5f5f0 !important;
  -webkit-text-fill-color:#f5f5f0 !important;
  font-family:var(--font-body);
  font-size:0.82rem;
  letter-spacing:0.05em;
  padding:0.75rem 1rem;
  width:100%;
  box-sizing:border-box;
  outline:none;
  border-radius:0;
  -webkit-appearance:none;
  appearance:none;
  transition:border-color var(--ease);
}
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus {
  -webkit-box-shadow:0 0 0 1000px #111 inset !important;
  -webkit-text-fill-color:#f5f5f0 !important;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color:rgba(245,245,240,0.3); }
.contact-form select { color:rgba(245,245,240,0.6); }
.contact-form select option { background:#111; color:#f5f5f0; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color:rgba(255,243,0,0.5); }
.contact-form textarea { resize:vertical; min-height:120px; }
.contact-form .btn { cursor:pointer; border:none; }

/* ── Marquee ─────────────────────────────────────────────── */
.marquee { overflow: hidden; background: var(--yellow); padding-block: 0.8rem; white-space: nowrap; }
/* Paused by default — JS adds .fonts-ready to <html> once fonts load, then starts the animation */
.marquee__track { display: inline-flex; animation: scroll-left 24s linear infinite; animation-play-state: paused; }
html.fonts-ready .marquee__track { animation-play-state: running; }
.marquee__track span { font-family: var(--font-hero); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--black); padding-inline: 1.25rem; }
.marquee__track .dot { opacity: 0.3; padding-inline: 0.2rem; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Scarcity bar ────────────────────────────────────────── */
.scarcity { background: var(--yellow); color: var(--black); text-align: center; padding: 0.7rem var(--sp-sm); font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* ── Quote / Pullquote ───────────────────────────────────── */
.pullquote { border-left: 3px solid var(--yellow); padding-left: 1.5rem; }
.pullquote p { font-family: var(--font-editorial); font-style: italic; font-size: clamp(1.2rem, 2.5vw, 1.75rem); line-height: 1.4; }
.pullquote cite { display: block; margin-top: 0.6rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,245,240,0.35); font-style: normal; }

/* ── Arc grid ────────────────────────────────────────────── */
.arc-item { background: var(--black); padding: var(--sp-md); }
.arc-item__n { font-family: var(--font-hero); font-size: 4rem; color: rgba(255,243,0,0.1); line-height: 1; margin-bottom: -0.4rem; }
.arc-item__t { font-family: var(--font-hero); font-size: clamp(2rem, 5vw, 3.5rem); text-transform: uppercase; color: var(--yellow); line-height: 1; }
.arc-item__s { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,245,240,0.35); margin: 0.3rem 0 0.75rem; }
.arc-item__b { font-size: 0.9rem; color: var(--grey-text); line-height: 1.65; }

/* ── Offer cards ─────────────────────────────────────────── */
.offer-card { background: var(--black); padding: var(--sp-md); display: flex; flex-direction: column; gap: 0.9rem; }
.offer-card--y { background: var(--yellow); color: var(--black); }
.offer-card__tag { font-size: 0.67rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.55; }
.offer-card__name { font-family: var(--font-hero); font-size: clamp(2.2rem, 5vw, 3.8rem); text-transform: uppercase; line-height: 0.95; }
.offer-card__price { font-family: var(--font-hero); font-size: clamp(1.5rem, 3vw, 2.4rem); }
.offer-card__body { font-size: 0.88rem; line-height: 1.65; opacity: 0.75; flex: 1; }
.offer-price-strike { font-size: 1rem; opacity: 0.4; text-decoration: line-through; margin-left: 0.4rem; }

/* ── Bonus list ──────────────────────────────────────────── */
.bonus-item { display: flex; gap: 1.1rem; align-items: flex-start; padding-block: 1.2rem; border-bottom: 1px solid var(--grey); }
.bonus-item:last-child { border-bottom: none; }
.bonus-icon { flex-shrink: 0; width: 1.9rem; height: 1.9rem; background: var(--yellow); color: var(--black); display: flex; align-items: center; justify-content: center; font-family: var(--font-hero); font-size: 0.9rem; margin-top: 0.1rem; }
.bonus-title { font-weight: 500; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.2rem; }
.bonus-body  { font-size: 0.85rem; color: var(--grey-text); line-height: 1.6; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item { border-top: 1px solid var(--grey); }
.faq-item:last-child { border-bottom: 1px solid var(--grey); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; text-align: left; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--white); cursor: pointer; }
.faq-icon { flex-shrink: 0; color: var(--yellow); font-size: 1.4rem; line-height: 1; transition: transform var(--ease); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a__inner { padding-bottom: 1.2rem; font-size: 0.9rem; line-height: 1.7; color: var(--grey-text); }

/* ── Pricing box ─────────────────────────────────────────── */
.price-box { border: 2px solid var(--yellow); padding: var(--sp-md); background: rgba(255,243,0,0.03); }
.price-big { font-family: var(--font-hero); font-size: clamp(3rem, 8vw, 6rem); line-height: 1; color: var(--yellow); }
.price-was { font-family: var(--font-hero); font-size: clamp(1.5rem, 4vw, 3rem); color: rgba(245,245,240,0.3); text-decoration: line-through; }

/* ── Kit form ────────────────────────────────────────────── */
.kit-form { display: flex; flex-direction: column; gap: 0.65rem; max-width: 480px; }
.kit-form input {
  background: var(--grey); border: 1px solid var(--grey-mid);
  color: var(--white); font-family: var(--font-body); font-size: 0.88rem;
  padding: 0.9rem 1rem; letter-spacing: 0.04em; outline: none; border-radius: 0;
  transition: border-color var(--ease); -webkit-appearance: none; width: 100%;
}
.kit-form input:focus { border-color: var(--yellow); }
.kit-form input::placeholder { color: rgba(245,245,240,0.28); }
@media (min-width: 500px) {
  .kit-form.inline { flex-direction: row; }
  .kit-form.inline input { flex: 1; }
}

/* ── Checklist ───────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 0; }
.check-item { display: flex; gap: 1rem; align-items: flex-start; padding-block: 1rem; border-bottom: 1px solid var(--grey); }
.check-item:last-child { border-bottom: none; }
.check-icon { flex-shrink: 0; color: var(--yellow); font-size: 1rem; margin-top: 0.15rem; }
.check-text { font-size: 0.95rem; line-height: 1.6; color: var(--grey-text); }

/* ── Divider ─────────────────────────────────────────────── */
.star-div { text-align: center; color: var(--yellow); letter-spacing: 0.8rem; opacity: 0.4; padding-block: var(--sp-sm); font-size: 1rem; }

/* ── Image ───────────────────────────────────────────────── */
.img-fill { width: 100%; height: 100%; object-fit: cover; }
.img-bw   { filter: grayscale(100%) contrast(1.05); }

/* Hero with image background */
.hero-bg {
  position: relative;
  overflow: hidden;
}
.hero-bg__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) brightness(0.35);
  z-index: 0;
}
.hero-bg__content {
  position: relative;
  z-index: 1;
}

/* ── Fade-up animation ───────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .fade.in { opacity: 1; transform: translateY(0); }
}

/* ── Stripe note ─────────────────────────────────────────── */
.stripe-note { font-size: 0.7rem; color: rgba(245,245,240,0.3); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.6rem; }

/* ── Mobile overflow fixes ───────────────────────────────── */
body { overflow-x: hidden; }

@media (max-width: 767px) {
  /* Allow button text to wrap; tighten spacing so less breaks occur */
  .btn {
    white-space: normal;
    max-width: 100%;
    letter-spacing: 0.06em;
    text-align: center;
  }
  .btn-lg {
    font-size: 0.85rem;
    padding-inline: 1.25rem;
    padding-block: 1rem;
    letter-spacing: 0.06em;
  }

  /* Stack flex button groups vertically; each takes full width */
  .flex-w { flex-direction: column; }
  .flex-w .btn { width: 100%; }

  /* Contain price box inside viewport */
  .price-box { overflow: hidden; max-width: 100%; }

  /* Contact grid panels: ensure no internal overflow */
  .grid-3 > div { max-width: 100%; overflow: hidden; }
}
