/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root Variables */
:root {
  --primary-color: #007bff;
  --primary-color-dark: #0056b3;
  --secondary-color: #ffcc00;
  --light-background: #fff;
  --dark-background: #f4f4f4;
  --text-color: #333;
}

/* Base */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--dark-background);
  color: var(--text-color);
}

/* Global layout */
.section {
  padding: 3rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-lead {
  margin: 0.75rem 0 1.5rem;
  color: #2d3748;
}

hr {
  border: none;
  border-top: 1px solid #e2e8f0;
}

/* Sticky header */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--primary-color);
  padding: 0.75rem 1rem;
}

/* Header */
header {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
}

header h1 {
  margin-bottom: 0.5rem;
}

nav ul {
  list-style: none;
  padding-left: 0;
}

nav ul li {
  display: inline;
  margin: 0 12px 6px;
}

nav a {
  color: #fff;
  text-decoration: none;
}

nav a:hover,
nav a:focus {
  text-decoration: underline;
}

/* Desktop layout for header/nav */
@media (min-width: 901px) {
  header {
    text-align: left;
  }

  .sticky-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  nav ul {
    display: flex;
    gap: 14px;
    margin: 0;
  }

  nav ul li {
    margin: 0;
    display: inline;
  }
}

/* Mobile nav controls */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  color: #fff;
  cursor: pointer;
  margin: 0 auto 0.5rem;
  width: 44px;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column; /* stack bars vertically */
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
}

nav {
  position: relative; /* anchor the close button */
}

.nav-close {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: auto;
  position: absolute;
  top: 6px;
  right: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* (Legacy) Credibility bar */
.cred-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #e8f2ff;
  color: #0a2a5e;
  font-weight: 600;
  text-align: center;
}

/* Counter + pills */
.counter-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  justify-content: center;
}

.digital-counter {
  font-family: "Courier New", Consolas, monospace;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: #0a2a5e;
  color: #e8f2ff;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
  min-width: 7ch;
  display: inline-block;
}

.counter-label {
  color: #0a2a5e;
  font-weight: 700;
}

.info-pill {
  background: #0a2a5e;
  color: #e8f2ff;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Hero */
#hero {
  background: var(--secondary-color);
  color: #333;
  text-align: center;
}

.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}

#hero .btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

#hero .btn:hover,
#hero .btn:focus {
  background: var(--primary-color-dark);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.info-pill {
  background: #0a2a5e;
  color: #e8f2ff;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.counter-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  justify-content: center;
}

/* QA buttons */
.qa-btn {
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.qa-btn.primary {
  background: var(--primary-color);
  color: #fff;
}

.qa-btn.ghost {
  background: #fff;
  color: var(--primary-color);
}

.qa-btn:hover,
.qa-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.qa-btn.full {
  display: block;
  text-align: center;
  width: 100%;
}

.qa-btn.whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #1eb655;
}

.qa-btn.whatsapp:hover,
.qa-btn.whatsapp:focus-visible {
  background: #1eb655;
}

/* Services */
#services {
  background: var(--light-background);
}

.service {
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(0, 123, 255, 0.04), transparent);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-position 240ms ease;
  background-size: 200% 100%;
  background-position: 0% 50%;
  scroll-margin-top: 90px;
}

.service:hover,
.service:focus-within {
  transform: translateX(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  border-color: var(--primary-color);
  background-position: 100% 50%;
}

.service h3 {
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.toggle {
  cursor: pointer;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1rem;
  background: none;
  border: none;
  padding: 0;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle::after {
  content: "+";
  font-size: 1.2rem;
}

.toggle[aria-expanded="true"]::after {
  content: "−";
}

.toggle:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.details {
  margin-top: 12px;
  border-left: 2px solid var(--primary-color);
  padding: 15px 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.pricing-examples {
  list-style: disc;
  margin-left: 1.25rem;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

/* Booking */
#booking {
  background: var(--light-background);
  overflow-x: hidden;
}

.service-area {
  margin: 0.75rem 0 1.25rem;
  font-weight: 600;
  color: #0a2a5e;
}

.booking-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 2fr 1fr;
  max-width: 100%;
}

form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-top: 0.85rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

form input,
form textarea,
form button,
select,
fieldset {
  width: 100%;
  max-width: 100%;
}

form input,
form textarea,
select {
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #d0d7de;
  background: #fff;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form input:focus,
form textarea:focus,
select:focus,
fieldset:focus {
  border-color: var(--primary-color);
  outline: none;
}

form button {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: var(--primary-color);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 6px;
}

form button:hover,
form button:focus {
  background: var(--primary-color-dark);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-actions button {
  margin-top: 0;
  flex: 1 1 180px;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: 1px solid #1eb655;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: #1eb655;
}

.whatsapp-note {
  margin-top: 0.5rem;
  color: #2d3748;
  font-size: 0.9rem;
}

.booking-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aside-card {
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.mini-list {
  list-style: disc;
  margin-left: 1.25rem;
  margin-top: 0.5rem;
  color: #0f223d;
}

.testimonial-mini blockquote {
  margin: 0;
  font-style: italic;
}

.btn-secondary {
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  background: #0a2a5e;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #061a3a;
}

.estimate-result {
  margin-top: 0.75rem;
  font-weight: 700;
  color: #0a2a5e;
}

/* Form extras */
.form-fieldset {
  border: 1px solid #e2e8f0;
  padding: 0.9rem;
  margin-top: 0.75rem;
}

.form-fieldset legend {
  padding: 0 0.4rem;
  font-weight: 700;
  color: #0f223d;
}

.help-text {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #4a5568;
}

select {
  background: #f9fafb;
}

/* Value section */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.value-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  text-align: left;
  box-shadow: 0 6px 14px rgba(15, 34, 61, 0.08);
}

/* Testimonials */
#testimonials {
  background: #f8f9fa;
}

blockquote {
  padding: 1rem;
  margin: 1rem 0;
  font-style: italic;
  background-color: var(--light-background);
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Gallery */
#gallery {
  background: var(--light-background);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.gallery-grid figcaption {
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
}

.gallery-grid a.gallery-link {
  color: var(--primary-color);
  text-decoration: none;
}

.gallery-grid a.gallery-link:hover,
.gallery-grid a.gallery-link:focus-visible {
  text-decoration: underline;
}

/* Cluster carousel */
.gallery-cluster {
  position: relative;
}

.mini-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fafafa;
}

.mini-carousel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: none;
}

.mini-carousel img[data-active="true"] {
  display: block;
}

.cluster-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 0.25rem;
  pointer-events: none;
}

.cluster-controls button {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cluster-controls button:hover,
.cluster-controls button:focus-visible {
  background: rgba(0, 0, 0, 0.7);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 1rem;
  gap: 1rem;
}

.lightbox[aria-hidden="false"] {
  display: flex;
}

.lightbox-image {
  max-width: 80%;
  max-height: 90%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  background: rgba(255, 255, 255, 0.35);
}

/* Footer */
footer {
  padding: 2rem 1.5rem;
  background: var(--primary-color);
  color: #fff;
  text-align: center;
}

footer a {
  color: #fff;
}

/* Footer sitemap */
.footer-nav ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  z-index: 1000;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.sticky-cta:hover,
.sticky-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

/* Promo toast */
.promo-toast {
  position: fixed;
  bottom: 5.5rem;
  right: 1rem;
  background: #0a2a5e;
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  display: grid;
  gap: 0.5rem;
  max-width: 280px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 1000;
}

.promo-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast-link {
  color: #ffcc00;
  font-weight: 700;
  text-decoration: none;
}

.toast-link:hover,
.toast-link:focus-visible {
  text-decoration: underline;
}

.promo-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Help bubble */
.help-bubble {
  position: fixed;
  bottom: 6.5rem;
  left: 1rem;
  background: #ffcc00;
  color: #2d3748;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  z-index: 1000;
}

.help-panel {
  position: fixed;
  bottom: 9.5rem;
  left: 1rem;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  width: min(300px, 90vw);
  box-shadow: 0 20px 40px rgba(15, 34, 61, 0.2);
  display: none;
  z-index: 1000;
}

.help-panel[aria-hidden="false"] {
  display: grid;
  gap: 0.75rem;
}

.help-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.help-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

/* Mobile docked bar */
.mobile-dock {
  display: none;
  position: fixed;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  z-index: 1100;
}

.dock-toggle {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.mobile-dock-panel {
  position: fixed;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: min(320px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 20px 40px rgba(15, 34, 61, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 1100;
}

.mobile-dock-panel[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dock-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.dock-close {
  border: none;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Global offset for anchored sections */
html {
  scroll-padding-top: 120px;
  scroll-behavior: smooth;
}

/* Do not offset the top anchor so Home goes to the true top */
#top {
  scroll-margin-top: 0;
}

/* Media Queries */
@media (max-width: 900px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .promo-toast {
    bottom: 6rem;
    right: 0.75rem;
  }
}

@media (max-width: 600px) {
  nav ul li {
    display: block;
    margin: 5px 0;
  }

  .section {
    padding: 2rem 1rem;
  }

  .sticky-cta {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  nav ul {
    display: none;
    margin-top: 0.75rem;
  }

  /* show close only when nav is open */
  .nav-close {
    display: none;
    text-align: right;
  }

  .sticky-header.nav-open .nav-close {
    display: block;
  }

  .sticky-header.nav-open nav ul {
    display: grid;
    gap: 0.5rem;
  }

  .sticky-header.nav-open nav {
    background: rgba(0, 0, 0, 0.08);
    padding: 0.75rem;
    border-radius: 10px;
  }

  .help-bubble,
  .help-panel,
  .promo-toast,
  .sticky-cta {
    display: none;
  }

  .mobile-dock {
    display: flex;
  }
}