/* Fair Fixed Fee Certification Board — Main Stylesheet */
/* Coded by Connor with Honor · connorwithhonor.com */

:root {
  --navy: #0A1A2E;
  --navy-mid: #142b47;
  --cream: #F5F1E8;
  --cream-light: #F9F7F1;
  --gold: #C8A961;
  --gold-deep: #9B7E3F;
  --charcoal: #1F2937;
  --charcoal-soft: #3A4756;
  --off-white: #FAF8F2;
  --red-alert: #B23A48;
  --shadow-soft: 0 4px 20px rgba(10, 26, 46, 0.08);
  --shadow-mid: 0 10px 40px rgba(10, 26, 46, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --max-width: 1200px;
  --max-narrow: 760px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream-light);
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
a:hover, a:focus {
  border-bottom-color: var(--gold);
  color: var(--navy);
}

/* Numbers / stat treatment */
.stat-num, .money {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-feature-settings: 'lnum', 'tnum';
  font-weight: 600;
}

/* Layout containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
.site-header {
  background: var(--navy);
  color: var(--off-white);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(200, 169, 97, 0.2);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--off-white);
  border: none;
}
.brand:hover { color: var(--gold); border: none; }
.brand img { height: 44px; width: auto; }
.brand-text { line-height: 1.1; }
.brand-text strong {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  display: block;
}
.brand-text span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.nav-primary ul {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.nav-primary a {
  color: var(--off-white);
  font-size: 0.92rem;
  font-weight: 500;
  border: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-primary a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav-primary .btn-nav {
  background: var(--gold);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav-primary .btn-nav:hover { background: var(--off-white); border: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--off-white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 169, 97, 0.08), transparent);
  pointer-events: none;
}
.hero h1 { color: var(--off-white); margin-bottom: 24px; }
.hero h1 em {
  font-family: 'Fraunces', 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--off-white);
  opacity: 0.88;
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.55;
}
.hero-math {
  display: inline-flex;
  align-items: baseline;
  gap: 20px;
  padding: 28px 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 169, 97, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.hero-math .old, .hero-math .new {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-math label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  opacity: 0.85;
}
.hero-math .old .money {
  font-size: 2.2rem;
  color: var(--off-white);
  opacity: 0.5;
  text-decoration: line-through;
  text-decoration-color: var(--red-alert);
}
.hero-math .arrow {
  font-size: 2rem;
  color: var(--gold);
  font-family: serif;
  padding: 0 4px;
}
.hero-math .new .money {
  font-size: 2.6rem;
  color: var(--gold);
}
.hero-math .on {
  font-size: 0.85rem;
  opacity: 0.6;
  letter-spacing: 0.1em;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--off-white);
  color: var(--navy);
  border-color: var(--off-white);
}
.btn-secondary {
  background: transparent;
  color: var(--off-white);
  border-color: var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--off-white);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Savings counter strip */
.counter-strip {
  background: var(--gold);
  color: var(--navy);
  padding: 18px 0;
  text-align: center;
  font-weight: 600;
  border-top: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
}
.counter-strip .label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  opacity: 0.75;
  margin-right: 14px;
}
.counter-strip .count {
  font-family: 'Fraunces', 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
}
.counter-strip .count::before { content: '$'; }

/* Section base */
.section {
  padding: 80px 0;
}
.section-cream { background: var(--cream); color: var(--charcoal); }
.section-navy { background: var(--navy); color: var(--off-white); }
.section-navy h2, .section-navy h3 { color: var(--off-white); }
.section-navy p { color: var(--off-white); opacity: 0.88; }

.section-lead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-lead .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  margin-bottom: 14px;
  font-weight: 600;
}
.section-navy .section-lead .eyebrow { color: var(--gold); }
.section-lead h2 { margin-bottom: 18px; }

/* Credential tier cards */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.cred-card {
  background: var(--cream-light);
  border: 1px solid rgba(200, 169, 97, 0.4);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
}
.cred-card .tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--gold);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.cred-card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--navy);
}
.cred-card .desc {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  margin-bottom: 20px;
}
.cred-card .fee-cap {
  padding: 12px 0;
  border-top: 1px solid rgba(200, 169, 97, 0.3);
  font-size: 0.85rem;
}
.cred-card .fee-cap strong { color: var(--gold-deep); }
.cred-card.featured {
  background: var(--navy);
  color: var(--off-white);
  border-color: var(--gold);
}
.cred-card.featured h3 { color: var(--off-white); }
.cred-card.featured .desc { color: var(--off-white); opacity: 0.88; }
.cred-card.featured .fee-cap { border-top-color: rgba(200, 169, 97, 0.4); }

/* Three step */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 48px;
}
.step {
  text-align: center;
}
.step .num {
  display: inline-block;
  width: 64px;
  height: 64px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  line-height: 60px;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
}
.step h3 { margin-bottom: 12px; }

/* Founder block */
.founder {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}
.founder-img {
  background: radial-gradient(circle at center, rgba(200, 169, 97, 0.15), transparent 70%);
  padding: 20px;
  border-radius: 50%;
}
.founder-img img {
  width: 100%;
  height: auto;
  display: block;
}
.founder-body h2 { margin-bottom: 12px; }
.founder-body .title {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 600;
}
@media (max-width: 760px) {
  .founder { grid-template-columns: 1fr; text-align: center; }
  .founder-img { max-width: 260px; margin: 0 auto; }
}

/* Standards preview list */
.standards-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.standards-list li {
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.03);
}
.section-navy .standards-list li { background: rgba(255, 255, 255, 0.05); }
.standards-list li strong {
  display: block;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

/* Dual CTA split */
.dual-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.dual-cta > div {
  background: var(--navy);
  color: var(--off-white);
  padding: 60px 40px;
  text-align: center;
  transition: background 0.3s;
}
.dual-cta > div:hover { background: var(--navy-mid); }
.dual-cta h3 { color: var(--off-white); margin-bottom: 12px; }
.dual-cta .btn { margin-top: 20px; }
@media (max-width: 700px) {
  .dual-cta { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--off-white);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(200, 169, 97, 0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  margin-bottom: 16px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a {
  color: var(--off-white);
  font-size: 0.9rem;
  opacity: 0.85;
  border: none;
}
.footer-grid a:hover { color: var(--gold); opacity: 1; border: none; }
.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid rgba(200, 169, 97, 0.15);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a { color: var(--gold); border: none; }
.footer-bottom a:hover { color: var(--off-white); border: none; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Small screens */
@media (max-width: 640px) {
  .site-header .container { justify-content: center; }
  .nav-primary ul { justify-content: center; gap: 14px; }
  .hero { padding: 60px 0 50px; }
  .hero-math { padding: 20px 24px; gap: 12px; }
  .hero-math .old .money { font-size: 1.6rem; }
  .hero-math .new .money { font-size: 1.9rem; }
  .founder { gap: 32px; }
}

/* Utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 40px 0;
  border: none;
}
