/* ── Design tokens ── */
:root {
  --navy: #1e3a5f;
  --blue: #2a5298;
  --blue-mid: #3a6abf;
  --accent: #d4a843;
  --bg: #f5f7fb;
  --bg-alt: #eef2f8;
  --white: #ffffff;
  --text: #1a2332;
  --text-mid: #4b5563;
  --text-light: #9ca3af;
  --border: #e2e8f2;
  --shadow-sm: 0 1px 4px rgba(30,58,95,0.06);
  --shadow: 0 2px 16px rgba(30,58,95,0.09);
  --shadow-lg: 0 8px 32px rgba(30,58,95,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.22s ease;
  --container: 1140px;
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--navy); font-weight: 700; }
.btn-white:hover { background: var(--bg-alt); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
  font-weight: 600;
}
.btn-ghost:hover { border-color: var(--navy); background: var(--bg-alt); }

/* ── Section labels / headings ── */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.4px;
}
.section-intro {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 600px;
  margin-top: 14px;
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header .section-intro { margin-left: auto; margin-right: auto; }

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 8px;
}
.logo { flex-shrink: 0; }
.logo img { height: 48px; width: auto; object-fit: contain; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto; /* push nav to the right on desktop */
}
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: var(--bg-alt); }
.nav-link--cta {
  background: var(--navy);
  color: var(--white) !important;
  font-weight: 600;
  margin-left: 8px;
  padding: 8px 20px;
}
.nav-link--cta:hover { background: var(--blue); }
.header-actions {
  display: none; /* shown on mobile only */
  align-items: center;
  gap: 8px;
  margin-left: auto; /* push Apply + hamburger to the right */
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  margin: 0 auto;
  transition: all var(--transition);
}

/* ── Hero Carousel ── */
.hero {
  position: relative;
  height: 88vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  background: var(--navy);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(20,38,65,0.82) 0%, rgba(30,58,95,0.55) 55%, rgba(30,58,95,0.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 24px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,0.26); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(100deg, var(--navy) 0%, var(--blue) 100%);
  padding: 22px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-badge {
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.cta-title { color: white; font-size: 18px; font-weight: 700; }
.cta-sub { color: rgba(255,255,255,0.72); font-size: 14px; }

/* ── Sections ── */
.section-white { background: var(--white); padding: 88px 0; }
.section-grey { background: var(--bg); padding: 88px 0; }
.section-navy { background: var(--navy); padding: 88px 0; }
.section-alt { background: var(--bg-alt); padding: 88px 0; }

/* ── Welcome / About snippet ── */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.welcome-text .section-title { margin-bottom: 20px; }
.section-body { font-size: 15.5px; color: var(--text-mid); line-height: 1.8; }
.welcome-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
}
.stat-num {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.stat-label { font-size: 13px; color: var(--text-mid); font-weight: 500; }

/* ── Photo grid ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 240px);
  gap: 12px;
}
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.photo-card--large {
  grid-column: 1;
  grid-row: 1 / 3;
}
.photo-card--large-2 {
  grid-column: 3;
  grid-row: 3 / 5;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-card:hover img { transform: scale(1.04); }
.photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(to top, rgba(20,38,65,0.82) 0%, transparent 100%);
  color: white;
  font-size: 13px;
  font-weight: 600;
}

/* ── Branches ── */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.branch-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.branch-card:hover { box-shadow: var(--shadow); }
.branch-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.branch-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
}
.branch-tel {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  padding: 2px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.branch-tel:hover { color: var(--navy); text-decoration: underline; }

/* ── About page ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 80px 0 72px;
  text-align: center;
}
.page-hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin: 0 auto;
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.vm-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  padding: 36px 36px 40px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.vm-card:hover { box-shadow: var(--shadow); }
.vm-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.vm-card h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.vm-card p {
  font-size: 15.5px;
  color: var(--text-mid);
  line-height: 1.8;
}

.pillars-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.pillars-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-alt);
}
.pillar-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--bg-alt);
}
.pillar-item:last-child { border-bottom: none; padding-bottom: 0; }
.pillar-icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.pillar-icon svg { width: 18px; height: 18px; color: var(--navy); }
.pillar-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ── Contact page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  padding: 32px 28px 36px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.contact-info-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.contact-info-icon { font-size: 16px; margin-top: 2px; color: var(--blue); min-width: 20px; }
.contact-info-text { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.contact-info-text a { color: var(--blue); font-weight: 500; }
.contact-info-text a:hover { text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  background: #0f2040;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 240px;
}
.footer-wordmark {
  font-size: 28px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  display: inline-block;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li, .footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  justify-content: center;
  margin-top: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }

/* ── Utilities ── */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .welcome-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  /* Nav */
  .header-actions { display: flex; }
  .nav-toggle { display: flex; }
  /* On mobile, site-nav no longer uses margin-left:auto (it's out of flow) */
  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    margin-left: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(30,58,95,0.12);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
    z-index: 999;
    pointer-events: none;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { padding: 13px 16px; font-size: 15px; border-radius: 8px; }
  .nav-link:hover, .nav-link.active {
    background: var(--bg-alt);
    color: var(--navy);
  }
  /* Hide Apply CTA from dropdown — it's already in the header */
  .nav-link--cta { display: none; }

  /* Hero */
  .hero { height: 78vh; min-height: 500px; max-height: 680px; }
  .hero-content { padding-top: 0; }
  .hero-badge { font-size: 10px; letter-spacing: 1px; padding: 5px 12px; margin-bottom: 16px; }
  .hero-title { font-size: 30px; letter-spacing: -0.4px; margin-bottom: 14px; }
  .hero-sub { font-size: 14px; line-height: 1.65; margin-bottom: 28px; }
  .hero-actions { flex-direction: row; flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 1; justify-content: center; padding: 11px 14px; font-size: 14px; }
  .hero-prev, .hero-next { display: none; }

  /* CTA banner */
  .cta-banner { padding: 18px 0; }
  .cta-inner { justify-content: space-between; gap: 12px; }
  .cta-left { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cta-title { font-size: 16px; }
  .cta-sub { display: none; }
  .cta-inner .btn { white-space: nowrap; padding: 10px 18px; font-size: 14px; flex-shrink: 0; }

  /* Content sections */
  .section-white, .section-grey, .section-navy, .section-alt { padding: 60px 0; }
  .section-title { font-size: 26px; }
  .section-header { margin-bottom: 36px; }

  /* Welcome */
  .welcome-grid { grid-template-columns: 1fr; gap: 40px; }
  .welcome-stats { grid-template-columns: 1fr 1fr; }

  /* Photo grid — horizontal scroll */
  .photo-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-rows: unset;
    grid-template-columns: unset;
    padding-bottom: 8px;
  }
  .photo-grid::-webkit-scrollbar { display: none; }
  .photo-card {
    flex: 0 0 72%;
    height: 240px;
    scroll-snap-align: start;
  }
  .photo-card--large,
  .photo-card--large-2 { flex: 0 0 82%; height: 260px; grid-row: unset; grid-column: unset; }

  /* Branches */
  .branches-grid { grid-template-columns: 1fr; }

  /* About page */
  .vm-grid { grid-template-columns: 1fr; gap: 20px; }
  .vm-card { padding: 28px 24px 32px; }
  .page-hero h1 { font-size: 30px; }
  .pillars-card { padding: 28px 24px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 13.5px; }
  .hero-actions .btn { font-size: 13px; padding: 10px 12px; }
  .section-title { font-size: 23px; }
  .welcome-stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
