/* =========================================================
   Sulwe Environmental Guard — design tokens + components
   Theme: alternating soft-green/deep-navy sections, drawn
   from the logo (shield navy, leaf green, guardian-star gold).
   ========================================================= */

:root {
  --accent: #2f9e52;
  --accent-light: #7ac74f;
  --accent-foreground: #ffffff;
  --brand-navy: #0e558b;
  --brand-navy-deep: #0a3355;
  --brand-gold: #f0c419;
}

/* Light section theme */
.theme-light {
  --bg: #f5faf6;
  --surface: #ffffff;
  --surface-elevated: #e9f4ec;
  --border: rgba(14, 58, 99, 0.08);
  --text: #142433;
  --muted: #5c6b74;
  background: var(--bg);
  color: var(--text);
}

/* Light-blue section theme (alternates with the green/white theme-light) */
.theme-dark {
  --bg: #eaf3fb;
  --surface: #ffffff;
  --surface-elevated: #dcebf7;
  --border: rgba(14, 58, 99, 0.1);
  --text: #142433;
  --muted: #5c6b74;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
section[id] { scroll-margin-top: 6rem; }
.muted-text { color: var(--muted); }
.accent-text { color: var(--accent); }

::selection { background: rgba(47, 158, 82, 0.35); color: #ffffff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a1c2c; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 9999px; }

/* ---------- logo mark (image placeholder — drop logo.png into /images) ---------- */
.logo-mark {
  position: relative;
  display: block;
  height: 40px;
  width: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-light), var(--brand-navy));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}
.logo-mark-lg { height: 64px; width: 64px; border-radius: 16px; }

/* ---------- header ---------- */
#site-header.scrolled { background: rgba(10, 28, 44, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding-top: 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.header-name { color: #fff; }
.header-sub { color: rgba(255,255,255,0.6); }
#site-header.scrolled .header-name { color: #fff; }
.nav-link { border-radius: 9999px; padding: 0.5rem 1rem; font-size: 0.875rem; color: rgba(255,255,255,0.75); transition: all 0.2s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.header-call-btn { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; transition: background 0.2s ease; }
.header-call-btn:hover { background: rgba(255,255,255,0.14); }
.header-menu-btn { border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.mobile-menu-panel { background: rgba(10, 28, 44, 0.97); backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,0.08); }
.mobile-link { border-radius: 0.5rem; padding: 0.65rem 0.75rem; font-size: 0.875rem; color: rgba(255,255,255,0.75); display: block; }
.mobile-link:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- buttons ---------- */
.btn-accent {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--accent-foreground); padding: 0.75rem 1.4rem; font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 14px 34px -12px rgba(47, 158, 82, 0.55);
  border: 0; cursor: pointer; text-decoration: none; transition: filter 0.2s ease, transform 0.15s ease;
}
.btn-accent:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-accent:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-lg { padding: 0.9rem 1.7rem; }
.btn-glass-hero {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; padding: 0.9rem 1.5rem; font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s ease;
}
.btn-glass-hero:hover { background: rgba(255,255,255,0.16); }

/* ---------- hero ---------- */
.hero-overlay { background: linear-gradient(180deg, rgba(9,20,32,0.55) 0%, rgba(9,20,32,0.87) 55%, #0d1f30 100%); }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: 0.4rem 0.9rem; font-size: 0.75rem; font-weight: 500; color: rgba(255,255,255,0.85); }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,158,82,0.55); } 50% { box-shadow: 0 0 0 6px rgba(47,158,82,0); } }
.pulse-dot { display: inline-block; animation: pulseDot 2s ease-in-out infinite; }
.hero-chip { display: flex; align-items: center; gap: 0.5rem; border-radius: 0.75rem; padding: 0.75rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #fff; font-size: 0.85rem; font-weight: 500; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fadeUp 0.6s ease-out both; }

/* ---------- section scaffolding ---------- */
.section-padding { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 640px) { .section-padding { padding-top: 5rem; padding-bottom: 5rem; } }
@media (min-width: 1024px) { .section-padding { padding-top: 6rem; padding-bottom: 6rem; } }
.eyebrow { display: block; color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem; }
.section-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.875rem; line-height: 1.15; letter-spacing: -0.01em; }
@media (min-width: 640px) { .section-title { font-size: 2.5rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }
.section-sub { margin-top: 1rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
@media (min-width: 640px) { .section-sub { font-size: 1.125rem; } }

/* ---------- services split (termite | general pest) ---------- */
.split-heading { display: flex; align-items: center; gap: 0.75rem; }
.split-icon-sm { display: grid; place-items: center; height: 2.75rem; width: 2.75rem; border-radius: 0.75rem; background: var(--accent); color: var(--accent-foreground); flex-shrink: 0; }
.service-row { display: flex; align-items: center; gap: 0.75rem; border-radius: 0.75rem; border: 1px solid var(--border); background: var(--surface); padding: 0.75rem 1rem; font-size: 0.9rem; font-weight: 500; transition: all 0.25s ease; }
.service-row:hover { border-color: var(--accent); transform: translateX(2px); }
.service-row-icon { display: grid; place-items: center; height: 2rem; width: 2rem; border-radius: 0.5rem; background: rgba(47,158,82,0.12); color: var(--accent); flex-shrink: 0; }

/* ---------- feature cards ---------- */
.feature-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--surface); padding: 1.5rem; transition: border-color 0.3s ease; }
.feature-card:hover { border-color: var(--accent); }
.feature-icon { display: grid; place-items: center; height: 3rem; width: 3rem; border-radius: 0.75rem; background: rgba(47,158,82,0.12); color: var(--accent); flex-shrink: 0; }
.feature-icon.gold { background: rgba(240,196,25,0.16); color: var(--brand-gold); }

/* ---------- split cards (pre/post construction) ---------- */
.split-card { position: relative; border-radius: 1.5rem; border: 1px solid var(--border); background: var(--surface); padding: 2rem; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.15); }
.split-icon { display: grid; place-items: center; height: 3.5rem; width: 3.5rem; border-radius: 1rem; background: var(--accent); color: var(--accent-foreground); }
.tag { display: block; margin-top: 1.25rem; color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.check-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text); opacity: 0.9; }

/* ---------- steps ---------- */
.step-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--surface); padding: 1.5rem; }
.step-number { color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; }

/* ---------- informational video ---------- */
.video-frame {
  position: relative; border-radius: 1.5rem; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.45);
  background: linear-gradient(135deg, var(--accent-light), var(--brand-navy));
}
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #05121e; }

/* ---------- our work / portfolio gallery ---------- */
.work-tile {
  position: relative; border-radius: 1.25rem; overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--accent-light), var(--brand-navy));
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.work-tile img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; transition: transform 0.4s ease; }
.work-tile:hover img { transform: scale(1.05); }
.work-tile-caption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 1rem;
  background: linear-gradient(0deg, rgba(9,20,32,0.85) 0%, rgba(9,20,32,0) 100%);
  color: #fff; font-size: 0.85rem; font-weight: 600;
}
.work-tile-zoom-hint {
  position: absolute; top: 0.75rem; right: 0.75rem; height: 2rem; width: 2rem;
  display: grid; place-items: center; border-radius: 9999px;
  background: rgba(9,20,32,0.55); color: #fff; backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.2s ease;
}
.work-tile:hover .work-tile-zoom-hint, .work-tile:focus-visible .work-tile-zoom-hint { opacity: 1; }

/* ---------- lightbox ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 14, 22, 0.92);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-figure { position: relative; max-width: min(90vw, 1100px); max-height: 85vh; }
.lightbox-figure img {
  max-width: 100%; max-height: 85vh; display: block;
  border-radius: 1rem; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.lightbox-caption { margin-top: 0.85rem; text-align: center; color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; }
.lightbox-close {
  position: absolute; top: -3rem; right: 0;
  height: 2.5rem; width: 2.5rem; display: grid; place-items: center;
  border-radius: 9999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer; transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 2.75rem; width: 2.75rem; display: grid; place-items: center;
  border-radius: 9999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer; transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: -1.25rem; }
.lightbox-next { right: -1.25rem; }
@media (max-width: 640px) {
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
  .lightbox-close { top: -2.75rem; right: 0; }
}

/* ---------- about ---------- */
.value-badge { display: flex; align-items: center; gap: 0.5rem; border-radius: 0.5rem; border: 1px solid var(--border); background: var(--surface); padding: 0.65rem 0.85rem; font-size: 0.875rem; }
.about-photo-card { position: relative; border-radius: 1.5rem; border: 1px solid var(--border); background: var(--surface-elevated); overflow: hidden; }
.about-photo-card img { display: block; width: 100%; height: 14rem; object-fit: cover; }
.about-photo-card .about-photo-body { padding: 2rem; }

/* ---------- FAQ ---------- */
.faq-item { border-radius: 1rem; border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: border-color 0.3s ease; }
.faq-item:hover { border-color: var(--accent); }
.faq-item.open { border-color: var(--accent); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; padding: 1.25rem; background: transparent; border: 0; color: var(--text); cursor: pointer; font-size: 0.95rem; }
.faq-chevron { color: var(--muted); transition: transform 0.3s ease, color 0.3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 1.25rem; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 320px; padding: 0 1.25rem 1.25rem; }

/* ---------- final CTA panel ---------- */
.cta-panel { background: linear-gradient(135deg, #0d2338, #071624); position: relative; overflow: hidden; }
.cta-panel::before { content: ""; position: absolute; top: -4rem; right: -4rem; height: 18rem; width: 18rem; border-radius: 9999px; background: rgba(47,158,82,0.25); filter: blur(60px); }
.cta-panel::after { content: ""; position: absolute; bottom: -5rem; left: -3rem; height: 18rem; width: 18rem; border-radius: 9999px; background: rgba(240,196,25,0.14); filter: blur(60px); }
.cta-panel > * { position: relative; z-index: 1; }

/* ---------- contact ---------- */
.contact-card { display: block; border-radius: 1rem; border: 1px solid var(--border); background: var(--surface); padding: 1.5rem; transition: all 0.3s ease; }
.contact-card:hover { border-color: var(--accent); }
.contact-icon { display: grid; place-items: center; height: 2.75rem; width: 2.75rem; border-radius: 0.75rem; background: rgba(47,158,82,0.12); color: var(--accent); }

/* ---------- quote form ---------- */
.quote-form-card { border-radius: 1.5rem; border: 1px solid var(--border); background: var(--surface); padding: 2rem; }
.form-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin-top: 1.25rem; margin-bottom: 0.5rem; }
.form-label:first-of-type { margin-top: 0; }
.form-input { width: 100%; border-radius: 0.75rem; border: 1px solid var(--border); background: var(--bg); color: var(--text); padding: 0.85rem 1rem; font-size: 0.9rem; transition: border-color 0.2s ease; }
.form-input::placeholder { color: var(--muted); }
.form-input:focus { outline: none; border-color: var(--accent); }
select.form-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6b74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem; padding-right: 2.5rem;
}
textarea.form-input { resize: vertical; }

/* ---------- footer ---------- */
.footer-border { border-color: var(--border); }
.footer-link:hover { color: var(--accent); }
.gliss-credit {
  color: var(--accent); font-weight: 600; text-decoration: none;
  transition: color 0.3s ease;
}
.gliss-credit:hover { color: #1f7a3a; }

/* ---------- floating WhatsApp button ---------- */
.whatsapp-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 40;
  display: grid; place-items: center; height: 3.5rem; width: 3.5rem; border-radius: 9999px;
  background: var(--brand-navy); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(14,85,139,0.65);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); filter: brightness(1.1); }
