/* =========================
   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;
}

/* Force auto-linked phone numbers to stay white */
.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: 999;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 64px;
  padding: 0 14px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
}

/* Logo (default sizing; mobile overrides make it bigger) */
.logo {
  display: flex;
  align-items: center;
  min-width: 0;
}
.logo img {
  height: 46px;
  width: auto;
  max-height: none;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* =========================
   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;
  box-shadow: none;
  transform: none !important;
  border: 1px solid rgba(0,0,0,0.08);
  white-space: nowrap;
}

.quote-btn .cta-button:hover {
  background: #d62828;
  transform: none;
}

/* =========================
   Hamburger
========================= */
.hamburger {
  display: none; /* shown on mobile */
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3;
  padding: 0;
}

/* =========================
   Overlay
========================= */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.overlay.active { display: block; opacity: 1; }

/* =============================
   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: 9999;
  }

  /* 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
   BIG logo (left), CTA TRUE CENTER (small), Hamburger right
============================= */
@media (max-width: 768px) {
  /* Header stays small */
  header{
    position: sticky;
    top: 0;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    overflow: visible;
    padding: 0 12px;
    z-index: 999;
    display: block; /* mobile layout uses absolute children */
  }

  /* Big logo */
  .logo{
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
  }
  .logo img{
    height: 76px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
  }

  /* CTA button: TRUE center */
  .quote-btn{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* CTA button small */
  .quote-btn .cta-button{
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.1px;
    white-space: nowrap;
    transform: none !important;
    box-shadow: none;
  }

  /* Hamburger right */
  .hamburger{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 7;

    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    font-size: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  /* Nav UL is fixed drawer */
  .main-nav > ul.nav-menu {
    flex-direction: column;
    background: #333;
    position: fixed;
    top: 64px;
    right: 0;
    width: 220px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 2;
    padding: 8px 0;
    gap: 0;
  }

  .main-nav > ul.nav-menu.active { transform: translateX(0); }

  /* Top-level links inside mobile drawer */
  .main-nav > ul.nav-menu > li > a {
    color: #fff;
    padding: 12px 14px;
    display: block;
  }

  /* Services summary inside mobile drawer */
  .main-nav .services-summary {
    color: #fff;
    padding: 12px 14px;
    width: 100%;
  }

  /* Dropdown stacked inside drawer */
  .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;
    display: block;
    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;
  }

  .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-width: 180px;
  }

  .main-nav > ul.nav-menu {
    position: static;
    flex-direction: row;
    transform: none;
    background: transparent;
    padding: 0;
    width: auto;
  }

  .main-nav > ul.nav-menu > li > a,
  .main-nav .services-summary {
    color: #333;
  }
}

/* =========================
   What we offer (Features)
========================= */
#what-we-offer {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  color: #333;
  font-family: "Segoe UI", Arial, sans-serif;
}

#what-we-offer h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #222;
}

/* Grid layout */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Individual feature cards */
.feature {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Icon styling */
.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: #2a7b2e;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

/* Titles and text */
.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #222;
}

.feature-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  #what-we-offer {
    padding: 2rem 1rem;
  }

  #what-we-offer h2 {
    font-size: 1.75rem;
  }

  .feature {
    padding: 1.5rem;
  }
}

/* =========================
   Services Section
========================= */
.services h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.services h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.services .section-intro {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #555;
  line-height: 1.6;
  text-align: center;
}

/* Services grid layout */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Each service card */
.service-card {
  background: linear-gradient(135deg, #ffffff, #f9f9ff);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.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);
  background: linear-gradient(135deg, #ffffff, #f0f8ff);
}

/* Image styling */
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  border-bottom: 3px solid var(--color-primary-200);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-card img:hover {
  opacity: 0.9;
  transform: scale(1.05);
  border-color: var(--color-accent);
}

/* Body */
.service-card-body {
  padding: 1.25rem;
  text-align: left;
}

/* Default headings for all services */
.service-card-body h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a2a3a;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Description text */
.service-card-body p {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* CTA link */
.card-link {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Accent card variation (if used anywhere) */
.service-card.blue {
  background: linear-gradient(135deg, #0077b6, #0096c7);
  color: #fff;
  text-align: center;
  padding: 0.75rem;
  font-weight: 600;
  border-radius: 0 0 12px 12px;
  transition: background 0.3s ease;
}

.service-card.blue:hover {
  background: linear-gradient(135deg, #0096c7, #00b4d8);
}

/* Responsive */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* =========================
   Footer
========================= */
.footer {
  background: #111;
  color: #fff;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #e63946;
}

.footer p {
  font-size: 14px;
  line-height: 1.6;
}

.footer a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #e63946;
}

.footer-bottom {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  border-top: 1px solid #333;
  width: 100%;
}

/* Mobile Layout */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section { width: 100%; }

  .footer a { margin-bottom: 10px; }

  .footer-bottom {
    padding: 30px 10px;
    font-size: 12px;
  }
}

/* =========================
   Sticky Buttons
========================= */
.whatsapp-sticky {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  background-color: #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 0.3s ease;
}
.whatsapp-sticky:hover { transform: scale(1.1); }
.whatsapp-sticky img { width: 28px; height: 28px; }

.call-sticky {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  background-color: #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 0.3s ease;
}
.call-sticky:hover { transform: scale(1.1); }