@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

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

:root {
  --navy:   #002654;
  --navy-d: #001635;
  --navy-l: #003680;
  --amber:  #F59E0B;
  --amber-d:#D97706;
  --white:  #ffffff;
  --off:    #F7F8FA;
  --text:   #1C2B3A;
  --muted:  #4B6275;
  --border: #DDE4EA;
  --green:  #10B981;
  --red:    #EF4444;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,38,84,0.10);
  --shadow-lg: 0 12px 40px rgba(0,38,84,0.16);
  --max: 1200px;
  --ease: cubic-bezier(0.4,0,0.2,1);
  --vh: 100vh; /* updated by JS on pages that use scroll-snap */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── Typography ── */
h1,h2,h3,h4 { font-family: 'Bricolage Grotesque', sans-serif; line-height: 1.15; font-weight: 800; }

.label {
  display: inline-block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.75rem;
}

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -50px; left: 0;
  background: var(--navy); color: var(--white);
  padding: 10px 18px; z-index: 999; border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }

/* ══════════════════════════════════════════
   SCROLL SNAP — 2-screen page sections
   Applied on pages that add class="snap-page" to <main>
══════════════════════════════════════════ */
main.snap-page {
  height: calc(100vh - 73px); /* subtract header height */
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--navy) var(--border);
}
main.snap-page::-webkit-scrollbar { width: 6px; }
main.snap-page::-webkit-scrollbar-track { background: var(--border); }
main.snap-page::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }

/* Each snap section = exactly 2 viewport heights */
.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: calc(2 * (100vh - 73px));
  display: flex;
  flex-direction: column;
}

/* First snap section (hero-like) takes 100vh so it feels full-screen on load */
.snap-section.snap-hero {
  min-height: calc(100vh - 73px);
  scroll-snap-align: start;
}

/* Scroll indicator dots */
.scroll-dots {
  position: fixed; right: 1.25rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 90;
}
.scroll-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); border: 2px solid var(--muted);
  cursor: pointer; transition: all 0.25s;
}
.scroll-dot.active { background: var(--navy); border-color: var(--navy); transform: scale(1.3); }

/* ── HEADER / NAV ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,38,84,0.07);
  height: 73px; display: flex; align-items: center;
}

nav {
  max-width: var(--max); margin: 0 auto; width: 100%;
  padding: 0 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}

.logo { display: flex; align-items: center; gap: 0.85rem; transition: opacity 0.2s; }
.logo:hover { opacity: 0.85; }
.logo img { height: 52px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: var(--navy); letter-spacing: -0.03em; line-height: 1;
}
.logo-sub { font-size: 0.78rem; color: var(--muted); font-family: 'Lora', serif; font-style: italic; margin-top: 2px; }

.nav-links { display: flex; gap: 0.25rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.925rem; font-weight: 600;
  color: var(--text); padding: 0.5rem 0.875rem;
  border-radius: 6px; transition: all 0.2s var(--ease);
}
.nav-links a:hover { color: var(--navy); background: var(--off); }
.nav-links a.active { color: var(--navy); background: rgba(0,38,84,0.07); }

.nav-cta {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  background: var(--navy); color: var(--white);
  padding: 0.6rem 1.25rem; border-radius: 8px;
  transition: all 0.2s var(--ease); white-space: nowrap;
}
.nav-cta:hover { background: var(--navy-l); transform: translateY(-1px); box-shadow: var(--shadow); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.5rem; color: var(--navy); font-size: 1.6rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 1rem;
  padding: 0.875rem 1.875rem; border-radius: 10px;
  transition: all 0.25s var(--ease); cursor: pointer; border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--amber); color: var(--text); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--amber-d); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: white; transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-l); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; border-radius: 7px; }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }

/* ── SECTION ── */
section { padding: 4.5rem 1.5rem; }
.inner { max-width: var(--max); margin: 0 auto; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.75rem,4vw,2.5rem); margin-bottom: 0.75rem; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-d) 100%);
  color: white; padding: 4rem 1.5rem 3.5rem; text-align: center;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(245,158,11,0.12) 0%, transparent 65%);
}
.page-hero .inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem,4.5vw,3rem); margin-bottom: 0.6rem; }
.page-hero p { font-size: 1.075rem; opacity: 0.88; max-width: 600px; margin: 0 auto; }

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.25rem;
  transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}
.card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }

/* ── TRUST BAR ── */
.trust-bar { background: var(--off); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; flex-shrink: 0; }
.trust-bar .inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-family: 'Bricolage Grotesque', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.trust-item .icon { font-size: 1.1rem; }

/* ── SUBURBS STRIP ── */
.suburbs-strip { background: var(--navy); color: white; padding: 1rem 1.5rem; text-align: center; flex-shrink: 0; }
.suburbs-strip p { font-family: 'Bricolage Grotesque', sans-serif; font-size: 0.79rem; color: rgba(255,255,255,0.7); max-width: var(--max); margin: 0 auto; line-height: 1.8; }
.suburbs-strip strong { color: var(--amber); font-weight: 700; }

/* ── FOOTER ── */
footer { background: var(--navy-d); color: white; padding: 3rem 1.5rem 1.25rem; flex-shrink: 0; }
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-name { color: white; font-size: 1.3rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.6); }
.footer-brand p { color: rgba(255,255,255,0.7); margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.7; }
.footer-brand .creds { margin-top: 0.75rem; font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.8; }
footer h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.875rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-contact p { color: rgba(255,255,255,0.75); font-size: 0.875rem; margin-bottom: 0.4rem; }
.footer-contact a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-contact a:hover { color: white; }
.footer-bottom {
  max-width: var(--max); margin: 1.25rem auto 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 0.8rem; }

/* ── FORMS (shared) ── */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.form-group label .req { color: #dc2626; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.7rem 0.9rem; font-size: 0.95rem;
  border: 2px solid var(--border); border-radius: 8px;
  font-family: 'Lora', serif; background: var(--off);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none; color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--navy); background: white; box-shadow: 0 0 0 3px rgba(0,38,84,0.1);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-error { display: none; color: #dc2626; font-size: 0.78rem; margin-top: 0.25rem; font-family: 'Bricolage Grotesque', sans-serif; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: #dc2626; }
.form-group.has-error .form-error { display: block; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 73px; left: 0; right: 0; bottom: 0;
    background: white; padding: 2rem 1.5rem; gap: 0.5rem;
    box-shadow: var(--shadow-lg); z-index: 99; overflow-y: auto;
  }
  .nav-links.open .nav-cta { display: inline-flex; margin-top: 1rem; }
  .hamburger { display: block; }
  .scroll-dots { display: none; }
  /* On mobile, disable snap for usability */
  main.snap-page { height: auto; overflow-y: auto; scroll-snap-type: none; }
  .snap-section { min-height: unset; }
}

@media (max-width: 768px) {
  section { padding: 3rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
