/* FireClear Systems: shared stylesheet
   Plain CSS, no framework, no build step. Dark theme with red accents. */

:root {
  --bg: #0e0c0b;
  --surface: #181412;
  --surface-2: #211b18;
  --border: #322a26;
  --text: #f1ebe6;
  --muted: #b9aea6;
  --ember: #d6402a;
  --ember-dark: #a82d1a;
  --ember-light: #ff7a5c;
  --paper: #fffdfa;
  --max-width: 1120px;
  --radius: 12px;
}

* { box-sizing: border-box; }

/* 112.5% makes 1rem 18px, so every rem-based size is one step larger. */
html { scroll-behavior: smooth; font-size: 112.5%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: #fff; text-decoration: none; }
p a:hover, h3 a:hover, .article-card h2 a:hover, .contact-list a:hover { color: var(--ember-light); }

/* Text links are white and underlined so the red stays for labels and buttons. */
p a, .contact-list a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
}
p a:hover, .contact-list a:hover { text-decoration-color: var(--ember-light); }

h1, h2, h3, h4 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-spacing: 0.05em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

strong, b, .trust-item .num, .step-num { word-spacing: 0.04em; }

h1 { font-size: 2.3rem; font-weight: 800; }
h2 { font-size: 1.65rem; }
h3, .article-card h2, .card-head h2 { font-size: 1.1rem; letter-spacing: -0.01em; }

p { margin: 0 0 0.8em; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav ---------- */

header.site-header {
  background: rgba(14, 12, 11, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-bar .brand { line-height: 0; }

.nav-bar .brand img {
  height: 64px;
  width: auto;
}

.nav-bar nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-bar nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-bar nav a:hover { color: var(--ember-light); text-decoration: none; }

.nav-cta {
  background: var(--ember);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--ember-dark);
  text-decoration: none;
}

.nav-bar nav a[aria-current="page"] {
  color: var(--ember-light);
}

/* Skip link: hidden until a keyboard user tabs to it. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ember);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--ember-light);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .nav-bar .brand img { height: 52px; }
  .nav-toggle { display: block; }
  .nav-bar nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .nav-bar nav.open { display: block; }
  .nav-bar nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 10px;
    padding-bottom: 14px;
  }
  /* Space between the last text link and the Contact Us button. */
  .nav-bar nav .nav-cta {
    display: inline-block;
    margin-top: 8px;
  }
  .nav-bar {
    flex-wrap: wrap;
  }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(214, 64, 42, 0.35), transparent 70%),
    linear-gradient(180deg, #17110f 0%, var(--bg) 100%);
  color: #fff;
  padding: 52px 0;
}

.hero .wrap {
  display: grid;
  gap: 18px;
}

.hero h1 { color: #fff; margin-bottom: 0.2em; }

.hero p.lead {
  font-size: 1.1rem;
  color: #e7dcd4;
  max-width: 620px;
  margin-bottom: 0;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 84px 0 72px;
}

.hero-photo .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  z-index: -2;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(14,12,11,.94) 0%, rgba(14,12,11,.78) 50%, rgba(120,30,16,.5) 100%);
}

.hero-photo h1 { font-size: clamp(2.2rem, 5.5vw, 3.3rem); }

@media (max-width: 800px) {
  .hero-photo { padding: 60px 0 52px; }
  .hero-photo::before {
    background: linear-gradient(180deg, rgba(14,12,11,.9), rgba(14,12,11,.82) 60%, rgba(120,30,16,.65));
  }
  .hero-photo .hero-bg { object-position: 72% center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--ember);
  color: #fff;
}
.btn-primary:hover { background: var(--ember-dark); text-decoration: none; }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

.btn-outline-dark {
  background: transparent;
  border-color: var(--ember);
  color: var(--ember-light);
}
.btn-outline-dark:hover { background: var(--ember); color: #fff; text-decoration: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- Sections ---------- */

section { padding: 40px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 680px; margin-bottom: 22px; }
.section-head h2 { margin-bottom: 0.3em; }
.section-head p { color: var(--muted); font-size: 1rem; margin-bottom: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  section { padding: 32px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Photos ---------- */

.photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.photo-portrait {
  aspect-ratio: 3 / 4;
  max-height: 500px;
  object-position: center 35%;
}

/* Shows the whole image so nothing gets cropped. */
.photo-wide { aspect-ratio: 1536 / 489; height: auto; }

.photo-natural {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .photo-portrait { aspect-ratio: 4 / 3; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--ember-light);
  margin-bottom: 6px;
}

.step-num {
  font-size: 1.6rem;
  color: var(--ember-light);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

section.alt .card { background: var(--bg); }

.card h3, .card h2 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
.card p + p { margin-top: 0.6em; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-item { text-align: center; flex: 1; min-width: 140px; }
.trust-item .num { font-size: 1.6rem; color: var(--ember-light); font-weight: 800; letter-spacing: -0.02em; }
.trust-item .label { color: var(--muted); font-size: 0.88rem; }

@media (max-width: 560px) {
  .trust-item .num { font-size: 1.35rem; }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--ember-dark) 0%, var(--ember) 100%);
  color: #fff;
  text-align: center;
  padding: 40px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #fdeee6; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn-outline-dark { border-color: #fff; color: #fff; }
.cta-band .btn-outline-dark:hover { background: rgba(255,255,255,0.15); }

/* ---------- Forms ---------- */

form.contact-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #44392f;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
}

.field input::placeholder,
.field textarea::placeholder { color: #8a7f78; }

.field .opt { font-weight: 400; color: var(--muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--ember-light);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-status {
  font-size: 0.95rem;
  font-weight: 600;
}
.form-status.success { color: #6fd08a; }
.form-status.error { color: var(--ember-light); }

/* ---------- Articles / Insights ---------- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 760px) {
  .article-grid { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card .thumb {
  height: 120px;
}

.article-card .body { padding: 16px 18px; }
.article-card .body p { color: var(--muted); font-size: 0.93rem; }
.article-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ember-light);
  margin-bottom: 6px;
}

article.insight-body {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}
article.insight-body h2 { margin-top: 1.4em; }
article.insight-body ul, article.insight-body ol { padding-left: 1.3em; }
.insight-hero-img {
  width: 100%;
  border-radius: var(--radius);
  margin: 16px 0 22px;
  display: block;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--muted); }

/* ---------- Footer ---------- */

footer.site-footer {
  background: #090807;
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 34px 0 20px;
  margin-top: 0;
}

footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

@media (max-width: 700px) {
  footer.site-footer .footer-grid { grid-template-columns: 1fr; }
}

footer.site-footer h2 { color: #fff; font-size: 0.92rem; }
.footer-logo {
  display: inline-block;
  line-height: 0;
}
footer.site-footer .footer-logo img { height: 165px; width: auto; margin: 0; }
footer.site-footer a { color: var(--muted); }
footer.site-footer a:hover { color: #fff; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer ul li { margin-bottom: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
  font-size: 0.8rem;
  color: #92877f;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Misc ---------- */

.badge-tbd {
  border: 1px dashed #4a3e37;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}

.two-col-list {
  columns: 2;
  column-gap: 30px;
}
@media (max-width: 600px) {
  .two-col-list { columns: 1; }
}

/* ---------- Icons ---------- */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(214, 64, 42, 0.14);
  color: var(--ember-light);
  margin-bottom: 10px;
  flex: none;
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}



/* ---------- Contact layout ---------- */

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.contact-list .icon { margin-bottom: 0; }

/* ---------- Card heads: icon and title on one line ---------- */

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.card-head .icon { margin: 0; width: 36px; height: 36px; }
.card-head .icon svg { width: 20px; height: 20px; }
.card-head h3, .card-head h2 { margin: 0; flex: 1; }
.card-head .step-num { margin: 0; color: #66544b; font-size: 1.3rem; }

.stat-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.trust-item .icon { margin: 0; width: 36px; height: 36px; }
.trust-item .icon svg { width: 20px; height: 20px; }

.grid-2 .trust-item { text-align: left; margin-bottom: 14px; }
.grid-2 .trust-item .stat-head { justify-content: flex-start; }

.stack { display: grid; gap: 14px; }
.mini { gap: 14px; margin: 16px 0; align-items: stretch; }

.grid-5 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.grid-5 > * { grid-column: span 2; }
.grid-5 > *:nth-child(4),
.grid-5 > *:nth-child(5) { grid-column: span 3; }

@media (max-width: 800px) {
  .grid-5 { grid-template-columns: 1fr; }
  .grid-5 > *,
  .grid-5 > *:nth-child(4),
  .grid-5 > *:nth-child(5) { grid-column: auto; }
}

/* ---------- Page heroes ---------- */

.hero:not(.hero-main) { padding: 38px 0 28px; }
.hero:not(.hero-main) + section { padding-top: 26px; }

.hero:not(.hero-main) h1 {
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  word-spacing: 0.08em;
  margin-bottom: 0;
}
.hero:not(.hero-main) .eyebrow { margin-bottom: 8px; }

/* ---------- Home hero ---------- */

.hero.hero-main {
  min-height: min(68vh, 560px);
  display: flex;
  align-items: center;
  padding: 64px 0 72px;
}
.hero.hero-main .wrap { width: 100%; display: block; }

.hero.hero-main::before {
  background:
    linear-gradient(180deg, rgba(14,12,11,0) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(14,12,11,.96) 0%, rgba(14,12,11,.72) 52%, rgba(14,12,11,.2) 100%);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-light);
}
.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--ember);
}

.hero.hero-main h1 {
  font-size: clamp(2.4rem, 7.2vw, 4.6rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  word-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.hero.hero-main h1 span { display: block; }
.hero.hero-main h1 .accent { color: var(--ember-light); }

.hero.hero-main p.lead {
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .hero-eyebrow { letter-spacing: 0.12em; }
  .hero.hero-main { padding: 56px 0 64px; min-height: 0; }
  .hero.hero-main::before {
    background:
      linear-gradient(180deg, rgba(14,12,11,.82) 0%, rgba(14,12,11,.78) 60%, var(--bg) 100%);
  }
}

.footer-bottom a { color: #92877f; text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }

.footer-legal {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: #7d726b;
}

/* ---------- Motion ---------- */

/* Nav links: red underline slides in from the left. */
.nav-bar nav a:not(.nav-cta) {
  position: relative;
  padding-bottom: 4px;
}
.nav-bar nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-bar nav a:not(.nav-cta):hover::after,
.nav-bar nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Buttons lift slightly. */
.btn,
.nav-cta {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}
.btn-primary:hover,
.nav-cta:hover {
  box-shadow: 0 8px 20px rgba(214, 64, 42, 0.35);
}

/* Cards lift and pick up a red edge. */
.card,
.article-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover,
.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 64, 42, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.icon { transition: background-color 0.25s ease, transform 0.25s ease; }
.card:hover .icon {
  background: rgba(214, 64, 42, 0.28);
  transform: scale(1.08);
}
.article-card .thumb { overflow: hidden; }
.article-card .thumb img { transition: transform 0.5s ease; }
.article-card:hover .thumb img { transform: scale(1.05); }

/* Scroll reveal (class added by nav.js for elements below the fold). */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.reveal { opacity: 0; }
.reveal.in {
  opacity: 1;
  animation: rise 0.6s ease backwards;
  animation-delay: var(--d, 0s);
}

/* Home hero: slow settle on the photo, then the text steps in. */
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.hero-main .hero-bg { animation: heroZoom 18s ease-out both; }
.hero-main .wrap > div > * { animation: rise 0.8s ease both; }
.hero-main .wrap > div > :nth-child(1) { animation-delay: 0.1s; }
.hero-main .wrap > div > :nth-child(2) { animation-delay: 0.22s; }
.hero-main .wrap > div > :nth-child(3) { animation-delay: 0.38s; }
.hero-main .wrap > div > :nth-child(4) { animation-delay: 0.52s; }
.hero-eyebrow::before { transform-origin: left; animation: grow 0.8s 0.2s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- About: partner logo ---------- */

.partner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.partner-row .section-head { margin-bottom: 12px; }
.partner-row p { margin-bottom: 0; max-width: 560px; }

/* The logo has dark lettering, so it sits on a light panel. */
.partner-logo {
  flex: none;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 18px 28px;
}
.partner-logo img { height: 46px; width: auto; }

@media (max-width: 700px) {
  .partner-row { flex-direction: column; align-items: flex-start; gap: 18px; }
}
