/* =========================================================================
   Naga Safety Nets — hand-written stylesheet (no framework, no build step)
   ========================================================================= */

:root {
  --green-900: #043c1f;
  --green-700: #08783e;
  --green-600: #0a9650;
  --green-100: #e6f3ec;
  --bg-section: #f6faf7;      /* light green-tinted, never pure white */
  --bg-section-alt: #eaf4ee;
  --bg-dark: #04331b;
  --gold: #ffc928;
  --gold-dark: #e0a800;
  --red: #d82929;
  --red-dark: #b81f1f;
  --whatsapp: #128c4a;      /* darkened from the #25d366 brand mark — that shade is only ~2:1 contrast with white text, well under the 4.5:1 minimum */
  --whatsapp-dark: #0f7a3f;
  --whatsapp-brand: #25d366; /* true brand green, safe to use only for non-text/icon accents on light backgrounds */
  --ink: #1c241f;
  --ink-soft: #445048;
  --white: #ffffff;
  --border: #d9e6dd;
  --shadow: 0 10px 30px rgba(4, 60, 31, 0.12);
  --shadow-sm: 0 4px 14px rgba(4, 60, 31, 0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-section);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 800; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* -------------------------------------------------------------------------
   Skip link / a11y
   ------------------------------------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink);
  padding: 10px 16px; z-index: 1000; font-weight: 700;
}
.skip-link:focus { left: 10px; top: 10px; }

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 500;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; color: var(--green-900); white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--green-900);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-text-sub { display: none; font-size: .68rem; letter-spacing: .08em; font-weight: 700; color: var(--gold-dark); }

@media (min-width: 480px) {
  .header-inner { padding: 12px 20px; }
  .brand { font-size: 1.05rem; gap: 10px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
  .brand-text-sub { display: block; }
}

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: .93rem; }
.main-nav a { color: var(--ink); padding: 8px 0; }
.main-nav a:hover, .main-nav a:focus { color: var(--green-700); }
.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  display: none; position: absolute; top: 100%; left: -10px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  min-width: 260px; padding: 10px; margin-top: 6px;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { display: block; }
.nav-dropdown-panel a { display: block; padding: 8px 10px; border-radius: 6px; font-weight: 600; }
.nav-dropdown-panel a:hover { background: var(--bg-section); }
.nav-dropdown-panel.wide { min-width: 420px; column-count: 2; column-gap: 4px; }
.nav-dropdown-panel.wide li { break-inside: avoid; }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta .btn { padding: 10px 14px; font-size: .85rem; display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--white); cursor: pointer; flex-shrink: 0;
}
.mobile-nav { display: none; background: var(--white); border-top: 1px solid var(--border); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { padding: 10px 20px 16px; }
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav a { display: block; padding: 12px 4px; font-weight: 700; }
.mobile-nav details summary { padding: 12px 4px; font-weight: 700; cursor: pointer; }
.mobile-nav details ul { padding-left: 14px; }
.mobile-nav details a { font-weight: 600; color: var(--ink-soft); }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .header-cta .btn { display: inline-flex; }
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px;
  font-weight: 800; font-size: .95rem; border: none; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-call { background: var(--red); color: var(--white); }
.btn-call:hover { background: var(--red-dark); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-block { width: 100%; justify-content: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------------------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------------------- */
.breadcrumbs { font-size: .82rem; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.breadcrumbs a { color: rgba(255,255,255,.85); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 6px; opacity: .6; }
.breadcrumbs-light { color: var(--ink-soft); }
.breadcrumbs-light a { color: var(--green-700); }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
/* padding:0 overrides the generic `section{padding:44px 0}` rule below —
   without it, every hero got 44px of dead space above and below the image. */
.hero { background: var(--green-900); color: var(--white); padding: 0; }

/* Breadcrumbs sit in their own slim strip above the image, so they stay
   legible regardless of what the photo behind the overlay looks like. */
.hero-crumbs-row { padding: 10px 20px; }

/* Full-bleed image carousel with headline/copy/CTA overlaid directly on
   top of it (bottom-anchored, dark gradient scrim for legibility).
   60vh on mobile, 80vh on desktop. */
.hero-carousel-wrap { position: relative; width: 100%; height: 60vh; min-height: 340px; overflow: hidden; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end;
  background: linear-gradient(to top, rgba(3,20,11,.88) 0%, rgba(3,20,11,.55) 32%, rgba(3,20,11,.08) 62%, rgba(3,20,11,0) 100%);
  pointer-events: none; /* let clicks fall through to the carousel's own arrows/dots underneath */
}
.hero-content { max-width: 640px; padding: 0 20px 26px; width: 100%; margin: 0 auto; pointer-events: auto; }
.hero-badge {
  display: inline-block; background: var(--gold); color: var(--ink); font-weight: 800; font-size: .78rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 12px;
}
.hero h1 { font-size: 1.7rem; }
.hero h1 .accent { color: var(--gold); }
.hero-lead { color: rgba(255,255,255,.92); font-size: .98rem; max-width: 56ch; }
.hero-cta { margin-top: 18px; }

@media (min-width: 640px) {
  .hero-content { padding: 0 20px 36px; max-width: 680px; }
}
@media (min-width: 900px) {
  .hero-carousel-wrap { height: 80vh; min-height: 480px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-lead { font-size: 1.05rem; }
}

/* Carousel — reset to fill the full-bleed wrap when inside the hero */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--green-900); aspect-ratio: 4/3; }
.hero-carousel-wrap .carousel { position: absolute; inset: 0; height: 100%; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.carousel-track { display: flex; height: 100%; transition: transform .5s ease; }
.carousel-slide { min-width: 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.85); border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--green-900); font-weight: 900; font-size: 1.1rem;
}
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
.carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
/* 24x24 tap target with a small visual dot inside, for mobile tap-target sizing */
.carousel-dot {
  width: 24px; height: 24px; border-radius: 50%; background: transparent; border: none; cursor: pointer;
  padding: 0; display: flex; align-items: center; justify-content: center;
}
.carousel-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.6); }
.carousel-dot.is-active::before { background: var(--gold); }

/* -------------------------------------------------------------------------
   Sections (never pure white — alternate tinted greens)
   ------------------------------------------------------------------------- */
section { padding: 44px 0; }
.section-alt { background: var(--bg-section-alt); }
.section-dark { background: var(--green-900); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark .section-lead { color: rgba(255,255,255,.85); }
.section-head { max-width: 68ch; margin-bottom: 26px; }
.eyebrow { display: inline-block; color: var(--green-700); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.section-dark .eyebrow { color: var(--gold); }
h2 { font-size: 1.6rem; color: var(--green-900); }
.section-lead { color: var(--ink-soft); }

/* -------------------------------------------------------------------------
   Lead form
   ------------------------------------------------------------------------- */
.lead-form-wrap {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid var(--border);
}
.lead-form-wrap h2 { font-size: 1.3rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit; background: var(--bg-section);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-submit-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-note { font-size: .78rem; color: var(--ink-soft); }
.form-status { font-weight: 700; font-size: .9rem; }
.form-status.success { color: var(--green-700); }
.form-status.error { color: var(--red); }

/* -------------------------------------------------------------------------
   Table of contents
   ------------------------------------------------------------------------- */
.toc { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.toc h2 { font-size: 1rem; margin-bottom: 10px; }
.toc ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
@media (min-width: 720px) { .toc ul { grid-template-columns: repeat(3, 1fr); } }
.toc a { font-weight: 700; font-size: .88rem; color: var(--green-700); }
.toc a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
   Card grids (mobile: 2 col, desktop: 4 col)
   ------------------------------------------------------------------------- */
.grid-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 720px) { .grid-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .grid-cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); display: flex; flex-direction: column;
}
.card-img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.card-img-square { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.gallery-tile img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gallery-tile { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1rem; margin-bottom: 6px; }
.card-body p { font-size: .86rem; color: var(--ink-soft); margin-bottom: 12px; flex: 1; }
.card-body .btn { font-size: .78rem; padding: 9px 14px; align-self: flex-start; }

/* Benefits grid */
.benefit-card { background: var(--white); border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.benefit-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--green-100); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.benefit-icon svg { width: 22px; height: 22px; color: var(--green-700); }
.benefit-card h3 { font-size: .98rem; }
.benefit-card p { font-size: .85rem; color: var(--ink-soft); margin: 0; }

/* Applications checklist grid */
.checklist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .checklist-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .checklist-grid { grid-template-columns: repeat(5, 1fr); } }
.checklist-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 12px;
  font-weight: 700; font-size: .85rem; display: flex; gap: 8px; align-items: flex-start;
}
.checklist-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green-700); margin-top: 1px; }

/* Process steps */
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .steps-grid { grid-template-columns: repeat(5, 1fr); } }
.step-card { background: var(--white); border-radius: var(--radius); padding: 16px; border: 1px solid var(--border); }
.step-num {
  counter-increment: step; width: 32px; height: 32px; border-radius: 50%; background: var(--green-900); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .88rem; margin-bottom: 10px;
}
.step-num::before { content: counter(step); }
.step-card h3 { font-size: .92rem; }
.step-card p { font-size: .82rem; color: var(--ink-soft); margin: 0; }

/* Materials */
.materials-list { display: flex; flex-wrap: wrap; gap: 10px; }
.material-chip { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .84rem; }

/* Pricing */
.pricing-box { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: grid; gap: 18px; }
@media (min-width: 760px) { .pricing-box { grid-template-columns: 1.3fr .7fr; align-items: center; } }
.pricing-box h2 { font-size: 1.25rem; }

/* Reviews empty state */
.reviews-empty { background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; }
.reviews-empty h2 { font-size: 1.15rem; }
.reviews-empty p { max-width: 52ch; margin-left: auto; margin-right: auto; color: var(--ink-soft); }

/* Nearby areas */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.area-chip { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: .85rem; }
.area-chip:hover { border-color: var(--green-700); color: var(--green-700); }

/* FAQs */
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
  padding: 14px 16px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--green-700); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 16px 16px; color: var(--ink-soft); font-size: .92rem; }

/* Guide content */
.guide-block { margin-bottom: 22px; }
.guide-block h3 { font-size: 1.05rem; color: var(--green-900); }
.guide-block p { color: var(--ink-soft); }

/* -------------------------------------------------------------------------
   Location hub / index pages
   ------------------------------------------------------------------------- */
.link-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px;
  font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.link-card:hover { border-color: var(--green-700); }
.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .list-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .list-grid { grid-template-columns: repeat(4, 1fr); } }

/* -------------------------------------------------------------------------
   Final CTA
   ------------------------------------------------------------------------- */
.final-cta { background: var(--green-900); color: var(--white); text-align: center; padding: 48px 0; }
.final-cta h2 { color: var(--white); font-size: 1.5rem; }
.final-cta p { color: rgba(255,255,255,.85); max-width: 56ch; margin: 0 auto 20px; }
.final-cta .cta-row { justify-content: center; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.82); padding: 44px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-col h3 { color: var(--white); font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { font-size: .88rem; color: rgba(255,255,255,.75); }
.footer-col a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 30px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.6); }

/* -------------------------------------------------------------------------
   Sticky floating Call + WhatsApp buttons (right edge, mobile only —
   desktop already has both buttons in the header)
   ------------------------------------------------------------------------- */
.floating-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 400;
  display: flex; flex-direction: column; gap: 12px;
}
.floating-cta a {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  transition: transform .3s;
}
.floating-cta a:hover, .floating-cta a:active { transform: scale(1.1); }
.floating-cta a svg { width: 28px; height: 28px; }
.floating-cta .call { background: var(--red); color: var(--white); }
/* True WhatsApp brand green — safe here since this is an icon-only button
   (no text node), so the WCAG text-contrast audit does not apply to it. */
.floating-cta .whatsapp { background: var(--whatsapp-brand); color: var(--white); animation: floatBounce 2.4s ease-in-out infinite; }
/* Shown on every breakpoint — mirrors featherguard.in, which keeps this
   floating widget visible alongside the header's own Call/WhatsApp buttons. */

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .floating-cta .whatsapp { animation: none; }
}

/* -------------------------------------------------------------------------
   Generic content page (about/contact/legal)
   ------------------------------------------------------------------------- */
.page-hero { background: var(--green-900); color: var(--white); padding: 34px 0; }
.page-hero h1 { font-size: 1.8rem; margin: 0; }
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-card { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); }
.contact-info-card .row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.contact-info-card .row:last-child { border-bottom: none; }
.contact-info-card svg { width: 20px; height: 20px; color: var(--green-700); flex-shrink: 0; }

/* -------------------------------------------------------------------------
   Utility
   ------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: .85rem; color: var(--ink-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
