/* ============================================================
   bold_hero — Family-specific layout CSS
   Energetic, aspirational: full-bleed gradients, floating blobs,
   pill shapes, gradient transitions.
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-on-surface, #1a1a1a);
  background: var(--surface, #faf8f5);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 1.25rem 4rem;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  z-index: 0;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
  z-index: 1;
}

/* Floating gradient blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  z-index: 1;
}

.hero__blob--1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  right: -80px;
  animation: blobFloat1 8s ease-in-out infinite;
}

.hero__blob--2 {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  bottom: -60px;
  left: -60px;
  animation: blobFloat2 10s ease-in-out infinite;
}

.hero__blob--3 {
  width: 250px;
  height: 250px;
  background: var(--accent-light);
  top: 40%;
  left: 50%;
  animation: blobFloat3 12s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.1); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.05); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -40px) scale(0.95); }
}

/* Particle dots */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero__dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: dotDrift linear infinite;
}

.hero__dot--1  { left: 5%;  top: 10%; animation-duration: 15s; animation-delay: 0s; }
.hero__dot--2  { left: 12%; top: 80%; animation-duration: 18s; animation-delay: 1s; }
.hero__dot--3  { left: 20%; top: 30%; animation-duration: 14s; animation-delay: 2s; }
.hero__dot--4  { left: 28%; top: 60%; animation-duration: 20s; animation-delay: 0.5s; }
.hero__dot--5  { left: 35%; top: 15%; animation-duration: 16s; animation-delay: 3s; }
.hero__dot--6  { left: 42%; top: 75%; animation-duration: 13s; animation-delay: 1.5s; }
.hero__dot--7  { left: 50%; top: 45%; animation-duration: 19s; animation-delay: 2.5s; }
.hero__dot--8  { left: 58%; top: 20%; animation-duration: 17s; animation-delay: 0.8s; }
.hero__dot--9  { left: 65%; top: 85%; animation-duration: 15s; animation-delay: 3.5s; }
.hero__dot--10 { left: 72%; top: 35%; animation-duration: 21s; animation-delay: 1.2s; }
.hero__dot--11 { left: 80%; top: 65%; animation-duration: 14s; animation-delay: 2.8s; }
.hero__dot--12 { left: 88%; top: 10%; animation-duration: 18s; animation-delay: 0.3s; }
.hero__dot--13 { left: 95%; top: 50%; animation-duration: 16s; animation-delay: 4s; }
.hero__dot--14 { left: 8%;  top: 55%; animation-duration: 20s; animation-delay: 1.8s; }
.hero__dot--15 { left: 18%; top: 90%; animation-duration: 13s; animation-delay: 3.2s; }
.hero__dot--16 { left: 32%; top: 40%; animation-duration: 17s; animation-delay: 0.6s; }
.hero__dot--17 { left: 45%; top: 8%;  animation-duration: 19s; animation-delay: 2.2s; }
.hero__dot--18 { left: 55%; top: 70%; animation-duration: 15s; animation-delay: 1.1s; }
.hero__dot--19 { left: 68%; top: 25%; animation-duration: 22s; animation-delay: 3.8s; }
.hero__dot--20 { left: 78%; top: 88%; animation-duration: 14s; animation-delay: 0.9s; }
.hero__dot--21 { left: 85%; top: 42%; animation-duration: 18s; animation-delay: 2.6s; }
.hero__dot--22 { left: 92%; top: 72%; animation-duration: 16s; animation-delay: 1.4s; }
.hero__dot--23 { left: 3%;  top: 38%; animation-duration: 20s; animation-delay: 3.6s; }
.hero__dot--24 { left: 15%; top: 62%; animation-duration: 13s; animation-delay: 0.7s; }
.hero__dot--25 { left: 25%; top: 5%;  animation-duration: 17s; animation-delay: 2.9s; }
.hero__dot--26 { left: 38%; top: 82%; animation-duration: 19s; animation-delay: 1.6s; }
.hero__dot--27 { left: 48%; top: 28%; animation-duration: 15s; animation-delay: 4.2s; }
.hero__dot--28 { left: 62%; top: 52%; animation-duration: 21s; animation-delay: 0.4s; }
.hero__dot--29 { left: 75%; top: 15%; animation-duration: 14s; animation-delay: 3.1s; }
.hero__dot--30 { left: 90%; top: 32%; animation-duration: 18s; animation-delay: 1.9s; }

@keyframes dotDrift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100px) translateX(30px); opacity: 0; }
}

/* Motif-specific hero decoration hook */
.motif-hero-accent {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hero__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero__btn--primary {
  background: var(--cta-bg);
  color: var(--cta-text, #fff);
}

.hero__btn--secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---------- Sections ---------- */
.section {
  padding: 4rem 1.25rem;
  background: #fff;
}

.section--alt {
  background: var(--surface, #faf8f5);
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header__title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.section-header__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Page Header (courses/contact) ---------- */
.page-header {
  position: relative;
  padding: 7rem 1.25rem 3rem;
  text-align: center;
  overflow: hidden;
}

.page-header__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  z-index: 0;
}

.page-header__content {
  position: relative;
  z-index: 1;
}

.page-header__title {
  margin: 0 0 0.5rem;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
}

.page-header__subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Courses Grid ---------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ---------- Vehicle-Course Pairing ---------- */
.pairing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.pairing-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pairing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pairing-card__icon {
  margin-bottom: 1rem;
}

.pairing-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-on-surface, #1a1a1a);
}

.pairing-card__desc {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
}

.pairing-card__tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-on-surface, #1a1a1a);
  text-align: left;
  gap: 1rem;
}

.faq-item__arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: #999;
}

.faq-item--open .faq-item__arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item--open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

/* ---------- Contact Cards ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-card--accent {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.12);
}

.contact-card__icon {
  margin-bottom: 1rem;
}

.contact-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-on-surface, #1a1a1a);
}

.contact-card__desc {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
}

.contact-card__action {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.contact-card__action:hover {
  text-decoration: underline;
}

.contact-card__action--text {
  color: #555;
  font-weight: 500;
  font-size: 0.88rem;
}

/* ---------- Contact Info Grid ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-panel__title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.contact-info-panel__items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-panel__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-info-panel__item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-panel__item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-on-surface, #1a1a1a);
  margin-bottom: 0.15rem;
}

.contact-info-panel__item span {
  font-size: 0.85rem;
  color: #666;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-dark, #152a45);
  padding: 3rem 1.25rem 0;
  color: rgba(255, 255, 255, 0.75);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.footer__tagline {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
  margin: 0;
}

.footer__contact-item:hover {
  color: #fff;
}

.footer__contact-item--address {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.4;
}

.footer__heading {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover {
  color: #fff;
}

.footer__bottom {
  padding: 1.25rem 0;
}

.footer__bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy, .footer__city {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
    padding: 5rem 1rem 3rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .hero__btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .page-header {
    padding: 6rem 1rem 2rem;
  }

  .page-header__title {
    font-size: 1.75rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__bottom-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.65rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__btn {
    justify-content: center;
  }

  .pairing-grid {
    grid-template-columns: 1fr;
  }
}
