@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --primary-teal: #008080;
  --primary-teal-dark: #006666;
  --light-blue: #ADD8E6;
  --white: #FFFFFF;
  --dark-grey: #333333;
  --light-grey: #F5F5F5;
  --medium-grey: #666666;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--dark-grey);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-grey);
}

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);
}

p {
  margin-bottom: 1rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-teal);
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-desktop a {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-teal);
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  font-weight: 600;
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-link:hover {
  color: var(--primary-teal-dark);
}

.btn-primary {
  background: var(--primary-teal);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  background: var(--primary-teal-dark);
}

.btn-secondary {
  background: var(--light-blue);
  color: var(--dark-grey);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

.btn-secondary:hover {
  background: #9ac5d6;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-teal);
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  padding: 80px 20px 20px;
}

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

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary-teal);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-grey);
}

.mobile-menu-cta {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu .phone-link {
  font-size: 1.1rem;
  justify-content: center;
  padding: 15px;
  background: var(--light-grey);
  border-radius: 6px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(0,128,128,0.85), rgba(0,128,128,0.7));
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../../images/hero-plumber.png');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-ctas {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--primary-teal);
}

.hero .btn-primary:hover {
  background: var(--light-grey);
  transform: scale(1.05);
}

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

.hero .btn-secondary:hover {
  background: var(--white);
  color: var(--primary-teal);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-bg {
  background: var(--light-grey);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  margin-bottom: 15px;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--medium-grey);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

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

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  color: var(--medium-grey);
  margin-bottom: 20px;
}

.stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-teal);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--medium-grey);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--light-grey);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.service-card h3 {
  margin-bottom: 15px;
}

.service-card p {
  color: var(--medium-grey);
  margin-bottom: 20px;
}

.service-link {
  color: var(--primary-teal);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-link:hover {
  color: var(--primary-teal-dark);
}

/* Why Choose Us */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.trust-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.trust-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--primary-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.trust-item h4 {
  margin-bottom: 5px;
}

.trust-item p {
  color: var(--medium-grey);
  font-size: 0.9rem;
  margin: 0;
}

/* Testimonials */
.testimonials-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonials-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  min-width: 100%;
  padding: 0 20px;
}

.testimonial-content {
  background: var(--white);
  border-radius: 10px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--medium-grey);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-teal);
}

.testimonial-rating {
  color: #FFD700;
  margin-bottom: 10px;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--light-blue);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background: var(--primary-teal);
  transform: scale(1.2);
}

.testimonial-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  pointer-events: all;
  transition: var(--transition);
}

.testimonial-arrow:hover {
  transform: scale(1.1);
  background: var(--primary-teal);
  color: var(--white);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(0,128,128,0.9), rgba(0,128,128,0.8));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../../images/call-to-action-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.cta-content {
  position: relative;
  z-index: 2;
}

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

.cta-section p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary-teal);
}

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

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.contact-item h4 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.contact-item p, .contact-item a {
  color: var(--medium-grey);
  margin: 0;
}

.contact-item a:hover {
  color: var(--primary-teal);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

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

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

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

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

/* Map */
.map-container {
  margin-top: 50px;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  border: none;
}

/* Footer */
.footer {
  background: var(--dark-grey);
  color: var(--white);
  padding: 60px 0 20px;
}

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

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

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  color: #999;
  margin-bottom: 15px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #999;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-teal);
}

.footer-copyright {
  color: #999;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--primary-teal), #006666);
  padding: 120px 0 80px;
  text-align: center;
  color: var(--white);
}

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

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-info {
  padding: 20px;
  text-align: center;
}

.team-info h3 {
  margin-bottom: 5px;
}

.team-info p {
  color: var(--primary-teal);
  margin: 0;
}

/* Values Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-item {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--primary-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.value-item h4 {
  margin-bottom: 10px;
}

.value-item p {
  color: var(--medium-grey);
  margin: 0;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 25px;
}

.blog-date {
  color: var(--primary-teal);
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: block;
}

.blog-card h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.blog-card p {
  color: var(--medium-grey);
  margin-bottom: 20px;
}

.blog-link {
  color: var(--primary-teal);
  font-weight: 600;
}

/* Offers Grid */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.offer-card {
  background: var(--white);
  border-radius: 10px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-teal);
  text-align: center;
  transition: var(--transition);
}

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

.offer-badge {
  background: var(--primary-teal);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}

.offer-card h3 {
  margin-bottom: 15px;
}

.offer-card p {
  color: var(--medium-grey);
  margin-bottom: 20px;
}

.offer-terms {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 25px;
  font-style: italic;
}

/* Process Steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 50px;
  height: 50px;
  background: var(--primary-teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.process-step h4 {
  margin-bottom: 10px;
}

.process-step p {
  color: var(--medium-grey);
  margin: 0;
}

/* Service Detail Hero */
.service-hero {
  background: linear-gradient(135deg, var(--primary-teal), #006666);
  padding: 120px 0 80px;
  color: var(--white);
}

.service-hero h1 {
  color: var(--white);
  margin-bottom: 15px;
}

.service-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Related Services */
.related-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.related-card {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.related-card h4 {
  font-size: 1rem;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .stats {
    justify-content: flex-start;
  }
}

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

/* Focus states */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary-teal);
  outline-offset: 2px;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-teal);
  color: var(--white);
  padding: 8px 15px;
  z-index: 1001;
  transition: top 0.3s;
}

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