/* Riacho Doce - Distribuidora de Aguas */
:root {
  --blue: #0b6eb8;
  --blue-dark: #084a7a;
  --blue-light: #4da3e0;
  --sky: #e8f4fc;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-500: #64748b;
  --gray-800: #1e293b;
  --green-wa: #25d366;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(11, 110, 184, 0.1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 1rem; z-index: 9999;
  background: var(--blue); color: var(--white); padding: 0.75rem 1rem;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 1rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* Loader */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem;
  transition: opacity 0.4s ease, visibility 0.4s;
}
#page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-drop {
  width: 48px; height: 48px;
  border: 3px solid var(--sky);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.header.is-scrolled {
  box-shadow: var(--shadow);
  border-color: rgba(11,110,184,0.08);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 0.65rem; }
.logo__icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.25rem;
}
.logo__text { line-height: 1.15; }
.logo__name { font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); }
.logo__sub { font-size: 0.65rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; }

.nav { display: none; gap: 0.25rem; }
.nav a {
  padding: 0.5rem 0.85rem; font-size: 0.875rem; font-weight: 500;
  color: var(--gray-800); border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--sky); color: var(--blue); }

.header__actions { display: none; align-items: center; gap: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem; font-size: 0.875rem; font-weight: 600;
  border-radius: 999px; border: none; cursor: pointer;
  font-family: inherit; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 4px 16px rgba(11,110,184,0.35); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn--outline:hover { background: var(--sky); }
.btn--wa { background: var(--green-wa); color: var(--white); }
.btn--wa:hover { background: #1fb855; }
.btn--block { width: 100%; }

.menu-toggle {
  display: flex; background: none; border: none; padding: 0.5rem;
  color: var(--blue-dark); cursor: pointer;
}
.menu-toggle svg { width: 26px; height: 26px; }

.mobile-nav {
  display: none; flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 0.75rem 1rem; font-weight: 500; border-radius: 8px;
}
.mobile-nav a:hover { background: var(--sky); }
.mobile-nav .btn { margin-top: 0.75rem; }

@media (min-width: 1024px) {
  .nav, .header__actions { display: flex; }
  .menu-toggle { display: none; }
}

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  padding-top: var(--header-h);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(8,74,122,0.92) 0%, rgba(11,110,184,0.75) 45%, rgba(11,110,184,0.4) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  padding: 4rem 0 5rem;
  max-width: 640px;
}
.hero__badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.7rem; font-weight: 600;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.04em;
}
.hero__badge svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.1;
  color: var(--white); letter-spacing: -0.02em;
}
.hero__lead {
  margin-top: 1.25rem; font-size: 1.125rem;
  color: rgba(255,255,255,0.88); max-width: 32rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__note {
  margin-top: 1.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.55);
}

/* Sections */
.section { padding: 5rem 0; }
.section--gray { background: var(--gray-50); }
.section--sky { background: var(--sky); }
.section__label {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--blue);
}
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--blue-dark); margin-top: 0.5rem;
}
.section__desc {
  margin-top: 1rem; color: var(--gray-500); font-size: 1.05rem;
  max-width: 36rem;
}
.section__header--center {
  text-align: center; max-width: 40rem; margin: 0 auto 3rem;
}
.section__header--center .section__desc { margin: 1rem auto 0; }

.two-col {
  display: grid; gap: 3rem; align-items: center;
}
@media (min-width: 992px) { .two-col { grid-template-columns: 1fr 1fr; } }

.media-round {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.media-round img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Cards grid */
.grid-3 { display: grid; gap: 1.25rem; }
.grid-4 { display: grid; gap: 1.25rem; }
.grid-6 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2,1fr); } .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-6 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 992px) { .grid-3 { grid-template-columns: repeat(3,1fr); } .grid-4 { grid-template-columns: repeat(4,1fr); } .grid-6 { grid-template-columns: repeat(3,1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card__icon {
  width: 52px; height: 52px;
  background: var(--sky); color: var(--blue);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-top: 1rem; font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); }
.card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--gray-500); }

/* Product cards */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--sky); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 1.25rem; }
.product-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--blue-dark); }
.product-card p { font-size: 0.85rem; color: var(--gray-500); margin: 0.5rem 0 1rem; }
.product-card .btn { padding: 0.55rem 1.25rem; font-size: 0.8rem; }

/* Differentials strip */
.strip {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.strip__item {
  text-align: center; padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}
.strip__item svg { width: 32px; height: 32px; color: var(--blue); margin: 0 auto; }
.strip__item span { display: block; margin-top: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--blue-dark); }

/* Area map */
.area-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
}
.area-list { margin-top: 1.5rem; }
.area-list li {
  padding: 0.5rem 0; border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem; color: var(--gray-800);
  display: flex; align-items: center; gap: 0.5rem;
}
.area-list li::before {
  content: ""; width: 8px; height: 8px;
  background: var(--blue); border-radius: 50%; flex-shrink: 0;
}
.area-notice {
  margin-top: 1.5rem; padding: 1rem;
  background: var(--sky); border-radius: 12px;
  font-size: 0.875rem; color: var(--blue-dark);
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
  height: 100%;
}
.testimonial__stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 2px; }
.testimonial p { margin-top: 0.75rem; font-size: 0.9rem; color: var(--gray-500); font-style: italic; }
.testimonial cite { display: block; margin-top: 1rem; font-size: 0.8rem; font-weight: 600; color: var(--blue-dark); font-style: normal; }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 992px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.form-box {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.35rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.7rem 1rem;
  border: 1px solid #e2e8f0; border-radius: 10px;
  font-family: inherit; font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11,110,184,0.15);
}
.form-check {
  display: flex; gap: 0.65rem; align-items: flex-start;
  font-size: 0.8rem; color: var(--gray-500); margin: 1rem 0;
}
.form-check input { margin-top: 0.2rem; accent-color: var(--blue); }
.form-check a { color: var(--blue); text-decoration: underline; }
.form-success { display: none; text-align: center; color: var(--blue); font-size: 0.875rem; margin-top: 0.75rem; }
.form-success.is-visible { display: block; }
.form-error { color: #dc2626; font-size: 0.75rem; margin-top: 0.25rem; display: none; }
.form-group.is-invalid input, .form-group.is-invalid textarea { border-color: #dc2626; }
.form-group.is-invalid .form-error { display: block; }

.contact-info dl { margin-top: 1.5rem; }
.contact-info dt { font-weight: 700; font-size: 0.8rem; color: var(--blue-dark); margin-top: 1rem; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { font-size: 0.875rem; color: var(--gray-500); }
.contact-info a { color: var(--blue); }

.map-wrap {
  margin-top: 2rem; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--gray-100);
  aspect-ratio: 16/10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 992px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .logo__name { color: var(--white); }
.footer .logo__sub { color: rgba(255,255,255,0.5); }
.footer h4 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--white); margin-bottom: 1rem;
}
.footer ul li { margin-bottom: 0.5rem; font-size: 0.875rem; }
.footer a:hover { color: var(--blue-light); }
.footer__bottom {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem; color: rgba(255,255,255,0.45);
}

/* Floating */
.whatsapp-float {
  position: fixed; bottom: 5.5rem; right: 1.25rem; z-index: 900;
  width: 56px; height: 56px; background: var(--green-wa); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

.back-top {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 900;
  width: 44px; height: 44px;
  background: var(--blue); color: var(--white);
  border: none; border-radius: 50%; cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  box-shadow: var(--shadow);
}
.back-top.is-visible { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-3px); }
.back-top svg { width: 20px; height: 20px; }

/* Cookie */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100;
  background: var(--white); border-top: 1px solid var(--gray-100);
  padding: 1.25rem; box-shadow: 0 -8px 32px rgba(0,0,0,0.08);
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1rem;
}
.cookie-banner p { font-size: 0.875rem; color: var(--gray-500); }
.cookie-banner strong { color: var(--gray-800); display: block; margin-bottom: 0.25rem; }
.cookie-banner a { color: var(--blue); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn--ghost { background: transparent; border: 1px solid #e2e8f0; color: var(--gray-800); }
@media (min-width: 768px) {
  .cookie-banner__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Legal pages */
.page-legal header { background: var(--blue-dark); padding: 2rem 0; }
.page-legal header a { color: var(--blue-light); font-size: 0.875rem; }
.page-legal header h1 { color: var(--white); font-size: 2rem; margin-top: 0.75rem; }
.page-legal article { max-width: 42rem; margin: 0 auto; padding: 3rem 1.25rem; }
.page-legal h2 { font-size: 1.2rem; color: var(--blue-dark); margin-top: 2rem; }
.page-legal p { color: var(--gray-500); margin-top: 0.75rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
