/* ============ RealChain Consulting ============ */

:root {
  --navy: #0F2744;
  --navy-light: #1A3A5C;
  --gold: #C8922A;
  --gold-light: #dbaa45;
  --bg: #F8F7F4;
  --text: #1A1A2E;
  --muted: #5A6478;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(15, 39, 68, 0.08);
  --shadow-lg: 0 8px 28px rgba(15, 39, 68, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .stat-value, .logo, .footer-logo {
  font-family: "Fraunces", Georgia, serif;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 39, 68, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  color: var(--white);
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 9px 20px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-light); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 18%, rgba(200, 146, 42, 0.18) 0%, transparent 52%),
              radial-gradient(circle at 85% 80%, rgba(200, 146, 42, 0.08) 0%, transparent 45%);
}
.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 110px 24px 120px;
}
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 780px;
}
.hero-sub {
  margin-top: 26px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
}
.hero-ctas {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Inter", sans-serif;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-full { width: 100%; }

/* ============ STATS ============ */
.stats {
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.stats-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-value {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 600;
  color: var(--navy);
}
.stat-label {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============ SECTIONS ============ */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px;
}
.section-inner.narrow { max-width: 720px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
h2.gold { color: var(--gold); }
.section-sub {
  margin-top: 16px;
  color: var(--muted);
  max-width: 620px;
  font-size: 1.05rem;
}
.section-sub.light { color: rgba(255, 255, 255, 0.72); }
.problem p, .about p { margin-top: 16px; color: var(--muted); font-size: 1.02rem; }

/* ============ SERVICES ============ */
.card-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.card p { font-size: 0.95rem; color: var(--muted); }

/* ============ MODULES ============ */
.modules { background: var(--navy); color: var(--white); }
.modules h2 { color: var(--white); }
.pill-grid {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.92rem;
  transition: background 0.2s, border-color 0.2s;
}
.pill:hover { background: rgba(200, 146, 42, 0.18); border-color: var(--gold); }

/* ============ WHY ============ */
.why-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.why-col h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.why-col p { color: var(--muted); font-size: 0.98rem; margin-top: 10px; }

/* ============ ABOUT ============ */
.about { background: var(--white); }
.about-highlight {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 44px 36px;
  color: var(--white);
}
.quote {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--gold-light);
}
.quote-attr { margin-top: 18px; color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; }

/* ============ CONTACT ============ */
.contact form { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact input,
.contact select,
.contact textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}
.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact textarea { resize: vertical; }
.hp { display: none !important; }
.form-status { font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: #b42318; }

/* ============ FOOTER ============ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}
.footer .section-inner { padding: 56px 24px; }
.footer-logo { font-size: 1.3rem; color: var(--white); font-weight: 700; }
.footer-logo span { color: var(--gold); }
.footer-note {
  margin-top: 16px;
  font-size: 0.85rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.footer-copy { margin-top: 20px; font-size: 0.85rem; }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-inner { padding: 80px 24px 90px; }
  .section-inner { padding: 72px 24px; }
}
