/* =========================================================
   AquaPure — Design tokens
   ========================================================= */
:root {
  --navy: #0B4F6C;
  --navy-dark: #083B52;
  --teal: #14B8A6;
  --sky: #0EA5E9;
  --bg-tint: #F1F9FC;
  --bg-tint-2: #F8FBFD;
  --border: #E2E8F0;
  --text-body: #475569;
  --text-heading: #1F2933;
  --text-muted: #94A3B8;
  --white: #FFFFFF;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container: 1200px;
  --gap: 28px;

  --font-body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

/* =========================================================
   Utility bar
   ========================================================= */
.utility-bar {
  background: var(--navy-dark);
  color: #cfe6ee;
  font-size: 13px;
  padding: 8px 0;
}
.utility-bar .wrap { display: flex; justify-content: flex-end; gap: 24px; }
.utility-bar a { opacity: 0.9; }
.utility-bar a:hover { opacity: 1; text-decoration: underline; }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  flex-shrink: 0;
}

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-body);
  border-radius: var(--radius-sm);
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.active { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 11px 22px !important;
  border-radius: var(--radius-sm);
  margin-left: 8px;
}
.nav-cta:hover { background: var(--navy-dark); }

.menu-toggle {
  display: none;
  background: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: 0.2s;
}
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }

/* =========================================================
   Hero banner
   ========================================================= */
.hero-banner {
  position: relative;
  min-height: 460px;
  background: linear-gradient(120deg, var(--navy) 0%, #146E94 55%, var(--teal) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-deco {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.hero-deco.small {
  width: 220px; height: 220px;
  right: 140px; top: 220px;
  background: rgba(255,255,255,0.08);
}
.hero-content { position: relative; z-index: 2; max-width: 620px; padding: 70px 0; color: var(--white); }
.eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9fe0d4;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero-content h1 { font-size: 44px; font-weight: 700; line-height: 1.2; margin-bottom: 18px; }
.hero-content p { font-size: 17px; color: #dff2f8; margin-bottom: 28px; max-width: 480px; }

.btn-primary {
  background: var(--white);
  color: var(--navy);
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  display: inline-block;
}
.btn-primary:hover { background: #eaf6fb; }
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  display: inline-block;
  margin-left: 12px;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* Page title (for About / Contact) */
.page-title {
  position: relative;
  min-height: 220px;
  background: linear-gradient(120deg, var(--navy) 0%, #146E94 55%, var(--teal) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 40px 24px;
}
.page-title h1 { font-size: 34px; font-weight: 700; margin-bottom: 8px; }
.page-title p { font-size: 15px; color: #dff2f8; }

/* =========================================================
   Sections
   ========================================================= */
section { padding: 72px 0; }
.section-tint { background: var(--bg-tint-2); }
.section-title { text-align: center; font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--text-body); font-size: 15px; margin-bottom: 44px; }

/* About split */
.about-split { display: flex; gap: 50px; align-items: center; }
.about-split .img-box {
  flex: 1;
  min-height: 280px;
  background: var(--bg-tint);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  padding: 20px;
}
.about-split .text-box { flex: 1; }
.about-split h2 { font-size: 26px; color: var(--navy); margin-bottom: 16px; }
.about-split p { margin-bottom: 14px; }
.about-split p:last-child { margin-bottom: 0; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
}
.card .icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--bg-tint);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 22px; font-weight: 700; color: var(--teal);
}
.card h3 { font-size: 18px; margin-bottom: 10px; color: var(--text-heading); }
.card p { font-size: 14px; }

/* Product circle grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.product-item { text-align: center; }
.product-circle {
  width: 140px; height: 140px;
  max-width: 100%;
  border-radius: 50%;
  background: var(--bg-tint);
  border: 1px solid #DCEEF4;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.product-circle svg { width: 60%; height: auto; }
.product-item h4 { font-size: 14px; font-weight: 700; color: var(--navy); }

/* Process steps */
.steps { display: flex; gap: 24px; flex-wrap: wrap; }
.step { flex: 1; min-width: 200px; text-align: center; }
.step .num-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h4 { font-size: 15px; margin-bottom: 8px; color: var(--text-heading); }
.step p { font-size: 13.5px; }

/* Stats */
.stats { background: var(--navy); padding: 60px 0; }
.stats .grid-4 { text-align: center; }
.stats .num { font-size: 34px; font-weight: 700; color: var(--white); }
.stats .label { font-size: 13px; color: #B9D8E4; margin-top: 6px; }

/* News */
.news-strip { display: flex; gap: 24px; flex-wrap: wrap; }
.news-item { flex: 1; min-width: 220px; border-left: 3px solid var(--teal); padding-left: 16px; }
.news-date { font-size: 12px; color: var(--text-muted); font-weight: 700; letter-spacing: 0.5px; margin-bottom: 6px; }
.news-item h4 { font-size: 15px; color: var(--text-heading); line-height: 1.4; }

/* Testimonials */
.testimonial-card { background: var(--bg-tint); border-radius: var(--radius-md); padding: 28px; }
.testimonial-card .quote { font-size: 14px; color: #334155; margin-bottom: 16px; }
.testimonial-card .who { font-size: 13px; font-weight: 700; color: var(--navy); }

/* CTA banner */
.cta-banner { background: var(--teal); text-align: center; padding: 56px 24px; }
.cta-banner h2 { color: var(--white); font-size: 26px; margin-bottom: 10px; }
.cta-banner p { color: #DFF7F1; font-size: 15px; margin-bottom: 26px; }
.cta-banner .btn-primary:hover { background: #f0fbf9; }

/* Contact */
.contact-grid { display: flex; gap: 50px; flex-wrap: wrap; }
.contact-info { flex: 1; min-width: 260px; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info .icon-box {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--bg-tint);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.contact-info h4 { font-size: 15px; margin-bottom: 4px; color: var(--text-heading); }
.contact-info p { font-size: 14px; }

.contact-form {
  flex: 1;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.contact-form .field { margin-bottom: 18px; }
.contact-form label { font-size: 13px; color: var(--text-body); display: block; margin-bottom: 6px; font-weight: 600; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-heading);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .submit-btn {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  width: 100%;
}
.contact-form .submit-btn:hover { background: #109e8e; }
.form-status { font-size: 13px; margin-top: 12px; display: none; }
.form-status.success { color: #0f766e; display: block; }
.form-status.error { color: #b91c1c; display: block; }

.map-box {
  height: 260px;
  background: var(--bg-tint);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-weight: 700;
}

/* Values / facility grids reused from grid-3 / img-box */
.img-box-sm {
  height: 180px;
  background: var(--bg-tint);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-weight: 700; text-align: center; padding: 16px;
}

/* Mini footer */
.mini-footer { display: flex; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.mini-footer .mf-item { flex: 1; min-width: 200px; padding: 26px 40px; border-right: 1px solid var(--border); }
.mini-footer .mf-item:last-child { border-right: none; }
.mini-footer h5 { font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.mini-footer p { font-size: 12px; color: var(--text-muted); }

/* Footer */
.site-footer { background: var(--navy); color: #B9D8E4; padding: 50px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.site-footer p, .site-footer li { font-size: 13px; line-height: 2; color: #B9D8E4; }
.social-row { display: flex; gap: 14px; margin-top: 16px; }
.social-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--white); font-weight: 700;
}
.social-icon:hover { background: rgba(255,255,255,0.22); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 12px;
  text-align: center;
  color: #8FB6C6;
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */

/* Tablets */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 36px; }
}

/* Small tablets / large phones */
@media (max-width: 860px) {
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 280px; background: var(--white); flex-direction: column; align-items: flex-start; padding: 90px 28px 28px; box-shadow: -4px 0 24px rgba(0,0,0,0.08); transition: right 0.25s ease; }
  .main-nav.open { right: 0; }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-cta { margin-left: 0; margin-top: 12px; text-align: center; }
  .menu-toggle { display: flex; z-index: 60; }

  .about-split { flex-direction: column; }
  .contact-grid { flex-direction: column; }
  .steps { flex-direction: column; }
  .news-strip { flex-direction: column; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .mini-footer { flex-direction: column; }
  .mini-footer .mf-item { border-right: none; border-bottom: 1px solid var(--border); }
  .mini-footer .mf-item:last-child { border-bottom: none; }
}

/* Phones */
@media (max-width: 600px) {
  section { padding: 52px 0; }
  .hero-banner { min-height: auto; }
  .hero-content { padding: 56px 0; }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 15px; }
  .btn-outline { margin-left: 0; margin-top: 12px; display: inline-block; }
  .section-title { font-size: 23px; }
  .grid-2, .grid-3, .grid-4, .product-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .page-title h1 { font-size: 26px; }
  .utility-bar .wrap { justify-content: center; font-size: 12px; }
}
