:root {
  --primary-blue: #1E73BE;
  --dark-blue: #0A2540;
  --accent-orange: #FF7A00;
  --light-gray: #F5F7FA;
  --white: #FFFFFF;
  --text-dark: #1a1a2e;
  --text-gray: #6b7280;
  --border-color: #e5e7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Top Bar */
.top-bar {
  background: var(--dark-blue);
  color: white;
  font-size: 0.875rem;
}

/* Header */
.site-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  z-index: 1000;
}
.site-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: slideDown 0.35s ease;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.nav-link {
  position: relative;
  font-weight: 600;
  color: var(--dark-blue);
  transition: color 0.3s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, rgba(10,37,64,0.85) 0%, rgba(30,115,190,0.75) 100%),
              url('../images/hero-pool.jpg') center/cover no-repeat;
  min-height: 90vh;
}

.hero-form input,
.hero-form textarea {
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hero-form input:focus,
.hero-form textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30,115,190,0.15);
}

/* Buttons */
.btn-primary {
  background: var(--primary-blue);
  color: white;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: #1562a3;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30,115,190,0.3);
}

.btn-orange {
  background: var(--accent-orange);
  color: white;
  transition: all 0.3s ease;
}
.btn-orange:hover {
  background: #e06800;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,122,0,0.3);
}

.btn-outline {
  border: 2px solid white;
  color: white;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: white;
  color: var(--dark-blue);
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.service-card .card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-blue), #3b9ae8);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Trust Badges */
.trust-badge {
  transition: transform 0.3s;
}
.trust-badge:hover {
  transform: translateY(-4px);
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.gallery-item img {
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,37,64,0.8), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Review Cards */
.review-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}
.review-card:hover {
  transform: translateY(-4px);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
}

/* Blog Cards */
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Footer */
.site-footer {
  background: var(--dark-blue);
  color: rgba(255,255,255,0.8);
}
.site-footer a {
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
}
.site-footer a:hover {
  color: var(--accent-orange);
}

/* Floating Buttons */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,0,0.5); }
  50% { box-shadow: 0 0 0 15px rgba(255,122,0,0); }
}

.mobile-call-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  display: none;
}
@media (max-width: 768px) {
  .mobile-call-btn {
    display: flex;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open {
  transform: translateX(0);
}

/* Section fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Star rating */
.stars {
  color: #f59e0b;
}

/* Process Steps */
.process-step {
  position: relative;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-blue), transparent);
}
.process-step:last-child::after {
  display: none;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.faq-header {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}
.faq-header .faq-icon {
  transition: transform 0.3s;
}
.faq-item.active .faq-header .faq-icon {
  transform: rotate(180deg);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}
.faq-item.active .faq-body {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

/* Breadcrumb */
.breadcrumb a {
  color: var(--primary-blue);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* Before/After Slider */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: col-resize;
}
.ba-slider .ba-before,
.ba-slider .ba-after {
  width: 100%;
  display: block;
}
.ba-slider .ba-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}
.ba-slider .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: white;
  z-index: 3;
  transform: translateX(-50%);
}
.ba-slider .ba-handle::after {
  content: '⟨ ⟩';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--dark-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  letter-spacing: 4px;
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, rgba(10,37,64,0.9) 0%, rgba(30,115,190,0.8) 100%),
              url('../images/hero-pool.jpg') center/cover no-repeat;
  padding: 8rem 0 4rem;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
