/* =============================================
   NARROW — Build A to Z
   Research-backed trust palette:
   Navy Blue   = trust, stability, professionalism
   Slate Green = growth, prosperity, safety
   Warm Off-White = premium neutral, wide appeal
   Charcoal    = authority, readability
   Amber       = warm CTA energy
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy:       #1B3A6B;
  --navy-dark:  #122850;
  --navy-light: #2A5298;
  --green:      #2D6A4F;
  --green-light:#40916C;
  --amber:      #E8A838;
  --amber-dark: #C8891A;
  --cream:      #F8F5F0;
  --cream-dark: #EDE9E2;
  --charcoal:   #2C2C2C;
  --gray:       #6B7280;
  --gray-light: #D1D5DB;
  --white:      #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --shadow-sm: 0 1px 3px rgba(27,58,107,0.08);
  --shadow-md: 0 4px 16px rgba(27,58,107,0.12);
  --shadow-lg: 0 12px 40px rgba(27,58,107,0.18);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ───────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--gray); line-height: 1.75; }

.text-white  { color: var(--white) !important; }
.text-navy   { color: var(--navy) !important; }
.text-amber  { color: var(--amber) !important; }
.text-green  { color: var(--green) !important; }
.text-center { text-align: center; }

/* ─── LAYOUT UTILITIES ─────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--navy);
}

.section--cream {
  background: var(--cream-dark);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ─── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy-dark);
}
.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ─── SECTION LABELS ────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(45,106,79,0.1);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.section-label--light {
  color: var(--amber);
  background: rgba(232,168,56,0.15);
}

/* ─── NAV ──────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(27,58,107,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo-icon {
  width: 40px;
  height: 40px;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.nav__cta {
  background: var(--amber);
  color: var(--navy-dark);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav__cta:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── FOOTER ───────────────────────────────── */
.footer {
  background: var(--navy-dark);
  padding: 64px 0 32px;
  color: rgba(255,255,255,0.65);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand p {
  color: rgba(255,255,255,0.6);
  margin: 12px 0 24px;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.footer__links li + li { margin-top: 10px; }

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--amber);
  font-style: italic;
}

/* ─── CARDS ────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,58,107,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(27,58,107,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.card__icon--green { background: rgba(45,106,79,0.1); }
.card__icon--amber { background: rgba(232,168,56,0.15); }

.card h3 { margin-bottom: 10px; }
.card p  { font-size: 0.9rem; }

/* ─── TRUST BADGES ─────────────────────────── */
.trust-bar {
  background: var(--white);
  border-top: 3px solid var(--amber);
  border-bottom: 1px solid var(--cream-dark);
  padding: 20px 0;
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.trust-item span.icon { font-size: 1.2rem; }

/* ─── STEP TIMELINE ────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(100% / 14);
  right: calc(100% / 14);
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--green));
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

.step__num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 auto 16px;
  transition: var(--transition);
}

.step:hover .step__num {
  background: var(--navy);
  color: var(--white);
  transform: scale(1.1);
}

.step__title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.step__desc {
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.4;
}

/* ─── STAT BLOCKS ──────────────────────────── */
.stat-block {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-block__num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-block__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ─── PROFILE CARDS ────────────────────────── */
.profile-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,58,107,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.profile-card__img {
  width: 100%;
  height: 220px;
  background: var(--cream-dark);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--navy-light);
}

.profile-card__body {
  padding: 24px;
}

.profile-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(45,106,79,0.1);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.profile-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.profile-card p  { font-size: 0.85rem; margin-bottom: 16px; }

.profile-card__meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 16px;
}

.profile-card__price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
}

.stars {
  color: var(--amber);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

/* ─── HERO SHARED ──────────────────────────── */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1a4a7a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero p   { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 36px; max-width: 540px; }

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── FORM ELEMENTS ────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42,82,152,0.15);
}

/* ─── PAGE TRANSITION ──────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.6s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 900px) {
  .grid-2  { grid-template-columns: 1fr; }
  .grid-3  { grid-template-columns: 1fr 1fr; }
  .grid-4  { grid-template-columns: 1fr 1fr; }
  .steps   { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 72px; }
  .section { padding: 64px 0; }
  .trust-bar__inner { gap: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
}
