@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #0f4c81; /* Classic Deep Water Blue */
  --primary-light: #eef5fc;
  --secondary-color: #00b4d8; /* Crystal Cyan */
  --accent-color: #f77f00; /* Energetic Coral Orange (for high conversion CTAs) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafd;
  --text-main: #1e293b; /* Slate 800 */
  --text-muted: #64748b; /* Slate 500 */
  --border-color: #e2e8f0; /* Slate 200 */
  --shadow-sm: 0 2px 4px rgba(15, 76, 129, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 76, 129, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 76, 129, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 30px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-secondary {
  background-color: var(--bg-secondary);
}

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

.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(15, 76, 129, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Outfit', sans-serif;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 14px rgba(15, 76, 129, 0.2);
}

.btn-primary:hover {
  background-color: #0b3961;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 76, 129, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  gap: 40px; /* Guarantees minimum distance between logo, links, and support button */
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap; /* Prevents logo text wrapping */
  flex-shrink: 0;     /* Ensures logo does not squish */
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 18px; /* Optimized gap for 7-page navigation */
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem; /* Slightly smaller for cleaner spacing */
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 8px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: radial-gradient(circle at 80% 20%, #eef5fc 0%, #ffffff 60%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  color: #0f2d4a;
}

.hero-text h1 span {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero-text p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
  transition: var(--transition);
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
  z-index: -1;
  animation: pulse 6s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* Value Props / Why Soft Water */
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.prop-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.prop-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 180, 216, 0.3);
}

.prop-icon {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  color: var(--primary-color);
}

.prop-card h3 {
  margin-bottom: 0.75rem;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.product-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 180, 216, 0.2);
}

.product-img-wrapper {
  width: 100%;
  height: 220px;
  background-color: var(--primary-light);
  position: relative;
  overflow: hidden;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.product-info {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: 'Outfit', sans-serif;
}

.price-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.product-info h3 {
  margin-bottom: 0.75rem;
}

.product-info p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-info .btn {
  width: 100%;
}

/* Service Locations (SEO focus) */
.locations {
  text-align: center;
}

.locations-intro {
  max-width: 600px;
  margin: 0 auto 40px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.location-tag {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
  text-align: center;
  cursor: default;
}

.location-tag:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Detailed Location Page specific CSS */
.location-hero {
  padding: 150px 0 60px;
  background: linear-gradient(185deg, var(--primary-light) 0%, #ffffff 80%);
  text-align: center;
}

.location-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.location-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.location-detail-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.location-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

.location-detail-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.location-detail-card h3 span {
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 50px;
}

.location-detail-card ul {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.location-detail-card ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-detail-card ul li::before {
  content: '✓';
  color: #25D366;
  font-weight: bold;
}

/* FAQs */
.faq-intro {
  max-width: 600px;
  margin: 0 auto 50px;
}

.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 24px;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s;
  color: var(--primary-color);
  font-weight: bold;
}

.faq-item.active .faq-answer {
  max-height: 250px; /* Adjust according to content size */
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: flex-start;
}

.contact-info h2 {
  left: 0;
  transform: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.contact-info h2::after {
  left: 25px;
  transform: none;
}

.contact-info p.lead {
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.detail-content h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-content p, .detail-content a {
  font-size: 1.05rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.detail-content a:hover {
  color: var(--primary-color);
}

.form-wrapper {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #fafbfc;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.form-wrapper button {
  width: 100%;
  margin-top: 10px;
}

/* Footer */
footer {
  background-color: #0f1d2a;
  color: white;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 48px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-col p {
  color: #94a3b8; /* Slate 400 */
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-col-brand .logo {
  color: white;
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #64748b;
  font-size: 0.875rem;
}

.footer-bottom p a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom p a:hover {
  color: white;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  /* Trigger hamburger menu at 1024px to prevent tablet navigation collisions */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 30px 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-cta {
    display: none; /* Hidden on tablet mobile header; handled in menu toggles if needed */
  }

  /* Adjust Hero for smaller screens */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 2.5rem;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-image img {
    max-width: 360px;
  }

  /* Contact structure */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info h2 {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  .contact-info h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-info p.lead {
    margin-bottom: 2rem;
  }

  .contact-details {
    max-width: 500px;
    margin: 0 auto 40px;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- Calculator Styles --- */
.calc-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}
.calc-title {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
  text-align: left;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .calc-row {
    grid-template-columns: 1fr;
  }
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}
.calc-field input, .calc-field select {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}
.calc-field input:focus, .calc-field select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}
.calc-output {
  background: var(--primary-light);
  border-left: 5px solid var(--primary-color);
  padding: 25px;
  border-radius: var(--radius-sm);
  margin-top: 30px;
}
.calc-output h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}
.calc-result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(15, 76, 129, 0.1);
}
.calc-result-item:last-child {
  border-bottom: none;
}
.calc-result-label {
  font-weight: 500;
  color: var(--text-main);
}
.calc-result-val {
  font-weight: 700;
  color: var(--primary-color);
}
.calc-btn {
  margin-top: 25px;
  width: 100%;
}

