/* ============================================
   RESTORATION PLUMBING SERVICES
   Brand Colors:
   - Primary Dark Blue: #25456A
   - Accent Cyan Blue: #4DC6ED
   - Deep Background Grey: #1A1A1A
   - Light Text/Background Grey: #F0F0F0
   Color Distribution: 6:3:1 (Primary : Accent : Neutral)
   ============================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
  --primary-dark-blue: #25456A;
  --accent-cyan-blue: #4DC6ED;
  --deep-background-grey: #1A1A1A;
  --light-grey: #F0F0F0;
  --white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-light: #F0F0F0;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition-smooth: 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prefers reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark-blue);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-cyan-blue);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--primary-dark-blue);
}

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

ul, ol {
  list-style: none;
}

/* ==================== UTILITY CLASSES ==================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-cyan-blue);
  border-radius: 2px;
}

.section-title p {
  color: #666;
  max-width: 600px;
  margin: 1rem auto 0;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-cyan-blue); }
.bg-light { background-color: var(--light-grey); }
.bg-dark { background-color: var(--deep-background-grey); }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Micro-interaction: Water ripple effect on CTA hover */
.btn-primary {
  background-color: var(--accent-cyan-blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn-primary:hover::before {
  width: 300%;
  height: 300%;
}

.btn-primary:hover {
  background-color: #3ab5dd;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.btn-primary:focus {
  outline: 3px solid var(--primary-dark-blue);
  outline-offset: 2px;
}

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

.btn-secondary:hover {
  background-color: var(--accent-cyan-blue);
  color: var(--white);
}

.btn-secondary:focus {
  outline: 3px solid var(--primary-dark-blue);
  outline-offset: 2px;
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark-blue);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--primary-dark-blue);
  position: relative;
  padding: 0.5rem 0;
}

/* Micro-interaction: Underline animation on nav hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan-blue);
  transition: width var(--transition-smooth);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan-blue);
}

.nav-link:focus {
  outline: 2px solid var(--accent-cyan-blue);
  outline-offset: 4px;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary-dark-blue);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

/* Micro-interaction: Hamburger to X animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-toggle:focus {
  outline: 2px solid var(--accent-cyan-blue);
  outline-offset: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary-dark-blue);
}

.phone-link svg {
  width: 18px;
  height: 18px;
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1rem 4rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

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

/* Subtle parallax effect for hero background */
@supports (background-attachment: fixed) {
  .hero-background--parallax {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 69, 106, 0.85) 0%,
    rgba(26, 26, 26, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--light-grey);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.trust-element {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-element a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.trust-element svg {
  width: 24px;
  height: 24px;
  color: var(--accent-cyan-blue);
}

/* ==================== SERVICES SECTION ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
}

/* Micro-interaction: Card lift and shadow on hover */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-cyan-blue);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  transition: transform var(--transition-smooth);
}

/* Micro-interaction: Icon bounce on card hover */
.service-card:hover .service-icon {
  animation: iconBounce 0.5s ease;
}

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

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card ul {
  text-align: left;
  margin-top: 1rem;
}

.service-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #666;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent-cyan-blue);
  border-radius: 50%;
}

/* ==================== ABOUT SECTION ==================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: #666;
}

.mission-box {
  background: var(--light-grey);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent-cyan-blue);
}

.mission-box h4 {
  color: var(--primary-dark-blue);
  margin-bottom: 0.5rem;
}

.why-choose-list {
  margin-top: 1.5rem;
}

.why-choose-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-weight: 500;
}

.why-choose-list li svg {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan-blue);
  flex-shrink: 0;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.experience-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--accent-cyan-blue);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.experience-badge span {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.experience-badge small {
  font-size: 0.875rem;
}

/* ==================== PROCESS SECTION ==================== */
.process-section {
  background: var(--light-grey);
  position: relative;
}

/* Subtle pipe texture overlay */
.process-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2325456A' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  counter-reset: step;
  position: relative;
}

.process-step {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.process-step.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--accent-cyan-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
}

.process-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.9;
}

.process-step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonials-carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 50%;
  }
}

@media (min-width: 992px) {
  .testimonial-card {
    flex: 0 0 33.333%;
  }
}

.testimonial-content {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
}

/* Micro-interaction: Testimonial card perspective shift */
.testimonial-content:hover {
  transform: perspective(1000px) rotateY(2deg);
  box-shadow: var(--shadow-md);
  border-color: var(--light-grey);
}

.quote-icon {
  color: var(--accent-cyan-blue);
  font-size: 3rem;
  line-height: 1;
  opacity: 0.5;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-style: italic;
  color: #555;
  margin: 1rem 0;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-grey);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-cyan-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
}

.author-info strong {
  display: block;
  color: var(--primary-dark-blue);
}

.author-info span {
  font-size: 0.875rem;
  color: #888;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border: 2px solid var(--primary-dark-blue);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
}

.carousel-btn:hover {
  background: var(--primary-dark-blue);
  color: var(--white);
}

.carousel-btn:focus {
  outline: 2px solid var(--accent-cyan-blue);
  outline-offset: 2px;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--light-grey);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.carousel-dot.active {
  background: var(--accent-cyan-blue);
  transform: scale(1.2);
}

/* ==================== BLOG SECTION ==================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

/* Micro-interaction: Blog card lift and shadow */
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-content p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent-cyan-blue);
}

/* Micro-interaction: Arrow animation on hover */
.read-more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-smooth);
}

.blog-card:hover .read-more svg {
  transform: translateX(4px);
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
  background: var(--primary-dark-blue);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Subtle pipe texture overlay for dark section */
.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.contact-info h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: rgba(77, 198, 237, 0.2);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-cyan-blue);
}

.contact-item-text strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-item-text span,
.contact-item-text a {
  color: rgba(255, 255, 255, 0.8);
}

.contact-item-text a:hover {
  color: var(--accent-cyan-blue);
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-group label .required {
  color: #e74c3c;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 2px solid var(--light-grey);
  border-radius: var(--border-radius);
  transition: all var(--transition-smooth);
  background: var(--white);
}

/* Micro-interaction: Input focus glow */
.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan-blue);
  box-shadow: 0 0 0 4px rgba(77, 198, 237, 0.2);
}

.form-control::placeholder {
  color: #999;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2325456A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--deep-background-grey);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand .logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
}

/* Micro-interaction: Social icon glow on hover */
.social-link:hover {
  background: var(--accent-cyan-blue);
  box-shadow: 0 0 20px rgba(77, 198, 237, 0.5);
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.footer-links h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-cyan-blue);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: all var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-cyan-blue);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ==================== SECTION DIVIDERS ==================== */
.section-divider {
  height: 60px;
  overflow: hidden;
  position: relative;
}

.section-divider svg {
  width: 100%;
  height: 100%;
}

/* Animated wave divider */
.wave-divider path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.wave-divider.animate path {
  animation: drawWave 1.5s ease forwards;
}

@keyframes drawWave {
  to {
    stroke-dashoffset: 0;
  }
}

/* ==================== ANIMATIONS ==================== */
/* Fade in animation for elements */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-smooth);
    gap: 1rem;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu .nav-link {
    font-size: 1.125rem;
    padding: 0.75rem 0;
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
    margin-top: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta .btn {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 7rem 1rem 4rem;
  }

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

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

  .section {
    padding: 3rem 0;
  }

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

  .experience-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1.5rem;
    display: inline-block;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .trust-element {
    flex-direction: column;
    text-align: center;
  }

  .service-card,
  .process-step {
    padding: 1.5rem;
  }

  .contact-form-card {
    padding: 1.5rem;
  }

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

/* ==================== LOADING STATE ==================== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ==================== SKIP LINK (A11Y) ==================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary-dark-blue);
  color: var(--white);
  padding: 1rem;
  z-index: 9999;
  transition: top var(--transition-smooth);
}

.skip-link:focus {
  top: 0;
}

/* ==================== PAGE HERO (Inner Pages) ==================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #1a3550 100%);
  color: var(--white);
  padding: 8rem 1rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== SERVICE DETAIL CARDS ==================== */
.service-detail-card {
  display: flex;
  gap: 2rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-cyan-blue);
}

.service-detail-card:nth-child(even) {
  flex-direction: row-reverse;
}

.service-detail-icon {
  flex-shrink: 0;
}

.service-detail-icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.service-detail-content {
  flex: 1;
}

.service-detail-content h3 {
  margin-bottom: 1rem;
}

.service-detail-content p {
  color: #666;
  margin-bottom: 1.5rem;
}

.service-detail-list {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.service-detail-list ul {
  flex: 1;
}

.service-detail-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
}

.service-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent-cyan-blue);
  border-radius: 50%;
}

/* Emergency Card */
.emergency-card {
  background: linear-gradient(135deg, var(--accent-cyan-blue) 0%, #3ab5dd 100%);
  color: var(--white);
}

.emergency-card h3 {
  color: var(--white);
}

.emergency-card p {
  color: rgba(255, 255, 255, 0.9);
}

.emergency-card .full-width {
  width: 100%;
  text-align: center;
}

.emergency-cta {
  margin-top: 1.5rem;
}

.emergency-cta .btn {
  background: var(--white);
  color: var(--primary-dark-blue);
}

.emergency-cta .btn:hover {
  background: var(--light-grey);
}

/* ==================== FEATURES GRID ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(77, 198, 237, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent-cyan-blue);
}

.feature-item h4 {
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: #666;
  font-size: 0.875rem;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #1a3550 100%);
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ==================== ABOUT PAGE STYLES ==================== */
.about-page-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text-full h2 {
  margin-bottom: 1.5rem;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--primary-dark-blue);
  line-height: 1.6;
}

.about-quote {
  background: var(--light-grey);
  padding: 2rem;
  border-left: 4px solid var(--accent-cyan-blue);
  margin: 2rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.about-quote p {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-dark-blue);
  margin-bottom: 0.5rem;
}

.about-quote cite {
  color: #666;
  font-style: normal;
}

/* Mission Section */
.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-statement {
  font-size: 1.25rem;
  color: var(--primary-dark-blue);
  font-weight: 500;
  line-height: 1.6;
}

.mission-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

/* Master Plumber Card */
.master-plumber-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  max-width: 700px;
  margin: 0 auto;
}

.plumber-info {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.plumber-avatar {
  width: 100px;
  height: 100px;
  background: var(--accent-cyan-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.plumber-details h3 {
  margin-bottom: 0.25rem;
}

.plumber-title {
  color: var(--accent-cyan-blue);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.plumber-experience {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.plumber-bio {
  color: #555;
  line-height: 1.7;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 56px;
  height: 56px;
  background: rgba(77, 198, 237, 0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.value-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-cyan-blue);
}

.value-card h4 {
  margin-bottom: 0.5rem;
}

.value-card p {
  color: #666;
  font-size: 0.875rem;
  margin: 0;
}

/* Service Area */
.service-area-text {
  font-size: 1.25rem;
  color: var(--accent-cyan-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ==================== TESTIMONIALS PAGE STYLES ==================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-full-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.testimonial-full-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-full-card .testimonial-content {
  padding: 2rem;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-top: 1rem;
}

.testimonial-rating svg {
  width: 20px;
  height: 20px;
  color: #fbbf24;
}

/* ==================== CONTACT PAGE STYLES ==================== */
.emergency-contact {
  background: rgba(77, 198, 237, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  margin-top: 2rem;
  text-align: center;
}

.emergency-contact h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.emergency-contact p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: #666;
  margin: 0;
  font-size: 0.9375rem;
}

/* Form Error States */
.form-control.error {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  display: block;
}

/* ==================== RESPONSIVE ADDITIONS ==================== */
@media (max-width: 768px) {
  .service-detail-card,
  .service-detail-card:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
  
  .service-detail-list {
    flex-direction: column;
    gap: 0;
  }
  
  .service-detail-list ul {
    text-align: left;
  }
  
  .mission-content {
    grid-template-columns: 1fr;
  }
  
  .plumber-info {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .page-hero {
    padding: 6rem 1rem 3rem;
  }
}

/* Nav CTA Mobile */
.nav-cta-mobile {
  display: none;
}

@media (max-width: 768px) {
  .nav-cta-mobile {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-grey);
  }
}
