/* DAFIRE marketing site — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700;900&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --dafire-red-deep: #7f0000;
  --dafire-red: #b71c1c;
  --dafire-orange: #e84c1e;
  --dafire-orange-light: #f9813a;
  --black: #111418;
  --muted: #6b7280;
  --surface: #f5f7fb;
  --border: #eef0f3;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  color: var(--black);
  background: var(--white);
  text-wrap: pretty;
}

h1, h2, h3 { font-family: 'Space Grotesk', system-ui, sans-serif; margin: 0; }
p { margin: 0; }
a { color: var(--dafire-orange); text-decoration: none; }
a:hover { color: var(--dafire-red); }
button { font-family: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: #4b5160;
  padding: 8px 4px; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--black); border-color: var(--dafire-orange); }
.nav-links a.active { color: var(--black); font-weight: 700; }
.nav-crumb { font-size: 13px; font-weight: 600; color: #9ca3af; }
.nav-crumb.active { color: var(--black); font-weight: 700; border-bottom: 2px solid var(--dafire-orange); padding-bottom: 2px; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle svg { display: block; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; margin-left: 6px;
  padding: 3px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border);
}
.lang-btn {
  border: none; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.3px; color: var(--muted);
  padding: 5px 9px; border-radius: 6px; transition: background .15s, color .15s;
}
.lang-btn.active { background: var(--white); color: var(--black); box-shadow: 0 1px 2px rgba(17,20,24,0.08); }
.lang-btn:hover:not(.active) { color: var(--black); }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { flex-shrink: 0; }
.logo-word { font-size: 19px; font-weight: 700; letter-spacing: 0.2px; line-height: 1; font-family: 'Space Grotesk', sans-serif; }
.logo-word .da { color: var(--black); }
.logo-word .fire { color: var(--dafire-orange); }
.logo.on-dark .logo-word .da { color: var(--white); }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; border-radius: 10px; border: none;
  cursor: pointer; padding: 13px 24px; transition: background .15s, transform .1s, border-color .15s;
  font-family: inherit;
}
.btn-primary { background: var(--dafire-red); color: var(--white); }
.btn-primary:hover { background: #8f1616; }
.btn-primary:active { transform: scale(0.98); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #262b33; }
.btn-ghost-dark { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn-ghost-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline { background: transparent; color: var(--black); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: #d7dae0; }

.toggle-group { display: inline-flex; padding: 4px; border-radius: 12px; }
.toggle-group.on-dark { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); }
.toggle-group.on-light { background: var(--surface); border: 1px solid var(--border); }
.toggle-btn {
  border: none; cursor: pointer; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 9px; background: transparent;
  transition: background .18s, color .18s; font-family: inherit;
}
.toggle-group.on-dark .toggle-btn { color: rgba(255,255,255,0.65); }
.toggle-group.on-dark .toggle-btn.active { background: var(--white); color: var(--black); }
.toggle-group.on-light .toggle-btn { color: var(--muted); }
.toggle-group.on-light .toggle-btn.active { background: var(--white); color: var(--black); }

.chip {
  padding: 9px 15px; border-radius: 20px; border: 1.5px solid var(--border);
  cursor: pointer; font-size: 13px; font-weight: 600; color: #4b5160;
  background: var(--white); transition: background .15s, border-color .15s, color .15s;
}
.chip.active { background: #fff1ec; border-color: var(--dafire-orange); color: var(--dafire-red); }

/* ---------- Sections & cards ---------- */
.section { padding: 88px 0; }
.section.on-dark { background: #0f0d0d; }
.section-border { border-bottom: 1px solid var(--border); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dafire-orange); }
.eyebrow.on-dark { color: var(--dafire-orange-light); }
.section h2 { font-size: 34px; font-weight: 800; margin-top: 10px; letter-spacing: -0.3px; }
.section .lede { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 620px; }
.section .lede.on-dark { color: rgba(255,255,255,0.62); }

.card-lift { transition: transform .18s, box-shadow .18s, border-color .18s; }
.card-lift:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(17,20,24,0.10); border-color: #f3c6b4; }

.field-label { font-size: 12.5px; font-weight: 700; color: #3a3f47; margin-bottom: 9px; display: block; }
.field-input {
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid #e5e7eb;
  font-size: 14px; font-family: inherit; color: var(--black);
  transition: border-color .15s; outline: none; width: 100%;
}
.field-input:focus { border-color: var(--dafire-orange); }

input[type=range] { accent-color: var(--dafire-red); cursor: pointer; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #0f0d0d; padding: 52px 0 30px; }
.site-footer .footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 32px;
}
.site-footer .footer-blurb { margin-top: 14px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.45); max-width: 280px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,0.4); text-transform: uppercase; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { font-size: 13.5px; color: rgba(255,255,255,0.7); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-bottom {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px; color: rgba(255,255,255,0.35);
}

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

/* Named 2-column split layouts — each section had its own column ratio
   inline, which meant the inline grid-template-columns always beat the
   .grid-2 media-query override (inline specificity wins). These classes
   own the ratio AND the mobile collapse together so there's nothing left
   to override. */
.split-hero     { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
.split-40       { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.split-ai       { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 22px; }
.split-sidebar  { display: grid; grid-template-columns: 280px 1fr; gap: 0; }
.split-contact  { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
.split-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split-platform { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.spin { animation: dafire-spin .7s linear infinite; display: inline-block; }
@keyframes dafire-spin { to { transform: rotate(360deg); } }
.fade-in { animation: dafire-fade .5s ease both; }
@keyframes dafire-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 20px 18px;
  }
  .nav-links.nav-links-open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 4px; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3,
  .split-hero, .split-40, .split-ai, .split-sidebar, .split-contact, .split-platform {
    grid-template-columns: 1fr;
  }
  .split-row { grid-template-columns: 1fr 1fr; } /* name/email etc. still fit as a pair down to phone width */
  .section { padding: 56px 0; }
  .section h2 { font-size: 27px; }
  h1 { font-size: 34px !important; }
  #contact-grid > div:first-child { position: static !important; }
}

@media (max-width: 480px) {
  .split-row { grid-template-columns: 1fr; }
}
