/* ═══════════════════════════════════════════════════════════
   homepage2.css — Companion styles for index2.html
   Heights Driving School — Redesigned Homepage
   ═══════════════════════════════════════════════════════════ */


/* ───────── HERO / BANNER ───────── */

#c-banner {
  container: size;
  grid-area: banner;
  background-color: #f1f1e6;
  min-height: 50dvh;
  align-content: center;
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

#c-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, #080808 100%);
  z-index: 1;
  pointer-events: none;
}

#banner-background-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.9);
}

video#banner-background-img {
  object-fit: cover;
  background: #000;
}

#banner-cards-container,
.hero-section,
.course-list {
  position: relative;
  z-index: 2;
}

#banner-cards-container {
  box-shadow: inset -1px 0px 20px 20px #0000000f;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Source Sans 3', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
  height: 100%;
}

.hero-section {
  max-width: 1600px;
  display: grid;
  height: 100%;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: start;
  gap: 10%;
}

.hero-text {
 
}

.hero-text h1 {
  text-align: center;
  text-shadow: 3px 3px 3px black;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--hds-yellow);
  line-height: 1.1;
  letter-spacing: 1.5px;
  margin: 0;
}

.hero-text p {
  text-align: center;
  color: #b6bcc2;
  font-size: 1.8rem;
  margin-top: 1rem;
}


/* ───────── COURSE CARDS (BANNER) ───────── */

.course-list {
  display: grid;
  gap: 10px;
  grid-auto-flow: row;
  grid-template-columns: repeat(6, minmax(140px, 220px));
  grid-auto-rows: 150px;
  height: 100%;
  align-content: end;
}

.course-list img {
  height: 100%;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
}

a.course-card,
.course-card {
  text-decoration: none;
  color: inherit;
  justify-items: center;
  cursor: pointer;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  color: #fbfbfb;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease, filter 0.2s ease;
  display: grid;
  grid-template-rows: 70% 20%;
  align-items: center;
  background-color: #141414d4;
  backdrop-filter: blur(4px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid #ffffff26;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.course-card .icon {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-card .icon img {
  height: 88%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.course-card h3 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.course-card p {
  display: none;
}

.course-card:hover {
  filter: brightness(1.4);
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════
   TRUST BAR — stats row
   ═══════════════════════════════════════ */

.trust-bar {
  background-color: var(--primary-color);
  padding: 2.2rem 2rem;
}

.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.trust-stat wa-icon {
  font-size: 2.3rem;
  color: var(--hds-yellow);
}

.trust-stat .stat-number {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-primary);
  line-height: 1;
}

.trust-stat .stat-label {
  font-size: 1.2rem;
  color: #b6bcc2;
  font-family: var(--font-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}


/* ═══════════════════════════════════════
   ABOUT / WELCOME SECTION
   ═══════════════════════════════════════ */

.about-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.about-section h2 {
  font-size: 3.2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-primary);
}

.about-intro {
  font-size: 1.8rem;
  color: #444;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  line-height: 1.6;
}


/* ── Feature grid (replaces bullet list) ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-item wa-icon {
  font-size: 3rem;
  color: var(--hds-yellow);
  margin-bottom: 1rem;
  display: block;
}

.feature-item h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 1.4rem;
  color: #555;
  line-height: 1.5;
}

.about-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  margin-top: 4rem;
}

.about-logos img {
  width: 22rem;
  max-width: 100%;
}


/* ═══════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════ */

.how-it-works-section {
  background-color: #f5f5f0;
  padding: 5rem 2rem;
}

.how-it-works-section h2 {
  font-size: 3.2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
  font-family: var(--font-primary);
}

.steps-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  text-align: center;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.step-number {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: var(--hds-yellow);
  color: var(--primary-color);
  font-size: 2.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.step-item h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.step-item p {
  font-size: 1.4rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.step-item a {
  color: var(--primary-color);
  text-decoration: underline;
}


/* ═══════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════ */

.testimonials-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-section h2 {
  font-size: 3.2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
  font-family: var(--font-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.testimonial-card {
  --spacing: var(--wa-space-l, 1.5rem);
}

.testimonial-card::part(body) {
  padding: 2.5rem;
}

.testimonial-quote {
  font-size: 1.5rem;
  color: #444;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--hds-yellow);
}

.testimonial-author {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

.testimonial-detail {
  font-size: 1.2rem;
  color: #888;
}


/* ═══════════════════════════════════════
   SERVICE AREA MAP (full width)
   ═══════════════════════════════════════ */

.map-section {
  background-color: var(--primary-color);
  padding: 5rem 2rem;
}

.map-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.map-text h2 {
  font-size: 3.2rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-family: var(--font-primary);
}

.map-text p {
  font-size: 1.6rem;
  color: #b6bcc2;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.map-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.map-text ul li {
  font-size: 1.5rem;
  color: #d0d1d3;
  padding: 0.4rem 0;
}

.map-text ul li wa-icon {
  color: var(--hds-yellow);
  margin-right: 0.8rem;
  font-size: 1.4rem;
}

.map-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  display: block;
}


/* ═══════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════ */

.faq-section {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-section h2 {
  font-size: 3.2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
  font-family: var(--font-primary);
}

.faq-section .wa-stack {
  width: 100%;
}

.faq-section wa-details {
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.faq-section wa-details::part(base) {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.faq-section wa-details::part(summary) {
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--primary-color);
}

.faq-section wa-details::part(content) {
  font-size: 1.4rem;
  color: #555;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


/* ═══════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════ */

.cta-banner {
  background-color: var(--hds-yellow);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: var(--font-primary);
}

.cta-banner p {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 2rem;
}

.cta-banner wa-button {
  font-size: 1.6rem;
}

.cta-banner wa-button::part(base) {
  font-size: 1.6rem;
  padding: 1rem 3rem;
}


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* Large tablets / small laptops */
@media screen and (max-width: 1185px) {
  .course-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .trust-bar-inner {
    grid-template-columns: repeat(4, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid > :last-child {
    display: none;
  }
  .map-section-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .map-text ul {
    display: inline-block;
    text-align: left;
  }
}

/* Tablets */
@media screen and (max-width: 845px) {
  #c-banner {
    min-height: auto;
  }
  .course-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 130px;
  }
  .hero-text h1 {
    font-size: 2.8rem;
  }
  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-stat .stat-label {
    font-size: 1.2rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid > :last-child {
    display: block;
  }
  .about-section h2,
  .how-it-works-section h2,
  .testimonials-section h2,
  .faq-section h2,
  .map-text h2 {
    font-size: 2.6rem;
  }
  .about-logos {
    gap: 2rem;
  }
  .about-logos img {
    width: 18rem;
  }
}

/* Phones */
@media screen and (max-width: 480px) {
  #c-banner {
    min-height: auto;
  }
  #banner-cards-container {
    padding: 20px 10px;
  }
  .course-list {
    grid-template-columns: 1fr;
    grid-auto-rows: 120px;
    gap: 8px;
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .hero-text p {
    font-size: 1.4rem;
  }
  .trust-bar {
    padding: 1.6rem 1rem;
  }
  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .trust-stat .stat-number {
    font-size: 2rem;
  }
  .trust-stat .stat-label {
    font-size: 1rem;
    letter-spacing: 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-logos {
    flex-direction: column;
    gap: 2rem;
  }
  .about-logos img {
    width: 16rem;
  }
  .cta-banner h2 {
    font-size: 2.2rem;
  }
  .map-section {
    padding: 3rem 1.5rem;
  }
  .map-section-inner {
    gap: 2rem;
  }
}
