/* ============================================================
   Bazza Gás — design tokens
   ============================================================ */
:root {
  --bg: #05070d;
  --bg-elev: #0d131f;
  --bg-elev-2: #141b29;
  --line: #232c40;
  --line-soft: #1a2233;
  --text: #f5f3ee;
  --text-muted: #8a93a6;
  --text-dim: #5c6580;

  --orange-light: #ffb23d;
  --orange: #ff7a1a;
  --orange-hot: #ff3d1f;
  --blue: #2e9bff;
  --blue-deep: #0b5fcc;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --flame-grad: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 45%, var(--blue) 55%, var(--blue-deep) 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 320ms;

  --wrap: 1180px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

/* Author rules like `.field { display: flex }` would otherwise beat the
   user-agent's [hidden] rule at equal specificity — force it to win. */
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--bg-elev);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast) var(--ease-out-expo), background var(--duration-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(120deg, var(--orange-light), var(--orange-hot));
  color: #1a0d02;
  box-shadow: 0 10px 30px -10px rgba(255, 122, 26, 0.6);
}
.btn-primary:hover { box-shadow: 0 14px 34px -8px rgba(255, 122, 26, 0.75); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue); background: rgba(46, 155, 255, 0.08); }

.btn-outline {
  width: 100%;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--text);
  margin-top: 1.25rem;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange-light); }

.btn-whatsapp {
  background: linear-gradient(120deg, var(--whatsapp), var(--whatsapp-dark));
  color: #06210f;
  box-shadow: 0 10px 26px -10px rgba(37, 211, 102, 0.55);
}
.btn-whatsapp:hover { box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.7); }

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1.1rem 1.6rem;
  font-size: 1.05rem;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 38px; width: auto; }
.brand-logo-footer { height: 56px; }

.main-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}
.main-nav a:hover { color: var(--text); }

.nav-cta { display: none; padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform var(--duration-fast) var(--ease-out-expo), opacity var(--duration-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: nav opens as a full-screen overlay menu toggled by .nav-toggle */
.main-nav {
  /* The header has backdrop-filter, which makes it the containing block for
     fixed children — so viewport units are used instead of inset:0 to cover
     the whole screen rather than just the header box. */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 5.5rem 1.5rem 2.5rem;
  background: rgba(5, 7, 13, 0.98);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-normal) var(--ease-out-expo),
              visibility var(--duration-normal);
}
.main-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav a {
  font-size: 1.45rem;
  padding: 0.85rem 0;
  color: var(--text);
}
.main-nav .nav-cta-mobile {
  display: inline-flex;
  justify-content: center;
  margin-top: 1.6rem;
  width: 100%;
  max-width: 20rem;
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
}
/* Keep the logo and close (X) button clickable above the open overlay */
.brand, .nav-toggle { position: relative; z-index: 31; }
/* Prevent the page behind the open menu from scrolling */
body.nav-open { overflow: hidden; }
/* Hide the floating WhatsApp button while the menu is open */
body.nav-open .fab-whatsapp { opacity: 0; visibility: hidden; pointer-events: none; }

@media (min-width: 780px) {
  .main-nav {
    position: static;
    z-index: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 0;
    background: none;
    backdrop-filter: none;
    border-bottom: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav a { padding: 0; font-size: 0.92rem; color: var(--text-muted); }
  .main-nav .nav-cta-mobile { display: none; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 6vw, 6rem);
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(50% 50% at 25% 20%, rgba(255, 122, 26, 0.28), transparent 70%),
    radial-gradient(45% 45% at 75% 30%, rgba(46, 155, 255, 0.26), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  padding-bottom: clamp(3rem, 8vw, 7rem);
}
.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-visual { width: 100%; max-width: 420px; }
.hero-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.5));
}
@media (min-width: 960px) {
  .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 3rem; }
  .hero-content { align-items: flex-start; text-align: left; flex: 1 1 56%; }
  .hero-title, .hero-sub { margin-inline: 0; }
  .hero-actions, .hero-trust { justify-content: flex-start; }
  .hero-visual { flex: 1 1 40%; max-width: 460px; }
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.hero-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.14;
  letter-spacing: 0.005em;
  background: linear-gradient(100deg, var(--text) 40%, var(--orange-light) 62%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 18ch;
  margin-inline: auto;
}
.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.hero-trust {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.hero-trust .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--flame-grad);
  flex-shrink: 0;
}
.hero-divider { display: block; width: 100%; height: auto; }

/* ============================================================
   Sections (shared)
   ============================================================ */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: 0.01em;
}
.section-sub {
  margin-top: 0.8rem;
  color: var(--text-muted);
  max-width: 56ch;
  font-size: 1.02rem;
}

/* ============================================================
   How it works
   ============================================================ */
.how-it-works { background: var(--bg-elev); border-block: 1px solid var(--line-soft); }
.steps {
  margin-top: 2.6rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.step {
  position: relative;
  padding: 1.8rem 1.6rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255,255,255,0.03), transparent 60%);
}
.step-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--orange-light);
  margin-bottom: 0.9rem;
  letter-spacing: 0.08em;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.94rem; }

/* ============================================================
   Cylinders
   ============================================================ */
.cylinder-grid {
  margin-top: 2.6rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.cylinder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.6rem 2.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 90% at 50% -10%, rgba(255,122,26,0.07), transparent 55%), var(--bg-elev);
  transition: border-color var(--duration-normal), transform var(--duration-normal) var(--ease-out-expo);
}
.cylinder-card:hover { border-color: var(--line-soft); transform: translateY(-4px); }
.cylinder-card.is-selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 20px 40px -20px rgba(255,122,26,0.45);
}
.cylinder-art {
  margin-bottom: 1.2rem;
  height: 220px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.cylinder-art img {
  max-height: 220px;
  height: auto;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.55));
}
.cylinder-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.cylinder-body h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0.5rem 0 0.7rem;
  text-transform: uppercase;
}
.cylinder-body h3 small {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: none;
  margin-left: 0.4rem;
}
.cylinder-body > p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 1.1rem; }
.cylinder-specs { display: flex; flex-direction: column; gap: 0.45rem; }
.cylinder-specs li {
  font-size: 0.86rem;
  color: var(--text-dim);
  padding-left: 1.1rem;
  position: relative;
  text-align: left;
}
.cylinder-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame-grad);
}

/* ============================================================
   Order section + gauge
   ============================================================ */
.order-section { background: var(--bg-elev); border-block: 1px solid var(--line-soft); }
.order-wrap {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .order-wrap { grid-template-columns: 320px 1fr; align-items: start; }
  .order-intro { position: sticky; top: 6rem; }
}

.gauge { margin-top: 2.2rem; display: flex; justify-content: center; }
.gauge-dial {
  --progress: 0%;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: conic-gradient(var(--orange) 0%, var(--blue) var(--progress), var(--bg-elev) var(--progress));
  padding: 10px;
  transition: background 480ms var(--ease-out-expo);
}
.gauge-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-value {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
}
.gauge-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.field-group { display: flex; flex-direction: column; gap: 0.6rem; border: none; padding: 0; margin: 0; }
.field-group legend, .field-group > label {
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0;
}
.optional { font-weight: 400; color: var(--text-dim); font-size: 0.82em; }

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 0.4rem; }
.field-cep { flex: 0 1 150px; }
.field-numero { flex: 0 1 120px; }
.field-grow { flex: 2 1 240px; }
.field label { font-size: 0.85rem; color: var(--text-muted); }

input[type="text"], input[type="tel"], input[type="number"], textarea {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--text);
  transition: border-color var(--duration-fast);
}
input[type="text"]:focus, input[type="tel"]:focus, input[type="number"]:focus, textarea:focus {
  border-color: var(--blue);
}
input:invalid { box-shadow: none; }
textarea { resize: vertical; min-height: 5.5rem; }

.field-error {
  font-size: 0.8rem;
  color: var(--orange-hot);
  font-family: var(--font-mono);
}

.radio-card-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.radio-card {
  position: relative;
  flex: 1 1 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elev-2);
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.radio-card small { display: block; font-weight: 400; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.78rem; margin-top: 0.2rem; }
.radio-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.radio-card:has(input:checked) {
  border-color: var(--orange);
  background: linear-gradient(160deg, rgba(255,122,26,0.14), rgba(46,155,255,0.08));
}
.radio-card:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  width: fit-content;
}
.stepper-btn {
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  color: var(--text);
  background: var(--bg-elev-2);
}
.stepper-btn:hover { background: var(--line); }
.stepper input {
  width: 60px;
  text-align: center;
  border: none;
  background: transparent;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.troco-field { margin-top: 0.4rem; max-width: 220px; }

.order-preview h3 { font-size: 0.95rem; margin-bottom: 0.7rem; }
.preview-box {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg-elev-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  color: var(--text-muted);
  margin: 0;
}

.form-hint { font-size: 0.82rem; color: var(--text-dim); text-align: center; }

/* ============================================================
   Trust section
   ============================================================ */
.trust-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.trust-card {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.trust-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; color: var(--orange-light); }
.trust-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 3rem; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.footer-tagline { color: var(--text-muted); font-size: 0.92rem; }
.footer-note { color: var(--text-dim); font-size: 0.8rem; margin-top: 0.5rem; }

/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.fab-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--whatsapp);
  color: #06210f;
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.6);
  z-index: 50;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}
.fab-whatsapp:hover { transform: scale(1.08); }
