
/* =========================
   Reset
========================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { padding-top: 0; }

/* =========================
   Top Bar
========================= */
.top-bar{
  background:#333;
  color:#fff;
  padding:6px 12px;
  font-size:12px;
  text-align:center;
  position:relative;
  z-index:10000;
}
.top-bar a,
.top-bar a[href^="tel"]{
  color:#fff !important;
  text-decoration:none !important;
}

/* =========================
   Header (Base)
========================= */
header{
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 64px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Logo */
.logo{
  display:flex;
  align-items:center;
  min-width:0;
}
.logo img{
  display:block;
  height:46px;
  width:auto;
  max-height:46px;
  max-width:180px;
  object-fit:contain;
}

/* =========================
   Header CTA (Call Button)
========================= */
.quote-btn{
  display:flex;
  align-items:center;
}
.quote-btn .cta-button{
  background:#e63946;
  color:#fff;
  height:38px;
  padding:0 14px;
  border-radius:10px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  font-size:14px;
  font-weight:600;
  letter-spacing:0.2px;

  text-decoration:none;
  transition:background 0.2s ease;
  border:1px solid rgba(0,0,0,0.08);
  white-space:nowrap;

  box-shadow:none;
  transform:none !important;
}
.quote-btn .cta-button:hover{
  background:#d62828;
  transform:none;
}

/* =========================
   Hamburger (FIXED)
========================= */
/* Default hidden; shown only on mobile */
.hamburger{
  display:none;
  width:40px;
  height:40px;
  place-items:center;
  font-size:22px;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:0;

  position:relative;
  z-index:1100; /* above overlay + nav */
}

/* =========================
   Overlay (FIXED)
========================= */
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.4);

  opacity:0;
  visibility:hidden;
  pointer-events:none; /* KEY: do not block clicks when closed */

  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index:900;
}
.overlay.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

/* =============================
   MAIN NAV (top-level only)
============================= */
.main-nav > ul.nav-menu{
  list-style:none;
  display:flex;
  gap:20px;
  justify-content:center;
  align-items:center;
}

.main-nav > ul.nav-menu > li{ position:relative; }

/* Top-level links */
.main-nav > ul.nav-menu > li > a{
  text-decoration:none;
  color:#333;
  font-weight:bold;
  transition: color 0.2s ease, background-color 0.2s ease;
  display:block;
  padding:16px 24px;
}
.main-nav > ul.nav-menu > li > a:hover{ color:#e63946; }

/* =============================
   SERVICES DROPDOWN (<details>)
============================= */
.main-nav .has-dropdown{ position:relative; }

.main-nav .services-summary{
  display:block;
  padding:16px 24px;
  color:#333;
  font-weight:bold;
  cursor:pointer;
  user-select:none;
}

/* Remove default arrow marker */
.main-nav .services-summary::-webkit-details-marker{ display:none; }
.main-nav .services-summary::marker{ content:""; }

/* Hide dropdown by default */
.main-nav .services-details > ul.dropdown{
  display:none;
  list-style:none;
  margin:0;
  padding:8px 0;
}

/* Show dropdown when open */
.main-nav .services-details[open] > ul.dropdown{
  display:block !important;
}

/* Desktop dropdown panel */
@media (min-width: 769px){
  .main-nav .services-details{ position:relative; }

  .main-nav .services-details > ul.dropdown{
    position:absolute;
    top:100%;
    left:0;
    min-width:240px;
    background:#fff;
    border-radius:8px;
    box-shadow:0 15px 40px rgba(0,0,0,0.12);
    z-index:1200;
  }

  /* Optional hover open */
  .main-nav .has-dropdown:hover .services-details > ul.dropdown{
    display:block;
  }

  .main-nav .dropdown li a{
    display:block;
    padding:10px 16px;
    text-decoration:none;
    color:#333;
    font-weight:600;
  }
  .main-nav .dropdown li a:hover{
    background: rgba(0,0,0,0.06);
  }
}

/* =============================
   Mobile styles
   Logo left, CTA centered, Hamburger right
============================= */
@media (max-width: 768px){
  header{
    height:64px;
    padding:0 12px;
    display:block; /* absolute children layout */
    overflow:visible;
  }

  .logo{
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    z-index:1100;
  }
  .logo img{
    height:76px;
    width:auto;
    max-width:150px;
    object-fit:contain;
  }

  .quote-btn{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%, -50%);
    z-index:1100;
  }
  .quote-btn .cta-button{
    height:30px;
    padding:0 10px;
    font-size:12px;
    border-radius:8px;
    font-weight:600;
    letter-spacing:0.1px;
  }

  .hamburger{
    display:grid; /* show on mobile */
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
  }

  /* Slide-in menu (matches your JS toggling `.nav-menu.active`) */
  .main-nav > ul.nav-menu{
    flex-direction:column;
    background:#333;

    position:fixed;
    top:64px;
    right:0;
    width:min(80vw, 320px);
    height:calc(100vh - 64px);

    transform:translateX(100%);
    transition:transform 0.3s ease-in-out;

    z-index:1001; /* above overlay */
    padding:8px 0;
    gap:0;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }

  .main-nav > ul.nav-menu.active{
    transform:translateX(0);
  }

  .main-nav > ul.nav-menu > li > a{
    color:#fff;
    padding:12px 14px;
  }

  .main-nav .services-summary{
    color:#fff;
    padding:12px 14px;
    width:100%;
  }

  .main-nav .services-details > ul.dropdown{
    position:static;
    width:100%;
    background:transparent;
    box-shadow:none;
    padding:6px 0 0;
  }

  .main-nav .dropdown li a{
    color:#fff;
    padding:10px 14px;
    font-weight:600;
  }
}

/* =============================
   Desktop layout
============================= */
@media (min-width: 769px){
  header{
    display:grid;
    grid-template-columns:auto 1fr auto;
    grid-template-areas:"logo nav quote";
    align-items:center;
    gap:20px;
    padding:0 14px;
    height:64px;
    min-height:64px;
  }

  .logo{ grid-area:logo; position:static; transform:none; }
  .main-nav{ grid-area:nav; justify-self:center; }
  .quote-btn{ grid-area:quote; justify-self:end; }

  .hamburger{ display:none; }

  .logo img{
    height:46px;
    max-height:46px;
    max-width:180px;
  }

  /* Ensure desktop menu stays normal even if `.active` lingers */
  .main-nav > ul.nav-menu{
    position:static;
    flex-direction:row;
    transform:none;
    background:transparent;
    padding:0;
    width:auto;
    height:auto;
  }

  .main-nav > ul.nav-menu > li > a,
  .main-nav .services-summary{
    color:#333;
  }

  /* Optional: overlay never needed on desktop */
  .overlay{ display:none; }
}

/* =========================
   SLIDER LAYERING + TEXT
========================= */
.slider{
  position:relative;
  z-index:1; /* keep slider below header/nav */
}

.hero-slider{
  height:620px;
  max-height:620px;
  position:relative; /* for absolute slides */
  overflow:hidden;
}

@media (max-width:768px){
  .hero-slider{
    height:60vh;
    min-height:320px;
    max-height:none;
  }
}
@media (max-width:420px){
  .hero-slider{
    min-height:300px;
  }
}

.slide{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  transition:opacity .6s ease;
  will-change:opacity;
}
.slide.active{
  opacity:1;
  pointer-events:auto;
}
.slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Overlay text */
.slide-text{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  text-align:center;
  color:#fff;
  background:rgba(0,0,0,0.4);
  padding:20px;
  border-radius:8px;
  max-width:80%;
  box-shadow:0 4px 12px rgba(0,0,0,0.3);
}
.slide-text h2{
  font-size:2rem;
  margin-bottom:10px;
}
.slide-text p{
  font-size:1.2rem;
  margin-bottom:20px;
}
.slide-text .btn{
  display:inline-block;
  background:#e63946;
  color:#fff;
  padding:10px 20px;
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
  box-sizing:border-box;
  transition: background 0.3s ease, transform 0.2s ease;
}
.slide-text .btn:hover{
  background:#d62828;
  transform:scale(1.05);
}

/* Mobile slider overlay fix */
@media (max-width:768px){
  .slide-text{
    max-width:92%;
    padding:12px;

    max-height:calc(60vh - 18px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;

    display:flex;
    flex-direction:column;
    gap:10px;

    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
  }
  .slide-text h2{
    font-size:1.2rem;
    line-height:1.2;
    margin:0;
  }
  .slide-text p{
    font-size:0.95rem;
    line-height:1.35;
    margin:0;
  }
  .slide-text .btn{
    margin-top:4px;
    padding:10px 14px;
    font-size:14px;
    font-weight:700;
    width:100%;
    max-width:240px;
    align-self:center;
    text-align:center;
    white-space:nowrap;
  }
}
@media (max-width:420px){
  .slide-text{
    padding:10px;
    gap:8px;
    max-height:calc(60vh - 14px);
  }
  .slide-text h2{ font-size:1.1rem; }
  .slide-text p{ font-size:0.9rem; }
  .slide-text .btn{ padding:9px 12px; }
}

/* =========================
   Trust badges
========================= */
.trust{
  background: linear-gradient(135deg, #f0f8ff, #e6f7f1);
  padding: 3rem 1rem;
}
.trust-inner{ max-width:1200px; margin:0 auto; }
.trust-badges{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:2rem;
}
.badge{
  background:#fff;
  border-radius:12px;
  padding:1.5rem;
  text-align:center;
  width:220px;
  box-shadow:0 6px 12px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.badge:hover{
  transform: translateY(-6px);
  box-shadow:0 10px 18px rgba(0,0,0,0.12);
}
.badge img{ width:60px; height:60px; margin-bottom:1rem; }
.badge p{ font-size:1rem; font-weight:700; color:#333; margin:0; }
.badge:nth-child(1){ border-top:4px solid #0077b6; }
.badge:nth-child(2){ border-top:4px solid #2a9d8f; }
.badge:nth-child(3){ border-top:4px solid var(--accent); }
.badge:nth-child(4){ border-top:4px solid #ffb703; }

/* =========================
   Services
========================= */
.services h2{
  font-size:2.4rem;
  font-weight:800;
  color:#2c3e50;
  text-align:center;
  margin-bottom:1rem;
}
.services .section-intro{
  font-size:1.1rem;
  max-width:700px;
  margin:0 auto 2.5rem;
  color:#555;
  line-height:1.6;
  text-align:center;
}
.service-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
  max-width:1200px;
  margin:40px auto;
  padding:0 20px;
}
.service-card{
  background: linear-gradient(135deg, #fff, #f9f9ff);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 14px rgba(0,0,0,0.1);
  transition: transform .3s ease, box-shadow .3s ease, border .3s ease;
  display:flex;
  flex-direction:column;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow:0 10px 20px rgba(0,0,0,0.15);
  border:2px solid var(--color-accent);
}
.service-card img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-bottom:3px solid var(--color-primary-200);
  transition: transform .3s ease, opacity .3s ease;
}
.service-card img:hover{
  opacity:.95;
  transform: scale(1.03);
}
.service-card-body{ padding:1.25rem; text-align:left; }
.service-card-body h3{
  font-size:1.35rem;
  font-weight:900;
  color:#1a2a3a;
  margin-bottom:.6rem;
  text-transform:uppercase;
}
.service-card-body p{
  font-size:1rem;
  color:#4a5568;
  line-height:1.5;
  margin-bottom:12px;
}
.card-link{ text-decoration:none; color:inherit; display:inline-block; }
.service-card.blue{
  background: linear-gradient(135deg, #0077b6, #0096c7);
  color:#fff;
  text-align:center;
  padding:.75rem;
  font-weight:800;
  border-radius:12px;
}
.service-card.blue:hover{
  background: linear-gradient(135deg, #0096c7, #00b4d8);
}
@media (max-width:1024px){ .service-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:768px){ .service-grid{ grid-template-columns:1fr; } }

/* =========================
   Footer + sticky buttons
========================= */
.site-footer{
  background:#222;
  color:#fff;
  padding:40px 20px 20px;
  font-size:15px;
}
.footer-container{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:30px;
  max-width:1200px;
  margin:0 auto;
}
.footer-col h3, .footer-col h4{
  margin-bottom:12px;
  color: var(--accent);
}
.footer-col p, .footer-col a{ color:#ccc; line-height:1.5; }
.footer-col ul{ list-style:none; padding:0; }
.footer-col ul li{ margin-bottom:8px; }
.footer-col ul li a{ text-decoration:none; transition: color .2s ease; }
.footer-col ul li a:hover{ color: var(--accent); }
.footer-bottom{
  text-align:center;
  margin-top:30px;
  border-top:1px solid rgba(255,255,255,0.2);
  padding-top:15px;
  font-size:14px;
  color:#aaa;
}
@media (max-width:768px){
  .footer-container{ flex-direction:column; text-align:center; }
  .footer-col{ margin-bottom:20px; }
}

/* Sticky buttons */
.whatsapp-sticky{
  position:fixed;
  bottom:80px;
  right:20px;
  z-index:9999;
  width:50px;
  height:50px;
  background:#25D366;
  border-radius:50%;
  box-shadow:0 4px 6px rgba(0,0,0,0.3);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .2s ease;
}
.whatsapp-sticky:hover{ transform:scale(1.08); }
.whatsapp-sticky img{ width:28px; height:28px; }

.call-sticky{
  position:fixed;
  bottom:20px;
  right:20px;
  z-index:9999;
  width:50px;
  height:50px;
  background:#000;
  border-radius:50%;
  box-shadow:0 4px 6px rgba(0,0,0,0.3);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .2s ease;
}
.call-sticky:hover{ transform:scale(1.08); }

/* =========================
   About Features (What we offer)
========================= */
.about-features{
  padding:64px 16px;
  background: linear-gradient(135deg, #ffffff, #f7f8fb);
}
.about-features .container{
  max-width:1200px;
  margin:0 auto;
}
.about-features h2{
  text-align:center;
  font-size:2.25rem;
  line-height:1.15;
  font-weight:800;
  color: var(--text);
  margin-bottom:18px;
  letter-spacing:0.2px;
}

/* Grid */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
  margin-top:18px;
}

/* Card */
.feature-card{
  background:#fff;
  border:1px solid rgba(17,24,39,0.08);
  border-radius:16px;
  padding:22px 20px;
  box-shadow:0 10px 24px rgba(0,0,0,0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position:relative;
  overflow:hidden;
}
.feature-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(800px 240px at 10% 0%, rgba(230,57,70,0.12), transparent 55%);
  pointer-events:none;
}
.feature-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
  border-color: rgba(230,57,70,0.25);
}

/* Icon */
.feature-icon{
  width:52px;
  height:52px;
  border-radius:14px;
  display:inline-grid;
  place-items:center;
  color:#fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow:0 10px 18px rgba(230,57,70,0.22);
  margin-bottom:12px;
  position:relative;
  z-index:1;
}
.feature-icon svg{
  width:26px;
  height:26px;
  display:block;
}

/* Typography */
.feature-card h3{
  font-size:1.15rem;
  line-height:1.25;
  font-weight:800;
  color: var(--text);
  margin:6px 0 10px;
  position:relative;
  z-index:1;
}
.feature-card p{
  font-size:1rem;
  line-height:1.55;
  color:#4b5563;
  margin:0;
  position:relative;
  z-index:1;
}

/* Responsive */
@media (max-width:1024px){
  .feature-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width:768px){
  .about-features{ padding:52px 14px; }
  .about-features h2{ font-size:1.75rem; margin-bottom:14px; }
  .feature-grid{ grid-template-columns:1fr; gap:14px; }
  .feature-card{ padding:18px 16px; border-radius:14px; }
  .feature-icon{ width:48px; height:48px; border-radius:12px; }
  .feature-icon svg{ width:24px; height:24px; }
}

/* Hide SEO H1 everywhere (desktop + mobile) */
.visually-hidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  clip-path: inset(50%) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* =========================
   Homepage FAQ (Index)
========================= */
.home-faq{
  padding:44px 0;
  background:#fff;
  border-top:1px solid rgba(0,0,0,0.06);
}

.home-faq-head{ margin-bottom:18px; }

.home-faq h2{
  margin:0 0 8px;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight:900;
  letter-spacing:-0.02em;
}
.home-faq-head p{
  margin:0;
  color:#4b5563;
  line-height:1.7;
  max-width:80ch;
}
.home-faq-head a{
  color:inherit;
  font-weight:800;
  text-decoration:none;
  border-bottom:1px dotted rgba(17,24,39,0.35);
}
.home-faq-head a:hover{
  border-bottom-color: rgba(230,57,70,0.7);
}

.home-faq-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:14px;
}
.home-faq-item{
  background:#fff;
  border:1px solid rgba(0,0,0,0.10);
  border-radius:14px;
  padding:12px 14px;
  box-shadow:0 6px 16px rgba(0,0,0,0.04);
}
.home-faq-item[open]{
  border-color: rgba(230,57,70,0.35);
  box-shadow:0 10px 26px rgba(0,0,0,0.06);
}

.home-faq-item summary{
  cursor:pointer;
  font-weight:900;
  color:#111827;
  line-height:1.35;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.home-faq-item summary::-webkit-details-marker{ display:none; }
.home-faq-item summary::marker{ content:""; }

.home-faq-item summary::after{
  content:"▾";
  font-size:16px;
  opacity:0.75;
  transition: transform .18s ease, opacity .18s ease;
}
.home-faq-item[open] summary::after{
  transform: rotate(180deg);
  opacity:1;
}

.home-faq-item p{
  margin:10px 0 0;
  color:#4b5563;
  line-height:1.7;
  font-size:15.5px;
}

.home-faq-item a{
  color:inherit;
  font-weight:800;
  text-decoration:none;
  border-bottom:1px dotted rgba(17,24,39,0.35);
}
.home-faq-item a:hover{
  border-bottom-color: rgba(230,57,70,0.7);
}

.home-faq-cta{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.home-faq-cta .faq-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 14px;
  border-radius:12px;
  font-weight:900;
  font-size:14px;
  text-decoration:none;
  border:1px solid rgba(0,0,0,0.10);
  transition: transform .15s ease, background .2s ease;
  white-space:nowrap;
}
.home-faq-cta .faq-btn.primary{
  background: var(--accent, #e63946);
  color:#fff;
  border-color:transparent;
}
.home-faq-cta .faq-btn.primary:hover{
  background: var(--accent-dark, #d62828);
  transform: translateY(-1px);
}
.home-faq-cta .faq-btn.secondary{
  background:#fff;
  color:#111827;
}
.home-faq-cta .faq-btn.secondary:hover{
  background: rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

@media (max-width: 820px){
  .home-faq-grid{ grid-template-columns: 1fr; }
}



/* Modal */
.modal { position: fixed; inset: 0; display: none; z-index: 9999; }
.modal[aria-hidden="false"] { display: block; }

.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }

/* IMPORTANT: allow scrolling on small screens */
.modal__panel {
  position: relative;
  width: min(720px, calc(100% - 24px));
  margin: 12px auto;                 /* smaller margin so it fits mobile */
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  overflow: auto;                     /* was hidden -> stops scrolling */
  max-height: calc(100vh - 24px);     /* keeps it inside viewport */
  -webkit-overflow-scrolling: touch;  /* smooth iOS scroll */
}

/* Keep header visible while scrolling */
.modal__header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
}

.modal__close { font-size: 28px; line-height: 1; background: transparent; border: 0; cursor: pointer; }

.modal__form { padding: 16px 18px 18px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid label { display:flex; flex-direction:column; gap: 6px; font-weight: 600; }
.grid input, .grid select, .grid textarea {
  font: inherit; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 10px;
}
.grid textarea { min-height: 120px; resize: vertical; }
.span2 { grid-column: 1 / -1; }

.modal__actions { display:flex; gap: 10px; justify-content:flex-end; margin-top: 12px; }
.btn-secondary { padding: 10px 14px; border-radius: 10px; border: 1px solid #ccc; background:#fff; cursor:pointer; }
.status { margin-top: 10px; font-weight: 600; }
.fineprint { margin-top: 10px; font-size: 12px; color: #666; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

/* ===== Quote button color match =====
   Your screenshot shows your site buttons are a strong red with white text.
   Force the Quote button to use the same style as your existing CTA. */
#openQuote.cta-button {
  background: #e53935;   /* strong red */
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

#openQuote.cta-button:hover {
  filter: brightness(0.95);
}