/* ============================================================
   dynamic_diagonal — Family-specific layout CSS
   Modern, edgy, youth-oriented: compact hero with angled edge,
   diagonal clip-path dividers, asymmetric card offsets.
   ============================================================ */

/* ---------- 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: #fff;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Hero: Compact with Angled Edge ---------- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 1.25rem 5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--primary);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__label {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.hero__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

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

.hero__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

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

.hero__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

/* Hero aside — quick stats */
.hero__aside {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero__quick-stats {
  display: flex;
  gap: 1.5rem;
}

.hero__quick-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__quick-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero__quick-stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

/* Hero angle bottom — creates the visible gap between hero and trust */
.hero__angle {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 2;
}

/* ---------- Diagonal Section Dividers ---------- */
.diagonal-divider {
  height: 60px;
  position: relative;
  z-index: 1;
}

.diagonal-divider--down {
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
}

.diagonal-divider--down + .section--tinted {
  margin-top: -1px;
}

.diagonal-divider--up {
  background: var(--surface, #faf8f5);
  clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
}

.diagonal-divider--up + .section {
  margin-top: -1px;
}

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

.section--tinted {
  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 ---------- */
.page-header {
  position: relative;
  padding: 7rem 1.25rem 5rem;
  overflow: hidden;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  background: var(--primary);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  z-index: 0;
}

.page-header__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.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);
}

.page-header__angle {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 50px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 2;
}

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

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

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

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

.pairing-card--offset-up {
  transform: translateY(-12px);
}

.pairing-card--offset-up:hover {
  transform: translateY(-16px);
}

.pairing-card--offset-down {
  transform: translateY(12px);
}

.pairing-card--offset-down:hover {
  transform: translateY(8px);
}

.pairing-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.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.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(var(--primary-rgb), 0.06);
  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(--accent);
}

.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: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.contact-card--featured {
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.12);
}

.contact-card__stripe {
  height: 4px;
  background: var(--primary);
}

.contact-card__stripe--accent {
  background: var(--accent);
}

.contact-card__body {
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.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.08);
}

.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.5);
}

.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.65);
  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.45);
  font-size: 0.82rem;
  line-height: 1.4;
}

.footer__heading {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.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.55);
  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.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- 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: 2rem;
  }

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

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

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

  .hero__bg {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }

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

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__aside {
    justify-content: center;
  }

  .hero__angle {
    height: 40px;
  }

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

  .page-header__bg {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }

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

  .page-header__angle {
    height: 35px;
  }

  .diagonal-divider {
    height: 40px;
  }

  .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;
  }

  .pairing-card--offset-up,
  .pairing-card--offset-down {
    transform: none;
  }

  .pairing-card--offset-up:hover,
  .pairing-card--offset-down:hover {
    transform: translateY(-4px);
  }
}

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

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

  .hero__btn {
    justify-content: center;
  }

  .hero__quick-stats {
    gap: 1rem;
  }

  .hero__quick-stat-value {
    font-size: 1.35rem;
  }

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