/* Janatha Water Purifiers — blue / white theme */

:root {
  --primary: #0a73c2;
  --primary-dark: #055a99;
  --primary-light: #e8f4fc;
  --accent: #25d366;
  --accent-dark: #1da851;
  --bg: #f5fbff;
  --white: #ffffff;
  --text: #0f2a3d;
  --muted: #5a7184;
  --shadow: 0 8px 30px rgba(10, 115, 194, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 42, 61, 0.15);
  --radius: 14px;
  --header-h: 72px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 115, 194, 0.1);
  min-height: var(--header-h);
}

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

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle:hover {
  background: var(--primary-light);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  margin: 0 auto;
  transition: transform var(--transition), opacity var(--transition);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1548839140-29a499e1cf64?w=1920&q=80");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(5, 90, 153, 0.88) 0%,
    rgba(10, 115, 194, 0.75) 45%,
    rgba(15, 42, 61, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1rem 4rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.btn-whatsapp {
  background: var(--accent);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-whatsapp:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 5rem 1rem;
}

.section-alt {
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(10, 115, 194, 0.06);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--primary-dark);
  text-align: center;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 auto 2.5rem;
  max-width: 560px;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--text);
  text-align: center;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-layout .about-text {
  margin: 0;
  max-width: none;
  text-align: left;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(10, 115, 194, 0.08);
  overflow: hidden;
}

.section-alt .card {
  background: var(--bg);
  border-color: rgba(10, 115, 194, 0.1);
}

/* Service cards */
.service-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

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

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

.card-icon svg {
  width: 28px;
  height: 28px;
}

/* Featured products */
.featured-products-section {
  position: relative;
  overflow: hidden;
}

.featured-products-section::before,
.featured-products-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.featured-products-section::before {
  width: 320px;
  height: 320px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(10, 115, 194, 0.14) 0%, rgba(10, 115, 194, 0) 70%);
}

.featured-products-section::after {
  width: 280px;
  height: 280px;
  right: -100px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.1) 0%, rgba(37, 211, 102, 0) 70%);
}

.featured-products-section .container {
  position: relative;
  z-index: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(10, 115, 194, 0.1);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 115, 194, 0.24);
  box-shadow: 0 22px 45px rgba(10, 115, 194, 0.16);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
}

.product-photo {
  background: linear-gradient(180deg, #f4fbff 0%, #e7f5ff 100%);
  padding: 0.75rem;
}

.product-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}

.product-category {
  align-self: flex-start;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: #e9f5ff;
  color: #0764a9;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-card-body h3 {
  margin: 0.1rem 0 0;
  font-size: 1.16rem;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

.product-card-body p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-card-body .btn {
  align-self: flex-start;
  margin-top: 0.45rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  position: relative;
  padding: 1.5rem 1.4rem 1.4rem;
  margin: 0;
  border: 1px solid rgba(10, 115, 194, 0.1);
  background: rgba(255, 255, 255, 0.95);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(10, 115, 194, 0.22);
  box-shadow: 0 16px 36px rgba(10, 115, 194, 0.14);
}

.person-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 0.7rem;
}

.person-icon svg {
  width: 18px;
  height: 18px;
}

.testimonial-card .stars {
  color: #e6a800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.testimonial-card p {
  margin: 0 0 1rem;
  font-style: normal;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.65;
}

.testimonial-card footer {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: auto;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-block {
  padding: 1.75rem;
}

.contact-block-wide {
  grid-column: 1 / -1;
}

.contact-block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-block a {
  font-weight: 600;
  font-size: 1.15rem;
}

.contact-block address {
  font-style: normal;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.link-directions {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Map */
.map-section {
  padding-bottom: 5rem;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(10, 115, 194, 0.12);
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 980px;
  max-height: 420px;
  margin: 0 auto;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--primary-dark) 0%, #043d66 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 3rem 1rem 2rem;
}

.footer-inner {
  text-align: center;
}

.footer-brand strong {
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-contact {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.footer-contact a {
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-copy {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Floating buttons */
.fab-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.fab:hover {
  text-decoration: none;
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.fab svg {
  width: 28px;
  height: 28px;
}

.fab-whatsapp {
  background: var(--accent);
  color: var(--white);
  animation: fab-pulse 2.5s ease-in-out infinite;
}

.fab-call {
  background: var(--primary);
  color: var(--white);
}

@keyframes fab-pulse {
  0%,
  100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 6px 32px rgba(37, 211, 102, 0.65);
  }
}

/* Scroll reveal (only when JS runs — without JS, sections stay visible) */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    background: var(--white);
    border-bottom: 1px solid rgba(10, 115, 194, 0.12);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 1rem 1.5rem;
    width: 100%;
    border-bottom: 1px solid rgba(10, 115, 194, 0.06);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

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

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-layout .about-text {
    text-align: center;
  }

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

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

  .contact-block-wide {
    grid-column: auto;
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .hero-content {
    padding: 2rem 1rem 3rem;
  }

  .fab-stack {
    bottom: 16px;
    right: 16px;
  }

  .fab {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.footer-credit {
  text-align: center;
  font-size: 14px;
  color: #b0b0b0;
  margin-top: 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  font-size: 28px;
  color: #3b82f6;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  /* color: #3b82f6; */
  font-family: Arial, sans-serif;
}
@media (max-width: 768px) {
  .logo-text {
    font-size: 16px;
  }

  .logo-icon {
    font-size: 22px;
  }
}