:root {
  --navy: #0d2b3e;
  --navy-deep: #071b28;
  --green: #1a9b52;
  --green-deep: #0f6b39;
  --yellow: #f4c430;
  --cream: #faf5e8;
  --paper: #fffdf8;
  --ink: #12262c;
  --muted: #5d6f6c;
  --line: rgba(13, 43, 62, 0.14);
  --white: #ffffff;
  --shadow: 0 26px 60px rgba(9, 32, 46, 0.16);
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  line-height: 1.55;
}

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

img {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* ---------- media frame with graceful fallback ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy), #123c53 55%, var(--green-deep));
}

.media-frame::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  content: "Globo Água";
  text-align: center;
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--empty img {
  display: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-height);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand img {
  width: 168px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto 0 48px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--navy);
}

.desktop-nav a {
  position: relative;
  padding: 4px 0;
}

.desktop-nav a::after {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--green);
  content: "";
  transition: width 0.22s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.phone-link {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(15, 107, 57, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: var(--green-deep);
  box-shadow: 0 18px 36px rgba(15, 107, 57, 0.32);
  transform: translateY(-2px);
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
}

.button-ghost {
  border-color: rgba(13, 43, 62, 0.28);
  background: transparent;
  color: var(--navy);
  box-shadow: none;
}

.button-ghost:hover {
  background: rgba(13, 43, 62, 0.06);
}

.button-light {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 0;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  color: var(--navy);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
  content: "";
}

h1,
h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.hero-copy {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 30px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-tags li {
  position: relative;
  padding-left: 18px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-tags li::before {
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.hero-media {
  position: relative;
}

.media-frame--hero {
  aspect-ratio: 4 / 3.2;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-panel {
  position: absolute;
  left: -20px;
  bottom: -28px;
  width: min(240px, 70%);
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 22px 46px rgba(7, 27, 40, 0.32);
}

.hero-panel span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 700;
  font-size: 0.82rem;
}

.hero-panel strong {
  display: block;
  margin: 4px 0 8px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}

/* ---------- trust band ---------- */
.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-band div {
  padding: 36px 24px;
  text-align: center;
  background: var(--paper);
}

.trust-band strong {
  display: block;
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1;
}

.trust-band span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

/* ---------- generic section ---------- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading p.eyebrow {
  justify-content: center;
}

.section-heading p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.06rem;
}

/* ---------- catalog ---------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.catalog-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.catalog-card:hover {
  border-color: rgba(26, 155, 82, 0.34);
  box-shadow: 0 20px 44px rgba(9, 32, 46, 0.1);
  transform: translateY(-4px);
}

.media-frame--catalog {
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  border-radius: 12px;
}

.catalog-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.24rem;
}

.catalog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- logo marquee ---------- */
.logo-marquee {
  padding: 36px 0 40px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-label {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marqueeScroll 48s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track img {
  height: 46px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.marquee-track img[data-brand="ibira"],
.marquee-track img[data-brand="lindoya-genuina"],
.marquee-track img[data-brand="lindoya-verao"],
.marquee-track img[data-brand="nestle"],
.marquee-track img[data-brand="sao-lourenco"],
.marquee-track img[data-brand="prata"] {
  height: 74px;
  max-width: 200px;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- how it works ---------- */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
}

.how-step-number {
  display: block;
  margin-bottom: 12px;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(13, 43, 62, 0.25);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
}

.how-step h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.how-step p {
  margin: 0;
  color: var(--muted);
}

/* ---------- about ---------- */
.about-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.about-image .media-frame {
  aspect-ratio: 4 / 3.4;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.about-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--navy);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  content: "✓";
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

/* ---------- regions ---------- */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.region-card {
  min-height: 170px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.region-card:hover {
  border-color: rgba(26, 155, 82, 0.34);
  box-shadow: 0 20px 44px rgba(9, 32, 46, 0.1);
  transform: translateY(-4px);
}

.region-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.16rem;
}

.region-card p {
  margin: 0;
  color: var(--muted);
}

/* ---------- seo section ---------- */
.seo-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  padding: 96px max(24px, calc((100vw - 1180px) / 2));
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.seo-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.seo-columns p {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
  color: var(--muted);
  font-size: 1.02rem;
}

.seo-content {
  display: grid;
  gap: 28px;
}

.seo-neighborhoods {
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--green-deep));
}

.seo-neighborhoods-label {
  display: block;
  margin-bottom: 14px;
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.neighborhood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.neighborhood-chip {
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}

.neighborhood-chip:nth-child(5n + 1) {
  background: var(--yellow);
}

.neighborhood-chip:nth-child(5n + 2) {
  background: #ffffff;
}

.neighborhood-chip:nth-child(5n + 3) {
  background: #7fe0ac;
}

.neighborhood-chip:nth-child(5n + 4) {
  background: #ffd9a0;
}

.neighborhood-chip:nth-child(5n + 5) {
  background: #cdeeff;
}

.neighborhood-chip:last-child {
  background: transparent;
  border: 2px dashed var(--yellow);
  color: var(--yellow);
}

/* ---------- contact ---------- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 96px;
  padding: 64px 48px;
  border-radius: 24px;
  background: var(--navy);
  color: var(--white);
}

.contact-section h2 {
  color: var(--white);
}

.contact-copy {
  max-width: 640px;
}

.contact-copy .eyebrow {
  color: var(--yellow);
}

.contact-copy p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-actions {
  display: grid;
  gap: 12px;
  min-width: 240px;
}

.admin-link {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 700;
  font-size: 0.86rem;
  text-align: center;
}

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 48px;
  color: var(--muted);
}

.site-footer img {
  width: 100px;
  max-height: 46px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.floating-whatsapp {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(26, 155, 82, 0.36);
}

/* ---------- admin ---------- */
.admin-body {
  background: #eef1e9;
}

.is-hidden {
  display: none !important;
}

.login-gate {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--navy);
}

.login-card {
  display: grid;
  gap: 6px;
  width: min(360px, 100%);
  padding: 36px 32px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.login-card img {
  width: 96px;
  margin: 0 auto 14px;
}

.login-card .eyebrow {
  justify-content: center;
}

.login-card h1 {
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.login-card .field {
  margin-bottom: 14px;
  text-align: left;
}

.login-card .button {
  margin-top: 8px;
  width: 100%;
}

.login-error {
  display: none;
  margin-top: 14px;
  color: #b3261e;
  font-weight: 700;
  font-size: 0.88rem;
}

.login-error.is-visible {
  display: block;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px;
  background: var(--navy);
  color: var(--white);
}

.admin-sidebar img {
  width: 120px;
  margin-bottom: 32px;
}

.admin-sidebar a,
.admin-sidebar button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.admin-main {
  padding: 32px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-top h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.admin-panel {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.admin-panel h2 {
  margin-bottom: 18px;
  font-size: 1.32rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.repeat-list {
  display: grid;
  gap: 12px;
}

.repeat-item {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f7ef;
}

.icon-button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #fde7e2;
  color: #a3341f;
  font-weight: 800;
  cursor: pointer;
}

.admin-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0 0;
  background: linear-gradient(180deg, rgba(238, 241, 233, 0), #eef1e9 28%);
}

.notice {
  display: none;
  margin-top: 12px;
  color: var(--green-deep);
  font-weight: 800;
}

.notice.is-visible {
  display: block;
}

.notice.is-error {
  color: #b3261e;
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px 64px;
  }

  .hero-media {
    order: -1;
  }

  .hero-panel {
    left: 16px;
  }

  .trust-band,
  .about-section,
  .seo-section {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .regions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    grid-template-columns: 1fr;
    text-align: center;
    border-radius: 20px;
    margin-left: 16px;
    margin-right: 16px;
  }

  .contact-actions {
    justify-items: center;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand img {
    width: 132px;
    max-height: 60px;
  }

  h1 {
    font-size: 2.1rem;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .section {
    padding: 64px 16px;
  }

  .contact-section {
    padding: 40px 24px;
  }

  .catalog-grid,
  .regions-grid,
  .seo-columns,
  .form-grid,
  .repeat-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    padding-bottom: 40px;
  }

  .admin-main {
    padding: 18px;
  }
}
