/* ===== Base & Variables =====
   Brand palette: Blue (trust) + Teal (water/secondary) + Orange (action/CTA) */
:root {
  --blue: #1565C0;
  --blue-dark: #0D47A1;
  --blue-light: #E3F2FD;
  --teal: #00897B;
  --teal-dark: #00695C;
  --teal-light: #E0F2F1;
  --accent: #FF7A00;
  --accent-dark: #E56A00;
  --accent-light: #FFE9D6;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EBE57;
  --text: #263238;
  --text-light: #607D8B;
  --bg: #FAFBFC;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(21, 101, 192, 0.08);
  --shadow-lg: 0 12px 32px rgba(13, 71, 161, 0.14);
  --font-heading: 'Assistant', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Assistant', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; }

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

/* Small colored pill label shown above section titles */
.eyebrow {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(255, 122, 0, 0.45); }

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.whatsapp-icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  fill: currentColor;
}
.whatsapp-icon-lg {
  width: 30px;
  height: 30px;
  vertical-align: middle;
}
.btn-whatsapp:hover { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 10px 20px;
  font-size: 0.95rem;
}
.btn-outline:hover { background: var(--blue-light); }

/* ===== Header ===== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--blue), var(--teal), var(--accent)) 1;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--blue-dark);
}
.logo-text strong { font-weight: 800; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-light) 0%, var(--bg) 70%);
  padding: 60px 0 56px;
  text-align: center;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.35;
  z-index: 0;
}
.hero::before {
  width: 260px;
  height: 260px;
  background: var(--teal-light);
  top: -80px;
  right: -60px;
}
.hero::after {
  width: 220px;
  height: 220px;
  background: var(--accent-light);
  bottom: -70px;
  left: -50px;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}
.hero-note {
  font-size: 0.9rem;
  color: var(--text-light);
}
.hero-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 71, 161, 0.12);
  max-width: 560px;
  margin-inline: auto;
}
.hero-highlights li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-dark);
}

/* ===== Quick contact form (top) ===== */
.contact-top { padding-top: 12px; padding-bottom: 44px; }
.contact-top-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--teal);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;
  margin-top: 16px;
}
.contact-form-inline .form-group {
  flex: 1 1 200px;
  margin-bottom: 0;
  text-align: right;
}
.contact-form-inline .form-submit {
  flex: 0 0 auto;
  width: auto;
  padding: 12px 32px;
  margin-top: 24px;
}
.contact-form-inline .form-message {
  flex-basis: 100%;
}

/* ===== Why us ===== */
.why-us { padding: 56px 0; text-align: center; }
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-card:nth-child(3n+2) { border-top-color: var(--teal); }
.why-card:nth-child(3n+3) { border-top-color: var(--accent); }
.why-icon { font-size: 2rem; }
.why-stat {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-dark);
}
.why-label {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ===== Sections common ===== */
section { padding: 64px 0; }
section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 36px;
}
.section-head { text-align: center; }

/* ===== Services ===== */
.services { background: var(--teal-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--blue-light), var(--white));
}
.service-card:nth-child(even) .service-icon {
  background: linear-gradient(135deg, var(--accent-light), var(--white));
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--blue-dark);
}
.service-card p {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* ===== Hours & coverage ===== */
.hours { background: var(--blue-light); text-align: center; }
.hours-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 30px;
  text-align: right;
}
.hours-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border-right: 4px solid var(--teal);
}
.hours-card h3 {
  color: var(--blue-dark);
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.hours-card p { color: var(--text-light); }

/* ===== Reviews carousel ===== */
.reviews { background: var(--white); }
.reviews-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 960px;
  margin: 0 auto;
}
.reviews-viewport {
  overflow: hidden;
  flex: 1;
  direction: ltr;
}
.reviews-track {
  display: flex;
  transition: transform 0.4s ease;
}
.review-page {
  flex: 0 0 100%;
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: linear-gradient(160deg, var(--white) 0%, var(--teal-light) 140%);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stars { margin-bottom: 10px; font-size: 1.1rem; }
.review-card p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 14px;
}
.review-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.review-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-name {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}
.carousel-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--blue-dark);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.carousel-arrow:hover { background: var(--blue-light); }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #CFD8DC;
  border: none;
  cursor: pointer;
  padding: 0;
}
.carousel-dot.active { background: var(--accent); }

/* ===== Contact form ===== */
.contact { background: var(--bg); }
.contact-inner { max-width: 480px; }
.contact-quick-actions {
  background: linear-gradient(135deg, var(--blue-light), var(--teal-light));
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 22px;
}
.contact-quick-label {
  display: block;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.contact-quick-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-quick-buttons .btn { padding: 10px 20px; font-size: 0.9rem; }
.contact-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 22px;
}
.contact-divider::before, .contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #CFD8DC;
}
.contact-divider span { padding: 0 12px; }
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--accent);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #CFD8DC;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.form-group input:focus {
  outline: none;
  border-color: var(--teal);
}
.form-submit { width: 100%; justify-content: center; margin-top: 6px; }
.form-message {
  margin-top: 14px;
  font-size: 0.92rem;
  text-align: center;
  min-height: 20px;
}
.form-message.success { color: #2E7D32; font-weight: 600; }
.form-message.error { color: #C62828; font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(135deg, var(--blue-dark), var(--teal-dark));
  color: var(--white);
  padding: 36px 0;
  text-align: center;
}
.footer-inner .logo { justify-content: center; margin-bottom: 12px; }
.footer-inner .logo-text { color: var(--white); }
.footer-inner a { text-decoration: underline; }
.footer-copy {
  margin-top: 10px;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ===== Floating WhatsApp ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
  z-index: 200;
  transition: transform 0.15s ease;
}
.floating-whatsapp:hover { transform: scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .review-page { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .btn { padding: 12px 20px; font-size: 0.95rem; }
  section { padding: 44px 0; }
  .reviews-carousel { max-width: 100%; }
  .carousel-arrow { width: 34px; height: 34px; font-size: 1.2rem; }
  .hours-inner { text-align: center; }
  .hours-card { border-right: none; border-top: 4px solid var(--teal); }
}

/* ===== Accessibility ===== */

/* Visible keyboard focus indicator on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.carousel-dot:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.form-group input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.25);
}

/* Skip-to-content link: hidden until focused via keyboard */
.skip-link {
  position: absolute;
  top: -60px;
  right: 12px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  z-index: 3000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}

/* Respect users who ask the OS for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Carousel pause/play control */
.carousel-pause {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px auto 0;
  padding: 8px 16px;
  background: var(--white);
  border: 1.5px solid var(--blue-light);
  border-radius: 999px;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.carousel-pause:hover { background: var(--blue-light); }

/* ===== Accessibility widget ===== */
.a11y-widget {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 2500;
}
.a11y-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.a11y-toggle svg { width: 28px; height: 28px; fill: currentColor; }
.a11y-toggle:hover { background: var(--blue); }
.a11y-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 {
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.a11y-panel button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  text-align: right;
  background: var(--bg);
  border: 1px solid var(--blue-light);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.a11y-panel button[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.a11y-panel button:hover { background: var(--blue-light); }
.a11y-panel button[aria-pressed="true"]:hover { background: var(--blue-dark); }
.a11y-panel .a11y-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 0.82rem;
  text-decoration: underline;
  color: var(--blue-dark);
}

/* States toggled by the accessibility widget */
html.a11y-underline a { text-decoration: underline !important; }
html.a11y-contrast { filter: invert(1) hue-rotate(180deg); background: #000; }
html.a11y-stop-anim *,
html.a11y-stop-anim *::before,
html.a11y-stop-anim *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

@media (max-width: 600px) {
  .a11y-widget { bottom: 90px; right: 14px; }
  .a11y-panel { width: 230px; }
}
