/* ============================================================
   BlackSite Studio — css/style.css
   Dark Academia · Est. MMXXV
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --ink:       #1a1612;
  --surface:   #231f1a;
  --card:      #2d2820;
  --border:    #3a3028;
  --gold:      #c9a84c;
  --gold-dk:   #8a6f35;
  --parch:     #e8dcc8;
  --parch-mid: #9a8a75;
  --alert-bg:  rgba(45, 122, 79, 0.15);
  --alert-txt: #6aab88;
  --badge-bg:  rgba(201, 168, 76, 0.12);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --fell:  'IM Fell English', Georgia, serif;
  --mono:  'Courier Prime', monospace;

  --max-w: 1100px;
  --pad-x: 40px;
  --section-y: 80px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--ink);
  color: var(--parch);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

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

ul { list-style: none; }

/* ── Utility ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section-pad {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.section-heading {
  font-family: var(--fell);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--parch);
  margin-bottom: 1.5rem;
}

.ornament-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  color: var(--gold-dk);
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ornament-divider span {
  font-size: 0.8rem;
  color: var(--gold-dk);
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

/* reveal class — programador ativa via JS */
.reveal {
  opacity: 1;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.75rem 1.8rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--gold-dk);
  color: var(--ink);
  border-color: var(--gold-dk);
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background-color: transparent;
  color: var(--parch-mid);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--parch-mid);
  color: var(--parch);
}

/* ── Navigation ──────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 22, 18, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-text {
  font-family: var(--fell);
  font-size: 1.05rem;
  color: var(--parch);
  letter-spacing: 0.02em;
}

.nav-logo-text em {
  font-style: italic;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parch-mid);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--parch-mid);
  transition: background 0.2s;
}

.nav-toggle:hover span {
  background: var(--gold);
}

/* ── Hero ────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(60px + var(--section-y));
  padding-bottom: var(--section-y);
  overflow: hidden;
  background-color: var(--ink);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-h1 {
  font-family: var(--fell);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--parch);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--parch-mid);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-ornament {
  position: absolute;
  font-size: 1.4rem;
  color: var(--gold-dk);
  opacity: 0.35;
  font-family: var(--fell);
  pointer-events: none;
}

.hero-ornament.top-left  { top: 80px;  left: 40px; }
.hero-ornament.top-right { top: 80px;  right: 40px; }
.hero-ornament.bot-left  { bottom: 48px; left: 40px; }
.hero-ornament.bot-right { bottom: 48px; right: 40px; }

/* ── Números ─────────────────────────────────────────────── */
#numeros {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: 56px;
  padding-bottom: 56px;
}

.numeros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.numero-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.numero-sep {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 0 auto;
}

.numero-value {
  font-family: var(--fell);
  font-size: 3rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.numero-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--parch-mid);
}

/* ── Sobre ───────────────────────────────────────────────── */
#sobre {
  background-color: var(--ink);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 5rem;
  align-items: center;
}

.sobre-text {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--parch-mid);
  line-height: 1.85;
  margin-bottom: 0;
}

.sobre-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

/* ── Produtos ────────────────────────────────────────────── */
#produtos {
  background-color: var(--surface);
}

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.produto-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s ease;
}

.produto-card:hover {
  border-color: var(--gold-dk);
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  align-self: flex-start;
}

.badge-available {
  background-color: var(--alert-bg);
  color: var(--alert-txt);
  border: 1px solid rgba(106, 171, 136, 0.25);
}

.badge-soon {
  background-color: var(--badge-bg);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.produto-icon {
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  font-family: var(--fell);
}

.produto-title {
  font-family: var(--fell);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--parch);
  line-height: 1.25;
}

.produto-desc {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--parch-mid);
  line-height: 1.7;
  flex: 1;
}

.produto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parch-mid);
  border: 1px solid var(--border);
  padding: 0.18rem 0.55rem;
  border-radius: 1px;
}

/* ── Como Funciona ───────────────────────────────────────── */
#como-funciona {
  background-color: var(--ink);
}

.steps-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.steps-track::before {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(16.666% + 1rem);
  right: calc(16.666% + 1rem);
  height: 1px;
  background: var(--border);
}

.step {
  position: relative;
  padding-top: 1rem;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 1px var(--gold-dk);
  margin-bottom: 1.5rem;
}

.step-number {
  font-family: var(--fell);
  font-size: 3rem;
  font-weight: 400;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.75rem;
  user-select: none;
}

.step-title {
  font-family: var(--fell);
  font-size: 1.2rem;
  color: var(--parch);
  margin-bottom: 0.6rem;
}

.step-desc {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--parch-mid);
  line-height: 1.7;
}

/* ── Revendedores ────────────────────────────────────────── */
#revendedores {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.revendedores-inner {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.revendedores-text {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--parch-mid);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* ── Contato ─────────────────────────────────────────────── */
#contato {
  background-color: var(--ink);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contato-info-text {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--parch-mid);
  line-height: 1.75;
  margin-top: 1.5rem;
}

.contato-email {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 2rem;
  display: block;
  line-height: 1.6;
}

#form-contato {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.field input,
.field textarea {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--parch);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--parch-mid);
  opacity: 0.5;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold-dk);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--serif);
  line-height: 1.6;
}

/* ── Rodapé ──────────────────────────────────────────────── */
#rodape {
  background-color: #0e0c0a;
  border-top: 1px solid var(--border);
  padding-top: 48px;
  padding-bottom: 36px;
}

.rodape-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

.rodape-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rodape-brand-name {
  font-family: var(--fell);
  font-size: 1rem;
  color: var(--parch-mid);
}

.rodape-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.rodape-links a {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parch-mid);
  transition: color 0.2s ease;
}

.rodape-links a:hover {
  color: var(--gold);
}

.rodape-meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--gold-dk);
}

.rodape-copy {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--border);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
    --section-y: 48px;
  }

  /* Nav mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(26, 22, 18, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem var(--pad-x);
    gap: 1.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero-h1 {
    font-size: 2.5rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .hero-ornament.top-right,
  .hero-ornament.bot-right {
    display: none;
  }

  /* Números */
  .numeros-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .numero-sep {
    display: none;
  }

  .numero-item {
    padding: 1rem;
  }

  /* Sobre */
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sobre-visual {
    order: -1;
  }

  /* Produtos */
  .produtos-grid {
    grid-template-columns: 1fr;
  }

  /* Como funciona */
  .steps-track {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .steps-track::before {
    display: none;
  }

  /* Contato */
  .contato-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Seções heading */
  .section-heading {
    font-size: 2rem;
  }
}
