/* ============================================================
   FireClaw — landing page styles
   Dark "embers in the dark" theme with a warm ember accent.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0b0a09;
  --bg-2: #110f0d;
  --surface: #171411;
  --surface-2: #1d1916;
  --border: #2a2521;
  --border-strong: #3a332d;

  /* Text */
  --text: #f7f4f1;
  --text-muted: #b3aaa1;
  --text-dim: #897f76;

  /* Ember accent */
  --ember-1: #ffc24b;
  --ember-2: #ff7a18;
  --ember-3: #ff3d00;
  --ember-grad: linear-gradient(135deg, #ffc24b 0%, #ff7a18 48%, #ff3d00 100%);
  --ember-soft: rgba(255, 122, 24, 0.14);

  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.grad {
  background: var(--ember-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ember-2);
  color: #1a0e00;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Ambient background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% -10%, #1a1410 0%, var(--bg) 55%);
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bg-glow--one {
  width: 620px;
  height: 620px;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 122, 24, 0.5), transparent 65%);
  animation: drift1 16s var(--ease) infinite alternate;
}
.bg-glow--two {
  width: 480px;
  height: 480px;
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 61, 0, 0.32), transparent 65%);
  animation: drift2 20s var(--ease) infinite alternate;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(110% 80% at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(110% 80% at 50% 0%, #000 25%, transparent 75%);
}
@keyframes drift1 {
  to {
    transform: translateX(-50%) translateY(40px) scale(1.1);
  }
}
@keyframes drift2 {
  to {
    transform: translateY(-50px) scale(1.12);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--ember-1);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--ember-grad);
  color: #2a1400;
  box-shadow: 0 6px 22px rgba(255, 90, 10, 0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 90, 10, 0.42);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--ember-2);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 15px 28px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 10, 9, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--text);
}
/* Mirror the logo lockup: "Fire" in ember, "Claw" in light. */
.brand-word-accent {
  background: var(--ember-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--text);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--ember-grad);
  transition: width 0.25s var(--ease);
}
.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.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 {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 22px;
  background: rgba(11, 10, 9, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a:not(.btn) {
  padding: 13px 4px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn {
  margin-top: 12px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 76px;
  text-align: center;
}
.hero-inner {
  max-width: 860px;
}
.hero-logo {
  display: block;
  width: min(340px, 72vw);
  margin: 0 auto 26px;
  line-height: 0;
}
.hero-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 46px rgba(255, 80, 0, 0.32));
  animation: floaty 6.5s var(--ease) infinite alternate;
}
@keyframes floaty {
  to {
    transform: translateY(-12px);
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 7px 15px 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember-2);
  box-shadow: 0 0 0 4px var(--ember-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(255, 122, 24, 0.05);
  }
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  font-weight: 800;
  margin: 26px 0 22px;
}
.lede {
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}
.hero-points {
  list-style: none;
  display: flex;
  gap: 10px 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.hero-points li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember-grad);
}

/* ---------- Section scaffolding ---------- */
.section {
  padding: 88px 0;
}
.section--alt {
  background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-2);
  margin-bottom: 14px;
}
.section-head h2,
.why-copy h2,
.contact-intro h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
}
.section-sub {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--ember-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card:hover::before {
  transform: scaleX(1);
}
.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 13px;
  background: var(--ember-soft);
  border: 1px solid rgba(255, 122, 24, 0.25);
  margin-bottom: 20px;
}
.card h3 {
  font-size: 1.32rem;
  margin-bottom: 11px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.99rem;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--ember-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}
.step h3 {
  font-size: 1.18rem;
  margin-bottom: 9px;
}
.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Why / brand story ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.why-copy h2 {
  margin-bottom: 22px;
}
.why-copy p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.why-copy strong {
  color: var(--text);
}
.why-copy em {
  color: var(--ember-1);
  font-style: normal;
}
.why-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text) !important;
  font-size: 1.18rem !important;
  border-left: 3px solid var(--ember-2);
  padding-left: 18px;
  margin-top: 26px !important;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text-muted);
  font-size: 0.99rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ember-soft);
  border: 1px solid rgba(255, 122, 24, 0.4);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 7px;
  width: 5px;
  height: 9px;
  border: solid var(--ember-1);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Contact / form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}
.contact-intro {
  position: sticky;
  top: 100px;
}
.contact-intro .section-sub {
  margin-bottom: 30px;
}
.contact-alt {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-alt li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-alt-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.contact-alt a {
  color: var(--ember-1);
  font-weight: 600;
  width: fit-content;
  transition: color 0.2s;
}
.contact-alt a:hover {
  color: var(--ember-2);
}

.quote-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.req {
  color: var(--ember-2);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ember-2);
  box-shadow: 0 0 0 3px var(--ember-soft);
  background: var(--bg-2);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b3aaa1' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 38px;
  cursor: pointer;
}
.field input.invalid,
.field textarea.invalid {
  border-color: #ff5252;
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.12);
}
.form-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: -2px;
}
.form-note.success {
  color: var(--ember-1);
  font-weight: 600;
}
.form-note.error {
  color: #ff8a80;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  max-width: 320px;
}
.footer-tag {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: flex-start;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--ember-2);
}
.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav,
  .header-actions {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-intro {
    position: static;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .container {
    padding: 0 18px;
  }
  .hero {
    padding: 60px 0 56px;
  }
  .section {
    padding: 64px 0;
  }
  .cards,
  .steps {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .quote-form {
    padding: 22px 18px;
  }
  .footer-legal {
    flex-direction: column;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
