/* Complete redesign with cyan-blue color palette per design brief */

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

:root {
  /* Design Brief Color Palette - Cyan/Blue theme for water/plumbing */
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #06b6d4;
  --secondary: #3b82f6;
  --background: #ffffff;
  --foreground: #4b5563;
  --muted: #f9fafb;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --success: #10b981;
  --error: #ef4444;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  /* Updated to Open Sans per design brief */
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  font-size: 16px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4 {
  /* Updated to Work Sans per design brief */
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Work Sans", sans-serif;
  color: var(--foreground);
}

.logo svg {
  /* Updated to primary cyan color */
  color: var(--primary);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  color: var(--foreground);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  /* Updated to primary cyan color */
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--foreground);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 2px;
  background-color: var(--foreground);
  left: 0;
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.mobile-nav.active {
  display: flex;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  font-family: "Open Sans", sans-serif;
}

.btn-primary {
  /* Updated to primary cyan color */
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(8, 145, 178, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(8, 145, 178, 0.4);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.0625rem;
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 85px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Updated gradient to cyan/blue theme */
  background: linear-gradient(
    135deg,
    rgba(8, 145, 178, 0.92) 0%,
    rgba(8, 145, 178, 0.75) 50%,
    rgba(59, 130, 246, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  padding: 3rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* Updated to cyan theme */
  background-color: rgba(8, 145, 178, 0.2);
  border: 1px solid rgba(8, 145, 178, 0.4);
  padding: 0.625rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-badge svg {
  color: #fbbf24;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1875rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  line-height: 1.7;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.trust-item svg {
  color: var(--success);
}

/* About Section */
.about {
  padding: 7rem 0;
  background-color: var(--background);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1875rem;
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 4.5rem;
  font-weight: 400;
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 1.25rem;
  box-shadow: var(--shadow-xl);
}

.about-content h3 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--foreground);
}

.about-content p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: 1.0625rem;
}

.check-list {
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

.check-list svg {
  /* Updated to primary cyan color */
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--muted) 0%, #ffffff 100%);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  /* Updated gradient to cyan/blue theme */
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: 1.0625rem;
}

/* Services Section */
.services {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--muted) 0%, #ffffff 100%);
}

.services-grid {
  display: grid;
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.service-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.08);
}

.service-content {
  padding: 2rem;
  position: relative;
}

.service-icon {
  width: 56px;
  height: 56px;
  /* Updated gradient to cyan/blue theme */
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px 0 rgba(8, 145, 178, 0.3);
}

.service-icon svg {
  color: white;
}

.service-content h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  color: var(--foreground);
}

.service-content p {
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 1rem;
}

/* Contact Section */
.contact {
  padding: 7rem 0;
  background-color: var(--background);
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.card {
  background-color: white;
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card h3 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--foreground);
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9375rem 1.125rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  /* Updated to primary cyan color */
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

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

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
}

.contact-icon {
  /* Updated gradient to cyan/blue theme */
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 1rem;
  border-radius: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px 0 rgba(8, 145, 178, 0.3);
}

.contact-card h4 {
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: var(--foreground);
  font-size: 1.125rem;
}

.contact-card a {
  color: var(--muted-foreground);
  font-weight: 500;
}

.contact-card a:hover {
  /* Updated to primary cyan color */
  color: var(--primary);
}

.contact-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.map-card {
  padding: 0;
  overflow: hidden;
}

.map-card iframe {
  border-radius: 1.25rem;
}

#formStatus {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
  display: none;
  font-weight: 600;
}

#formStatus.success {
  background-color: #d1fae5;
  color: #065f46;
  display: block;
}

#formStatus.error {
  background-color: #fee2e2;
  color: #991b1b;
  display: block;
}

/* Footer */
.footer {
  /* Updated gradient to match cyan/blue theme */
  background: linear-gradient(135deg, var(--foreground) 0%, #1f2937 100%);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col h4 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col p {
  opacity: 0.85;
  line-height: 1.7;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  opacity: 0.85;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.footer-col ul li a:hover {
  opacity: 1;
  /* Updated to primary cyan color */
  color: var(--primary-light);
  padding-left: 0.5rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.contact-list svg {
  flex-shrink: 0;
  margin-top: 0.25rem;
  /* Updated to primary cyan color */
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  opacity: 0.75;
  font-size: 0.9375rem;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
  color: white;
  /* Increased size for better visibility */
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #20ba5a 0%, #1da851 100%);
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* Responsive Design */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.3125rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .about-content h3 {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* Adjusted WhatsApp button for mobile */
  .whatsapp-btn {
    width: 60px;
    height: 60px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .whatsapp-btn svg {
    width: 32px;
    height: 32px;
  }
}
