/* =============================================
   [Company Name] - Water Purification Site
   style.css
   ============================================= */

/* --- RESET & ROOT --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand:        #042F32;
  --brand-dark:   #042F32;
  --accent:       #D6FFCB;
  --brand-light:  color-mix(in srgb, var(--accent) 22%, white);
  --accent-ink:   var(--brand);
  --accent-soft:  color-mix(in srgb, var(--accent) 55%, white);
  --section-bg:   #F6FAF7;
  --text:         var(--brand-dark);
  --text-muted:   color-mix(in srgb, var(--brand-dark) 85%, white);
  --white:        #FFFFFF;
  --hero-end:     color-mix(in srgb, var(--brand) 86%, var(--accent));
  --font-brand:   'Avenir Next', Avenir, Arial, sans-serif;
  --radius:       14px;
  --radius-sm:    8px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* --- NAVIGATION --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  display: block;
  width: 220px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-cta {
  background: var(--brand);
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--brand-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 50%, var(--hero-end) 100%);
  display: flex;
  align-items: center;
  padding: 136px 5% 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: white;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.stat-num {
  font-family: var(--font-brand);
  font-size: 2rem;
  color: white;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
}

/* --- SHARED UTILITIES --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.section-title {
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
}

.section-intro {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

/* --- ABOUT SECTION --- */
.about {
  padding: 5rem 5%;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about-val {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.about-val-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-val-dot svg {
  width: 14px;
  height: 14px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 2;
}

.about-img-wrap {
  background: var(--brand-light);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.water-drop-big {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.water-drop-big svg {
  width: 120px;
  height: 120px;
}

.about-cert {
  background: white;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cert-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-ink);
  fill: none;
  stroke-width: 2;
}

.cert-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cert-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

/* --- PRODUCTS SECTION --- */
.products {
  padding: 5rem 5%;
  background: var(--section-bg);
}

.products-header {
  text-align: center;
  margin-bottom: 3rem;
}

.products-header .section-sub {
  margin: 0 auto;
}

.products-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tab {
  background: white;
  border: 1px solid color-mix(in srgb, var(--brand) 15%, transparent);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s;
  font-family: var(--font-brand);
}

.tab.active,
.tab:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid color-mix(in srgb, var(--brand) 8%, transparent);
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--brand) 12%, transparent);
}

.product-img {
  width: 100%;
  height: 140px;
  background: var(--brand-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  overflow: hidden;
  cursor: zoom-in;
}

.product-img:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Product images */
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.product-img:hover img {
  transform: scale(1.04);
}

.image-viewer {
  width: min(1000px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 16px;
  border: 0;
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.image-viewer::backdrop {
  background: rgba(4, 47, 50, 0.82);
}

.image-viewer-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 125px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--brand-light);
}

.image-viewer-caption {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.image-viewer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--brand);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.image-viewer-close:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.product-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.badge-ev  { background: var(--brand-light); color: var(--brand); }
.badge-end { background: var(--accent-soft); color: var(--accent-ink); }
.badge-parca { background: #D6FFCB; color: #042F32; }

.product-name {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pf {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pf::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-ink);
  flex-shrink: 0;
}

.product-cta {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.65rem;
  background: var(--brand-light);
  color: var(--brand);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-family: var(--font-brand);
}

.product-cta:hover {
  background: var(--brand);
  color: white;
}

/* --- WHY US SECTION --- */
.why {
  padding: 5rem 5%;
  background: var(--white);
}

.why-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.why-header .section-sub {
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.why-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--brand) 10%, transparent);
  transition: 0.25s;
  text-align: center;
}

.why-card:hover {
  background: var(--brand-light);
  border-color: color-mix(in srgb, var(--brand) 20%, transparent);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.why-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.75;
}

.tl-icon {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  font-family: var(--font-brand);
  line-height: 1;
}

.why-title {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.why-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 5rem 5%;
  background: var(--section-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: stretch;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid color-mix(in srgb, var(--brand) 8%, transparent);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ci-phone { background: var(--brand-light); }
.ci-phone svg { stroke: var(--brand); }
.ci-map   { background: var(--accent-soft); }
.ci-map   svg { stroke: var(--accent-ink); }

.contact-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 2;
}

.contact-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-card-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.contact-card a {
  text-decoration: none;
  color: inherit;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid color-mix(in srgb, var(--brand) 10%, transparent);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #25D366;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: background 0.2s;
  font-family: var(--font-brand);
}

.contact-wa-btn:hover {
  background: #1ebe5d;
}

/* --- FOOTER SECTION --- */
footer {
  background: var(--brand-dark);
  padding: 2.5rem 5%;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 0.8rem;
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge  { animation: fadeUp 0.6s ease both; }
.hero h1     { animation: fadeUp 0.6s 0.1s ease both; }
.hero-sub    { animation: fadeUp 0.6s 0.2s ease both; }
.hero-btns   { animation: fadeUp 0.6s 0.3s ease both; }

/* --- MOBILE --- */
@media (max-width: 768px) {
  nav { height: 84px; }

  .nav-logo img { width: 185px; }

  .nav-links { display: none; }

  .nav-cta {
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
  }

  .hamburger { display: flex; }

  .hero { padding-top: 112px; }

  .hero-inner { grid-template-columns: 1fr; }

  .stat-cards { margin-top: 1.5rem; }

  .about-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .nav-cta { display: none; }
}
