/* Modern Coastal Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary: #0D3B66;          /* Deep Ocean Blue */
  --primary-light: #1A538C;
  --secondary: #F4F1DE;        /* Warm Champagne Sand */
  --accent: #E07A5F;           /* Coastal Sunset Coral */
  --accent-hover: #C9644A;
  --neutral-dark: #2B2D42;     /* Deep Slate Text */
  --neutral-light: #F8F9FA;    /* Light Cream/White */
  --neutral-mid: #E9ECEF;
  --white: #FFFFFF;
  
  /* Shadow & Blur System */
  --shadow-sm: 0 2px 4px rgba(13, 59, 102, 0.05);
  --shadow-md: 0 8px 20px rgba(13, 59, 102, 0.08);
  --shadow-lg: 0 16px 36px rgba(13, 59, 102, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: blur(12px);

  /* Typography */
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base Reset & Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--neutral-light);
  color: var(--neutral-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-header);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

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

button, .btn {
  font-family: var(--font-header);
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 122, 95, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(224, 122, 95, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(224, 122, 95, 0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 96px 0;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6C757D;
  max-width: 650px;
  margin: 0 auto 56px auto;
}

/* Header & Nav */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

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

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

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

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

.nav-phone {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 24px;
  font-size: 0.95rem;
}

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

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(13, 59, 102, 0.75), rgba(13, 59, 102, 0.65)), url('hero_bathroom.png') no-repeat center center/cover;
  padding: 180px 0 120px 0;
  color: var(--white);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

.hero-content {
  animation: fadeIn 1s ease-out;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 24px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 36px;
  opacity: 0.95;
  max-width: 600px;
}

.trust-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  list-style: none;
}

.trust-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-bullets svg {
  color: var(--secondary);
}

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

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  padding: 16px 36px;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(224, 122, 95, 0.4);
  animation: pulse 2s infinite;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: scale(1.03);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Trust Banner */
.trust-banner {
  background-color: var(--secondary);
  padding: 24px 0;
  box-shadow: var(--shadow-sm);
}

.trust-banner-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

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

/* Services Section */
.services {
  background-color: var(--neutral-light);
}

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

.service-card {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(13, 59, 102, 0.05);
  display: flex;
  flex-direction: column;
}

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

.service-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

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

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

.service-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.service-info {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-info h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.service-info p {
  color: #5A6065;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.service-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  color: var(--accent-hover);
}

/* Before/After Section */
.before-after {
  background-color: var(--white);
}

.ba-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-before {
  background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)), url('hero_bathroom.png');
  filter: grayscale(1) brightness(0.9);
}

.ba-after {
  background-image: url('hero_bathroom.png');
  width: 50%;
}

.ba-label {
  position: absolute;
  bottom: 20px;
  background-color: rgba(13, 59, 102, 0.85);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ba-before .ba-label {
  left: 20px;
}

.ba-after .ba-label {
  right: 20px;
}

.ba-slider {
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
  margin: 0;
  transition: all 0.3s;
  cursor: ew-resize;
  z-index: 10;
}

.ba-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 4px;
  height: 1000px;
  background: var(--white);
  cursor: ew-resize;
  position: relative;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ba-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 9;
  border: 3px solid var(--white);
}

/* Cost Estimator Section */
.estimator {
  background: linear-gradient(135deg, #0D3B66 0%, #1A538C 100%);
  color: var(--white);
}

.estimator .section-title {
  color: var(--white);
}

.estimator .section-title::after {
  background-color: var(--secondary);
}

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

.estimator-info h3 {
  color: var(--secondary);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.estimator-info p {
  opacity: 0.9;
  margin-bottom: 24px;
}

.estimator-bullets {
  list-style: none;
  margin-bottom: 32px;
}

.estimator-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  opacity: 0.95;
}

.estimator-bullets svg {
  color: var(--secondary);
  margin-top: 4px;
  flex-shrink: 0;
}

.estimator-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  padding: 40px;
  border-radius: 24px;
  color: var(--neutral-dark);
  box-shadow: var(--shadow-lg);
}

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

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--neutral-mid);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--white);
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
}

.btn-estimator {
  width: 100%;
  background-color: var(--accent);
  color: var(--white);
  padding: 16px;
  border-radius: 8px;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(224, 122, 95, 0.3);
}

.btn-estimator:hover {
  background-color: var(--accent-hover);
}

.estimator-result {
  margin-top: 32px;
  padding: 24px;
  background-color: rgba(13, 59, 102, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  display: none;
}

.estimator-result h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.estimator-result .price-range {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.estimator-result p {
  font-size: 0.85rem;
  color: #6C757D;
}

/* Process Section */
.process {
  background-color: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 16px;
  background-color: var(--neutral-light);
  border: 1px solid var(--neutral-mid);
  transition: all 0.3s ease;
  position: relative;
}

.process-card:hover {
  transform: translateY(-5px);
  background-color: var(--white);
  border-color: var(--primary);
}

.process-num {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.process-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(13, 59, 102, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 12px auto 24px auto;
}

.process-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.process-card p {
  font-size: 0.9rem;
  color: #5A6065;
}

/* Testimonials */
.testimonials {
  background-color: var(--neutral-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(13, 59, 102, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #FFB01D;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 24px;
  color: var(--neutral-dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.author-details h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-details p {
  font-size: 0.8rem;
  color: #6C757D;
}

/* FAQ Section */
.faq {
  background-color: var(--white);
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--neutral-mid);
  padding: 24px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-toggle {
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding-top 0.3s;
  padding-top: 0;
  color: #5A6065;
  font-size: 1rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-top: 12px;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Footer Section */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0 24px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-about p {
  opacity: 0.8;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.footer-about .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary);
  padding-left: 4px;
}

.footer-contact p {
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.footer-contact svg {
  color: var(--secondary);
}

.footer-cta {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: 16px;
}

.footer-cta p {
  opacity: 0.8;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.btn-footer-cta {
  background-color: var(--accent);
  color: var(--white);
  padding: 12px 28px;
  width: 100%;
  font-size: 1rem;
}

.btn-footer-cta:hover {
  background-color: var(--accent-hover);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  .services-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    padding: 0;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--neutral-mid);
    gap: 20px;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-phone {
    display: none;
  }
  
  .hero {
    padding: 140px 0 80px 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .services-grid, .testimonials-grid, .process-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
