/* ============================================================
   AB Group Online - design system
   Palette: deep navy + warm yellow accent (Slalom-inspired)
   ============================================================ */

:root {
  --navy-900: #071527;
  --navy-800: #0b1f3a;
  --navy-700: #12294a;
  --navy-100: #e8edf5;
  --ink: #10233f;
  --slate: #52627a;
  --line: #d9e0ea;
  --bg-light: #f5f7fa;
  --white: #ffffff;
  --accent: #ffc845;
  --accent-deep: #f0ad1e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 21, 39, 0.10);
  --shadow-lg: 0 24px 60px rgba(7, 21, 39, 0.18);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }

.display {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
}

.h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--slate);
  max-width: 640px;
}

.on-dark { color: var(--white); }
.on-dark .lead, .on-dark p { color: rgba(255, 255, 255, 0.78); }
.on-dark .eyebrow { color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(240, 173, 30, 0.35);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn-outline {
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-outline:hover { background: var(--navy-800); color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 21, 39, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  border-color: var(--accent);
}

.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 10px 22px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 550px at 85% -10%, rgba(255, 200, 69, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(37, 99, 235, 0.38), transparent 55%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
  overflow: hidden;
}

/* faint blueprint grid over the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 600px at 30% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 600px at 30% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vh, 150px) 0 clamp(70px, 10vh, 120px);
  max-width: 780px;
}

.hero .display { color: var(--white); margin-bottom: 24px; }
.hero .display em {
  font-style: normal;
  color: var(--accent);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* concentric-dots accent, echoing the reference site */
.dots-accent {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  animation: spin 90s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* floating glass stat card in the hero */
.hero-card {
  position: absolute;
  right: clamp(24px, 8vw, 140px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 300px;
  padding: 26px 26px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 14px)); }
}

.hero-card .hc-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-card .hc-value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 6px 0 2px;
}

.hero-card .hc-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.hero-card .hc-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
}

.hero-card .hc-bars span {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 200, 69, 0.35));
  animation: grow 1.2s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hero-card .hc-bars span:nth-child(1) { height: 34%; animation-delay: .15s; }
.hero-card .hc-bars span:nth-child(2) { height: 46%; animation-delay: .3s; }
.hero-card .hc-bars span:nth-child(3) { height: 42%; animation-delay: .45s; }
.hero-card .hc-bars span:nth-child(4) { height: 64%; animation-delay: .6s; }
.hero-card .hc-bars span:nth-child(5) { height: 78%; animation-delay: .75s; }
.hero-card .hc-bars span:nth-child(6) { height: 100%; animation-delay: .9s; }

@keyframes grow { from { transform: scaleY(0); } }
.hero-card .hc-bars span { transform-origin: bottom; }

/* trusted-by strip */
.logo-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
}

.logo-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding-top: 22px;
  padding-bottom: 22px;
}

.logo-strip .strip-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.logo-strip .wordmark {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.logo-strip .wordmark:hover { color: rgba(255, 255, 255, 0.85); }

/* ---------- Sections ---------- */

.section { padding: clamp(70px, 9vw, 110px) 0; }
.section-dark { background: var(--navy-900); }
.section-light { background: var(--bg-light); }

.section-head { max-width: 720px; margin-bottom: 48px; }

/* ---------- Cards / grids ---------- */

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

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::after { transform: scaleX(1); }

.card h3 { font-size: 1.2rem; margin: 18px 0 10px; }
.card p { color: var(--slate); font-size: 0.96rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy-100);
  display: grid;
  place-items: center;
  color: var(--navy-800);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-800);
}
.card-link .arrow { transition: transform 0.2s ease; }
.card:hover .card-link .arrow { transform: translateX(4px); }

/* ---------- Featured story (split block) ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.split-media svg { width: 100%; height: 100%; }

.quote-mark { font-size: 3.4rem; color: var(--accent); line-height: 1; font-weight: 800; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: center;
}

.stat-value {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  margin-top: 6px;
}

/* ---------- Testimonials ---------- */

.carousel { position: relative; }

.carousel-track { overflow: hidden; }

.carousel-slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide {
  min-width: 100%;
  padding: 8px;
}

.testimonial {
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 52px);
  max-width: 860px;
  margin: 0 auto;
}

.testimonial blockquote {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.45;
  margin: 14px 0 26px;
}

.testimonial cite {
  font-style: normal;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.94rem;
}
.testimonial cite strong { color: var(--accent); display: block; font-size: 1rem; }

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active { background: var(--accent); transform: scale(1.25); }

/* ---------- Insights ---------- */

.insight-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }

.insight-media { aspect-ratio: 16 / 9; }
.insight-media svg { width: 100%; height: 100%; }

.insight-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }

.insight-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}

.insight-body h3 { margin: 0 0 10px; font-size: 1.12rem; }
.insight-body .card-link { margin-top: auto; padding-top: 16px; }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.team-card { text-align: center; padding: 30px 22px; }

.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.avatar.alt { background: linear-gradient(135deg, #9db8dd 0%, var(--navy-700) 100%); color: var(--white); }

.team-card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.team-role { color: var(--accent-deep); font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; }

/* ---------- Timeline (track record) ---------- */

.timeline { list-style: none; position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline li { position: relative; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline .year { font-weight: 800; color: var(--navy-800); font-size: 1.05rem; }
.timeline p { color: var(--slate); font-size: 0.96rem; }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 7px;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.12);
}

.field textarea { resize: vertical; min-height: 140px; }

.form-note { font-size: 0.85rem; color: var(--slate); }

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  margin-top: 18px;
}
.form-status.ok { display: block; background: #e7f6ec; color: #14532d; }
.form-status.err { display: block; background: #fdecec; color: #7f1d1d; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(255, 200, 69, 0.18), transparent 60%),
    var(--navy-800);
  border-radius: 20px;
  padding: clamp(44px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2.2rem); max-width: 520px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(255, 200, 69, 0.12), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 75%);
  padding: clamp(64px, 9vw, 110px) 0;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 18px; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .hero-card { display: none; }
}

@media (max-width: 960px) {
  .grid-3, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dots-accent, .hero-card { display: none; }
}

@media (max-width: 680px) {
  .grid-3, .grid-2, .team-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 0; }
  .nav-cta { margin: 12px 0 0; }
}
