/* ═══════════════════════════════════════════════════════════════
   CAREGARD V2 — GLOBAL DESIGN SYSTEM
   Font: Poppins | Palette: Premium Grayscale Automotive
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: #4a4a4a;
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── LAYOUT ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 36px; }
.container--narrow { max-width: 960px; }
.container--wide { max-width: 1440px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 { color: #1a1a1a; font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.75rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-muted { color: #777; }
.text-dark { color: #1a1a1a; }
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #888; margin-bottom: 0.75rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block; font-family: 'Poppins', sans-serif;
  font-size: 0.82rem; font-weight: 600; padding: 11px 24px;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  letter-spacing: 0.01em;
}
.btn--primary { background: #2a2a2a; color: #fff; border-color: #2a2a2a; }
.btn--primary:hover { background: #111; border-color: #111; }
.btn--outline { background: transparent; color: #2a2a2a; border-color: #2a2a2a; }
.btn--outline:hover { background: #2a2a2a; color: #fff; }
.btn--white { background: #fff; color: #1a1a1a; border-color: #fff; }
.btn--white:hover { background: #f0f0f0; }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn--lg { padding: 14px 36px; font-size: 0.95rem; }
.btn--sm { padding: 8px 20px; font-size: 0.8rem; }

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  min-height: 88px; background: rgba(255,255,255,0.98); border-bottom: 1px solid #ececec;
  backdrop-filter: blur(10px);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 24px; height: 88px;
}

/* Logo */
.logo { display: flex; flex-direction: column; text-decoration: none; flex-shrink: 0; }
.logo__img { height: 28px; width: auto; }
.logo__tagline { font-size: 11px; color: #6a6a6a; font-style: normal; margin-top: 2px; letter-spacing: 0.04em; }

/* Nav */
.nav { display: flex; align-items: center; gap: 1.75rem; flex: 1; justify-content: center; }
.nav__item { position: relative; }
.nav__link {
  font-size: 11px; font-weight: 500; color: #5a5a5a; text-decoration: none;
  letter-spacing: 0.05em; transition: color 0.2s; padding: 8px 0;
  display: flex; align-items: center; gap: 4px;
}
.nav__link:hover, .nav__link--active { color: #111; }
.nav__link .arrow { font-size: 8px; transition: transform 0.2s; }
.nav__item:hover .arrow { transform: rotate(180deg); }

/* Dropdown */
.nav__dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
  padding: 12px 0; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  opacity: 0; visibility: hidden; transition: all 0.2s; z-index: 100;
}
.nav__item:hover .nav__dropdown { opacity: 1; visibility: visible; }
.nav__dropdown a {
  display: block; padding: 8px 24px; font-size: 13px; color: #444;
  transition: background 0.15s;
}
.nav__dropdown a:hover { background: #f5f5f5; color: #111; }

/* Header right */
.header__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.search { position: relative; display: flex; align-items: center; }
.search__input {
  width: 122px; height: 32px; border: 1px solid #dadada; border-radius: 999px;
  padding: 0 30px 0 12px; font-size: 11px; color: #333; background: #fff;
  outline: none; transition: border-color 0.2s; font-family: 'Poppins', sans-serif;
}
.search__input::placeholder { color: #aaa; }
.search__input:focus { border-color: #333; }
.search__icon {
  position: absolute; right: 10px; color: #888; pointer-events: none;
  display: flex; align-items: center;
}
.btn-portal {
  display: inline-block; background: #2a2a2a; color: #fff; font-size: 11px;
  font-weight: 600; padding: 9px 14px; border-radius: 999px;
  letter-spacing: 0.02em; transition: background 0.2s;
}
.btn-portal:hover { background: #111; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: #333;
  transition: all 0.3s;
}

/* ── HERO / PAGE TOPPERS ── */
.hero {
  position: relative; width: 100%; min-height: 600px; overflow: hidden;
  margin-top: 88px;
}
.hero--slider { height: 560px; }
.hero__slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.8s ease; background-size: cover;
  background-position: center; background-repeat: no-repeat;
}
.hero__slide.active { opacity: 1; z-index: 2; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; }
.hero__overlay--dark { background: rgba(0,0,0,0.35); }
.hero__overlay--medium { background: rgba(0,0,0,0.25); }
.hero__overlay--light { background: rgba(0,0,0,0.15); }
.hero__inner {
  position: relative; z-index: 3; height: 100%;
  display: flex; align-items: center; max-width: 1240px; margin: 0 auto; padding: 0 36px;
}
.hero__content { max-width: 600px; }
.hero__content--right { margin-left: auto; text-align: right; }
.hero__title {
  font-size: 2.65rem; font-weight: 700; line-height: 1.12; margin-bottom: 12px;
}
.hero__subtitle { font-size: 0.95rem; line-height: 1.55; margin-bottom: 10px; }
.hero__stat-line { font-size: 11px; color: #444; margin-top: 12px; letter-spacing: 0.05em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }

/* Page Topper (interior pages) */
.page-topper {
  position: relative; min-height: 380px; margin-top: 88px;
  background-size: cover; background-position: right center; overflow: hidden;
}
.page-topper__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.page-topper__inner {
  position: relative; z-index: 2; max-width: 1240px; margin: 0 auto;
  padding: 70px 36px; display: flex; align-items: center; min-height: 380px;
}
.page-topper__content { max-width: 640px; color: #fff; }
.page-topper__content h1 { color: #fff; margin-bottom: 16px; }
.page-topper__content p { color: rgba(255,255,255,0.9); margin-bottom: 20px; }

/* Slider dots */
.hero__dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 10px;
}
.hero__dot {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; cursor: pointer; transition: all 0.3s; padding: 0;
}
.hero__dot.active { background: #fff; }

/* ── SECTIONS ── */
.section { padding: 64px 0; }
.section--gray { background: #f8f8f8; }
.section--dark { background: #1a1a1a; color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__header h2 { margin-bottom: 16px; }
.section__header p { color: #666; }

/* ── STAT BARS ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.stat { text-align: center; }
.stat__number { font-size: 2.5rem; font-weight: 800; color: #1a1a1a; line-height: 1; margin-bottom: 4px; }
.stat__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #888; margin-bottom: 8px; }
.stat__desc { font-size: 0.85rem; color: #666; }

/* ── ICON CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.card {
  background: #fff; border: 1px solid #eee; border-radius: 16px;
  padding: 32px; transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.card__icon { width: 56px; height: 56px; margin-bottom: 20px; }
.card__title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.card__text { font-size: 0.88rem; color: #666; }

/* Icon cards (smaller, side-by-side icon + text) */
.icon-card { display: flex; gap: 16px; align-items: flex-start; }
.icon-card__img { width: 48px; height: 48px; flex-shrink: 0; }

/* ── FEATURE BLOCKS ── */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: center; }
.feature-grid--reverse .feature__media { order: -1; }
.feature__media img { border-radius: 16px; }
.feature__content h2 { margin-bottom: 16px; }
.feature__content p { margin-bottom: 20px; }

/* ── TESTIMONIALS ── */
.testimonial { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial__quote {
  font-size: 1.15rem; font-style: italic; color: #333;
  line-height: 1.7; margin-bottom: 20px;
}
.testimonial__quote::before { content: '\201C'; }
.testimonial__quote::after { content: '\201D'; }
.testimonial__author { font-size: 0.88rem; font-weight: 600; color: #1a1a1a; }
.testimonial__role { font-size: 0.82rem; color: #888; }

/* ── STEP PROCESS ── */
.steps { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.step { text-align: center; flex: 1; min-width: 160px; max-width: 220px; }
.step__number {
  width: 48px; height: 48px; border-radius: 50%; background: #2a2a2a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; margin: 0 auto 16px;
}
.step__title { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.step__text { font-size: 0.82rem; color: #666; }

/* ── TABS ── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid #e8e8e8; margin-bottom: 40px; }
.tab {
  padding: 12px 24px; font-size: 0.88rem; font-weight: 500; color: #888;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.2s;
}
.tab:hover { color: #444; }
.tab.active { color: #1a1a1a; border-bottom-color: #1a1a1a; font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── TEAM GRID ── */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.team-card { text-align: center; }
.team-card__photo {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; background: #e8e8e8;
}
.team-card__name { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.team-card__title { font-size: 0.82rem; color: #888; }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 500; color: #666; margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border: 1px solid #d0d0d0; border-radius: 12px;
  font-family: 'Poppins', sans-serif; font-size: 0.88rem; color: #333;
  outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #333; }
.form-textarea { min-height: 120px; resize: vertical; }

/* Selection cards (Build Your Program) */
.select-cards { display: flex; gap: 16px; flex-wrap: wrap; }
.select-card {
  flex: 1; min-width: 140px; padding: 20px; border: 2px solid #e0e0e0;
  border-radius: 12px; text-align: center; cursor: pointer;
  transition: all 0.2s; font-size: 0.88rem; font-weight: 500;
}
.select-card:hover { border-color: #888; }
.select-card.selected { border-color: #2a2a2a; background: #f8f8f8; }

/* ── FOOTER ── */
.site-footer { background: #1a1a1a; color: #aaa; padding: 60px 0 30px; }
.footer__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  margin-bottom: 40px;
}
.footer__col h4 { color: #fff; font-size: 0.88rem; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 0.82rem; color: #aaa; margin-bottom: 8px; transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__logo { height: 36px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer__tagline { font-size: 0.82rem; margin-bottom: 16px; }
.footer__bottom {
  border-top: 1px solid #333; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem;
}

/* ── QUICK NAV (interior pages) ── */
.quick-nav {
  background: #f8f8f8; border: 1px solid #eee; border-radius: 12px;
  padding: 20px 24px; margin-bottom: 40px;
}
.quick-nav__title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #888; margin-bottom: 10px; }
.quick-nav a {
  display: block; font-size: 0.85rem; color: #444; padding: 4px 0;
  transition: color 0.15s;
}
.quick-nav a:hover { color: #111; }
.quick-nav a::before { content: '\203A\00a0'; color: #aaa; }

/* ── CTA BANNER ── */
.cta-banner {
  background: #1a1a1a; color: #fff; padding: 60px 40px; border-radius: 20px;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }

/* ── COLUMNS ── */
.cols { display: grid; gap: 32px; }
.cols--2 { grid-template-columns: repeat(2, 1fr); }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.cols--4 { grid-template-columns: repeat(4, 1fr); }

/* ── BADGES ── */
.badges { display: flex; gap: 16px; align-items: center; }
.badge-img { height: 48px; width: auto; }

/* ── PYRAMID / BUILDING BLOCKS ── */
.pyramid-img { max-width: 480px; margin: 0 auto; }

/* ── VALUES GRID ── */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.value-card { padding: 24px; }
.value-card__title { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #1a1a1a; margin-bottom: 8px; }
.value-card__text { font-size: 0.85rem; color: #666; }

/* ── EXECUTIVE BIO ── */
.bio { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.bio__photo { border-radius: 16px; width: 100%; }
.bio__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.bio__stat { text-align: center; }
.bio__stat-number { font-size: 2rem; font-weight: 800; color: #1a1a1a; }
.bio__stat-label { font-size: 0.75rem; color: #888; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .bio { grid-template-columns: 1fr; }
  .bio__stats { grid-template-columns: repeat(2, 1fr); }
  .cols--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 48px 0; }

  /* Header mobile */
  .nav { display: none; flex-direction: column; position: absolute; top: 88px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e8e8e8; padding: 20px; gap: 0; }
  .nav.open { display: flex; }
  .nav__item { width: 100%; }
  .nav__link { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
  .nav__dropdown { position: static; transform: none; box-shadow: none; border: none; border-radius: 0; padding: 0 0 0 16px; opacity: 1; visibility: visible; display: none; }
  .nav__item:hover .nav__dropdown, .nav__item.open .nav__dropdown { display: block; }
  .nav-toggle { display: flex; }
  .header__right { display: none; }

  .hero { margin-top: 88px; min-height: 400px; }
  .hero--slider { height: 450px; }
  .hero__title { font-size: 1.8rem; }
  .page-topper { min-height: 300px; margin-top: 88px; }
  .page-topper__inner { min-height: 300px; padding: 48px 20px; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .team-grid { grid-template-columns: 1fr; }
  .cols--2, .cols--3, .cols--4 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
  .select-cards { flex-direction: column; }
}
