html, body {
    width: 100%;
    overflow-x: hidden;
}
/* INTRO WINDOW ANIMATION */
.window {
  position: fixed;
  inset: 0;
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
  background:white;
  animation: openWindow 1.8s ease-out forwards, fadeOut 0.8s ease-out forwards;
  animation-delay: 0s,1.8s;
}
.window img {
  width:200px;
  max-width:65%;
  opacity:0;
  transform:translateY(40px);
  animation: logoFadeIn 1.3s ease-out forwards;
  animation-delay:0.4s;
}
/* ANIMATIONS */
@keyframes openWindow {0%{clip-path:inset(100% 0 0 0); background: blueviolet;}100%{clip-path:inset(0 0 0 0); background: white;}}
@keyframes fadeOut {to{opacity:0;visibility:hidden;}}
@keyframes logoFadeIn {to{opacity:1;transform:translateY(0);}}
@keyframes fadeUp {to{opacity:1;transform:translateY(0);}}

/* NAVIGATION */
nav {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 20px;
  background:blueviolet;
  position:sticky;
  top:0;
  z-index:1000;
}
nav img { 
    width:180px;
max-width: 100%;
height: auto; }
nav ul { display:flex; list-style:none; gap:25px; }
nav ul li a { color:#fff; text-decoration:none; font-weight:500; transition: color 0.3s; }
nav ul li a:hover { color:#ffce00; }
.menu-toggle { display:none; cursor:pointer; font-size:1.8rem; color:#fff; }

/* MOBILE MENU SHOW */
nav ul.show { display:flex; flex-direction:column; gap:15px; background: blueviolet; position:absolute; top:60px; right:30px; padding:15px; border-radius:10px; z-index:999; }

/* RESET */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Poppins', sans-serif; background:#f5f5f5; overflow-x:hidden; }

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    height: 500px; /* adjust as needed */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('https://astonrepairsct.co.za/apps.jpg'); /* your optimized image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35); /* overlay for readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    background: rgba(0,0,0,0.4); /* optional slightly darker box */
    padding: 20px;
    border-radius: 10px;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-btn {
    background: #ffce00;
    color: #000;
    padding: 10px 25px;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s, transform 0.3s;
}

.hero-btn:hover {
    background: #f4b400;
    transform: translateY(-3px);
}

/* ================= RESPONSIVE HERO ================= */
@media (max-width: 768px) {
    .hero {
        height: 350px; /* smaller on mobile */
    }
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

/* Base floating button style */
.floating-icon {
    position: fixed;
    bottom: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    z-index: 999;
    transition: 0.3s ease;
    opacity: 1;
}

/* Hidden state (before animation ends) */
.hidden-btn {
    opacity: 0;
    transform: translateY(20px);
}

/* Call button - left */
.call-btn {
    left: 20px;
    background: linear-gradient(135deg, #ff6600, #cc5200);
}

/* WhatsApp button - right */
.whatsapp-btn {
    right: 20px;
    background: linear-gradient(135deg, #25D366, #1ebe5d);
}

/* Hover effect */
.floating-icon:hover {
    transform: scale(1.1);
}

/* WhatsApp pulse animation */
.whatsapp-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.floating-icon i {
    font-size: 28px;
}

.services-section {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.service-card h3 {
    margin: 15px 0 10px;
    font-size: 22px;
}

.service-card p {
    font-size: 15px;
    color: black;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-link {
    text-decoration: none;
    color: inherit;
}

/* About Section */
.about-home {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
}

.about-home h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

/* Benefits Grid */
.home-benefits {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.benefit-card i {
    font-size: 36px;
    color: #ff6600;
    margin-bottom: 10px;
}

.benefit-card h3 {
    margin-bottom: 10px;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

/* Responsive for Benefits Grid */
@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Testimonials Slideshow */
.testimonials {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.testimonial-slideshow {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial {
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial h4 {
    font-weight: bold;
    color: #b34700;
}

/* Service Areas */
.service-areas {
    padding: 40px 20px;
    text-align: center;
    background: #f9f9f9;
}

/* CTA Section */
.home-cta {
    padding: 60px 20px;
    text-align: center;
    background: #cc5200;
    color: #ffffff
}

.home-cta a.btn-cta {
    display: inline-block;
    margin: 15px 10px;
    padding: 14px 30px;
    background-color: white;
    color: #b34700;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s ease;
}

.home-cta p {
    color: #ffffff;       /* ensures all paragraph text passes contrast */
    font-weight: bold;    /* optional: improves readability */
    font-size: 18px;
}

.home-cta a.btn-cta:hover {
    background-color: #ffe6d9;
}

.brands-section {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.brands-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.brands-carousel {
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.brands-track {
    display: flex;
    gap: 20px;
}

.brand-slide {
    flex: 0 0 auto;
    width: 120px; /* match img width */
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Animation */
@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Adjust for repeated slides */
}

/* Responsive */
@media (max-width: 768px) {
    .brand-slide {
        width: 80px;
        margin: 0 10px;
    }
}

.booking-form-section {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 15px;
}

#quoteForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#quoteForm input,
#quoteForm select,
#quoteForm textarea {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
}

#quoteForm label {
    font-weight: 600;
    margin-top: 10px;
}

#quoteForm .form-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 10px;
}

#quoteForm .form-buttons button {
    flex: 1;
    min-width: 150px;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

#quoteForm .form-buttons button[type="submit"] {
    background: #ffce00;
    color: #000;
}

#quoteForm .form-buttons button#whatsappBtn {
    background: #1ebe5d;
color: hsl(0, 64%, 2%);
font-weight: 700;
}

@media (max-width: 500px) {
    #quoteForm .form-buttons {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
  }
}

.footer {
  background-color: #111;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
}

.footer-about,
.footer-contact {
  flex: 1 1 300px;
  margin-bottom: 20px;
}

.footer h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.footer p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.footer a {
  color: #f4b400;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 13px;
}

.form-intro {
  text-align: center;
  margin: 40px 20px 20px;
}

.form-intro h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.form-intro p {
  font-size: 16px;
  color: #333;
  max-width: 600px;
  margin: auto;
  line-height: 1.6;
}

/* ABOUT HERO */
.about-hero {
  background: #111;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.about-hero h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.about-hero p {
  font-size: 18px;
  max-width: 600px;
  margin: auto;
}

/* ABOUT SECTION */
.about-section {
  padding: 60px 20px;
}

.about-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 500px;
}

.about-text h2 {
  margin-bottom: 15px;
  font-size: 26px;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: #555;
}

.about-image {
  flex: 1 1 400px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
}

/* VALUES SECTION */
.about-values {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.values-container {
  max-width: 1100px;
  margin: auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.value-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.value-card h3 {
  margin-bottom: 10px;
}

/* CTA SECTION */
.about-cta {
  padding: 60px 20px;
  text-align: center;
}

.about-cta h2 {
  margin-bottom: 15px;
}

.about-cta p {
  margin-bottom: 20px;
}

.cta-btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: green;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.cta-btn:hover {
  background-color: #d99c00;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* CONTACT HERO */
.contact-hero {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}

.contact-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.contact-hero p {
  font-size: 18px;
}

/* CONTACT SECTION */
.contact-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.contact-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

/* CONTACT INFO */
.contact-info {
  flex: 1 1 400px;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.contact-info a {
  color: #b34700;
  text-decoration: underline;
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* CONTACT FORM */
.contact-form {
  flex: 1 1 400px;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-form h2 {
  margin-bottom: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.contact-form button {
  padding: 12px;
  background-color: #f4b400;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

.contact-form button:hover {
  background-color: #d99c00;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
}

/* REVIEWS HERO */
.reviews-hero {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}

.reviews-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

/* REVIEWS SECTION */
.reviews-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.review-slider {
  position: relative;
  max-width: 800px;
  margin: auto;
}

.review {
  display: none;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.review.active {
  display: block;
}

.review p {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.review h4 {
  font-weight: bold;
  color: #555;
}

/* NAV BUTTONS */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #f4b400;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 5px;
}

.prev { left: -60px; }
.next { right: -60px; }

.prev:hover, .next:hover {
  background: #d99c00;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .prev, .next {
    left: 10px;
    right: 10px;
    position: static;
    margin: 10px;
  }
}