/* ========== Base & Typography ========== */
*{box-sizing:border-box}
html,body{margin:0;padding:0}

:root{
  --brand-red:#e60000;
  --text:#111;
  --muted:#4b5563;
  --card:#ffffff;
  --soft:#f7f7f7;
}

body{
  font-family:'Montserrat', sans-serif;
  font-weight:400;
  color:var(--muted);
  line-height:1.8;
  background:linear-gradient(to bottom,#f9f9f9 0%, #ffffff 60%);
  background-attachment:fixed;
}

h1,h2,h3,.products-heading,.menu a,.btn-products,.btn-read{
  font-family:'Montserrat', sans-serif;
}
h1,h2,h3{color:var(--text);font-weight:700;line-height:1.3;margin:0 0 .35em}

a{text-decoration:none;color:inherit}
ul,li{list-style:none;margin:0;padding:0}
.container{max-width:1400px;margin:0 auto;padding:0 15px}

/* ========== Header ========== */
.nav{
  display:flex;justify-content:space-between;align-items:center;
  padding:16px 0;border-bottom:1px solid #ececec;background:rgba(255,255,255,.92)
}
.brand img{height:220px;width:auto;display:block}
.menu{display:flex;gap:28px;margin-right:80px}
.menu a{color:#333;font-weight:600;font-size:16px;padding:8px 12px;border-radius:6px;transition:.2s}
.menu a:hover,.menu a.active{color:#fff;background:var(--brand-red)}

/* ========== Page Hero (default) & Generic Sections ========== */
.page-hero{padding:64px 15px 20px;text-align:center}
.page-hero h1{font-size:36px;font-weight:800;margin:0 0 8px;color:var(--brand-red)}
.page-hero p{font-size:18px;color:var(--muted)}
.page-section{padding:36px 15px}
.section-title{font-size:28px;font-weight:800;margin:0 0 16px}
.section-title.red{color:var(--brand-red)}
.bullets li{margin:8px 0;font-size:16px}

/* ========== HERO IMAGE (new) ========== */
.hero-image{
  position:relative;
  height:360px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  border-radius:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-overlay-text{
  background:rgba(0,0,0,.45);
  padding:20px 40px;
  border-radius:8px;
}
.hero-overlay-text h1{
  font-size:48px;
  font-weight:800;
  color:#fff;
  margin:0;
}

/* ========== Slideshow (Home) ========== */
.slideshow-section{background:#000}
.slideshow-container{
  max-width:1400px;position:relative;margin:0 auto;overflow:hidden;background:#000;
  border-radius:14px;box-shadow:0 12px 26px rgba(0,0,0,.18)
}
.slide{display:none}
.slide img{width:100%;height:500px;object-fit:cover}
.slide:first-child{display:block}
.fade{animation:fade 1s ease-in-out}
@keyframes fade{from{opacity:.4}to{opacity:1}}

.hero-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px}
.hero-text{color:#fff;max-width:70ch}
.hero-text h2{font-size:42px;font-weight:800;color:#000;margin:0 0 8px}
.hero-text p{font-size:18px;color:#fff}
.whatsapp-cta{position:absolute;right:18px;bottom:18px;background:#25D366;color:#fff;font-weight:700;padding:12px 16px;border-radius:999px}
.prev,.next{cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);padding:12px;color:#fff;background:rgba(0,0,0,.4);font-weight:700;font-size:24px;border:0;border-radius:6px;user-select:none;transition:background .25s ease}
.prev{left:10px}.next{right:10px}
.prev:hover,.next:hover{background:rgba(0,0,0,.8)}
.dots-container{text-align:center;padding:12px;background:#fff;border-radius:0 0 14px 14px}
.dot{cursor:pointer;height:12px;width:12px;margin:0 4px;background:#bbb;border-radius:50%;display:inline-block;transition:background-color .3s ease,transform .15s ease}
.active-dot,.dot:hover{background:var(--brand-red);transform:scale(1.05)}

/* ========== Products (Home) ========== */
.products-section{padding:64px 0 80px}
.products-heading{text-align:center;font-size:36px;font-weight:800;color:var(--brand-red);letter-spacing:.3px;margin-bottom:20px}
.products-heading .chev{font-size:26px;vertical-align:middle;color:#6fc179}
.products-heading .left{margin-right:10px}.products-heading .right{margin-left:10px}
.products-photos{display:flex;justify-content:center;flex-wrap:wrap;gap:28px;margin:12px 0 36px}
.products-photos img{width:300px;height:200px;object-fit:cover;border-radius:12px;box-shadow:0 6px 16px rgba(0,0,0,.15);background:#fff}
.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
@media (max-width:980px){.products-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.products-grid{grid-template-columns:1fr}}
.product-card{position:relative;background:var(--card);border-radius:16px;padding:26px 22px 60px;text-align:center;box-shadow:0 8px 22px rgba(0,0,0,.06)}
.product-card h3{font-size:22px;font-weight:700;margin:4px 0 6px}
.divider{margin:8px auto 12px;letter-spacing:6px;color:#c1c1c1}
.product-card p{font-size:16px;line-height:1.7;color:var(--muted)}
.card-arrow{position:absolute;right:18px;bottom:16px;font-size:22px;color:#111;background:#fff;border-radius:12px;padding:4px 10px;border:1px solid #e5e5e5}

/* ========== About / VM blocks ========== */
.about-section{background:var(--soft);padding:72px 0}
.about{display:flex;flex-wrap:wrap;gap:50px;align-items:center}
.about-text{flex:1 1 520px}
.about-text h2{font-size:38px;font-weight:800;margin-bottom:18px;color:var(--brand-red)}
.about-text p{font-size:18px;line-height:1.8;color:var(--muted)}
.btn-read{display:inline-flex;align-items:center;gap:10px;background:var(--brand-red);color:#fff;font-weight:700;padding:14px 26px;border-radius:40px;transition:background .25s ease,transform .15s ease}
.btn-read:hover{background:#cc0000;transform:translateY(-2px)}
.btn-read-icon{font-size:18px}
.about-media{flex:1 1 520px;text-align:center}
.about-media img{max-width:100%;border-radius:10px;box-shadow:0 6px 20px rgba(0,0,0,.1)}

.vm-section{background:var(--soft);padding:60px 0}
.vm{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:30px}
.vm-card{background:#fff;border:1px solid #ddd;border-radius:14px;padding:30px 24px;text-align:center;box-shadow:0 6px 16px rgba(0,0,0,.05);transition:transform .2s ease,box-shadow .2s ease}
.vm-card:hover{transform:translateY(-4px);box-shadow:0 10px 20px rgba(0,0,0,.1)}
.vm-card h3{font-size:24px;font-weight:700;margin-bottom:16px;color:var(--brand-red)}
.vm-card p{font-size:16px;line-height:1.7;color:var(--muted)}

/* ========== Product/Gallery/Contact helpers ========== */
.prod-row{display:grid;grid-template-columns:minmax(240px,360px) 1fr;gap:20px;align-items:center}
.prod-row img{width:100%;height:220px;object-fit:cover;border-radius:10px;box-shadow:0 6px 16px rgba(0,0,0,.08)}
.grid-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.grid-gallery img{width:100%;height:240px;object-fit:cover;border-radius:8px;box-shadow:0 6px 16px rgba(0,0,0,.08)}
.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px}
.contact-card{background:#fff;border:1px solid #e8e8e8;border-radius:12px;padding:20px;box-shadow:0 6px 16px rgba(0,0,0,.05)}
.contact-list li{margin:8px 0}
.contact-form label{display:block;margin-bottom:12px;font-weight:600;font-family:'Montserrat', sans-serif}
.contact-form input,.contact-form textarea{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:8px;font-family:'Montserrat', sans-serif}
.contact-form button{margin-top:8px}

/* ========== Product Cards (Products page) ========== */
.product-card-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
  align-items:stretch;
}
.p-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
  transition:transform .15s ease, box-shadow .15s ease;
}
.p-card:hover{ transform:translateY(-2px); box-shadow:0 8px 18px rgba(0,0,0,.09); }
.p-card img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}
.p-card-title{
  display:block;
  padding:14px 16px 16px;
  font-size:20px;
  font-weight:800;
  color:var(--brand-red);
  text-align:left;
}
@media (max-width: 1024px){
  .product-card-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width: 640px){
  .product-card-grid{ grid-template-columns:1fr; }
  .p-card img{ height:200px; }
}

/* ========== Main (Home SEO line) ========== */
main{padding:48px 0;text-align:center}
main h1{font-size:32px;font-weight:700;margin-bottom:8px}
main p{font-size:18px;color:var(--muted)}

/* ========== Footer (Shared) ========== */
.site-footer{
  background:#1f2937;
  color:#e5e7eb;
  padding:60px 0 20px;
  position:relative;
}
.footer-inner{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:40px}
.footer-col h3{font-family:'Montserrat', sans-serif;font-weight:700;font-size:20px;margin-bottom:16px;color:#ffffff}
.footer-col p,.footer-links,.footer-contact{font-family:'Montserrat', sans-serif;font-size:15px;line-height:1.7;color:#e5e7eb}
.footer-links li,.footer-contact li{margin-bottom:10px}
.footer-links a,.footer-contact a{color:#e5e7eb;text-decoration:none;transition:color .2s ease,opacity .2s ease}
.footer-links a:hover,.footer-contact a:hover{color:#ffffff;opacity:.9}
.footer-bottom{margin-top:30px;text-align:center;border-top:1px solid rgba(255,255,255,.12);padding-top:16px;font-size:14px;color:#cfd3d9}

/* ========== Responsive tweaks ========== */
@media (max-width:980px){
  .prod-row{grid-template-columns:1fr}
}
@media (max-width:480px){
  .brand img{height:160px}
  .slide img{height:340px}
}

/* === Mobile Rescue Overrides (append at end) === */
@media (max-width: 640px) {
  /* Prevent side scroll and tighten container padding */
  html, body { overflow-x: hidden; }
  .container { padding: 0 12px; }

  /* Header & navigation */
  .nav { padding: 10px 0; }
  .brand img { height: 120px; }            /* was 220px */
  .menu {
    gap: 12px;
    margin-right: 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  .menu a { font-size: 14px; padding: 6px 10px; }

  /* Ensure media scales within columns */
  img, video, canvas, svg, iframe {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Page hero */
  .page-hero { padding: 36px 12px 16px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero p { font-size: 16px; }

  /* Hero image / overlay */
  .hero-image { height: 260px; }
  .hero-overlay-text { padding: 12px 16px; }
  .hero-overlay-text h1 { font-size: 28px; }

  /* Slideshow */
  .slide img { height: 260px; object-fit: cover; }
  .hero-text { max-width: 90vw; }
  .hero-text h2 { font-size: 24px; color: #fff; } /* improve contrast on dark bg */
  .hero-text p { font-size: 16px; }
  .whatsapp-cta { right: 12px; bottom: 12px; padding: 10px 14px; }

  /* Products (home) */
  .products-heading { font-size: 28px; }
  .products-photos {
    gap: 16px;
    margin: 8px 0 24px;
  }
  .products-photos img {
    width: 46vw; max-width: 300px;
    height: 34vw; max-height: 200px;
  }
  .product-card { padding: 20px 16px 52px; }
  .product-card h3 { font-size: 20px; }

  /* About & VM blocks */
  .about { gap: 24px; }
  .about-text h2 { font-size: 28px; }
  .about-text p { font-size: 16px; }
  .vm { gap: 20px; }

  /* Product/Gallery/Contact helpers */
  .prod-row { grid-template-columns: 1fr; }
  .grid-gallery img { height: 200px; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Product cards (products page) */
  .p-card img { height: 180px; }

  /* Main & footer */
  main { padding: 36px 0; }
  main h1 { font-size: 26px; }
  main p { font-size: 16px; }
  .footer-inner { gap: 24px; }
}
/* === End Mobile Rescue Overrides === */
