/* Safety Spark System — styles matched to Gina's mockups */
:root {
  --night: #050508;
  --panel: #0c0d13;
  --line: rgba(255,255,255,0.08);
  --gold: #d0a648;
  --gold-bright: #ecc873;
  --paper: #f0ece2;
  --cream: #f5efe4;
  --cream2: #efe7d6;
  --ink: #2b2417;
  --smoke: #b9bdc7;

  --ember-c: #eceae4;
  --reflection-c: #4da3ff;
  --transformation-c: #a85cff;
  --growth-c: #f0a92e;
  --connection-c: #ff7a2e;
  --purpose-c: #ff4433;

  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

body {
  font-family: var(--serif);
  background: var(--night);
  color: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-bright); }

.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

.t-ember { color: var(--ember-c); }
.t-reflection { color: var(--reflection-c); }
.t-transformation { color: var(--transformation-c); }
.t-growth { color: var(--growth-c); }
.t-connection { color: var(--connection-c); }
.t-purpose { color: var(--purpose-c); }

/* ============ Header ============ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 0.9rem 3vw 0.9rem 2vw;
  background: #050508;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 1.3rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.brand .star { color: var(--gold-bright); font-size: 1.05rem; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.7rem; }
.site-nav a {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8e8ec;
  text-decoration: none;
}
.site-nav a:hover { color: var(--gold-bright); }
.site-nav a.nav-ember.active { color: var(--ember-c); }
.site-nav a.nav-reflection.active { color: var(--reflection-c); }
.site-nav a.nav-transformation.active { color: var(--transformation-c); }
.site-nav a.nav-growth.active { color: var(--growth-c); }
.site-nav a.nav-connection.active { color: var(--connection-c); }
.site-nav a.nav-purpose.active { color: var(--purpose-c); }

/* ============ Home ============ */
.home-hero img { width: 100%; }

.flame-rows { background: #000; }

.flame-row {
  position: relative;
  display: block;
  text-decoration: none;
  height: 154px;
  border-top: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  background: #000;
}

.row-art {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 57%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.flame-row::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 57%;
  background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.55) 18%, rgba(0,0,0,0) 45%);
}
.flame-row:hover::after { background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.45) 18%, rgba(0,0,0,0) 45%); }

.row-icon {
  position: absolute;
  left: 55px;
  top: 50%;
  transform: translateY(-50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
}

.row-text {
  position: absolute;
  left: 213px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.row-text h2 {
  font-family: var(--serif);
  font-variant: small-caps;
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: 0.05em;
  color: #f4f1ea;
  line-height: 1.1;
  text-transform: lowercase;
}

.row-text .tagline {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0.35rem 0 0.45rem;
}

.row-text .blurb {
  font-family: var(--serif);
  font-size: 0.86rem;
  line-height: 1.45;
  color: #d6d4cd;
}

/* closing / minis */
.closing-line {
  text-align: center;
  font-family: var(--serif);
  color: var(--gold-bright);
  padding: 2.6rem 5vw 1.6rem;
  font-size: 1.05rem;
}

.mini-row {
  display: flex;
  justify-content: center;
  gap: 2.6rem;
  padding: 0.5rem 5vw 1rem;
  flex-wrap: wrap;
}
.mini-row img { width: 58px; height: 70px; object-fit: cover; mix-blend-mode: screen; }
.mini-row a { display: block; }

.choose-line {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: 1.4rem 5vw 2.6rem;
}

/* ============ Breadcrumbs ============ */
.breadcrumbs {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9aa0ac;
  padding: 1.1rem 3vw 0.4rem;
}
.breadcrumbs a { color: #9aa0ac; text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-bright); }
.breadcrumbs span { margin: 0 0.4rem; color: #565b66; }

/* ============ Flame hero (reflection-style) ============ */
.flame-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #04050a;
}
.hero-art {
  position: absolute;
  top: 0; right: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
}
.flame-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  background: linear-gradient(90deg, #04050a 0%, rgba(4,5,10,0.5) 20%, rgba(4,5,10,0) 50%);
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 460px;
  padding: 4.5rem 0 4rem 4vw;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero-text h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  color: #f4f1ea;
}

.rule {
  width: 130px;
  height: 1px;
  margin: 1.4rem 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-text .intro {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.75;
  color: #e2e0d8;
  margin-bottom: 1.8rem;
}

/* buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 1px solid;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.btn-reflection { color: var(--reflection-c); border-color: rgba(77,163,255,0.6); }
.btn-reflection:hover { background: rgba(77,163,255,0.12); }
.btn-transformation { color: var(--transformation-c); border-color: rgba(168,92,255,0.6); }
.btn-transformation:hover { background: rgba(168,92,255,0.12); }
.btn-growth { color: var(--growth-c); border-color: rgba(240,169,46,0.6); }
.btn-growth:hover { background: rgba(240,169,46,0.12); }
.btn-connection { color: var(--connection-c); border-color: rgba(255,122,46,0.6); }
.btn-connection:hover { background: rgba(255,122,46,0.12); }
.btn-purpose { color: var(--purpose-c); border-color: rgba(255,68,51,0.6); }
.btn-purpose:hover { background: rgba(255,68,51,0.12); }
.btn-ember { color: var(--ember-c); border-color: rgba(236,234,228,0.6); }

/* ============ Quote band ============ */
.quote-band {
  position: relative;
  background: #07080f;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem 16vw;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 3vw;
}

.qmark { font-family: var(--serif); font-size: 4.5rem; line-height: 0.5; opacity: 0.9; }

.quote-band blockquote {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.6;
  text-align: center;
  color: #f2efe8;
}

.qcite { font-family: var(--serif); color: #9aa0ac; font-size: 1rem; white-space: nowrap; }
.qcite em { font-family: 'Segoe Script', 'Brush Script MT', cursive; font-size: 1.05rem; }

/* ============ Sections / cards ============ */
.section { max-width: 1040px; margin: 0 auto; padding: 2.8rem 3vw; }

.ways-heading {
  text-align: center;
  font-family: var(--serif);
  font-variant: small-caps;
  text-transform: lowercase;
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 1.45rem;
}
.ways-star { text-align: center; color: var(--gold-bright); font-size: 0.7rem; margin: 0.5rem 0 1.8rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.card-img { width: 100%; height: 168px; object-fit: cover; }
.card-body { padding: 1.3rem 1.35rem 1.5rem; }
.card-head { display: flex; align-items: center; gap: 0.6rem; }
.card-icon { font-size: 1.15rem; }
.card-title {
  font-family: var(--serif);
  font-variant: small-caps;
  text-transform: lowercase;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: #f2efe8;
}
.card .sub {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin: 0.35rem 0 0.7rem;
}
.card-text { font-family: var(--serif); font-size: 0.95rem; color: #cfccc4; margin-bottom: 1.1rem; }
.card .btn { font-size: 0.6rem; padding: 0.6rem 1.1rem; }

/* why panels */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1.4rem;
  padding-top: 0;
}
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

.why-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem 1.6rem;
}
.why-panel h3 {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.why-panel ul { list-style: none; }
.why-panel li {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: #d6d4cd;
  padding: 0.28rem 0 0.28rem 1.3rem;
  position: relative;
}
.why-panel li::before { content: "✦"; position: absolute; left: 0; top: 0.5rem; font-size: 0.6rem; color: var(--gold-bright); }

.why-flame { display: flex; align-items: center; gap: 1.8rem; }
.why-flame img { width: 130px; height: 150px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.why-flame p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.8; color: #e6e3db; }

/* ============ Other flames strip ============ */
.other-flames {
  border-top: 1px solid var(--line);
  padding: 2.6rem 3vw 1.2rem;
  text-align: center;
}
.other-flames h2 {
  font-family: var(--serif);
  font-variant: small-caps;
  text-transform: lowercase;
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 1.15rem;
  color: var(--gold-bright);
  margin-bottom: 1.9rem;
}
.of-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem 3.4rem;
  max-width: 1000px;
  margin: 0 auto;
}
.of-item { text-decoration: none; width: 148px; }
.of-item img { width: 54px; height: 66px; object-fit: cover; margin: 0 auto 0.55rem; mix-blend-mode: screen; }
.of-item h3 {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.of-item p { font-family: var(--serif); font-size: 0.82rem; color: #b9bdc7; }

/* ============ Ember page ============ */
.ember-hero { position: relative; }
.ember-hero img { width: 100%; }
.ember-hero-btn {
  position: absolute;
  left: 6.5%;
  top: 80.5%;
  width: 20%;
  height: 8%;
}

.light { background: var(--cream); color: var(--ink); }

.light-band {
  background: var(--cream);
  border-color: #e3d9c2;
  padding: 3rem 14vw;
}
.light-band .qmark { color: var(--gold); }
.light-band blockquote { color: #241d10; }
.light-band .qcite { color: #8a7a55; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.6rem;
  text-align: center;
  background: #fbf7ee;
  border-top: 1px solid #e9dfc8;
  border-bottom: 1px solid #e9dfc8;
  max-width: none;
  padding: 2.6rem 6vw;
}
.pillar img { width: 46px; height: 46px; object-fit: contain; margin: 0 auto 0.7rem; mix-blend-mode: multiply; }
.pillar h3 {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.pillar p { font-family: var(--serif); font-size: 0.9rem; color: #5a5140; line-height: 1.5; }

.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.2rem;
  align-items: start;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(212,166,74,0.10), transparent 70%),
    var(--cream2);
  max-width: none;
  padding: 3.4rem 8vw;
}
@media (max-width: 800px) { .story-grid { grid-template-columns: 1fr; } }

.kicker-gold {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.story-text h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  color: #241d10;
  margin-bottom: 1.2rem;
}
.story-text h2 .gold { color: var(--gold); }
.story-text p { font-family: var(--serif); font-size: 1.02rem; color: #453b28; margin-bottom: 1rem; line-height: 1.7; }

.btn-gold-outline { color: var(--gold); border-color: var(--gold); margin-top: 0.6rem; }
.btn-gold-outline:hover { background: rgba(212,166,74,0.12); }
.btn-gold-fill { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold-fill:hover { background: #c19738; }

.link-list {
  display: grid;
  gap: 1rem;
  background: #fffdf7;
  border: 1px solid #ecdfc0;
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 18px 40px rgba(120,95,40,0.12);
}
.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid #f0e6cf;
}
.link-list .link-card:last-child { border-bottom: none; }
.link-card img { width: 38px; height: 38px; object-fit: contain; mix-blend-mode: multiply; flex: 0 0 auto; }
.link-card h4 {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.link-card p { font-family: var(--serif); font-size: 0.88rem; color: #5a5140; line-height: 1.45; }
.link-card .arrow { margin-left: auto; color: var(--gold); font-size: 1.1rem; }

.accident { text-align: center; background: var(--cream2); max-width: none; padding: 3rem 8vw 3.6rem; }
.accident h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  color: #241d10;
  margin-bottom: 0.8rem;
}
.accident p { font-family: var(--serif); color: #453b28; margin-bottom: 1.6rem; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.8rem 5vw;
  text-align: center;
  color: #7d828d;
  font-family: var(--sans);
  font-size: 0.72rem;
}

/* responsive: home rows */
@media (max-width: 860px) {
  .flame-row { height: auto; min-height: 154px; }
  .row-art, .flame-row::after { width: 100%; opacity: 0.45; }
  .row-icon { position: static; transform: none; margin: 1rem 0 0 1rem; width: 84px; height: 84px; }
  .row-text { position: static; transform: none; padding: 0.4rem 1rem 1.2rem; }
  .flame-row { display: flex; align-items: center; gap: 0.5rem; }
  .hero-art, .flame-hero::after { width: 100%; opacity: 0.5; }
  .hero-text { max-width: 88%; }
  .quote-band { grid-template-columns: 1fr; padding: 2.4rem 8vw; text-align: center; }
  .qmark { display: none; }
  .why-flame { flex-direction: column; text-align: center; }
}
