
:root {
  --brand: #3a93ec;
  --ink: #0f172a;
  --muted: #475569;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.07);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 800px at 50% -10%, rgba(58,147,236,0.25), transparent 60%),
              radial-gradient(800px 500px at 90% 120%, rgba(58,147,236,0.15), transparent 60%),
              #0b1220;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.spinner {
  width: 64px; height: 64px; border-radius: 50%;
  border: 6px solid rgba(255,255,255,.2);
  border-top-color: var(--brand);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-label { color: #e2e8f0; font-size: 14px; margin-top: 14px; letter-spacing: .2px; text-align: center; }
.loader-wrap { display: flex; flex-direction: column; align-items: center; }
body.loaded #preloader { opacity: 0; visibility: hidden; }

/* Layout */
.container { max-width: 1140px; width: 100%; margin: 0 auto; padding: 0 20px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 48px); }
.hero {
  min-height: 60vh;
  display: grid; place-items: center;
  padding: 48px 20px;
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(58,147,236,.12), transparent 40%),
    radial-gradient(900px 500px at 100% 100%, rgba(58,147,236,.1), transparent 60%);
}

/* Typography */
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 10px 0 14px; }
h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 10px; line-height: 1.2; }
h3 { font-size: clamp(20px, 2.6vw, 24px); margin: 18px 0 8px; }
p.lead { color: var(--muted); font-size: clamp(16px, 2.6vw, 18px); margin: 0 0 22px; }

/* CTA buttons */
.cta { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: white; background: var(--brand); padding: 12px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(58,147,236,.3); transition: transform .15s ease, box-shadow .15s ease; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(58,147,236,.36); }
.cta.secondary { background: #0b1220; color: #e2e8f0; box-shadow: 0 8px 24px rgba(11,18,32,.35); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
body.loaded .reveal { opacity: 1; transform: translateY(0); }

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(248,250,252,0.8); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid #e2e8f0; }
.navbar { display:flex; align-items:center; justify-content:space-between; padding: 14px 20px; }
.brand { display:flex; align-items:center; gap: 10px; text-decoration:none; color: var(--ink); font-weight: 700; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); display:inline-block; }
.nav-links { display:flex; gap: 18px; align-items:center; }
.nav-links a { text-decoration:none; color: var(--muted); font-weight: 600; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.menu-btn { display:none; background: transparent; border: 0; font-size: 18px; }
@media (max-width: 860px) {
  .nav-links { display:none; }
  .menu-btn { display:inline-flex; }
  .mobile-menu { display:none; position:absolute; top: 56px; left:0; right:0; background: var(--card); box-shadow: var(--shadow); padding: 10px 20px; }
  .mobile-menu.open { display:block; }
  .mobile-menu a { display:block; padding: 12px 0; color: var(--ink); text-decoration:none; border-bottom: 1px solid #eef2f7; }
}

/* Grids */
.grid { display:grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

/* Section spacing */
.section { padding: 40px 0; }
.section.alt { background: #eef2f7; }
.section .card { height: 100%; }

/* Footer */
footer { text-align: center; color: #64748b; font-size: 14px; padding: 24px; }
footer a { color: var(--muted); text-decoration: none; }

/* Image placeholders */
.figure { margin: 18px 0; }
.figure img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.figcap { font-size: 12px; color: #64748b; margin-top: 8px; }

.badge { display:inline-block; background:#eaf3fe; color:#1d4ed8; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:700; letter-spacing:.03em; }
.kbd { background:#111827; color:#e5e7eb; padding:2px 6px; border-radius:6px; font-size:12px; }


/* ===== Free Consultation Banner ===== */
.banner {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #3a93ec 0%, #7c3aed 40%, #ef4444 100%);
  color: #ffffff;
  position: relative;
}

.banner-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: clamp(22px, 4vw, 42px);
}
@media (max-width: 980px) {
  .banner-inner { grid-template-columns: 1fr; }
}

.banner h2 {
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.1;
  margin: 4px 0 10px;
}
.banner p { color: #f1f5f9; font-size: 16px; margin: 0 0 16px; }
.badge-free {
  display: inline-flex; align-items:center; gap:8px;
  background: rgba(255,255,255,.18);
  padding: 8px 12px; border-radius: 999px; font-weight:700; letter-spacing:.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

/* Consultation form */
.consult-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.input, .select, .textarea {
  width: 100%; padding: 12px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.18); color: #ffffff; outline: none;
}
.input::placeholder, .textarea::placeholder { color: rgba(255,255,255,.9); }
.textarea { min-height: 98px; resize: vertical; }
.honey { position:absolute; left:-9999px; top:-9999px; }

.btn-gradient {
  display:inline-flex; align-items:center; gap:10px; font-weight:800;
  text-decoration:none; color: #0b1220; background: #ffffff; padding: 12px 18px;
  border-radius: 999px; box-shadow: 0 8px 24px rgba(11,18,32,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-gradient:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(11,18,32,.35); }

.btn-outline-light {
  display:inline-flex; align-items:center; gap:10px; font-weight:700; color:#ffffff; text-decoration:none;
  border: 2px solid rgba(255,255,255,.6); padding: 10px 16px; border-radius: 999px;
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* ===== Artful nav (pill links) ===== */
.nav-links a {
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.nav-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15,23,42,.08);
  background: #f8fafc;
}
.nav-links a.cta {
  color: #ffffff;
  background: linear-gradient(135deg, #3a93ec, #7c3aed);
  border: none;
  box-shadow: 0 8px 20px rgba(124, 58, 237, .35);
}
.nav-links a[aria-current="page"] {
  outline: 2px solid #3a93ec22;
}

/* Mobile pill links */
.mobile-menu a {
  background: #ffffff;
  padding: 10px 14px;
  margin: 8px 0;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}


/* Sticky 'Book Free Hour' pill inside header */
.sticky-cta {
  position: relative;
}
@media (min-width: 861px) {
  .sticky-cta {
    position: sticky;
    top: 10px; /* keeps it visible as user scrolls with header */
  }
}

/* Current page highlighting */
.nav-links a[aria-current="page"],
.mobile-menu a[aria-current="page"] {
  outline: 2px solid #3a93ec55;
  box-shadow: 0 6px 16px rgba(58,147,236,.25);
}


/* === Unified pill sizing for header menus === */
.site-header .nav-links a,
.site-header .nav-links a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;         /* uniform */
  min-height: 40px;           /* uniform height */
  line-height: 20px;
  font-size: 14px;
  border-radius: 999px;
}

.site-header .nav-links a.cta,
.site-header .nav-links a.sticky-cta {
  padding: 10px 16px;         /* ensure CTAs match link height */
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;         /* comfortable touch target */
  border-radius: 12px;
  font-size: 16px;
}

/* Avoid double rendering of mobile drawer on wide screens */
@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}
