/* ============================================================
   FireClaw — simple landing page
   ============================================================ */

:root {
  --bg: #0b0a09;
  --text: #f4f1ee;
  --muted: #a39a91;
  --dim: #7b726a;
  --accent: #ff7a18;
  --accent-hover: #ff9542;
  --border: rgba(255, 255, 255, 0.09);
  --field: #15120f;
  --maxw: 1040px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

/* One soft ember glow behind the hero — restrained. */
.glow {
  position: fixed;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 620px;
  background: radial-gradient(circle, rgba(255, 110, 20, 0.22), transparent 62%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--accent);
  color: #1a0d00;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Header ---------- */
.top {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
.brand-accent {
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  text-align: center;
}
.logo {
  display: block;
  width: 180px;
  margin: 0 auto 28px;
  line-height: 0;
}
.logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 34px rgba(255, 80, 0, 0.28));
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.95rem, 5vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero .sub {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 540px;
  margin: 20px auto 0;
}
.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---------- What we do ---------- */
.what {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--border);
}
.what-item h2 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 9px;
}
.what-item p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Contact ---------- */
.contact {
  max-width: 520px;
  margin: 0 auto;
  padding: 64px 24px 72px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact .sub {
  color: var(--muted);
  margin: 14px auto 30px;
  max-width: 420px;
}
#quoteForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#quoteForm input,
#quoteForm textarea {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s;
}
#quoteForm textarea {
  resize: vertical;
  min-height: 110px;
}
#quoteForm input::placeholder,
#quoteForm textarea::placeholder {
  color: var(--dim);
}
#quoteForm input:focus,
#quoteForm textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.14);
}
#quoteForm input.invalid,
#quoteForm textarea.invalid {
  border-color: #ff5252;
}
#quoteForm button {
  margin-top: 4px;
  align-self: center;
  padding-left: 40px;
  padding-right: 40px;
}
.note {
  text-align: center;
  color: var(--dim);
  font-size: 0.9rem;
  margin-top: 4px;
}
.note a {
  color: var(--muted);
}
.note a:hover {
  color: var(--accent);
}
.note.success {
  color: var(--accent);
}
.note.error {
  color: #ff8a80;
}

/* ---------- Footer ---------- */
footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.foot-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}
.foot-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 8px;
}
.foot-legal {
  color: var(--dim);
  font-size: 0.8rem;
  margin-top: 18px;
  line-height: 1.7;
}
.foot-legal a {
  color: var(--muted);
}
.foot-copy {
  color: var(--dim);
  font-size: 0.8rem;
  margin-top: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .what {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
}
@media (max-width: 460px) {
  .row {
    grid-template-columns: 1fr;
  }
  .cta .btn {
    width: 100%;
  }
}

/* ---------- Gentle load-in (hero only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero .logo {
    animation-delay: 0.02s;
  }
  .hero h1 {
    animation-delay: 0.08s;
  }
  .hero .sub {
    animation-delay: 0.14s;
  }
  .hero .cta {
    animation-delay: 0.2s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
  }
}
