* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

/* HEADER */
header {
  background-color: #0f172a;
  padding: 16px 0;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.logo {
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
}


nav ul li a:hover {
  text-decoration: underline;
}

/* MAIN CONTENT */
/* --- Main Container --- */
main.container {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  color: #333;
}

/* --- Headings --- */
main h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
}

main h2 {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

/* --- Paragraphs --- */
main p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

/* --- Product Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* --- Individual Product Card --- */
.product-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.product-card h3 {
  font-size: 1.2rem;
  margin: 15px 0 10px;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
}

.product-card img {
  border-radius: 4px;
  margin-bottom: 10px;
}

/* --- Buttons --- */
.button {
  display: inline-block;
  background-color: #0073e6;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.button:hover {
  background-color: #005bb5;
}

/* --- Lists --- */
ul, ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

ul li, ol li {
  margin-bottom: 10px;
}

/* --- Sections --- */
section {
  margin-bottom: 50px;
}

/* --- Call-to-Action Section --- */
.cta {
  background-color: #f2f2f2;
  padding: 30px 20px;
  text-align: center;
  border-radius: 8px;
}

.cta h2 {
  margin-bottom: 15px;
}

.cta p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  main h1 {
    font-size: 2rem;
  }
  main h2 {
    font-size: 1.5rem;
  }
}


/* FOOTER */
footer {
  background-color: #020617;
  color: #cbd5f5;
  padding: 25px 0;
  margin-top: 40px;
}

footer a {
  color: #cbd5f5;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
/* ================================
   RESPONSIVE PATCH (SAFE MODE)
   ================================ */

/* Prevent overflow without altering layout */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Make media flexible (no style change) */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Container safety (keeps original widths) */
.container {
  width: 100%;
}

/* ---------- TABLET & BELOW ---------- */
@media (max-width: 992px) {

  /* Stack only when required */
  .row,
  .flex,
  .grid {
    flex-wrap: wrap;
  }

}

/* ---------- MOBILE ONLY ---------- */
@media (max-width: 768px) {

  /* Navigation safety — NO color or font changes */
  nav ul {
    flex-direction: column;
  }

  /* Avoid text overflow */
  h1, h2, h3, p {
    word-wrap: break-word;
  }

}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 576px) {

  /* Ensure sections don't overflow */
  section,
  article,
  main,
  footer {
    padding-left: 15px;
    padding-right: 15px;
  }

}
/* End of Responsive Patch */
/* ================================
    NAVIGATION STYLES
    ================================ */

/* Desktop nav */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

@media (max-width: 768px) {
  nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  nav ul li {
    margin: 0;
    text-align: center;
  }

  nav ul li a {
    font-size: 18px;
    padding: 8px 0;
  }
}

/* ================================
   HEADER & NAV MOBILE FIX
   ================================ */

/* Ensure header spans full width */
header {
  width: 100%;
  background: #0f172a; /* keep your existing color */
}

/* Center nav content */
nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 15px;
}

/* Logo + hamburger alignment */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Fix hamburger position */
.hamburger {
  margin-left: auto;
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 768px) {

  nav {
    flex-wrap: wrap;
  }

  /* Menu dropdown */
  nav ul {
    width: 100%;
    margin-top: 10px;
  }

  nav ul li {
    padding: 8px 0;
  }

}
/* End of Header & Nav Mobile Fix */
/* This part ensures the button is invisible on desktop */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

#hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
}

/* This part handles the mobile transformation */
@media (max-width: 768px) {
  #hamburger {
    display: flex; /* Button appears on mobile */
  }

  nav ul {
    display: none; /* Menu hides on mobile */
    flex-direction: column;
    width: 100%;
    background-color: #0f172a; /* Matches your header */
    position: absolute;
    top: 70px; /* Adjust this if your header is taller/shorter */
    left: 0;
    padding: 20px 0;
  }

  /* This is what your JavaScript triggers */
  nav ul.active {
    display: flex !important;
  }
}
#hamburger {
  display: none; /* Desktop */
  z-index: 9999; /* Put it on top of everything */
  position: relative;
}

@media (max-width: 768px) {
  #hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
  }

  /* Make sure the menu doesn't block the button */
  .nav-menu {
    display: none !important;
  }

  .nav-menu.active {
    display: flex !important;
  }
}
/* Blog Grid */
/* The main container for all posts */
.blog-wrapper {
  display: flex;
  flex-direction: column; /* This keeps posts stacked on top of each other */
  gap: 30px; /* Space between the cards */
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* The individual Blog Card */
.blog-card {
  display: flex; /* Makes Image and Content side-by-side */
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-5px); /* Subtle lift effect */
}

/* Image Section */
.blog-image {
  flex: 0 0 350px; /* Fixed width for the image part on desktop */
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills the space without stretching */
  display: block;
}

/* Text Content Section */
.blog-content {
  flex: 1; /* Takes up the rest of the horizontal space */
  padding: 25px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-content h2 {
  margin: 0 0 15px 0;
  font-size: 1.6rem;
  line-height: 1.3;
}

.blog-content h2 a {
  text-decoration: none;
  color: #333;
}

.blog-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  /* Limits text to 3 lines to keep cards uniform */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  color: #6366f1;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
}

/* Responsive: Mobile View */
@media (max-width: 850px) {
  .blog-card {
    flex-direction: column; /* Stacks image on top of text */
  }

  .blog-image {
    flex: 0 0 220px; /* Adjust height of image on mobile */
    width: 100%;
  }

  .blog-content {
    padding: 20px;
  }
  
  .blog-content h2 {
    font-size: 1.4rem;
  }
}
/* ===== Catalogue Page Only ===== */

.cat-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
}

.cat-title {
  font-size: 36px;
  margin-bottom: 10px;
}

.cat-intro {
  color: #555;
  max-width: 720px;
  margin-bottom: 32px;
}

/* Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Card */
.cat-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

/* Image */
.cat-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

/* Text */
.cat-card h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.cat-card p {
  color: #555;
  line-height: 1.6;
  margin-bottom: auto;
}

/* Button */
.cat-btn {
  margin-top: 14px;
  padding: 10px 14px;
  text-align: center;
  background: #0066cc;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.cat-btn:hover {
  background: #004fa3;
}
.faq-section {
  width: 100%;
  padding: 60px 20px;
}

.faq-wrapper {
  max-width: 900px;     /* Perfect reading width */
  margin: 0 auto;       /* Centers on desktop */
}

.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* FAQ item */
.faq-item {
  border-bottom: 1px solid #e5e5e5;
}

/* Question row */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Plus icon */
.faq-icon {
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

/* Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 0 20px 0;
  line-height: 1.7;
  color: #444;
}

/* Active state */
.faq-item.active .faq-answer {
  max-height: 600px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
@media (max-width: 768px) {
  .faq-section {
    padding: 40px 16px;
  }

  .faq-section h2 {
    font-size: 1.6rem;
  }

  .faq-question {
    font-size: 1rem;
  }
}
/* =========================
   HOMEPAGE ONLY STYLES
   ========================= */

.home-page {
  padding: 0 20px;
  color: #1f2933;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* HERO */
/* HERO WITH RESPONSIVE IMAGE */
.home-page .hero-image {
  position: relative;
  min-height: 420px;
  margin: 40px 0;
  border-radius: 24px;
  overflow: hidden;

  background-image: url("hero-car-detailing.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* DARK OVERLAY FOR READABILITY */
.home-page .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2, 6, 23, 0.85),
    rgba(15, 23, 42, 0.75)
  );
}

/* CONTENT ABOVE IMAGE */
.home-page .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 0 24px;
  max-width: 900px;
}

.home-page .hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}

.home-page .hero-content p {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .home-page .hero-image {
    min-height: 340px;
    border-radius: 16px;
  }

  .home-page .hero-content h1 {
    font-size: 1.9rem;
  }

  .home-page .hero-content p {
    font-size: 1rem;
  }
}

@media (min-width: 1440px) {
  .home-page .hero-image {
    min-height: 520px;
  }
}

/* TOPICS */
.home-page .topics {
  margin: 80px 0;
}

.home-page .topics h2 {
  text-align: center;
  margin-bottom: 40px;
}

.home-page .topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.home-page .topic-card {
  background: #f8fafc;
  padding: 28px;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-page .topic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* INSIGHTS */
.home-page .insights {
  margin: 80px 0;
}

.home-page .insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.home-page .insight-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 18px;
  border-left: 5px solid #2563eb;
}
/* INSIGHTS GRID – PREMIUM POPUP STYLE */
.home-page .insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

/* INDIVIDUAL INSIGHT BOX */
.home-page .insights-grid > * {
  position: relative;
  padding: 34px 30px;

  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);

  box-shadow:
    0 25px 50px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(255,255,255,0.2);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* HOVER – POPUP FEEL */
.home-page .insights-grid > *:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow:
    0 40px 80px rgba(15, 23, 42, 0.28),
    inset 0 0 0 1px rgba(255,255,255,0.25);
}

/* TITLE */
.home-page .insights-grid h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: #0f172a;
}

/* TEXT */
.home-page .insights-grid p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #334155;
}

/* SUBTLE AUTO-FOCUS ON LOAD */
@media (prefers-reduced-motion: no-preference) {
  .home-page .insights-grid > * {
    animation: insightLift 0.6s ease-out both;
  }

  @keyframes insightLift {
    from {
      opacity: 0;
      transform: translateY(18px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* MOBILE REFINEMENT */
@media (max-width: 640px) {
  .home-page .insights-grid {
    gap: 24px;
  }

  .home-page .insights-grid > * {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .home-page .insights-grid h3 {
    font-size: 1.2rem;
  }
}

/* TRUST */
.home-page .trust {
  background: #f1f5f9;
  padding: 60px 40px;
  border-radius: 24px;
  margin: 80px 0;
}

/* LATEST */
/* LATEST ARTICLES – 2x2 GRID */
.home-page .latest {
  margin: 100px 0;
}

.home-page .latest h2 {
  text-align: center;
  margin-bottom: 40px;
}

.home-page .latest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ARTICLE CARD */
/* HORIZONTAL ARTICLE CARD */
.home-page .latest-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-page .latest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.18);
}

/* THUMBNAIL */
/* 1:1 THUMBNAILS */
/* SIZE-LIMITED 1:1 THUMBNAILS */
.home-page .latest-card img {
  width: 100%;
  max-width: 180px;       /* limits visual size */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 16px auto 0;    /* centers image */
  border-radius: 14px;
}
@media (max-width: 640px) {
  .home-page .latest-card img {
    max-width: 140px;
    margin-top: 14px;
  }
}

/* TITLE */
.home-page .latest-card h3 {
  font-size: 1.05rem;
  padding: 18px 20px;
  line-height: 1.4;
}

.home-page .latest-card a {
  text-decoration: none;
  color: #0f172a;
}

.home-page .latest-card a:hover {
  color: #2563eb;
}
@media (max-width: 768px) {
  .home-page .latest-grid {
    grid-template-columns: 1fr;
  }

  .home-page .latest-card img {
    height: 180px;
  }
}


/* CTA */
.home-page .explore {
  text-align: center;
  margin: 100px 0;
}

.home-page .explore-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.home-page .explore-btn:hover {
  background: #1e40af;
}



