/* Bambah Global Services — brand: navy #1D2D60, orange #F17223, Montserrat */
:root {
  --navy: #1D2D60;
  --navy-dark: #16234C;
  --navy-light: #2A3D7C;
  --orange: #F17223;
  --orange-dark: #D95F12;
  --ink: #1C2434;
  --body: #4A5568;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FC;
  --border: #E3E8F2;
  --cream: #F5F3F0;
  --cream-border: #DEDAD2;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(29, 45, 96, 0.08);
  --shadow-lift: 0 12px 32px rgba(29, 45, 96, 0.14);
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

a { color: var(--orange-dark); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Thin progress bar tracking scroll position down the page */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  z-index: 200; pointer-events: none;
}
.scroll-progress > span {
  display: block; height: 100%; width: 0%;
  background: var(--orange); transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(29, 45, 96, 0.1); }
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 80px; transition: min-height 0.25s ease;
}
.site-header.is-scrolled .nav-bar { min-height: 64px; }
.brand { display: flex; align-items: center; }
.brand img { height: 68px; width: auto; transition: height 0.25s ease; }
.site-header.is-scrolled .brand img { height: 52px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  display: block; padding: 10px 14px; color: var(--navy);
  font-weight: 600; font-size: 0.92rem; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--orange); background: var(--bg-soft); }
.nav-links a[aria-current="page"] { color: var(--orange); }

.has-dropdown > a::after {
  content: ""; display: inline-block; margin-left: 7px;
  border: solid var(--navy); border-width: 0 2px 2px 0; padding: 2.5px;
  transform: rotate(45deg) translateY(-2.5px); transition: border-color 0.2s;
}
.has-dropdown > a:hover::after { border-color: var(--orange); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { padding: 10px 14px; font-weight: 500; }

.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  border: 2px solid transparent; text-align: center;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(241, 114, 35, 0.35); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29, 45, 96, 0.3); }
.nav-cta { white-space: nowrap; }
/* .nav-links a's color:var(--navy) otherwise outranks .btn-primary's color:#fff
   (class+type beats a single class) since this link lives inside .nav-links. */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 10px; border-radius: 8px;
}
.nav-toggle svg { display: block; stroke: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(241, 114, 35, 0.28), transparent 65%);
  pointer-events: none;
}
.hero-globe {
  position: absolute; right: -60px; bottom: -100px; width: 480px; height: 480px;
  opacity: 0.14; pointer-events: none;
}
/* .hero-inner nests inside .container (which centers/aligns with the
   header) and just caps the text measure — left-aligned within it. */
.hero-inner { position: relative; z-index: 1; padding: 96px 0; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lede { font-size: 1.15rem; font-weight: 500; color: #D8DFF2; margin-bottom: 28px; }
.hero p { color: #C4CCE4; margin-bottom: 32px; }
.hero-tagline {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 18px;
}

/* Page hero (inner pages) */
.page-hero { padding: 72px 0; }
.page-hero .hero-inner { padding: 0; }

/* ---------- Home hero (light, image-right layout) ---------- */
.home-hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.home-hero-container { position: relative; z-index: 2; }
.home-hero-copy { max-width: 560px; padding: 100px 0 96px; }
.home-hero-eyebrow {
  color: var(--orange); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 22px;
}
.home-hero-heading {
  font-weight: 800;
  font-size: clamp(2.3rem, 4.2vw, 3.35rem); line-height: 1.18;
  color: var(--navy); margin-bottom: 24px;
}
.home-hero-heading .accent-dot { color: var(--orange); }
.home-hero-lede { font-size: 1.05rem; color: var(--body); margin-bottom: 16px; }
.home-hero-sub { font-size: 0.95rem; color: #6B7280; margin-bottom: 36px; }
.home-hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.home-hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 10px; background: var(--orange); color: #fff;
}
.home-hero-btn:hover { background: var(--orange-dark); }
.home-hero-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--ink); border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px; transition: color 0.2s, border-color 0.2s;
}
.home-hero-link:hover { color: var(--orange-dark); border-color: var(--orange-dark); }

.home-hero-media {
  position: absolute; top: 120px; right: 0; bottom: 0; left: 58%;
}
.home-hero-media img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Darkens the base of the building in place, inside the image's own bounds,
   instead of casting a shadow below it — that gap made the image look like
   a floating card instead of sitting flush against the section background. */
.home-hero-media::after {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  height: 22%;
  background: linear-gradient(to top, rgba(22, 35, 76, 0.32), transparent);
  pointer-events: none;
}
/* Centered near the building's peak by JS (js/main.js) — left/top are set
   inline to that point's rendered pixel position (shifted down by
   RING_CENTER_Y_OFFSET), this just offsets the ring so that point sits at
   its true center. Width/height here must match RING_DIAMETER in main.js. */
.home-hero-ring {
  position: absolute; top: 50%; left: 50%; width: 460px; height: 460px;
  transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid var(--cream-border);
  pointer-events: none; z-index: 0;
}
.home-hero-ring-spin {
  position: absolute; inset: 0; animation: home-hero-ring-rotate 12s linear infinite;
}
.home-hero-ring-dot {
  position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: var(--orange);
}
@keyframes home-hero-ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
  .home-hero-media { position: static; margin-top: 40px; height: 340px; }
  .home-hero-copy { padding: 72px 0 0; max-width: none; }
  .home-hero-ring { display: none; }
}
@media (max-width: 640px) {
  .home-hero-media { height: 240px; }
  .home-hero-ctas { gap: 16px 24px; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}

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

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s;
}
a.card { display: block; color: inherit; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: rgba(241, 114, 35, 0.4); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.9rem; color: var(--orange); }

.icon-badge {
  width: 52px; height: 52px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 20px;
  background: rgba(29, 45, 96, 0.07); color: var(--navy);
}
.icon-badge svg { width: 26px; height: 26px; stroke: currentColor; }
.card:hover .icon-badge { background: rgba(241, 114, 35, 0.12); color: var(--orange-dark); }
.icon-badge.orange { background: rgba(241, 114, 35, 0.12); color: var(--orange-dark); }

/* Steps */
.step { position: relative; padding: 32px 28px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 18px;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.step:hover .step-num { background: var(--orange); }

/* Connected-line process timeline (home page "How It Works") */
.timeline {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; margin-top: 64px;
}
.timeline-track {
  position: absolute; top: 42px; left: 0; right: 0; height: 2px;
  background: rgba(29, 45, 96, 0.16); z-index: 0;
}
.timeline-dot {
  position: absolute; top: 42px; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--orange); z-index: 1;
}
.timeline-dot-start { left: -6px; }
.timeline-dot-end { right: -6px; }
.timeline-item { position: relative; z-index: 2; }
.timeline-icon {
  display: flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; margin-bottom: 28px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow); color: var(--navy);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
.timeline-icon svg { width: 32px; height: 32px; }
.timeline-item:hover .timeline-icon { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.timeline-num {
  display: block; color: var(--orange); font-weight: 800; font-size: 0.85rem;
  letter-spacing: 0.05em; margin-bottom: 8px;
}
.timeline-item h3 { margin-bottom: 12px; }
.timeline-rule { display: block; width: 32px; height: 3px; background: var(--orange); border-radius: 2px; margin-bottom: 16px; }
.timeline-item p { font-size: 0.92rem; color: var(--body); }

@media (max-width: 1024px) {
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 48px; margin-top: 40px; }
  .timeline-track, .timeline-dot { display: none; }
}
@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; }
}

/* Feature rows (What's Included) */
.feature-list { display: grid; gap: 16px; }
.feature {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
  transition: transform 0.25s ease-out, border-color 0.25s;
}
.feature:hover { transform: translateX(6px); border-color: rgba(241, 114, 35, 0.4); }
.feature .icon-badge { width: 44px; height: 44px; margin: 0; flex-shrink: 0; }
.feature .icon-badge svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 4px; }
.feature p { font-size: 0.93rem; }

/* Content note placeholder */
.content-note {
  border: 2px dashed rgba(241, 114, 35, 0.5); border-radius: var(--radius);
  background: rgba(241, 114, 35, 0.05); padding: 18px 22px;
  font-size: 0.9rem; color: var(--body); font-style: italic; margin-top: 32px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy-light));
  color: #fff; border-radius: 20px; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(241, 114, 35, 0.22);
}
.cta-band h2 { color: #fff; }
.cta-band .btn { position: relative; z-index: 1; flex-shrink: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); padding: 40px;
}
.form-card h2 { margin-bottom: 8px; }
.form-card > p { font-size: 0.95rem; margin-bottom: 24px; }
.form-grid { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--orange-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; font-family: inherit; font-size: 0.95rem;
  color: var(--ink); background: var(--bg-soft);
  border: 1.5px solid var(--border); border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange); background: #fff; outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none; margin-top: 18px; padding: 16px 20px; border-radius: 10px;
  background: #EAF7EF; border: 1px solid #B7E4C7; color: #1B6B3A;
  font-weight: 600; font-size: 0.92rem;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #B9C2DD; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px;
}
.footer-brand .footer-logo { height: 60px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.9rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { color: #B9C2DD; font-size: 0.9rem; transition: color 0.2s; }
.site-footer ul a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0;
  font-size: 0.85rem; text-align: center;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { padding: 10px 10px; font-size: 0.88rem; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lift); padding: 12px 24px 24px;
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 0 18px; min-width: 0;
  }
  .has-dropdown > a::after { display: none; }
  .nav-cta { margin-top: 14px; display: block; }
  .hero-inner { padding: 64px 0; }
  .hero-globe { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 44px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 48px 0 36px; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 52px; }
  .form-card { padding: 28px 20px; }
}
