/* ---------- Design tokens ---------- */
:root {
  --bg: #0b0b0d;
  --bg-alt: #161618;
  --bg-card: #19191c;
  --text: #f5f5f6;
  --text-muted: #a6a6ab;
  --accent: #ff3b1f;
  --accent-2: #b30000;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 13px;
  margin-bottom: 12px;
}

.section-head h2 { font-size: 32px; }

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 59, 31, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 26px rgba(255, 59, 31, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 13, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
}

.logo svg { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s ease;
}

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

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 24px 90px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(255, 59, 31, 0.22), transparent 70%),
    linear-gradient(180deg, #131315, var(--bg) 60%);
}

.hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  margin-bottom: 16px;
}

.hero h1 span { color: var(--accent); }

.hero .lead {
  font-size: 19px;
  color: var(--text-muted);
  margin: 0 auto 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.trust-strip {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.trust-strip svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- Services ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 31, 0.4);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 59, 31, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
}

.card-points {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-points li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- DZPW section ---------- */
.dzpw-intro {
  max-width: 760px;
  margin: 0 auto;
}

.dzpw-intro p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 16px;
}

.dzpw-intro p:last-child { margin-bottom: 0; }

.dzpw-objects {
  max-width: 760px;
  margin: 44px auto 0;
}

.dzpw-objects h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.dzpw-objects-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 24px;
}

.dzpw-objects-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--text);
}

.dzpw-objects-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.dzpw-objects-note {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 13.5px;
  font-style: italic;
}

.dzpw-cta {
  text-align: center;
  margin: 40px 0;
}

/* ---------- About ---------- */
.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 760px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 59, 31, 0.12);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.about h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

.about p {
  color: var(--text-muted);
  font-size: 16px;
}

.about-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.about-points svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Quote form ---------- */
.quote-form {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.form-field-full { grid-column: 1 / -1; }

/* .form-field sets display:flex, which otherwise beats the browser's
   default [hidden] { display: none } — restore it explicitly. */
.form-field[hidden] { display: none; }

.form-field select,
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-field select:focus,
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-field textarea { resize: vertical; }

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.form-fieldset legend {
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.form-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.form-checkbox-group input {
  accent-color: var(--accent);
}

.form-disclaimer {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 22px;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
}

.form-consent input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.quote-calc-btn,
.quote-submit-btn { width: 100%; justify-content: center; }

.quote-result {
  background: rgba(255, 59, 31, 0.1);
  border: 1px solid rgba(255, 59, 31, 0.35);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  margin: 24px 0;
}

.quote-result-label {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.quote-result-value {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--accent);
}

.quote-result-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.quote-success,
.quote-error {
  max-width: 760px;
  margin: 20px auto 0;
  text-align: center;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 15px;
}

.quote-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bcf5cf;
}

.quote-error {
  background: rgba(255, 59, 31, 0.12);
  border: 1px solid rgba(255, 59, 31, 0.35);
}

.quote-error a { color: var(--accent); font-weight: 700; }

/* Two-step reveal only once main.js confirms it can calculate live —
   without JS every field stays visible so the form still works as one flat form. */
.quote-form.has-calc [data-step="2"] {
  display: none;
}

.quote-form.has-calc.calculated [data-step="2"] {
  display: block;
}

@media (max-width: 480px) {
  .quote-form { padding: 24px 20px; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.contact-card .card-icon {
  margin: 0 auto 16px;
}

.contact-card h3 {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-card .value {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.contact-card a.value {
  text-decoration: none;
  color: var(--text);
}

.contact-card a.value:hover { color: var(--accent); }

.contact-cta {
  text-align: center;
  margin-top: 44px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 24px;
  text-align: center;
  background: #000;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ---------- Floating call button ---------- */
.call-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 59, 31, 0.5);
  animation: pulse 2.4s infinite;
}

.call-float svg { width: 26px; height: 26px; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 59, 31, 0.55), 0 8px 24px rgba(255, 59, 31, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 59, 31, 0), 0 8px 24px rgba(255, 59, 31, 0.5); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 31, 0), 0 8px 24px rgba(255, 59, 31, 0.5); }
}

/* ---------- Reveal on scroll ----------
   Hidden state only applies once main.js confirms it's running
   (html.js-anim), so content stays visible if JS fails to load. */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-anim .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile nav ---------- */
@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }

  .nav-links.is-open { transform: translateY(0); }

  .nav-cta .btn-ghost { display: none; }

  .nav-toggle { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .call-float { animation: none; }
}
