/* ==========================================================================
   RIVANA — Packaged Drinking Water
   One-page site stylesheet
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-blue: #027ddb;
  --color-blue-dark: #0263ac;
  --color-card: #eaeaea;
  --color-card-dark: #e2e2e2;
  --color-text-muted: #666666;

  --font-display: "Anton", sans-serif;
  --font-body: "Poppins", sans-serif;
  --font-script: "Yellowtail", cursive;

  --container-max: 1240px;
  --side-pad: clamp(1.25rem, 5vw, 4rem);

  /* Single consistent gap used between every major block/section
     transition in the page flow, so the vertical rhythm reads as
     even throughout (hero image -> headline, section -> heading,
     heading -> content grid, grid -> next section, etc.) */
  --space-flow: clamp(2rem, 5.5vw, 3.25rem);

  --radius-lg: 20px;
  --radius-pill: 999px;

  --header-h: 76px;

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-button: 0 6px 18px rgba(0, 0, 0, 0.18);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
}

body,
html {
  max-width: 100vw;
}

h1, h2, h3, h4, p, ul, ol, li, figure {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

svg {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--color-black);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Base type ---------- */
body {
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--side-pad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1;
  color: var(--color-white);
  background: var(--color-black);
  border: none;
  border-radius: var(--radius-pill);
  padding: 1.15em 2.3em;
  white-space: nowrap;
  box-shadow: var(--shadow-button);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.btn:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-small {
  padding: 0.7em 1.5em;
  font-size: clamp(0.85rem, 0.8rem + 0.15vw, 0.95rem);
}

.btn-ghost {
  background: transparent;
  color: var(--color-black);
  box-shadow: none;
  border: 2px solid var(--color-black);
}

.btn-ghost:hover {
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: none;
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  letter-spacing: 0.01em;
  color: var(--color-black);
  line-height: 1;
}

.header-cta {
  flex: 0 0 auto;
}

/* ---------- Layout sections ---------- */
main {
  display: block;
}

section {
  position: relative;
}

.section-pad {
  padding-block: clamp(3rem, 6vw, 6rem);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: var(--space-flow);
  padding-bottom: calc(var(--space-flow) / 2);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-flow);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  order: 2;
}

.hero-headline {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.7rem, 1.15rem + 2.6vw, 2.75rem);
  line-height: 1.18;
  color: var(--color-black);
  max-width: 18ch;
}

.hero-headline .script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--color-blue);
  font-size: 1.18em;
  line-height: 1;
  display: inline-block;
  padding-inline: 0.05em;
  transform: translateY(0.04em);
}

.hero-visual {
  order: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 380 / 507;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  isolation: isolate;
}

.hero-bottle-wrap {
  position: absolute;
  inset: 0;
  overflow: visible;
  z-index: 1;
}

.hero-bottle {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 108%;
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%) rotate(14deg);
  transform-origin: center center;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.16));
}

/* ---------- Areas we serve ---------- */
.areas {
  padding-block: calc(var(--space-flow) / 2);
}

.areas-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  color: var(--color-black);
  margin-bottom: var(--space-flow);
}

.areas-label .arrow {
  display: inline-block;
  margin-left: 0.35em;
  transition: transform 0.2s var(--ease);
}

.district-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.district-card {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: clamp(0.9rem, 2.5vw, 1.15rem) clamp(1.1rem, 3vw, 1.5rem);
  min-height: 96px;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.district-card:hover {
  background: var(--color-card-dark);
}

.district-badge {
  position: relative;
  flex: 0 0 auto;
  width: clamp(58px, 8vw, 72px);
  height: clamp(58px, 8vw, 72px);
}

.badge-circle {
  position: absolute;
  width: 68%;
  height: 68%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-blue);
  border-radius: 50%;
}

.badge-map {
  position: absolute;
  width: 112%;
  height: 112%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.district-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1rem, 0.92rem + 0.45vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--color-black);
}

/* ---------- Process / steps ---------- */
.process {
  padding-block: calc(var(--space-flow) / 2) var(--space-flow);
}

.process-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 2.3vw, 2.9rem);
  line-height: 1.12;
  max-width: 14ch;
  margin-bottom: var(--space-flow);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.process-card {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 1.75rem);
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2rem);
  min-height: 190px;
}

.process-icon {
  position: relative;
  flex: 0 0 auto;
  width: clamp(64px, 10vw, 84px);
}

.process-icon img {
  display: block;
  width: 100%;
  height: auto;
}

.process-number {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem);
  color: var(--color-blue);
}

.process-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.process-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
  line-height: 1.1;
  color: var(--color-black);
}

.process-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 42ch;
}

/* ---------- Final CTA band ---------- */
.final-cta {
  padding-bottom: var(--space-flow);
}

.final-cta .container {
  display: flex;
  justify-content: center;
}

.final-cta .btn {
  width: 100%;
  max-width: 620px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem);
  color: var(--color-black);
}

.footer-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  color: var(--color-text-muted);
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--color-black);
  border-color: currentColor;
}

.footer-legal {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  color: var(--color-text-muted);
  max-width: 46ch;
}

/* ---------- Legal / policy pages ---------- */
.legal-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.1;
}

.legal-updated {
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.legal-main {
  padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}

.legal-content {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 2.75rem);
}

.legal-content section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.legal-content h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  color: var(--color-black);
}

.legal-content p,
.legal-content li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  line-height: 1.75;
  color: #333333;
}

.legal-content ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-content a:not(.btn) {
  color: var(--color-blue);
  font-weight: 600;
  border-bottom: 1px solid rgba(2, 125, 219, 0.35);
  transition: border-color 0.2s var(--ease);
}

.legal-content a:not(.btn):hover {
  border-color: currentColor;
}

.legal-content strong {
  font-weight: 700;
  color: var(--color-black);
}

.legal-cta {
  margin-top: 0.5rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.legal-back:hover {
  color: var(--color-black);
}

/* ---------- 404 page ---------- */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(3.5rem, 10vw, 7rem);
  text-align: center;
}

.error-page .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.error-code {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  color: var(--color-blue);
  line-height: 1;
}

.error-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  color: var(--color-black);
}

.error-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 42ch;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Small phones: tighten a touch further */
@media (max-width: 360px) {
  :root {
    --side-pad: 1rem;
  }
}

/* Tablet and up */
@media (min-width: 640px) {
  .district-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .hero-content {
    order: 1;
    align-items: flex-start;
    text-align: left;
  }

  .hero-headline {
    max-width: 15ch;
  }

  .hero-visual {
    order: 2;
    justify-content: flex-end;
  }

  .hero-card {
    max-width: 480px;
  }

  .district-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
  }

  .district-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.1rem;
    min-height: 190px;
    padding: 1.6rem;
  }

  .district-badge {
    width: 68px;
    height: 68px;
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .process-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 340px;
    padding: 2.25rem;
  }

  .process-icon {
    width: 92px;
    margin-bottom: 0.5rem;
  }

  .process-body {
    gap: 0.65rem;
  }
}

/* Large desktop */
@media (min-width: 1440px) {
  :root {
    --side-pad: clamp(2rem, 6vw, 6rem);
  }
}
