/* =========================================================
   FireHorse Rayo — Core Stylesheet
   Design tokens derived from the locked FireHorse Rayo brand suite.
   Cream + coral lead the palette; navy is reserved for a few
   deliberate accent moments (nav wordmark, footer, one contrast
   card) rather than as the page shell.
   ========================================================= */

:root {
  /* Brand colors */
  --navy: #1B2E4B;
  --navy-deep: #121F35;
  --navy-soft: #24405F;
  --coral: #F26430;
  --coral-soft: #F5875E;
  --coral-deep: #D6501F;
  --gold: #C9A961;
  --gold-soft: #DCC48C;
  --cream: #F7F4EC;
  --cream-deep: #EFE9D8;
  --ink: #14202F;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 500; }
h4 { font-size: 1rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--coral); }

p { margin: 0 0 var(--space-sm); color: rgba(20, 32, 47, 0.72); }
a { color: inherit; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1rem;
  font-weight: 700;
  color: var(--coral);
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-md); }
}

/* =========================================================
   Signature motif: the horizon line.
   A line representing Land's End — where the Sea of Cortez
   meets the Pacific — interrupted by a single coral bolt
   notch. Used once boldly per page, then echoed as a quiet
   section divider.
   ========================================================= */

.horizon {
  width: 100%;
  height: 40px;
  display: block;
}
.horizon-divider {
  width: 100%;
  height: 18px;
  display: block;
  opacity: 0.5;
  margin: 0 auto;
}

/* =========================================================
   Header / Nav
   Kept light — navy shows up only in the wordmark and text,
   not as a background wash.
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 46, 75, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand-mark .brand-mark-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-mark .brand-mark-text .rayo { color: var(--coral); font-weight: 700; }
.brand-mark .brand-mark-text .fh { font-weight: 500; color: var(--navy); }

.placeholder-tag {
  font-family: var(--font-body);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy);
  border: 1px solid rgba(27, 46, 75, 0.3);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 0.6rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(27, 46, 75, 0.75);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--coral);
}

.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--coral);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-links a.nav-cta:hover { background: var(--coral-soft); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(27, 46, 75, 0.25);
  border-radius: 6px;
  width: 40px; height: 36px;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: flex-start; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); border-bottom: 1px solid rgba(27,46,75,0.1); display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-soft); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(27,46,75,0.3); }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); }
.btn-dark { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-soft); }

/* =========================================================
   Hero
   Cream base with a warm coral + gold glow — the same
   treatment now used consistently across every page.
   ========================================================= */

.hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% -10%, rgba(242,100,48,0.20), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(201,169,97,0.22), transparent 50%),
    var(--cream);
}
.hero-inner { max-width: 760px; }
.hero .eyebrow { display: flex; align-items: center; gap: 0.6rem; }
.hero .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--navy); display: inline-block; }
.hero p.lede { font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; gap: var(--space-sm); margin-top: var(--space-md); flex-wrap: wrap; }

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
}
.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(27,46,75,0.18);
  border: 1px solid rgba(201,169,97,0.3);
  background: var(--cream-deep);
}
.hero-photo.landscape { aspect-ratio: 4 / 3; }
@media (min-width: 901px) {
  .hero-photo.landscape { align-self: center; }
}

.photo-band {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--cream-deep);
}
@media (max-width: 640px) { .photo-band { height: 220px; } }

.photo-card {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(27,46,75,0.14);
  background: var(--cream-deep);
}

.founder-photo {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 10px 24px rgba(27,46,75,0.15);
  margin-bottom: var(--space-md);
}

.page-hero, .page-hero.rich {
  padding: var(--space-xl) 0 var(--space-lg);
  background:
    radial-gradient(ellipse at 15% -10%, rgba(242,100,48,0.20), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(201,169,97,0.22), transparent 50%),
    var(--cream);
}
.page-hero .eyebrow { display:flex; align-items:center; gap:0.6rem; }
.page-hero .eyebrow::before { content:""; width:28px; height:1px; background: var(--navy); display:inline-block; }
.page-hero p.lede { max-width: 620px; font-size: 1.05rem; }

/* =========================================================
   Sections
   Cream is now the default canvas everywhere; .section-light
   is kept as a harmless alias so existing markup still works.
   ========================================================= */

section { padding: var(--space-xl) 0; }
.section-tight { padding: var(--space-lg) 0; }
.section-light {
  background: var(--cream);
  color: var(--ink);
}
.section-light h1, .section-light h2, .section-light h3 { color: var(--navy); }
.section-light p { color: rgba(20,32,47,0.72); }
.section-light .eyebrow { color: var(--coral); }

/* A rare, deliberate warm band for visual rhythm between long
   cream stretches — used sparingly, not as the default. */
.section-warm { background: var(--cream-deep); }

.section-head { max-width: 640px; margin: 0 auto var(--space-lg); text-align: center; }
.section-head.left { margin: 0 0 var(--space-lg); text-align: left; }

/* =========================================================
   Grids / Cards
   ========================================================= */

.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid rgba(27,46,75,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--coral); transform: translateY(-3px); }
.card .card-icon { width: 34px; height: 34px; margin-bottom: var(--space-sm); color: var(--coral); }
.card h3 { color: var(--navy); margin-bottom: 0.4rem; }
.card p { font-size: 0.92rem; margin-bottom: 0; }

.section-light .card {
  background: var(--white);
  border-color: rgba(27,46,75,0.1);
}
.section-light .card h3 { color: var(--navy); }

/* =========================================================
   Pricing tiers
   ========================================================= */

.tier-group { margin-bottom: var(--space-xl); }
.tier-group:last-child { margin-bottom: 0; }
.tier-group-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-md); border-bottom: 1px solid rgba(27,46,75,0.15); padding-bottom: var(--space-sm); }
.tier-group-head h2 { margin-bottom: 0.2rem; }

.tier-card {
  background: var(--white);
  border: 1px solid rgba(27,46,75,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier-card.featured { border-color: var(--coral); box-shadow: 0 12px 30px rgba(242,100,48,0.14); }
.tier-card.featured::before {
  content: "Most popular";
  position: absolute; top: -12px; left: var(--space-md);
  background: var(--coral); color: var(--white);
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px;
}
.tier-name { font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); margin-bottom: 0.2rem; }
.tier-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--coral); margin-bottom: 0.2rem; }
.tier-sub { font-size: 0.8rem; color: rgba(20,32,47,0.55); margin-bottom: var(--space-sm); }
.tier-list { list-style: none; margin: 0 0 var(--space-md); padding: 0; flex-grow: 1; }
.tier-list li { font-size: 0.88rem; color: rgba(20,32,47,0.78); padding: 0.35rem 0 0.35rem 1.3rem; position: relative; }
.tier-list li::before { content: "\2013"; position: absolute; left: 0; color: var(--coral); font-weight: 700; }

/* =========================================================
   Stats / numbers
   ========================================================= */

.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--coral); }
.stat .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(20,32,47,0.55); }

/* =========================================================
   Values / process list
   ========================================================= */

.value-row { display: flex; gap: var(--space-md); align-items: flex-start; padding: var(--space-md) 0; border-top: 1px solid rgba(27,46,75,0.1); }
.value-row:first-child { border-top: none; padding-top: 0; }
.value-row .value-index { font-family: var(--font-display); color: var(--coral); font-size: 1rem; min-width: 2.4rem; }

.process-step { display: flex; gap: var(--space-md); }
.process-step .step-num {
  font-family: var(--font-display);
  color: var(--white);
  background: var(--coral);
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.95rem;
}
.process-step:not(:last-child) { margin-bottom: var(--space-md); }

/* =========================================================
   Quote / CTA band
   The one place per page that goes bold coral — the clearest
   "orange" moment on the site, with navy used only as a
   contrast accent inside it.
   ========================================================= */

.cta-band {
  background: linear-gradient(120deg, var(--coral) 0%, var(--coral-soft) 55%, var(--gold) 100%);
  text-align: center;
  padding: var(--space-xl) 0;
}
.cta-band h2 { max-width: 620px; margin-left: auto; margin-right: auto; color: var(--navy); }
.cta-band p { color: rgba(27,46,75,0.78); }
.cta-band .eyebrow { color: var(--navy); }
.cta-band .eyebrow::before { background: var(--navy); }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-primary { background: var(--navy); }
.cta-band .btn-primary:hover { background: var(--navy-soft); }
.cta-band .btn-ghost { color: var(--navy); border-color: rgba(27,46,75,0.4); }
.cta-band .btn-ghost:hover { border-color: var(--navy); background: rgba(27,46,75,0.06); }

/* =========================================================
   Forms
   ========================================================= */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm) var(--space-md); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--coral); margin-bottom: 0.4rem; }
input, select, textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(27,46,75,0.18);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(242,100,48,0.16);
}
input::placeholder, textarea::placeholder { color: rgba(20,32,47,0.35); }

/* Visible keyboard focus for interactive elements */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* The one intentionally dark card on the site — a small,
   deliberate navy moment standing out against the cream
   contact page, rather than navy being the page background. */
.contact-info-card {
  background: var(--navy);
  border: 1px solid rgba(201,169,97,0.25);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.contact-info-card h4 { color: var(--gold); }
.contact-info-card p { color: rgba(247,244,236,0.75); }
.contact-info-card a { color: var(--cream); }
.contact-info-card a:hover { color: var(--gold); }
.reveal-email {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.reveal-email:hover { color: var(--coral-soft); }
.contact-info-card .reveal-email:hover { color: var(--gold); }
.contact-info-row { display: flex; gap: var(--space-sm); padding: var(--space-sm) 0; border-top: 1px solid rgba(201,169,97,0.18); }
.contact-info-row:first-child { border-top: none; padding-top: 0; }
.contact-info-row h4 { margin-bottom: 0.2rem; }

/* =========================================================
   Footer
   The other deliberate navy moment — bookends the nav's light
   touch and grounds the page, without navy being the default.
   ========================================================= */

.site-footer {
  background: var(--navy);
  border-top: 3px solid var(--coral);
  padding: var(--space-lg) 0 var(--space-md);
}
.site-footer .brand-mark { color: var(--white); }
.site-footer .brand-mark .fh { color: var(--white); }
.site-footer h4 { color: var(--gold); }
.footer-top { display: flex; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.footer-tagline { max-width: 320px; font-size: 0.9rem; color: rgba(247,244,236,0.6); }
.footer-cols { display: flex; gap: var(--space-2xl); flex-wrap: wrap; }
.footer-col h4 { margin-bottom: var(--space-sm); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; color: rgba(247,244,236,0.7); font-size: 0.88rem; }
.footer-col a { text-decoration: none; font-size: 0.88rem; color: rgba(247,244,236,0.7); }
.footer-col a:hover { color: var(--coral-soft); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); padding-top: var(--space-md); border-top: 1px solid rgba(201,169,97,0.18); font-size: 0.78rem; color: rgba(247,244,236,0.45); }

@media (max-width: 640px) {
  .footer-top, .footer-bottom { flex-direction: column; }
}

/* =========================================================
   Utility
   ========================================================= */

.center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.badge-row { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.badge {
  font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
  border: 1px solid rgba(27,46,75,0.25); color: var(--navy);
  border-radius: 999px; padding: 7px 16px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
