/* ===== GLOBAL RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: #fff;
  color: #000;
  line-height: 1.6;
}

/* ===== LINKS ===== */
a {
  text-decoration: none;
}

/* ===== GLOBAL HEADER (LOCKED + RESPONSIVE) ===== */
.main-header {
  background: #000;
  border-bottom: 1px solid #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Inner container */
.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* Logo */
.header-logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* Brand text */
.site-title {
  line-height: 1.05;
  flex-shrink: 1;
}
.site-title .parkway {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #1d6c97;
}
.site-title .school {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.main-nav a:hover {
  background: #1d6c97;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 108, 151, 0.35);
}

/* =========================
   DESKTOP SAFETY FIXES
   ========================= */
@media (min-width: 901px) and (max-width: 1200px) {
  .main-header .header-inner {
    justify-content: space-between;
  }
  .main-nav {
    overflow-x: auto;
    gap: 10px;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 901px) {
  .main-nav a {
    font-size: 0.95rem;
  }
}

/* =========================
   MOBILE HEADER & HERO FIXES
   ========================= */
@media (max-width: 900px) {
  .header-inner {
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
  }

  .site-title {
    font-size: 1.2rem;
    text-align: left;
    flex-shrink: 1;
  }
  .site-title .parkway {
    font-size: 1.4rem;
  }
  .site-title .school {
    font-size: 0.9rem;
  }

  .main-nav {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    margin-left: 10px;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .main-nav a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  /* Hero buttons stacked nicely */
  .hero .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .hero .hero-buttons a {
    width: 90%;
    max-width: 260px;
  }
}

/* ================= HERO SECTION ================= */
.hero {
  background: linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
              url("../images/hero-driving.jpg") center / cover no-repeat;
  text-align: center;
  padding: 42px 20px;
}
.hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 1.3rem;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero-buttons a {
  display: inline-block;
  background: #1d6c97;
  color: #fff;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  transition: 0.25s;
}
.hero-buttons a:hover {
  background: #134c68;
}

/* ================= SECTIONS ================= */
section {
  max-width: 1200px;
  margin: auto;
  padding: 2.2rem 2rem;
}
section:first-of-type {
  padding-top: 1.4rem;
}
section h2 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
}

/* ================= FEATURES ================= */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.feature-box {
  flex: 1 1 260px;
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}
.feature-box img {
  width: 48px;
  margin-bottom: 0.8rem;
}
.feature-box h4 {
  color: #1d6c97;
  margin-bottom: 0.5rem;
}

/* ================= PROGRAMS ================= */
.programs {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}
.program-card {
  flex: 1 1 300px;
  background: #fff;
  padding: 1.3rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  text-align: center;
}
.program-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}
.program-card h3 {
  color: #1d6c97;
  margin-bottom: 0.5rem;
}
.program-card a {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 700;
  color: #1d6c97;
}

/* ================= REVIEWS ================= */
.reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.review-card {
  background: #f5f5f5;
  padding: 1.4rem;
  border-radius: 10px;
  max-width: 650px;
}
.review-card p {
  font-style: italic;
}
.review-card strong {
  display: block;
  margin-top: 0.6rem;
  text-align: right;
  color: #1d6c97;
}

/* ================= CTA ================= */
.cta {
  text-align: center;
  padding: 2.5rem 1rem;
}

.cta a {
  display: inline-block;
  background: #1d6c97;
  color: #ffffff !important;   /* force white text */
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(29, 108, 151, 0.35);
}

.cta a:hover {
  background: #134c68;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(19, 76, 104, 0.45);
}

/* ================= FOOTER ================= */
.site-footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 28px 0;
  margin-top: 50px;
}
.site-footer a {
  color: #fff;
  text-decoration: underline;
}

/* ================= MOBILE STICKY CONTACT BAR ================= */
.mobile-sticky-bar {
  display: none;
}
@media (max-width: 900px) {
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    justify-content: space-around;
    align-items: center;
    padding: 8px 6px;
    z-index: 9999;
    border-top: 1px solid #1d6c97;
    font-size: 0.85rem;
  }
  .mobile-sticky-bar a {
    flex: 1;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 6px 4px;
    border-radius: 6px;
    margin: 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.75rem;
  }
  .mobile-sticky-bar .call { background: #1d6c97; }
  .mobile-sticky-bar .text { background: #FF9800; color: #000; }
  .mobile-sticky-bar .whatsapp { background: #25D366; color: #000; }
  .mobile-sticky-bar .email { background: #444; }
  body { padding-bottom: 80px; }
}
.service-areas {
  background: #f8f9fa;
  padding: 80px 20px;
  text-align: center;
}

.service-areas h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #111;
}

.area-subtext {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 16px;
  color: #555;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: auto;
}

.area-box {
  background: white;
  padding: 18px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.area-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
/* ================= MOBILE FIXES ================= */
@media (max-width: 480px) {
  /* Stack packages / program cards vertically */
  .packages,
  .programs {
    flex-direction: column;
    align-items: center;
  }

  .package-card,
  .program-card {
    width: 90%;
    max-width: 350px;
    margin-bottom: 20px; /* adds spacing between stacked cards */
  }

  /* Reduce section padding for tiny screens */
  section {
    padding: 1.2rem 1rem;
  }
}
/* ================= FULL MOBILE FIXES (<= 480px) ================= */
@media (max-width: 480px) {

  /* ===== HEADER ===== */
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
  }
  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin-left: 0;
  }
  .main-nav a {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
  .site-title {
    font-size: 1.1rem;
  }
  .site-title .parkway {
    font-size: 1.3rem;
  }
  .site-title .school {
    font-size: 0.85rem;
  }
  /* ===== CTA BUTTON MOBILE FIX ===== */
  .cta a {
    padding: 10px 18px;
    font-size: 0.9rem;
    width: auto;
    max-width: 260px;
  }

  /* ===== HERO ===== */
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .hero-buttons a {
    width: 90%;
    max-width: 260px;
  }

  /* ===== PACKAGES / PROGRAMS ===== */
  .packages,
  .programs {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .package-card,
  .program-card {
    width: 90%;
    max-width: 350px;
    margin-bottom: 20px;
  }

  /* ===== CTA / REVIEWS / FEATURES ===== */
  .cta ol {
    padding-left: 1rem;
    font-size: 0.9rem;
  }
  .cta p {
    font-size: 0.9rem;
  }
  .features,
  .reviews {
    flex-direction: column;
    align-items: center;
  }
  .feature-box,
  .review-card {
    width: 90%;
    max-width: 350px;
    margin-bottom: 16px;
  }

  /* ===== FOOTER ===== */
  .site-footer p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* ===== MOBILE STICKY BAR ===== */
  body {
    padding-bottom: 80px; /* prevents content from being hidden behind sticky bar */
  }
  .mobile-sticky-bar {
    font-size: 0.75rem;
    padding: 6px 4px;
  }
  .mobile-sticky-bar {
    padding: 10px 6px;
  }

  .mobile-sticky-bar a {
    font-size: 0.8rem;
    padding: 8px 6px;
    gap: 4px;
    border-radius: 8px;
  }

  .mobile-sticky-bar .call { background: #1d6c97; }
  .mobile-sticky-bar .text { background: #ffffff; color: #000; }
  .mobile-sticky-bar .whatsapp { background: #0c8e3c; color: #000; }
  .mobile-sticky-bar .email { background: #333; }


  /* ===== SERVICE AREAS ===== */
  .service-areas h2 {
    font-size: 1.8rem;
  }
  .area-subtext {
    font-size: 0.9rem;
  }
  .areas-grid {
    gap: 12px;
  }
  .area-box {
    padding: 14px;
  }
}
/* ===== HIDE LOGO ON MOBILE ===== */

@media (max-width: 900px) {
  .header-logo {
    display: none;
  }

  .header-inner {
    justify-content: center;
  }

  .main-nav {
    margin-left: 0;
  }
}
/* ===== HAMBURGER MENU ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

/* Mobile behavior */
@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #000;
    padding: 10px 0;
    margin-top: 10px;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    margin: 4px 0;
  }

  .main-nav.active {
    display: flex;
  }
}
@media (max-width: 900px) {
  .main-header {
    padding: 6px 0;
  }

  .header-inner {
    padding: 8px 12px;
  }

  .site-title .parkway {
    font-size: 1.2rem;
  }

  .site-title .school {
    font-size: 0.8rem;
  }
}
.main-header {
  transition: transform 0.3s ease;
}
/* ===== MOBILE HEADER: inline Parkway Driving School + hamburger ===== */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: row;      /* single row */
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
  }

  /* Inline brand text */
  .site-title {
    order: 1;
    flex: 1;
    text-align: left;
    font-size: 1.2rem;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
  }
  .site-title .parkway {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1d6c97;
  }
  .site-title .school {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
  }

  /* Hamburger on the right */
  .menu-toggle {
    order: 2;
    font-size: 28px;
  }

  /* Mobile nav overlay */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    display: none;
    padding: 10px 0;
    margin-top: 0;
    z-index: 999;
  }
  .main-nav.active {
    display: flex;
  }
  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
  }

  /* Hide logo on mobile */
  .header-logo {
    display: none;
  }
}
/* ===== Thank You Message Styling ===== */
#thankYouMessage {
  display: none;
  background: #e6f4fb;
  border: 2px solid #1d6c97;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #1d6c97;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#thankYouMessage.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.program-card.popular {
  border: 3px solid #0071bc; /* navy-blue highlight for trust */
  box-shadow: 0 8px 20px rgba(0,113,188,0.3); /* softer shadow */
  transform: scale(1.05);
  animation: pulse 2s infinite;
  position: relative;
  z-index: 2;
  background-color: #f0f8ff; /* light blue background to stand out */
}

.program-card.popular {
  border: 3px solid #0d47a1; /* navy-blue border for attention */
  box-shadow: 0 8px 20px rgba(13,71,161,0.4);
  transform: scale(1.05);
  animation: pulse 2s infinite;
  position: relative;
  z-index: 2;
}

.program-card.popular .badge {
  position: absolute;
  top: -10px;
  left: -10px;
  background-color: #0d47a1; /* navy-blue badge */
  color: #fff;
  padding: 5px 10px;
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 4px;
}

.btn-popular {
  background-color: #0d47a1; /* navy-blue button */
  color: #ffffff; /* white text */
  padding: 10px 20px;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.btn-popular:hover {
  background-color: #08306b; /* darker navy on hover */
  color: #ffffff; /* still white text on hover */
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(13,71,161,0.4);}
  70% { box-shadow: 0 0 0 15px rgba(13,71,161,0);}
  100% { box-shadow: 0 0 0 0 rgba(13,71,161,0);}
}

