/* ============================================
   MELISSA TRUCK DRIVING SCHOOL - STYLESHEET
   ============================================ */

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

:root {
  /* Melissa Truck Driving — Brand Palette */
  --primary: #CC0000;       /* Accent Red */
  --primary-dark: #a00000;
  --secondary: #003366;     /* Primary Navy */
  --secondary-dark: #00264d;
  --accent: #CC0000;
  --bg: #ffffff;
  --text: #1A1A1A;          /* Deep charcoal */
  --text-light: #555555;
  --footer-bg: #003366;     /* Navy footer */
  --gray-light: #f5f5f5;
  --gray-border: #e0e0e0;
  --whatsapp: #25D366;
  --sms: #CC0000;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 20px rgba(0,51,102,0.12);
  --radius: 6px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--primary);
  color: #fff;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: #fff;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* --- Navigation --- */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: min(420px, 48vw);
  text-decoration: none;
}

.nav-logo-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}

.btn-nav {
  padding: 8px 20px;
  font-size: 14px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(26,26,94,0.7), rgba(0,0,0,0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 60px 20px;
}

.hero-content h1 {
  font-size: 44px;
  color: #fff;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 28px;
  opacity: 0.95;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero (inner pages) */
.page-hero {
  background: var(--secondary);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 17px;
  opacity: 0.85;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--secondary);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  color: #fff;
}

.stat-item h3 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 15px;
  opacity: 0.85;
}

/* --- License Cards --- */
.section {
  padding: 60px 0;
}

.section-gray {
  background: var(--gray-light);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.section-title p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.license-card {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.license-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.license-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.license-card-body {
  padding: 20px;
}

.license-card-body h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--secondary);
}

.license-card-body p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
  min-height: 40px;
}

.license-card-body .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.license-card-body .btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(204,0,0,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial-stars {
  color: #f5a623;
  margin-bottom: 12px;
  font-size: 18px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--secondary);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--primary);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 17px;
  margin-bottom: 24px;
  opacity: 0.95;
}

.cta-section .btn {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  font-size: 16px;
  padding: 12px 32px;
}

.cta-section .btn:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/* --- Footer --- */
.footer {
  background: var(--footer-bg);
  color: #ccc;
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 16px;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: #aaa;
  line-height: 1.8;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  display: block;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.footer-bottom a {
  color: var(--primary);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* --- SMS Float Button --- */
.sms-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(204,0,0,0.45);
  animation: sms-pulse 2.4s infinite;
  transition: transform var(--transition);
  text-decoration: none;
}

.sms-float:hover {
  transform: scale(1.08);
  background: var(--primary-dark);
}

.sms-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.sms-float::after {
  content: 'Message Us';
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sms-float:hover::after {
  opacity: 1;
}

@keyframes sms-pulse {
  0% { box-shadow: 0 0 0 0 rgba(204,0,0,0.55); }
  70% { box-shadow: 0 0 0 16px rgba(204,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(204,0,0,0); }
}

/* SMS / WhatsApp inline lead button (reusable) */
.btn-sms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
}

.btn-sms:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-sms svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-info-item svg {
  width: 22px;
  height: 22px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item h4 {
  font-size: 15px;
  margin-bottom: 2px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 14px;
  color: var(--text-light);
}

.contact-info-item a:hover {
  color: var(--primary);
}

.contact-map {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-border);
}

.contact-map iframe {
  width: 100%;
  height: 250px;
  border: none;
}

/* Form */
.contact-form {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-form h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-top: 4px;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-border);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* --- About Page --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.about-text h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.7;
}

.about-image img {
  border-radius: var(--radius);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.mission-box {
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-bottom: 60px;
}

.mission-box h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 14px;
}

.mission-box p {
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.92;
  line-height: 1.7;
}

.team-section {
  text-align: center;
}

.team-card {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 320px;
  text-align: center;
}

.team-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--gray-light);
}

.team-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.team-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* --- Services Page --- */
.service-detail {
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  align-items: start;
}

.service-detail-grid.reverse {
  grid-template-columns: 1.5fr 1fr;
}

.service-detail img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-detail-info h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.service-detail-info > p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.service-detail-info h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--secondary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.service-detail-info ul {
  margin-bottom: 16px;
  padding-left: 0;
}

.service-detail-info ul li {
  font-size: 14px;
  color: var(--text-light);
  padding: 4px 0 4px 20px;
  position: relative;
}

.service-detail-info ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.service-price {
  background: var(--gray-light);
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-content h2 {
  font-size: 24px;
  margin: 32px 0 12px;
}

.legal-content h3 {
  font-size: 20px;
  margin: 24px 0 8px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 12px;
  padding-left: 20px;
}

.legal-content ul li {
  font-size: 15px;
  color: var(--text-light);
  padding: 3px 0;
  list-style: disc;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px;
    border-top: 1px solid var(--gray-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 12px;
  }

  .nav-links.active {
    display: flex;
  }

  .navbar .container {
    position: relative;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .license-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .service-detail-grid,
  .service-detail-grid.reverse {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .page-hero h1 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .license-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
