/* ===============================
   CORE LAYOUT + CONTAINER
================================ */
:root {
  --max-width: 1200px;
}

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Make sure header wrapper is positioned so mobile nav can be absolute inside it */
.site-header {
  background: var(--bg-deep);
  position: relative;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative; /* <-- ensure absolute mobile nav positions relative to this */
}

.logo-wide {
  height: 41px; /* +20% logo size */
}

/* ===============================
   NAVIGATION
================================ */
.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 22px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  padding: 8px;
}

/* ===============================
   HERO
================================ */
.grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

.hero {
  align-items: start;
  padding-top: 36px;
  padding-bottom: 36px;
}

.hero-left {}

.hero-title {
  font-family: 'Merriweather', serif;
  font-size: 40px;
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero-subtitle {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 20px;
}

.hero-ctas .btn-gradient,
.hero-ctas .btn-ghost,
.hero-ctas .btn-outline {
  margin-right: 12px;
  margin-bottom: 12px;
}

/* Hero stats (small counters) */
.hero-stats {
  display: flex;
  gap: 18px;
  margin-top: 22px;
}

.stat {
  text-align: left;
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* calc card (teaser) */
.calc-card {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.calc-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.label {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.input, .range {
  width: 100%;
  margin-top: 8px;
}

.range-value {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.estimate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.04);
}

.estimate-value {
  font-size: 20px;
  font-weight: 800;
}

/* WHY CARD */
.why-card {
  margin-top: 18px;
  background: rgba(255,255,255,0.02);
  padding: 16px;
  border-radius: 10px;
}

/* ===============================
   VALUE PROPOSITION CARDS
================================ */
.section {
  margin-top: 36px;
  margin-bottom: 36px;
}

.cards-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.vp-card {
  padding: 18px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}

.vp-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

/* ===============================
   SERVICE PILLARS - flip cards
================================ */
.pillars-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.pillar-card {
  perspective: 1000px;
  cursor: pointer;
}

.pillar-inner {
  position: relative;
  width: 100%;
  min-height: 140px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.pillar-card:hover .pillar-inner,
.pillar-card.flip .pillar-inner {
  transform: rotateY(180deg);
}

.pillar-front,
.pillar-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(255,255,255,0.02);
}

.pillar-back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

/* ===============================
   JOURNEY TIMELINE
================================ */
.timeline.horizontal {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.step {
  min-width: 180px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  padding: 14px;
  text-align: left;
}

.step-num {
  background: var(--gradient-main);
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ===============================
   PRICING TEASER
================================ */
.pricing-actions {
  margin-top: 12px;
}

/* ===============================
   SOCIAL PROOF
================================ */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.proof {
  background: rgba(255,255,255,0.02);
  padding: 18px;
  border-radius: 12px;
  text-align: center;
}

.proof-number {
  font-size: 24px;
  font-weight: 800;
}

/* ===============================
   CTA
================================ */
.final-cta {
  margin-top: 28px;
  margin-bottom: 64px;
  text-align: center;
}

/* ===============================
   Modal
================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1200;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-inner {
  background: var(--bg-deep);
  border-radius: 12px;
  padding: 20px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  color: var(--text-main);
}

.modal-close {
  position: absolute;
  right: 22px;
  top: 18px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-main);
}

/* ===============================
   RESPONSIVE MOBiLE
================================ */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: 1fr 360px;
  }
  .cards-5, .pillars-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards-5 .vp-card { min-height: 140px; }
}

/* MOBILE NAV + LAYOUT ADJUSTMENTS */
@media (max-width: 768px) {

  /* prevent horizontal scroll globally */
  body { overflow-x: hidden; }

  .grid {
    grid-template-columns: 1fr;
  }

  .cards-5, .pillars-5 {
    grid-template-columns: 1fr;
  }

  .timeline.horizontal {
    display: block;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .hero-right { margin-top: 20px; }

  /* show hamburger button on mobile */
  .mobile-toggle {
    display: block;
    z-index: 1100;
  }

  /* hide desktop nav on mobile by default — we'll show it via JS */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;

    /* position the mobile menu so it doesn't cause page width overflow */
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    background: var(--bg-deep);
    border-top: 1px solid rgba(255,255,255,0.02);
  }

  .nav-links a {
    margin: 6px 0;
    padding: 8px 12px;
  }

  /* reduce container padding on small screens */
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
