/* ============================================
   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;
}

/* .nav-links a outranks .btn-primary and turned this label dark on red */
.nav-links a.btn-nav,
.nav-links a.btn-nav:hover {
  color: #fff;
}

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

/* --- Floating Call Button (primary phone CTA) --- */
.call-float {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #0e1b3d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(14,27,61,0.45);
  transition: transform var(--transition), background .2s ease;
  text-decoration: none;
}
.call-float:hover { transform: scale(1.08); background: #1a3568; }
.call-float svg { width: 28px; height: 28px; fill: #fff; }
.call-float::after {
  content: 'Call Now';
  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;
}
.call-float:hover::after { opacity: 1; }

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

/* ============================================
   AMPLIFY LAYER — parallax, reveals, license gradients, reviews polish
   ============================================ */

/* --- Scroll reveal animations --- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .8s cubic-bezier(.2,.7,.1,1), transform .8s cubic-bezier(.2,.7,.1,1);
  will-change: opacity, transform;
}
.reveal.reveal-up { transform: translate3d(0, 32px, 0); }
.reveal.reveal-left { transform: translate3d(-32px, 0, 0); }
.reveal.reveal-right { transform: translate3d(32px, 0, 0); }
.reveal.reveal-scale { transform: scale(.94); }
.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
/* Stagger children */
.license-grid > .reveal:nth-child(1) { transition-delay: .02s; }
.license-grid > .reveal:nth-child(2) { transition-delay: .08s; }
.license-grid > .reveal:nth-child(3) { transition-delay: .14s; }
.license-grid > .reveal:nth-child(4) { transition-delay: .02s; }
.license-grid > .reveal:nth-child(5) { transition-delay: .08s; }
.license-grid > .reveal:nth-child(6) { transition-delay: .14s; }
.features-grid > .reveal:nth-child(1) { transition-delay: .04s; }
.features-grid > .reveal:nth-child(2) { transition-delay: .10s; }
.features-grid > .reveal:nth-child(3) { transition-delay: .16s; }
.features-grid > .reveal:nth-child(4) { transition-delay: .22s; }
.stats-grid > .reveal:nth-child(1) { transition-delay: .04s; }
.stats-grid > .reveal:nth-child(2) { transition-delay: .10s; }
.stats-grid > .reveal:nth-child(3) { transition-delay: .16s; }
.stats-grid > .reveal:nth-child(4) { transition-delay: .22s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Hero parallax + dress-up --- */
.hero.hero-parallax {
  min-height: 620px;
  padding: 90px 0 110px;
  background: #0a1224;
}
.hero-parallax .hero-bg {
  transform: translate3d(0,0,0) scale(1.08);
  transition: transform .08s linear;
  filter: saturate(1.1) contrast(1.05);
}
.hero-parallax .hero-bg::after {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(204,0,0,.22), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(0,51,102,.55), transparent 60%),
    linear-gradient(180deg, rgba(8,14,30,.72) 0%, rgba(8,14,30,.82) 100%);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 60%, rgba(8,14,30,.55) 100%);
  z-index: 1;
}
.hero-parallax .hero-content {
  max-width: 860px;
  z-index: 3;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: none;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.hero-kicker::before,
.hero-kicker::after {
  display: none;
}
.hero-kicker .hero-kicker-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #1f7df2 0%, #CC0000 100%);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(204,0,0,.6);
  flex-shrink: 0;
}

/* About page uses a lighter on-dark variant */
.about-hero .hero-kicker,
.page-hero-rich .hero-kicker {
  color: #ffd4a8;
  background: transparent;
  border: none;
}
.about-hero .hero-kicker::before,
.page-hero-rich .hero-kicker::before,
.about-hero .hero-kicker::after,
.page-hero-rich .hero-kicker::after {
  width: 40px;
}

.hero-parallax .hero-content h1 {
  font-size: clamp(40px, 6.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-accent {
  color: #fff;
}
.hero-parallax .hero-content p {
  font-size: 19px;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.65;
  color: #e6eaf5;
}
.btn-hero {
  padding: 14px 28px;
  font-size: 15px;
  letter-spacing: .6px;
  box-shadow: 0 10px 28px -10px rgba(204,0,0,.55);
}
.btn-hero.btn-outline {
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,.05);
}
.hero-review-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 11px 22px;
  background: rgba(255,255,255,.96);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 14px;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-review-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.6);
  color: #1a73e8;
}
.hero-review-chip .arrow {
  display: inline-block;
  transition: transform .25s ease;
  color: #1a73e8;
}
.hero-review-chip:hover .arrow { transform: translateX(4px); }

/* --- License card visual language (no hotlinked images) --- */
.license-card {
  position: relative;
  border: 1px solid #e5e8f0;
  border-radius: 14px;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
  transition: transform .25s ease, box-shadow .25s ease;
}
.license-card:hover {
  box-shadow: 0 22px 48px -18px rgba(10,18,36,.35);
}
.license-media {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255,255,255,.92);
}
.license-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.22), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(0,0,0,.25), transparent 55%);
  pointer-events: none;
}
.license-media-lr  { background: linear-gradient(135deg, #1b4e9b 0%, #0a2a5e 100%); }
.license-media-mr  { background: linear-gradient(135deg, #1363c9 0%, #0a2f70 100%); }
.license-media-hr  { background: linear-gradient(135deg, #c43434 0%, #7a0d0d 100%); }
.license-media-hc  { background: linear-gradient(135deg, #5e36a8 0%, #2a1760 100%); }
.license-media-mc  { background: linear-gradient(135deg, #0f6b52 0%, #053628 100%); }
.license-media-bus { background: linear-gradient(135deg, #d38611 0%, #7a4c05 100%); }

.license-silhouette {
  position: absolute;
  bottom: 10%;
  left: 8%;
  right: 8%;
  width: 84%;
  height: auto;
  color: rgba(255,255,255,.88);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
  opacity: .9;
  transition: transform .5s cubic-bezier(.2,.7,.1,1);
}
.license-card:hover .license-silhouette {
  transform: translateX(6px);
}
.license-badge {
  position: absolute;
  top: 18px;
  left: 20px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  color: #fff;
  text-shadow: 0 4px 16px rgba(0,0,0,.35);
  z-index: 2;
}
.license-tonnes {
  position: absolute;
  top: 24px;
  right: 22px;
  padding: 5px 12px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .4px;
  z-index: 2;
}
.license-media-shine {
  display: none;
}
.license-card:hover .license-media-shine {
  transform: translateX(120%);
}
.license-card-body {
  padding: 22px 22px 24px;
}
.license-card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #003366;
}
.license-card-body .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
}

/* --- Reviews card amplify --- */
.reviews-section {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(204,0,0,.06), transparent 50%),
    radial-gradient(ellipse at 85% 100%, rgba(0,51,102,.07), transparent 50%),
    #fff;
}
.reviews-card {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5edff;
  border-radius: 26px;
  padding: 48px 40px 42px;
  text-align: center;
  box-shadow: 0 18px 60px -20px rgba(10,18,36,.18);
  overflow: hidden;
}
.reviews-card-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 30% 30%, rgba(66,133,244,.08), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(234,67,53,.08), transparent 45%);
  pointer-events: none;
  animation: reviewsGlow 12s ease-in-out infinite alternate;
}
@keyframes reviewsGlow {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(20px,-10px,0); }
}
.reviews-google-logo {
  display: block;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}
.reviews-stars {
  font-size: 34px;
  letter-spacing: 6px;
  color: #fbbc04;
  line-height: 1;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.reviews-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  color: #003366;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.reviews-copy {
  color: #555;
  line-height: 1.65;
  font-size: 15.5px;
  max-width: 540px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
}
.reviews-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.btn-review-leave {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 12px 28px -8px rgba(204,0,0,.55);
  background: linear-gradient(135deg, #e11515 0%, #a00000 100%);
  border: none;
  color: #fff;
}
.btn-review-leave:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px rgba(204,0,0,.65);
  filter: brightness(1.08);
}
.btn-review-see {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: #fff;
  color: #1a73e8;
  border: 1px solid #dadce0;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .2s ease, transform .2s ease;
}
.btn-review-see:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.reviews-footer {
  color: #888;
  font-size: 11.5px;
  margin-top: 22px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* --- Stats numbers: solid white, no shimmer --- */
.stats-bar .stat-item h3 {
  color: #fff;
}
.stats-bar .stat-item.visible h3 {
  animation: statShimmer 1.6s ease-out;
}
@keyframes statShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 0 0; }
}

/* --- Responsive amplify tweaks --- */
@media (max-width: 900px) {
  .hero.hero-parallax { min-height: 520px; padding: 60px 0 80px; }
  .hero-parallax .hero-bg { background-attachment: scroll; }
  .license-badge { font-size: 40px; }
  .license-media { height: 170px; }
  .reviews-card { padding: 36px 24px 32px; }
}

/* ============================================
   Guru-style photo license cards (override the dark-gradient variant)
   ============================================ */
.license-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.license-card {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  padding: 22px 22px 26px;
  text-align: center;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 2px 10px rgba(10,18,36,.04);
}
.license-card:hover {
  box-shadow: 0 20px 40px -14px rgba(10,18,36,.18);
  transform: perspective(1000px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg)) translateY(-4px);
}
.license-tagline {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 14.5px;
  line-height: 1.4;
  margin: 0 0 16px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.license-photo-wrap {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 60%, #eef3fb 0%, #dde6f3 60%, #cfd9eb 100%);
  overflow: hidden;
}
.license-photo-wrap::before {
  content: '';
  position: absolute;
  inset: auto 10% 8%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(10,18,36,.18) 0%, rgba(10,18,36,0) 70%);
  filter: blur(2px);
  pointer-events: none;
}
.license-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.35) 0%, transparent 40%);
  pointer-events: none;
}
.license-photo {
  position: relative;
  z-index: 1;
  max-height: 170px;
  max-width: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.2,.7,.1,1);
  filter: drop-shadow(0 10px 18px rgba(10,18,36,.18));
}
.license-card:hover .license-photo {
  transform: scale(1.06);
}
.license-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: #0e1b3d;
  letter-spacing: 1px;
  font-size: 17px;
  margin: 0 0 20px;
  text-transform: uppercase;
}
.license-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 100px;
  background: linear-gradient(135deg, #1f7df2 0%, #0d5ab8 100%);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -6px rgba(13,90,184,.45);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  border: none;
  cursor: pointer;
}
.license-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(13,90,184,.55);
  filter: brightness(1.08);
  color: #fff;
}
.license-pill-btn svg {
  width: 14px;
  height: 14px;
}

/* Dead CSS removed — old .license-media dark-gradient variant is gone for good */

@media (max-width: 900px) {
  .license-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .license-grid { grid-template-columns: 1fr; }
  .license-photo-wrap { height: 160px; }
}

/* ============================================
   Google Reviews Slider (Guru-style layout, real Melissa data)
   ============================================ */
.reviews-section { background: #f5f7fb; }

.gr-slider {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.gr-summary {
  background: #fff;
  border-radius: 14px;
  padding: 28px 26px;
  border: 1px solid #e5e8f0;
  box-shadow: 0 4px 18px -4px rgba(10,18,36,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gr-summary-inner { text-align: left; }
.gr-summary-icon {
  width: 48px;
  height: 48px;
  background: #eaf2ff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.gr-summary-title {
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin: 0 0 12px;
}
.gr-summary-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.gr-summary-score {
  font-size: 20px;
  font-weight: 700;
  color: #f5a623;
  letter-spacing: .3px;
}
.gr-summary-stars {
  color: #fbbc04;
  letter-spacing: 3px;
  font-size: 18px;
}
.gr-summary-meta {
  color: #5f6368;
  font-size: 14px;
  margin: 0 0 18px;
  line-height: 1.5;
}
.gr-summary-meta strong { color: #1a1a1a; font-weight: 600; }
.gr-summary-google-word {
  background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.gr-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: linear-gradient(135deg, #1a73e8 0%, #0d5ab8 100%);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .3px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 8px 18px -6px rgba(26,115,232,.5);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  align-self: flex-start;
}
.gr-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -6px rgba(26,115,232,.6);
  filter: brightness(1.08);
  color: #fff;
}
.gr-review-btn svg { flex-shrink: 0; }

/* Slider viewport */
.gr-viewport {
  position: relative;
  overflow: hidden;
  padding: 0 56px;
}
.gr-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  transition: transform .5s cubic-bezier(.2,.7,.1,1);
  will-change: transform;
}
.gr-card {
  flex: 0 0 calc((100% - 18px) / 2);
  min-width: 0;
  background: #fff;
  border: 1px solid #e5e8f0;
  border-radius: 12px;
  padding: 22px 22px 24px;
  box-shadow: 0 2px 8px rgba(10,18,36,.04);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.gr-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  position: relative;
}
.gr-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .3px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.gr-avatar-s { background: linear-gradient(135deg, #6e4e34 0%, #4a331f 100%); }
.gr-avatar-n { background: linear-gradient(135deg, #1a73e8 0%, #0d5ab8 100%); }
.gr-avatar-e { background: linear-gradient(135deg, #137a53 0%, #0a4c33 100%); }
.gr-author { flex: 1; min-width: 0; }
.gr-author-name {
  font-weight: 700;
  color: #1a73e8;
  font-size: 15px;
  line-height: 1.2;
}
.gr-author-meta {
  color: #5f6368;
  font-size: 12.5px;
  margin-top: 2px;
}
.gr-card-google {
  position: absolute;
  top: 0;
  right: 0;
  flex-shrink: 0;
}
.gr-stars {
  color: #fbbc04;
  letter-spacing: 2px;
  font-size: 16px;
  margin-bottom: 10px;
}
.gr-text {
  color: #3c4043;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.gr-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dadce0;
  color: #5f6368;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(10,18,36,.08);
  transition: background .2s ease, color .2s ease, transform .2s ease;
  z-index: 5;
}
.gr-nav:hover {
  background: #1a73e8;
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}
.gr-nav:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.gr-nav-prev { left: 8px; }
.gr-nav-next { right: 8px; }

.gr-dots {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.gr-dots li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dadce0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.gr-dots li.active {
  background: #1a73e8;
  transform: scale(1.25);
}

@media (max-width: 900px) {
  .gr-slider {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .gr-summary { text-align: center; }
  .gr-summary-inner { text-align: center; }
  .gr-summary-icon { margin-left: auto; margin-right: auto; }
  .gr-review-btn { margin-left: auto; margin-right: auto; }
  .gr-viewport { padding: 0 44px; }
  .gr-card { flex: 0 0 100%; }
  .gr-nav-prev { left: 0; }
  .gr-nav-next { right: 0; }
}

/* ============================================
   Courses nav dropdown (desktop hover, mobile tap)
   ============================================ */
.nav-dd {
  position: relative;
  display: inline-block;
}
.nav-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav-chev {
  transition: transform .2s ease;
}
.nav-dd:hover .nav-chev,
.nav-dd.open .nav-chev {
  transform: rotate(180deg);
}
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 300px;
  background: #fff;
  border: 1px solid #e5e8f0;
  border-radius: 10px;
  box-shadow: 0 16px 40px -12px rgba(10,18,36,.22);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 120;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd.open .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-menu a {
  display: block;
  padding: 11px 16px;
  border-radius: 7px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.nav-dd-menu a:hover {
  background: linear-gradient(135deg, #1f7df2 0%, #0d5ab8 100%);
  color: #fff;
}

/* Mobile: expand inline within hamburger panel */
@media (max-width: 900px) {
  .nav-dd-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    min-width: 0;
    padding: 0 0 0 14px;
    background: transparent;
    display: none;
  }
  .nav-dd.open .nav-dd-menu { display: block; }
  .nav-dd-menu a {
    padding: 8px 12px;
    font-size: 13.5px;
    color: var(--text);
  }
  .nav-dd-menu a:hover {
    background: transparent;
    color: var(--primary);
  }
}

/* ============================================
   About page layout
   ============================================ */
.about-hero {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(204,0,0,.2), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(0,51,102,.55), transparent 60%),
    linear-gradient(180deg, #0b1c3d 0%, #061127 100%);
  padding: 80px 0 90px;
  color: #fff;
}
/* .about-hero .hero-kicker styling is handled by the global rule near line 1247 (flanking lines + diamond stars). Do not reintroduce a pill background here. */
.about-hero h1 {
  color: #fff;
  font-size: clamp(38px, 5.5vw, 56px);
  line-height: 1.1;
  margin: 18px 0 14px;
}
.about-hero p {
  color: #dfe6f4;
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto;
}

/* Contact strip under hero */
.about-strip {
  background: #fff;
  border-bottom: 1px solid #e8eaf0;
  padding: 22px 0;
  position: relative;
  z-index: 2;
  margin-top: -30px;
}
.about-strip .container { }
.about-strip-grid {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 18px 40px -16px rgba(10,18,36,.2);
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 24px;
  align-items: center;
}
.about-strip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--text);
  transition: color .2s ease;
  border-left: 3px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
}
.about-strip-item svg {
  width: 22px;
  height: 22px;
  fill: var(--primary);
  margin-bottom: 4px;
}
.about-strip-label {
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666;
  font-weight: 600;
}
.about-strip-value {
  font-weight: 700;
  font-size: 15px;
  color: #0e1b3d;
}
.about-strip-item:hover {
  color: var(--primary);
  border-left-color: var(--primary);
}
.about-strip-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: .6px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 13.5px;
  box-shadow: 0 8px 20px -6px rgba(204,0,0,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.about-strip-cta:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 12px 26px -6px rgba(204,0,0,.55);
}
@media (max-width: 900px) {
  .about-strip-grid { grid-template-columns: 1fr; gap: 16px; padding: 18px 18px; }
  .about-strip-cta { justify-content: center; }
}

/* 2-col layout */
.about-2col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-2col-text .eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}
.about-2col-text h2 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #0e1b3d;
}
.about-2col-text p {
  color: #3c4043;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-2col-text strong { color: #0e1b3d; font-weight: 700; }
.about-promise {
  background: linear-gradient(160deg, #0e1b3d 0%, #051033 100%);
  color: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 18px 40px -14px rgba(10,18,36,.35);
  position: sticky;
  top: 100px;
}
.about-promise-label {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(204,0,0,.22);
  border: 1px solid rgba(255,255,255,.15);
  color: #ffc8c8;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 16px;
}
.about-promise h3 {
  color: #fff;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.about-promise p {
  color: #c7cfe0;
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 22px;
}
@media (max-width: 900px) {
  .about-2col { grid-template-columns: 1fr; gap: 32px; }
  .about-promise { position: static; }
}

/* Stats band */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.about-stat {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 2px 10px rgba(10,18,36,.04);
}
.about-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(10,18,36,.2);
}
.about-stat-num {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -1px;
}
.about-stat-unit {
  font-size: 28px;
  margin-left: 2px;
  color: var(--primary);
}
.about-stat-label {
  font-weight: 700;
  color: #0e1b3d;
  margin-top: 10px;
  font-size: 15px;
}
.about-stat-sub {
  color: #5f6368;
  font-size: 12.5px;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .about-stats-grid { grid-template-columns: 1fr; }
}

/* Instructor card */
.instructor-card {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 8px 32px -10px rgba(10,18,36,.12);
}
.instructor-meta h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 32px;
  color: #0e1b3d;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.instructor-role {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 18px;
}
.instructor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.instructor-chip {
  background: #eaf2ff;
  color: #0e1b3d;
  border: 1px solid #d6e4fb;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}
.instructor-copy p {
  color: #3c4043;
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 14px;
}
.instructor-copy strong { color: #0e1b3d; }
.instructor-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .instructor-card { grid-template-columns: 1fr; padding: 28px 24px; gap: 22px; }
}

/* Mission band */
.mission-band {
  background:
    radial-gradient(ellipse at 25% 0%, rgba(204,0,0,.18), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(31,125,242,.18), transparent 55%),
    linear-gradient(180deg, #0e1b3d 0%, #061127 100%);
  padding: 80px 0;
  color: #fff;
  text-align: center;
}
.mission-band-inner { max-width: 820px; margin: 0 auto; }
.eyebrow-light {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 18px;
}
.mission-band h2 {
  color: #fff;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.25;
  margin-bottom: 16px;
}
.mission-band p {
  color: #c7cfe0;
  font-size: 17px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

/* Course mini grid */
.course-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}
.course-mini {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.course-mini:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -14px rgba(10,18,36,.25);
  border-color: var(--primary);
}
.course-mini-code {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0e1b3d 0%, #1a4a9e 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .5px;
}
.course-mini-name {
  font-weight: 700;
  color: #0e1b3d;
  font-size: 15.5px;
  flex: 1;
  display: block;
}
.course-mini-note {
  font-size: 12.5px;
  color: #666;
  display: block;
}
.course-mini-name,
.course-mini-note { }
.course-mini > div,
.course-mini-name {
  display: block;
}
.course-mini {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
}
.course-mini-code { grid-row: span 2; }
.course-mini-foot {
  text-align: center;
  margin-top: 26px;
  color: #5f6368;
  font-size: 15px;
}
.course-mini-foot a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}
@media (max-width: 900px) {
  .course-mini-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .course-mini-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Homepage simplification + premium animations (AMRIX amplify v2)
   ============================================ */

/* Simple hero: restore the clean original treatment, just a subtle scrim */
.hero.hero-simple {
  min-height: 500px;
  padding: 80px 0 90px;
  background: #0a1224;
  position: relative;
  overflow: hidden;
}
.hero.hero-simple .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 12s ease-out;
  animation: heroSlowZoom 18s ease-out forwards;
}
@keyframes heroSlowZoom {
  to { transform: scale(1.08); }
}
.hero.hero-simple .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,14,32,.72) 0%, rgba(8,14,32,.82) 100%);
}
.hero.hero-simple .hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
  padding: 20px;
}
.hero.hero-simple .hero-content h1 {
  color: #fff;
  font-size: clamp(36px, 5.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero.hero-simple .hero-content p {
  color: #e6eaf5;
  font-size: 17.5px;
  line-height: 1.65;
  margin: 0 auto 28px;
  max-width: 620px;
}
.hero.hero-simple .hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero.hero-simple .btn {
  padding: 12px 26px;
  font-size: 14.5px;
  letter-spacing: .6px;
}

/* Course chips (homepage compact) */
.course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 980px;
  margin: 0 auto 30px;
}
.course-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 100px;
  color: #0e1b3d;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  box-shadow: 0 2px 8px rgba(10,18,36,.04);
}
.course-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(10,18,36,.2);
  border-color: var(--primary);
  color: var(--primary);
}
.course-chip-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  background: linear-gradient(135deg, #0e1b3d 0%, #1a4a9e 100%);
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .3px;
  border-radius: 6px;
  transition: background .25s ease;
}
.course-chip:hover .course-chip-code {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.courses-cta {
  text-align: center;
  margin-top: 12px;
}

/* Auto-sliding reviews track (v2) */
.gr-track {
  transition: transform .6s cubic-bezier(.4,.0,.2,1);
}
.gr-card {
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.gr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -14px rgba(10,18,36,.2);
}
.gr-viewport {
  position: relative;
}
/* Progress bar under slider to hint auto-advance */
.gr-progress {
  position: absolute;
  bottom: -16px;
  left: 56px;
  right: 56px;
  height: 2px;
  background: rgba(10,18,36,.08);
  border-radius: 2px;
  overflow: hidden;
}
.gr-progress-bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1a73e8, #4285F4);
  transform-origin: left;
  transform: scaleX(0);
  animation: grProgress 6s linear infinite;
}
.gr-slider.paused .gr-progress-bar {
  animation-play-state: paused;
}
@keyframes grProgress {
  to { transform: scaleX(1); }
}

/* Counter-up animation for stats */
.stats-bar .stat-item {
  position: relative;
}
.stats-bar .stat-item h3 {
  transition: transform .5s cubic-bezier(.2,.7,.1,1);
  display: inline-block;
}
.stats-bar .stat-item.visible h3 {
  animation: statPop 0.7s cubic-bezier(.2,1.3,.4,1) both;
}
@keyframes statPop {
  0%   { transform: scale(.85); }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Subtle float animation for review-chip */
.hero-review-chip {
  animation: chipFloat 3.4s ease-in-out infinite;
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.hero-review-chip:hover {
  animation-play-state: paused;
}

/* Feature card subtle lift */
.feature-card {
  transition: transform .3s cubic-bezier(.2,.7,.1,1), box-shadow .3s ease, border-color .3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -18px rgba(10,18,36,.22);
  border-color: var(--primary);
}
.feature-card .feature-icon {
  transition: transform .4s cubic-bezier(.2,1.3,.4,1);
}
.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* FAQ summary marker hover */
details summary {
  position: relative;
  transition: color .2s ease;
}
details[open] summary {
  color: var(--primary) !important;
}
details summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 300;
  color: var(--primary);
  transition: transform .25s ease;
}
details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

/* Button ripple on click (lightweight) */
.btn-primary, .btn-outline, .btn-outline-dark, .license-pill-btn, .btn-review-leave, .course-chip {
  position: relative;
  overflow: hidden;
}
.btn-primary::before, .license-pill-btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: translate(-50%, -50%);
  transition: width .5s ease, height .5s ease;
}
.btn-primary:active::before, .license-pill-btn:active::before {
  width: 260px;
  height: 260px;
  transition: 0s;
}

/* Service-area chip hover */
.section span[style*="background:#f4f7ff"] {
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
  cursor: default;
}
.section span[style*="background:#f4f7ff"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -6px rgba(10,18,36,.15);
}

/* Smoother reveal staggering for chips */
.course-chips > .reveal:nth-child(1) { transition-delay: .02s; }
.course-chips > .reveal:nth-child(2) { transition-delay: .06s; }
.course-chips > .reveal:nth-child(3) { transition-delay: .10s; }
.course-chips > .reveal:nth-child(4) { transition-delay: .14s; }
.course-chips > .reveal:nth-child(5) { transition-delay: .18s; }
.course-chips > .reveal:nth-child(6) { transition-delay: .22s; }
.course-chips > .reveal:nth-child(7) { transition-delay: .26s; }

/* ============================================
   v2 polish: welcome-band, howto, suburb chips, faq, page-hero-rich, cta-phone
   ============================================ */

/* Welcome band (Guru-style intro paragraph) */
.welcome-band { padding: 70px 0 30px; }
.welcome-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.welcome-inner .eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #CC0000;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.welcome-inner h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  color: #0e1b3d;
  margin-bottom: 20px;
}
.welcome-inner p {
  font-size: 16.5px;
  color: #4a5066;
  line-height: 1.75;
  margin-bottom: 14px;
}
.welcome-inner p:last-child { margin-bottom: 0; }

/* Courses CTA row */
.courses-cta {
  text-align: center;
  margin-top: 32px;
}
.courses-cta .btn {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: 100px;
  box-shadow: 0 12px 28px -10px rgba(204,0,0,.55);
}
.courses-cta .btn:hover { transform: translateY(-2px); }

/* How training works grid */
.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}
.howto-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5edff;
  border-radius: 18px;
  padding: 34px 28px 30px;
  text-align: left;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.howto-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: #CC0000;
  opacity: 0;
  transition: opacity .3s ease;
}
.howto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -16px rgba(10,18,36,.22);
  border-color: #d9e2ff;
}
.howto-card:hover::before { opacity: 1; }
.howto-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a4a9e 0%, #0a2a5e 100%);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px -6px rgba(26,74,158,.45);
}
.howto-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  color: #0e1b3d;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.howto-card p {
  color: #4a5066;
  line-height: 1.65;
  font-size: 14.5px;
}

/* Suburb chips */
.suburb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}
.suburb-chip {
  background: #f4f7ff;
  border: 1px solid #e5edff;
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  color: #0e1b3d;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: default;
}
.suburb-chip:hover {
  background: #fff;
  border-color: #c9d5ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(10,18,36,.18);
}
.suburb-foot {
  text-align: center;
  margin-top: 24px;
  color: #666;
  font-size: 14px;
}
.suburb-foot a {
  color: #1a4a9e;
  font-weight: 700;
}
.suburb-foot a:hover { color: #CC0000; }

/* FAQ list */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid #e5edff;
  border-radius: 14px;
  padding: 18px 22px;
  cursor: pointer;
  transition: box-shadow .25s ease, border-color .25s ease, transform .2s ease;
}
.faq-item[open] {
  border-color: #c9d5ff;
  box-shadow: 0 14px 32px -16px rgba(10,18,36,.2);
}
.faq-item:hover {
  border-color: #c9d5ff;
}
.faq-item summary {
  font-weight: 600;
  color: #0e1b3d;
  font-size: 15.5px;
  outline: none;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #CC0000 0%, #a00000 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform .25s ease;
}
.faq-item[open] summary::after {
  content: '\2212';
  transform: translateY(-50%) rotate(180deg);
}
.faq-item p {
  color: #4a5066;
  line-height: 1.7;
  font-size: 14.8px;
  margin-top: 12px;
}

/* Rich page hero (used by licences.html top) */
.page-hero-rich {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(204,0,0,.22), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(0,51,102,.55), transparent 60%),
    linear-gradient(180deg, #0b1c3d 0%, #061127 100%);
  padding: 72px 0 84px;
  overflow: hidden;
}
.page-hero-rich::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.page-hero-rich .container { position: relative; z-index: 1; text-align: center; }
.page-hero-rich .hero-kicker {
  color: #ffc8c8;
  background: rgba(204,0,0,.22);
  border: 1px solid rgba(255,255,255,.18);
  margin-bottom: 20px;
}
.page-hero-rich h1 {
  color: #fff;
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.08;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.page-hero-rich p {
  color: #dfe6f4;
  font-size: 17px;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

/* CTA phone link polish */
.cta-phone {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  font-weight: 700;
}
.cta-phone:hover { color: #ffd6d6; }

/* CTA section polish (stronger, more premium) */
.cta-section {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(135deg, #CC0000 0%, #8a0000 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.3px;
}
.cta-section .btn {
  padding: 14px 38px;
  font-size: 15px;
  border-radius: 100px;
  box-shadow: 0 14px 32px -12px rgba(0,0,0,.4);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.cta-section .btn:hover { transform: translateY(-2px) scale(1.02); }

/* Hero: 3 button row cleaner */
.hero-buttons .btn-hero + .btn-hero { margin-left: 0; }

/* Mobile tweaks for new components */
@media (max-width: 900px) {
  .howto-grid { grid-template-columns: 1fr; }
  .welcome-band { padding: 50px 0 20px; }
  .page-hero-rich { padding: 56px 0 64px; }
}

/* ============================================
   v3 polish: unify card photos + premium micro-interactions
   ============================================ */

/* Unify Lead Connector fallback photos with Gemini studio style via CSS filter */
.license-photo[src*="leadconnectorhq.com"] {
  filter: saturate(.92) brightness(1.06) contrast(1.02) drop-shadow(0 12px 20px rgba(10,18,36,.2));
  mix-blend-mode: multiply;
  background: transparent;
}
/* Gemini PNGs already feel studio, lighter drop shadow only */
.license-photo[src$=".png"],
.license-photo[src*="media/trucks/"] {
  mix-blend-mode: normal;
  filter: drop-shadow(0 12px 20px rgba(10,18,36,.2));
}

/* Section title accent underline */
.section-title h2 {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 14px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: #CC0000;
  border-radius: 2px;
}

/* Hero scroll cue — animated chevron at bottom */
.hero-parallax::after {
  content: '';
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 14px;
  z-index: 4;
  pointer-events: none;
}
.hero-parallax::before {
  content: '';
  position: absolute;
  bottom: 34px;
  left: 50%;
  width: 3px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollHint 1.8s ease-in-out infinite;
  z-index: 5;
  pointer-events: none;
}
@keyframes scrollHint {
  0%   { transform: translate(-50%, 0); opacity: 0; }
  30%  { opacity: 1; }
  70%  { transform: translate(-50%, 14px); opacity: 1; }
  100% { transform: translate(-50%, 18px); opacity: 0; }
}

/* Stats: animated count-in shimmer stronger on visible */
.stats-bar .stat-item {
  transition: transform .5s cubic-bezier(.2,.7,.1,1);
}
.stats-bar .stat-item.visible { transform: translateY(0); }
.stats-bar .stat-item h3 {
  position: relative;
  font-size: 44px;
  letter-spacing: -1px;
}

/* Course tagline refinement */
.license-tagline {
  font-size: 13.5px;
  letter-spacing: .3px;
  color: #5f6368;
  font-weight: 600;
  text-transform: none;
}

/* Card subtle animated sheen on hover */
.license-card {
  position: relative;
  isolation: isolate;
}
.license-card::after {
  display: none;
  z-index: 2;
}
.license-card:hover::after {
  transform: translateX(120%);
}

/* Pill button hover lift with glow tail */
.license-pill-btn {
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}
.license-card:hover .license-pill-btn {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -8px rgba(13,90,184,.55);
}

/* Top-bar polish with premium separator */
.top-bar {
  background: linear-gradient(90deg, #CC0000 0%, #a00000 50%, #003366 100%);
  letter-spacing: .2px;
}

/* CTA button in red bands — warmer glow */
.cta-section .btn {
  position: relative;
  overflow: hidden;
}
.cta-section .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,200,150,.35), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}
.cta-section .btn:hover::before { opacity: 1; }

/* Footer premium touch — top accent border with brand gradient */
.footer {
  border-top: 3px solid transparent;
  background:
    linear-gradient(var(--footer-bg), var(--footer-bg)) padding-box,
    linear-gradient(#003366, #003366) border-box;
}

/* Welcome band soft watermark */
.welcome-band {
  position: relative;
  overflow: hidden;
}
.welcome-band::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(204,0,0,.06), transparent 70%);
  pointer-events: none;
}
.welcome-band::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,51,102,.06), transparent 70%);
  pointer-events: none;
}

/* FAQ summary typography refinement */
.faq-item summary {
  font-size: 16px;
  letter-spacing: -.1px;
}

/* Navbar scroll-shadow when scrolled */
.navbar.scrolled {
  box-shadow: 0 6px 20px -12px rgba(10,18,36,.25);
}

/* ============================================
   v4 polish: elevate hero + refined buttons + editorial typography
   ============================================ */

/* Bigger, bolder hero H1 */
.hero-parallax .hero-content h1 {
  font-size: clamp(44px, 7vw, 72px);
  letter-spacing: -1.2px;
  line-height: 1.02;
  font-weight: 700;
  margin-bottom: 26px;
}
.hero-accent {
  color: #fff;
  display: inline-block;
}
.hero-parallax .hero-content p {
  font-size: 20px;
  line-height: 1.6;
  color: #eef2fc;
  max-width: 680px;
  margin: 0 auto 36px;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}

/* Premium hero CTAs */
.hero-buttons {
  gap: 14px;
}
.btn-hero.btn-primary {
  background: linear-gradient(135deg, #e11515 0%, #a00000 100%);
  border: none;
  padding: 16px 34px;
  font-size: 15px;
  letter-spacing: 1px;
  box-shadow: 0 16px 36px -10px rgba(204,0,0,.6), inset 0 1px 0 rgba(255,255,255,.25);
  position: relative;
  overflow: hidden;
}
.btn-hero.btn-primary::after {
  display: none;
}
.btn-hero.btn-primary:hover::after {
  transform: translateX(120%);
}
.btn-hero.btn-outline {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 16px 30px;
  font-size: 14.5px;
  letter-spacing: .8px;
  backdrop-filter: blur(8px);
  transition: background .3s ease, border-color .3s ease, transform .2s ease;
}
.btn-hero.btn-outline:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
}

/* Hero review chip lifted & refined */
.hero-review-chip {
  margin-top: 34px;
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .3px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.97);
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.45);
}

/* Kicker refined — fade lines animate on page load */
.hero-kicker::before,
.hero-kicker::after {
  animation: kickerLineIn 1.2s cubic-bezier(.2,.7,.1,1) .2s both;
  transform: scaleX(0);
  transform-origin: right center;
}
.hero-kicker::after { transform-origin: left center; }
@keyframes kickerLineIn {
  to { transform: scaleX(1); }
}
.hero-kicker .hero-kicker-star {
  animation: starPop .8s cubic-bezier(.2,.9,.2,1.3) .8s both;
  opacity: 0;
  transform: rotate(45deg) scale(0);
}
@keyframes starPop {
  to { opacity: 1; transform: rotate(45deg) scale(1); }
}

/* Stats — increase visual weight */
.stats-bar { padding: 50px 0; }
.stats-grid { gap: 30px; }
.stat-item h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 52px !important;
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}
.stat-item p {
  font-size: 13.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .85;
  font-weight: 600;
}

/* Section title — larger, tighter */
.section-title { margin-bottom: 48px; }
.section-title h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  letter-spacing: -.6px;
  padding-bottom: 22px;
}
.section-title p {
  font-size: 17.5px;
  line-height: 1.65;
  color: #5f6c85;
  max-width: 640px;
  margin: 0 auto;
}
.section-title h2::after {
  width: 72px;
  height: 3px;
}

/* Welcome band premium */
.welcome-inner h2 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -.6px;
}
.welcome-inner .eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: #CC0000;
  position: relative;
  padding: 0 28px;
  margin-bottom: 22px;
}
.welcome-inner .eyebrow::before,
.welcome-inner .eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  opacity: .5;
}
.welcome-inner .eyebrow::before { left: 0; }
.welcome-inner .eyebrow::after { right: 0; }

/* Courses CTA section — keep red band, tighten copy */
.courses-cta .btn {
  padding: 16px 40px;
  font-size: 14.5px;
  letter-spacing: 1.2px;
  font-weight: 700;
  background: linear-gradient(135deg, #e11515 0%, #a00000 100%);
  border: none;
  box-shadow: 0 14px 32px -10px rgba(204,0,0,.55);
}

/* Feature card polish */
.feature-card {
  border-radius: 18px;
  padding: 34px 26px;
  border: 1px solid #e9edf7;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  background: #fff;
}
.feature-card:hover {
  border-color: #d9e2ff;
  box-shadow: 0 22px 42px -18px rgba(10,18,36,.22);
}
.feature-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(204,0,0,.10), rgba(0,51,102,.08));
  margin-bottom: 20px;
}
.feature-icon svg {
  width: 30px;
  height: 30px;
}
.feature-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  letter-spacing: -.2px;
}
.feature-card p {
  font-size: 14.8px;
  line-height: 1.65;
  color: #5f6c85;
}

/* CTA section — editorial redesign */
.cta-section {
  padding: 88px 0;
}
.cta-section h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -.6px;
  line-height: 1.08;
  margin-bottom: 18px;
  color: #fff;
}
.cta-section p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 28px;
  color: rgba(255,255,255,.92);
}
.cta-section .btn {
  padding: 16px 44px;
  font-size: 15px;
  letter-spacing: 1.4px;
  font-weight: 700;
  background: #fff;
  color: #CC0000;
  border: none;
  border-radius: 100px;
  box-shadow: 0 18px 38px -12px rgba(0,0,0,.45);
}
.cta-section .btn:hover {
  background: #fff;
  color: #003366;
  transform: translateY(-3px) scale(1.03);
}

/* Footer refinement */
.footer { padding: 60px 0 0; }
.footer-col h4 {
  font-size: 15.5px;
  letter-spacing: .5px;
  font-family: inherit;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
}
.footer-col a { font-size: 14.2px; }
.footer-col a:hover { color: #1f7df2; }
.footer-bottom { padding: 20px 0; font-size: 12.5px; }

/* Section spacing rhythm */
.section { padding: 80px 0; }

/* FAQ: more generous spacing */
.faq-item { padding: 20px 26px; }
.faq-item summary { font-size: 16px; }

/* Suburb chip premium */
.suburb-chip {
  background: #fff;
  border: 1.5px solid #e5edff;
  padding: 16px 20px;
  font-size: 14.5px;
  letter-spacing: .3px;
  transition: transform .2s ease, border-color .25s ease, box-shadow .25s ease, color .2s ease;
}
.suburb-chip:hover {
  border-color: #CC0000;
  color: #CC0000;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -12px rgba(204,0,0,.3);
}

/* Reviews section padding */
.reviews-section { padding: 80px 0 70px; }

/* Disable the hero scroll-cue pseudo-elements if anything leaked through */
.hero-parallax::after,
.hero-parallax::before {
  content: none !important;
}

/* ============================================
   v5: smoother reveals + mobile stiffness (no horizontal bounce, pinch zoom allowed)
   ============================================ */

/* Smoother reveal animations — longer, more graceful easing */
.reveal {
  transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1) !important;
}
.reveal.reveal-left { transform: translate3d(-52px, 0, 0); }
.reveal.reveal-right { transform: translate3d(52px, 0, 0); }
.reveal.reveal-up { transform: translate3d(0, 40px, 0); }
.reveal.reveal-scale { transform: scale(.92); }
.reveal.visible {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

/* More refined stagger for grids */
.license-grid > .reveal:nth-child(1) { transition-delay: .06s; }
.license-grid > .reveal:nth-child(2) { transition-delay: .16s; }
.license-grid > .reveal:nth-child(3) { transition-delay: .26s; }
.license-grid > .reveal:nth-child(4) { transition-delay: .10s; }
.license-grid > .reveal:nth-child(5) { transition-delay: .20s; }
.license-grid > .reveal:nth-child(6) { transition-delay: .30s; }

.features-grid > .reveal:nth-child(1) { transition-delay: .08s; }
.features-grid > .reveal:nth-child(2) { transition-delay: .18s; }
.features-grid > .reveal:nth-child(3) { transition-delay: .28s; }
.features-grid > .reveal:nth-child(4) { transition-delay: .38s; }

.howto-grid > .reveal:nth-child(1) { transition-delay: .08s; }
.howto-grid > .reveal:nth-child(2) { transition-delay: .22s; }
.howto-grid > .reveal:nth-child(3) { transition-delay: .36s; }

.faq-list > .reveal:nth-child(odd) { transition-delay: .06s; }
.faq-list > .reveal:nth-child(even) { transition-delay: .14s; }

/* v8: NO overflow rules on html/body — default scroll behaviour. Sections with decorative pseudo-elements use `overflow: clip` which does NOT create scroll containers, so the wheel event bubbles up to the window as expected. */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  -webkit-overflow-scrolling: touch;
}
img { -webkit-user-drag: none; }

/* Mobile polish — tighter spacing, bigger tap targets */
@media (max-width: 768px) {
  .hero-parallax { min-height: 560px; padding: 80px 0 70px; }
  .hero-parallax .hero-content h1 { font-size: 38px; line-height: 1.05; letter-spacing: -.5px; }
  .hero-parallax .hero-content p { font-size: 17px; margin-bottom: 26px; }
  .hero-kicker { font-size: 11px; letter-spacing: 2.2px; gap: 10px; }
  .hero-kicker::before, .hero-kicker::after { width: 28px; }
  .hero-kicker .hero-kicker-star { width: 6px; height: 6px; }
  .hero-buttons { gap: 10px; }
  .btn-hero { padding: 14px 22px; font-size: 13.5px; width: 100%; max-width: 280px; }
  .hero-review-chip { font-size: 12.5px; padding: 10px 18px; }

  .stats-bar { padding: 40px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item h3 { font-size: 38px !important; }
  .stat-item p { font-size: 12px; letter-spacing: 1px; }

  .section { padding: 56px 0; }
  .section-title { margin-bottom: 32px; }
  .section-title h2 { font-size: 26px; padding-bottom: 16px; }
  .section-title p { font-size: 15.5px; padding: 0 12px; }
  .section-title h2::after { width: 56px; height: 2.5px; }

  .welcome-inner h2 { font-size: 26px; }
  .welcome-inner p { font-size: 15.5px; padding: 0 6px; }

  .license-grid { gap: 16px; }
  .license-card { padding: 18px 18px 22px; }
  .license-photo-wrap { height: 160px; margin-bottom: 16px; }
  .license-name { font-size: 15.5px; margin-bottom: 16px; }
  .license-pill-btn { padding: 11px 24px; font-size: 12.5px; }

  .feature-card { padding: 28px 22px; }
  .feature-card h3 { font-size: 17px; }
  .howto-card { padding: 26px 22px; }
  .howto-card h3 { font-size: 18px; }
  .suburb-grid { grid-template-columns: repeat(2, 1fr); }
  .suburb-chip { padding: 13px 16px; font-size: 13.5px; }

  .faq-item { padding: 16px 20px; }
  .faq-item summary { font-size: 15px; padding-right: 34px; }

  .cta-section { padding: 60px 0; }
  .cta-section h2 { font-size: 28px; padding: 0 10px; }
  .cta-section p { font-size: 15.5px; padding: 0 10px; }
  .cta-section .btn { padding: 14px 34px; font-size: 13.5px; }

  .footer { padding: 48px 0 0; }
  .footer-col h4 { font-size: 14px; }
  .footer-col a { font-size: 13.5px; }

  .top-bar { font-size: 12.5px; padding: 7px 0; }
  .nav-logo-image { max-height: 54px; }

  .navbar .container { padding: 10px 18px; }

  /* Tap target minimums */
  .btn, .nav-links a, .license-pill-btn, .suburb-chip, .faq-item summary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .hero-parallax .hero-content h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .license-grid { grid-template-columns: 1fr; }
  .suburb-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* Prevent unwanted horizontal overflow (safely — no `clip` which can trap scroll) */
.container { max-width: 100%; }
/* `overflow-x: hidden` on html + body is enough; avoid per-section clip which can interfere with scroll chaining */

/* ============================================
   v6: definitive scroll fix + contain decorative overflow
   ============================================ */

/* v8: scroll fix — `overflow: clip` does NOT create a scroll container, so wheel events bubble to window */
html, body {
  margin: 0;
  padding: 0;
  /* No overflow rules — use browser default so wheel scrolls the window naturally */
}

/* Decorative sections use `clip` (no scroll container) — wheel events reach the window */
.hero,
.hero-parallax,
.welcome-band,
.reviews-section,
.cta-section,
.page-hero,
.page-hero-rich {
  overflow: clip;
  position: relative;
}

/* Navbar sticks normally with default overflow */
.navbar { overflow: visible; position: sticky; top: 0; z-index: 100; }

/* Allow sticky navbar to still stick (overflow:hidden ancestors kill position:sticky) */
.navbar {
  overflow: visible;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Nav dropdown menu positioned absolutely — not clipped by nav overflow */
.nav-dd-menu {
  position: absolute;
}

/* Stats grid was 32-52px too wide on narrow viewports — tighten gap */
.stats-grid { max-width: 100%; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Welcome-band watermarks: constrain so they never leak */
.welcome-band::before,
.welcome-band::after {
  max-width: 50%;
}

/* Hero bg scale creates small horizontal overflow — that's fine, hero:overflow hidden clips it */

/* ============================================
   v9: clean card photos + no parallax + refined hero gradients
   ============================================ */

/* Card photo well — clean white, no blue tint, no drop shadow pad */
.license-photo-wrap {
  height: 240px !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  margin-bottom: 20px !important;
}
.license-photo-wrap::before,
.license-photo-wrap::after { display: none !important; }

/* Photos larger + sharper rendering */
.license-photo {
  max-height: 220px !important;
  max-width: 100% !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: none !important;
  mix-blend-mode: normal !important;
}
.license-card:hover .license-photo {
  transform: none !important;
}

/* Kill the scroll-in animation on license cards (user doesn't want the animation) */
.license-card.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: box-shadow .25s ease, border-color .2s ease;
}
.license-card:hover {
  transform: translateY(-2px);
}

/* Kill the card sheen animation on hover */
.license-card::after { display: none !important; }

/* Hero: static background, no parallax movement */
.hero-parallax .hero-bg {
  transform: none !important;
  transition: none !important;
  background-attachment: scroll !important;
}

/* Refined hero overlay — deeper navy with subtle warmth, more cinematic */
.hero-parallax .hero-bg::after {
  background:
    radial-gradient(ellipse at 25% 30%, rgba(180,10,10,.18), transparent 55%),
    radial-gradient(ellipse at 75% 85%, rgba(8,30,70,.55), transparent 60%),
    linear-gradient(180deg, rgba(4,10,24,.72) 0%, rgba(4,10,24,.82) 100%) !important;
}

/* About hero — tighter gradient, no harsh red edges */
.about-hero {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(180,10,10,.15), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(8,30,70,.55), transparent 60%),
    linear-gradient(180deg, #0a1528 0%, #040a18 100%) !important;
}

/* Licences page hero — same pro tone */
.page-hero-rich {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(180,10,10,.14), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(8,30,70,.5), transparent 60%),
    linear-gradient(180deg, #0a1528 0%, #040a18 100%) !important;
}

/* Hero h1 accent: solid white */
.hero-accent {
  color: #fff !important;
}

/* ============================================
   v10: show full photos (no crop), transparent card wells, white-with-glow accent
   ============================================ */

/* Card photo container: transparent, let photo breathe at full aspect ratio */
.license-photo-wrap {
  height: auto !important;
  min-height: 180px;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 10px 0 !important;
  margin-bottom: 18px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.license-photo-wrap::before,
.license-photo-wrap::after { display: none !important; }

/* Photo: full width, natural aspect, crisp — no crop */
.license-photo {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  max-width: 100% !important;
  object-fit: contain !important;
  image-rendering: auto;
  filter: none !important;
  mix-blend-mode: normal !important;
  display: block;
}

/* Kill every card animation except a gentle hover lift */
.license-card.reveal,
.license-card {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease !important;
}
.license-card::after,
.license-card::before { display: none !important; }
.license-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 18px 36px -14px rgba(10,18,36,.22) !important;
}
.license-card:hover .license-photo {
  transform: none !important;
}

/* Hero accent: clean white text — no glow halo */
.hero-accent {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  filter: none !important;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}

/* ============================================
   v11: Premium footer — editorial typography, spacing, hover states, gradient rule
   ============================================ */

.footer {
  background:
    radial-gradient(ellipse at 18% 0%, rgba(204,0,0,.10), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(255,140,70,.06), transparent 60%),
    linear-gradient(180deg, #0a1528 0%, #040a18 100%) !important;
  padding: 72px 0 0 !important;
  color: #c4cbde !important;
  border-top: none !important;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: #003366;
}

.footer-grid {
  gap: 48px !important;
  margin-bottom: 48px !important;
  grid-template-columns: 1.4fr 1fr 1fr 1fr !important;
}

.footer-col h4 {
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 2.4px !important;
  text-transform: uppercase !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  margin-bottom: 22px !important;
  position: relative;
  padding-bottom: 14px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 28px;
  height: 2px;
  background: #CC0000;
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 10px !important;
}
.footer-col ul li a {
  color: #9aa3bd !important;
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: .1px;
  transition: color .2s ease, padding-left .2s ease;
  position: relative;
  display: inline-block;
}
.footer-col ul li a:hover {
  color: #ffffff !important;
  padding-left: 8px;
}
.footer-col ul li a::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  width: 0;
  height: 1px;
  background: #CC0000;
  transition: width .25s ease;
  transform: translateY(-50%);
}
.footer-col ul li a:hover::before {
  width: 6px;
}

.footer-contact-item {
  margin-bottom: 14px !important;
  align-items: center !important;
}
.footer-contact-item svg {
  width: 16px !important;
  height: 16px !important;
  fill: #CC0000 !important;
  margin-top: 0 !important;
  opacity: .85;
}
.footer-contact-item p,
.footer-contact-item a {
  color: #c4cbde !important;
  font-size: 14px !important;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: .1px;
}
.footer-contact-item a:hover {
  color: #ffffff !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06) !important;
  padding: 22px 0 !important;
  font-size: 12.5px !important;
  color: #6d7690 !important;
  letter-spacing: .3px;
  background: transparent !important;
}
.footer-bottom a {
  color: #1f7df2 !important;
  font-weight: 600;
}
.footer-bottom a:hover {
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
  .footer { padding: 48px 0 0 !important; }
  .footer-col h4 { font-size: 11.5px !important; letter-spacing: 2px !important; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* ============================================
   v12: Legal pages (privacy + terms) editorial typography
   ============================================ */

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}
.legal-updated {
  display: inline-block;
  padding: 8px 16px;
  background: #f4f7ff;
  border: 1px solid #e5edff;
  border-radius: 100px;
  color: #5f6c85;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  margin-bottom: 30px;
}
.legal-card {
  background: #fff;
  border: 1px solid #eaeefc;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(10,18,36,.04);
  transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.legal-card:hover {
  border-color: #d9e2ff;
  box-shadow: 0 12px 28px -14px rgba(10,18,36,.18);
  transform: translateY(-2px);
}
.legal-card h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  color: #0e1b3d;
  margin: 0 0 12px;
  letter-spacing: -.2px;
  position: relative;
  padding-bottom: 10px;
}
.legal-card h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 34px;
  height: 2px;
  background: #CC0000;
  border-radius: 2px;
}
.legal-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #4a5066;
  margin: 0 0 10px;
}
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul {
  margin: 10px 0 0;
  padding-left: 22px;
}
.legal-card ul li {
  font-size: 14.5px;
  line-height: 1.65;
  color: #4a5066;
  padding: 4px 0;
  list-style: disc;
}
.legal-card a {
  color: #CC0000;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(204,0,0,.35);
  transition: color .2s ease, border-color .2s ease;
}
.legal-card a:hover {
  color: #003366;
  border-bottom-color: #003366;
}
.legal-card strong { color: #0e1b3d; font-weight: 700; }
.legal-card em { color: #5f6c85; }

@media (max-width: 600px) {
  .legal-card { padding: 22px 22px; border-radius: 14px; }
  .legal-card h2 { font-size: 18px; }
}

/* Footer bottom: AMRIX link now white with subtle animated underline */
.footer-bottom a[href*="amrix.com"] {
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: .5px;
  position: relative;
  padding: 0 2px;
  transition: color .2s ease;
  border-bottom: none !important;
}
.footer-bottom a[href*="amrix.com"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: #1f7df2;
  opacity: 0;
  transition: opacity .25s ease;
}
.footer-bottom a[href*="amrix.com"]:hover {
  color: #1f7df2 !important;
}
.footer-bottom a[href*="amrix.com"]:hover::after {
  opacity: 1;
}

/* ============================================
   v13: Mobile CTA hierarchy — CALL becomes primary on phones
   ============================================ */
@media (max-width: 768px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn-cta-call {
    order: -1;
    background: #CC0000 !important;
    color: #fff !important;
    border-color: #CC0000 !important;
    box-shadow: 0 10px 28px -10px rgba(204,0,0,.55);
    backdrop-filter: none !important;
  }
  .hero-buttons .btn-cta-book {
    background: rgba(255,255,255,.06) !important;
    border: 1.5px solid rgba(255,255,255,.4) !important;
    color: #fff !important;
    box-shadow: none !important;
  }
}

/* Call float scales down on small phones to avoid crowding the SMS float */
@media (max-width: 420px) {
  .call-float { width: 54px; height: 54px; bottom: 88px; right: 18px; }
  .call-float svg { width: 26px; height: 26px; }
  .sms-float { right: 18px; bottom: 22px; }
}

/* ============================================
   v14: Accessibility — keyboard focus rings (WCAG 2.4.7)
   ============================================ */
:where(a, button, [role="button"], input, textarea, select, summary, details):focus-visible {
  outline: 2px solid #CC0000;
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible,
.btn-hero:focus-visible,
.btn-nav:focus-visible {
  outline-offset: 4px;
}
.sms-float:focus-visible,
.call-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
/* Hide outline for mouse clicks; only show for keyboard navigation */
:where(a, button):focus:not(:focus-visible) { outline: none; }
