/* ==========================================================================
   Power Ninety9 — main stylesheet
   ========================================================================== */

:root {
  --navy: #0a0f1e;
  --navy-2: #101a30;
  --navy-3: #16223e;
  --cyan: #3fc6ff;
  --orange: #f5a623;
  --orange-dark: #d98b0f;
  --white: #ffffff;
  --ink: #16213a;
  --gray-600: #4b5670;
  --gray-400: #8a93a8;
  --gray-200: #d9dee7;
  --light-bg: #f4f6fa;
  --border-dark: rgba(255, 255, 255, 0.14);
  --radius: 14px;
  --container: 1400px;
  --shadow: 0 20px 40px -20px rgba(10, 15, 30, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Syne", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body:has(#nav-toggle:checked) { overflow: hidden; }

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; color: var(--gray-600); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.text-cyan { color: var(--cyan); }
.text-orange { color: var(--orange); }

section { scroll-margin-top: 100px; }
[id] { scroll-margin-top: 100px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-orange {
  background: var(--orange);
  color: #211200;
}
.btn-orange:hover { background: var(--orange-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); }

.btn-outline-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  background: transparent;
  border-color: var(--border-dark);
  color: var(--white);
}
.btn-outline-sm:hover { border-color: var(--orange); color: var(--orange); }

.btn-sm { padding: 10px 22px; font-size: 0.82rem; }

.btn-compact { font-size: 0.85rem; padding: 12px 22px; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 26, 0.68);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
  position: relative;
}

.brand {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.brand-logo { height: 40px; width: auto; }

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.site-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a:not(.btn) {
  color: var(--gray-200);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).active {
  color: var(--white);
  border-color: var(--orange);
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle,
.nav-burger,
.nav-overlay { display: none; }

/* ---------- Nav dropdown (Services) ---------- */

.nav-dropdown { position: relative; }

.nav-dropdown summary {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-200);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::marker { content: ""; }

.nav-dropdown summary:hover,
.nav-dropdown[open] summary,
.nav-dropdown.active summary {
  color: var(--white);
  border-color: var(--orange);
}

.nav-dropdown .chevron {
  width: 13px;
  height: 13px;
  transition: transform .2s ease;
}

.nav-dropdown[open] .chevron,
.nav-dropdown:hover .chevron { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 26px 48px -16px rgba(10, 15, 30, 0.45);
  padding: 10px;
  min-width: 250px;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown[open] .dropdown-menu { display: flex; }

.nav-dropdown .dropdown-menu a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}

.nav-dropdown .dropdown-menu a:hover { background: var(--light-bg); color: var(--orange-dark); }

.dropdown-menu a.view-all {
  border-top: 1px solid var(--gray-200);
  margin-top: 4px;
  padding-top: 12px;
  color: var(--gray-600);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(6, 10, 22, 0.94) 0%, rgba(8, 14, 28, 0.86) 42%, rgba(8, 14, 28, 0.55) 75%),
    url("../images/WhatsApp%20Image%202026-07-24%20at%203.10.57%20PM.jpeg");
  background-size: cover;
  background-position: center 65%;
  color: var(--white);
  padding: 100px 0 80px;
}

.hero-inner { max-width: 700px; margin: 0; text-align: left; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(245, 166, 35, 0.5);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--white);
  margin-bottom: 24px;
}

.hero-text {
  color: var(--gray-200);
  font-size: 1.08rem;
  max-width: 600px;
  margin-bottom: 32px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.tag {
  border: 1px solid var(--border-dark);
  color: var(--gray-200);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Section headings ---------- */

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }

.section-sub { color: var(--gray-600); font-size: 1.05rem; }

/* ---------- Service cards (image + floating icon badge) ---------- */

.services-preview { padding: 100px 0; background: var(--white); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 55px -20px rgba(10, 15, 30, 0.4);
}

.service-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
}

.service-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-icon {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 14px 26px -8px rgba(10, 15, 30, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-icon svg { width: 26px; height: 26px; stroke: var(--navy); }

.service-card-body {
  padding: 42px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-body h3 { font-size: 1.2rem; margin-bottom: 12px; }
.service-card-body p { font-size: 0.93rem; margin-bottom: 24px; }

.service-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-dark);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card-link svg { width: 16px; height: 16px; }

/* ---------- Why choose us (icon boxes, reused across pages) ---------- */

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-icon svg { width: 28px; height: 28px; stroke: var(--orange); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  text-align: center;
  padding: 28px 18px;
  background: var(--light-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.value-card .service-icon { margin: 0 auto 18px; }
.value-card h4 { font-size: 1rem; }
.value-card p { font-size: 0.92rem; margin: 0; }

.why-choose { padding: 100px 0; background: var(--light-bg); }
.why-choose.on-dark { background: var(--navy); }
.why-choose.on-dark .section-sub { color: var(--gray-200); }
.why-choose.on-dark .value-card { background: var(--navy-2); border-color: var(--border-dark); }
.why-choose.on-dark .value-card h4 { color: var(--white); }

/* ---------- Stat banner ---------- */

.stat-banner {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}

.stat-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  text-align: center;
}

.stat { max-width: 320px; }

.stat-num {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  color: var(--gray-200);
  font-size: 0.95rem;
}

/* ---------- Gallery ---------- */

.gallery-preview { padding: 100px 0; background: var(--light-bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-grid a,
.gallery-grid > img {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid > img:hover { transform: scale(1.03); }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-inner h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-inner p { color: var(--gray-200); margin-bottom: 30px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--gray-200);
  padding: 60px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 34px; }
.footer-brand span { font-weight: 700; color: var(--white); font-size: 1.05rem; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: var(--gray-400);
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color .15s ease;
}

.footer-col a:hover { color: var(--orange); }

.email-link { font-size: 0.82rem !important; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* ---------- Inner page hero (About / Services / Contact) ---------- */

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
}

.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { color: var(--gray-200); max-width: 620px; margin: 0 auto; }

/* ---------- Service overview (top of Services page) ---------- */

.services-overview { padding: 100px 0; background: var(--white); }

/* ---------- Individual service page: hero + breadcrumb ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 26px;
}

.breadcrumb a { color: var(--gray-200); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb svg { width: 12px; height: 12px; stroke: var(--gray-400); }
.breadcrumb .current { color: var(--orange); }

.service-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 60px 0 90px;
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 10, 22, 0.93) 0%, rgba(8, 14, 28, 0.85) 45%, rgba(8, 14, 28, 0.6) 82%);
}

.service-hero .container { position: relative; z-index: 1; }

.service-hero--wash { background-image: url("../images/WhatsApp%20Image%202026-07-24%20at%2012.41.20.jpeg"); }
.service-hero--water { background-image: url("../images/PHOTO-2025-03-25-14-21-19.jpg.jpeg"); }
.service-hero--solar { background-image: url("../images/WhatsApp%20Image%202026-07-24%20at%203.10.57%20PM.jpeg"); background-position: center 65%; }

.service-hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  max-width: 700px;
  margin-bottom: 20px;
}

.service-hero .lead {
  color: var(--gray-200);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 34px;
}

/* ---------- Features grid (3-up, reuses value-card look) ---------- */

.values-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.features-section { padding: 100px 0; background: var(--white); }
.features-section:nth-child(even) { background: var(--light-bg); }

/* ---------- Service detail sections (image first, text below) ---------- */

.service-block { padding: 90px 0; }
.service-block:nth-child(even) { background: var(--light-bg); }

.service-detail-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 50px;
}

.service-detail-media.single { grid-template-columns: 1fr; }

.service-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.service-detail-media.single img { aspect-ratio: 21 / 9; }

.service-text { max-width: 820px; margin: 0 auto; }

.service-text-head { text-align: center; margin-bottom: 24px; }
.service-text-head .eyebrow { color: var(--orange-dark); }
.service-text-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.service-list { margin: 20px 0; }
.service-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--gray-200);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
}
.service-list li:first-child { border-top: none; }
.service-list li svg { flex-shrink: 0; width: 20px; height: 20px; stroke: var(--orange); margin-top: 2px; }

.service-cta { text-align: center; margin-top: 30px; }

/* ---------- About page ---------- */

.about-body { padding: 90px 0 40px; }
.about-lead { max-width: 780px; margin: 0 auto 60px; font-size: 1.1rem; text-align: center; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 70px;
}

.pillar {
  background: var(--light-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px;
}

.pillar h3 { font-size: 1.1rem; margin-bottom: 8px; }

.allied-note {
  max-width: 780px;
  margin: 0 auto 80px;
  background: var(--light-bg);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 22px 26px;
}

.allied-note p { margin: 0; }

/* ---------- Contact page ---------- */

.contact-body { padding: 90px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px 38px;
}

.contact-card h3 { color: var(--white); }

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border-dark);
}
.contact-row:first-of-type { border-top: none; }

.contact-row svg { width: 22px; height: 22px; stroke: var(--orange); flex-shrink: 0; }

.contact-row a, .contact-row span.value {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}

.contact-row a:hover { color: var(--orange); }

.contact-services h3 { margin-bottom: 18px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }

.chip {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--light-bg);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.chip:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .values-grid,
  .values-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail-media { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-nav {
    grid-column: unset;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 320px);
    height: 100vh;
    background: var(--navy-2);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 100px 28px 40px;
    overflow-y: auto;
    box-shadow: -24px 0 50px -20px rgba(0, 0, 0, 0.55);
    z-index: 200;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .3s ease, visibility 0s linear .3s;
  }

  .site-nav a:not(.btn) { width: 100%; padding: 12px 0; }

  .nav-toggle:checked ~ .site-nav {
    visibility: visible;
    transform: translateX(0);
    transition: transform .3s ease, visibility 0s linear 0s;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 22, 0.6);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }

  .nav-toggle:checked ~ .nav-overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease, visibility 0s linear 0s;
  }

  .header-actions .btn-sm { display: none; }

  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
  }

  .nav-burger span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }

  .nav-toggle:checked ~ .header-actions .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .header-actions .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .header-actions .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stat-inner { text-align: center; }
  .values-grid,
  .values-grid.cols-3 { grid-template-columns: 1fr; }
  .service-detail-media { grid-template-columns: 1fr; }
  .service-detail-media img { aspect-ratio: 16/10; }
  .hero { padding: 70px 0 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .nav-dropdown { width: 100%; }
  .nav-dropdown summary { width: 100%; padding: 12px 0; }
  .dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 8px 14px;
    min-width: 0;
  }
  .nav-dropdown .dropdown-menu a { color: var(--gray-200); padding: 10px 0; }
  .nav-dropdown .dropdown-menu a:hover { background: transparent; color: var(--orange); }
  .dropdown-menu a.view-all { border-top-color: var(--border-dark); color: var(--gray-400); }
}
