/* ============================================================
   Atlas Bridge — Style Sheet (Phase 1 — Merged)
   Design tokens from V1, richer structure from ph1.
   Mobile-first, no frameworks.
   ============================================================ */


/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:        #0F2240;
  --navy-light:  #1a3560;
  --gold:        #C9A84C;
  --gold-light:  #e0c06e;
  --white:       #ffffff;
  --off-white:   #F7F8FA;
  --gray:        #6B7280;
  --light-gray:  #E5E7EB;
  --text:        #1F2937;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(15,34,64,0.10);
  --nav-h:       72px;
  --max-w:       1100px;
  --section-py:  96px;
}


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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ── 3. LAYOUT ─────────────────────────────────────────────── */

/* Generic centred container — used only for footer bottom bar */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 5%;
}

/* Centred section wrapper — constrained like V1's inner content areas */
.section-wrap {
  max-width: var(--max-w);   /* 1100px — matches V1, keeps 3-col grids balanced */
  margin: 0 auto;
  padding: var(--section-py) 5%;
}

.section-head { margin-bottom: 60px; }
.section-head--center { text-align: center; }

.section-label {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 540px;
  line-height: 1.7;
}

.section-sub--center { margin: 0 auto; }


/* ── 4. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--sm { padding: 8px 20px; font-size: 0.85rem; }


/* ── 5. NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15, 34, 64, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.2s;
}

.navbar.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
  padding-inline: 5%;   /* logo hard-left, controls hard-right — no max-width cap */
  width: 100%;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 3px;       /* space between "Atlas Bridge" and the tagline */
}

.navbar__brand {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.navbar__tagline {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Menu */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  transition: color 0.2s;
}
.navbar__link:hover { color: var(--gold); }

/* Language toggle — two pill buttons */
.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.10);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}

.lang-btn {
  padding: 5px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.60);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--gold);
  color: var(--navy);
  border-radius: 30px;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 7px;
  border-radius: 6px;
}

.navbar__hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}

.navbar__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile */
@media (max-width: 768px) {
  .navbar__hamburger { display: flex; }

  .navbar__menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 5% 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }

  .navbar__menu.is-open { display: flex; }
  .navbar__link { font-size: 1rem; }
  .navbar__cta { width: 100%; text-align: center; margin-top: 4px; }
  .btn--sm { padding: 12px 20px; font-size: 0.95rem; }
}


/* ── 6. HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #223d70 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 5% 80px;
  position: relative;
  overflow: hidden;
}

/* Geometric lines texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(60deg,  rgba(201,168,76,0.04) 0px, rgba(201,168,76,0.04) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(-60deg, rgba(201,168,76,0.04) 0px, rgba(201,168,76,0.04) 1px, transparent 1px, transparent 60px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 820px;
  width: 100%;
}

.hero__badge {
  display: inline-block;
  margin-bottom: 28px;
  padding: 6px 18px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.40);
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.hero h1 span { color: var(--gold); }

.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Animated scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}


/* ── 7. SERVICES ───────────────────────────────────────────── */
#services { background: var(--off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-gray);
  transition: transform 0.22s, box-shadow 0.22s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(15,34,64,0.14);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(201,168,76,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
}


/* ── 8. HOW IT WORKS ───────────────────────────────────────── */
#process { background: var(--white); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  position: relative;
}

/* Connector line between steps on desktop */
@media (min-width: 640px) {
  .steps::before {
    content: '';
    position: absolute;
    top: 28px; /* center of step-number circle */
    left: calc(50% / 3 + 28px);
    right: calc(50% / 3 + 28px);
    height: 2px;
    background: linear-gradient(90deg, var(--light-gray), var(--light-gray));
    z-index: 0;
  }
}

.step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.step p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.65;
}


/* ── 9. WHY ATLAS BRIDGE ───────────────────────────────────── */
#why { background: var(--navy); }

#why .section-wrap { padding-top: var(--section-py); padding-bottom: var(--section-py); }
#why .section-label { color: var(--gold); }

.why-title { color: var(--white); }
.why-sub   { color: rgba(255,255,255,0.65); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.why-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  transition: background 0.22s, border-color 0.22s;
}

.why-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.3);
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}


/* ── 10. CONTACT ───────────────────────────────────────────── */
#contact { background: var(--off-white); }

.contact-wrap {
  max-width: 640px;     /* form stays readable — intentionally narrow */
  margin: 0 auto;
  padding: var(--section-py) 5%;
  text-align: center;
}

.contact-sub {
  margin: 0 auto 28px;
}

/* Direct contact links row */
.contact-direct {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1.5px solid var(--light-gray);
  background: var(--white);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.contact-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold);
}

.contact-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 2px 8px rgba(201,168,76,0.15);
}

/* Form */
form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  min-width: 0;   /* prevents grid cell from overflowing its column */
}

label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

input, textarea, select {
  width: 100%;    /* fill the form-group column — prevents overflow */
  min-width: 0;
  padding: 11px 14px;
  border: 1.5px solid var(--light-gray);
  border-radius: 7px;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

textarea { resize: vertical; min-height: 110px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 6px;
}

.form-submit:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 40px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-success__check {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.form-success h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--gray);
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  form { padding: 28px 20px; }
}


/* ── 11. FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 60px 5% 48px;   /* full-width, matches section padding */
}

@media (min-width: 600px) {
  .footer__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

/* Logo inside footer reuses navbar logo styles */
.footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 280px;
}

.footer__nav {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.60);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.30);
  text-align: center;
}


/* ── 12. SCROLL FADE-IN (progressive enhancement) ─────────── */
.service-card,
.step,
.why-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.is-visible,
.step.is-visible,
.why-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── 13. ACCESSIBILITY ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .service-card, .step, .why-card {
    opacity: 1;
    transform: none;
  }
}
