/* DFW Metro Plumbing Pros - Main Stylesheet */

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

:root {
  --primary-color: #0b2c4d;
  --accent-color: #f5a623;
  --accent-hover: #e09515;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #333;
  --text-color: #444;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

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

ul {
  list-style: none;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

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

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

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* Header */
.header {
  background-color: var(--primary-color);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-top {
  background-color: #072238;
  padding: 8px 0;
  text-align: center;
}

.header-top a {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.header-top a:hover {
  color: var(--white);
}

.header-main {
  padding: 15px 0;
}

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

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

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

/* Navigation */
.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  color: var(--white);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-color);
}

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

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: var(--transition);
}

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

.header-phone {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(11, 44, 77, 0.75) 0%, rgba(26, 74, 122, 0.75) 100%), 
              url('../img/hero-plumber.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 120px 0;
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.section-gray {
  background-color: var(--light-gray);
}

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

.section-title h2 {
  margin-bottom: 1rem;
}

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

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

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

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.feature-item h3 {
  margin-bottom: 10px;
}

/* 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;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.service-card-img {
  height: 180px;
  background-color: var(--medium-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-color);
}

.service-card-content {
  padding: 25px;
}

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

.service-card p {
  color: #666;
  margin-bottom: 15px;
}

.service-card .btn {
  width: 100%;
}

/* Cities Grid */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.city-link {
  display: block;
  padding: 15px 20px;
  background: var(--white);
  border-radius: 5px;
  text-align: center;
  box-shadow: var(--shadow);
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

.city-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

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

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.stars {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 15px;
}

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

.testimonial-location {
  font-size: 0.9rem;
  color: #666;
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--light-gray);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 25px 20px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* Contact Form */
.contact-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a4a7a 100%);
  color: var(--white);
}

.contact-section h2 {
  color: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info a {
  color: var(--accent-color);
}

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

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

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

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

.contact-form .btn {
  width: 100%;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.footer-section p {
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-section a {
  color: var(--white);
  opacity: 0.9;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-color);
  opacity: 1;
}

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

.footer-phone {
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a4a7a 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

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

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Breadcrumb */
.breadcrumb {
  padding: 15px 0;
  background-color: var(--light-gray);
}

.breadcrumb-list {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
}

.breadcrumb-list a {
  color: var(--primary-color);
}

.breadcrumb-list a:hover {
  color: var(--accent-color);
}

.breadcrumb-list span {
  color: #666;
}

/* Content Pages */
.content-section {
  padding: 60px 0;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.content-wrapper h2 {
  margin-top: 2rem;
}

.content-wrapper ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 1.5rem;
}

.content-wrapper li {
  margin-bottom: 8px;
}

/* Service Detail Page */
.service-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.service-sidebar {
  background: var(--light-gray);
  padding: 30px;
  border-radius: 10px;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.service-sidebar h3 {
  margin-bottom: 20px;
}

.service-sidebar ul {
  list-style: none;
  padding: 0;
}

.service-sidebar li {
  margin-bottom: 10px;
}

.service-sidebar a {
  color: var(--primary-color);
  display: block;
  padding: 10px 15px;
  background: var(--white);
  border-radius: 5px;
  transition: var(--transition);
}

.service-sidebar a:hover,
.service-sidebar a.active {
  background: var(--primary-color);
  color: var(--white);
}

/* CTA Section */
.cta-section {
  background-color: var(--accent-color);
  padding: 60px 0;
  text-align: center;
}

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

.cta-section p {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.cta-section .btn-primary:hover {
  background-color: #072238;
}

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

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

.team-card-img {
  height: 250px;
  background-color: var(--medium-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary-color);
}

.team-card-content {
  padding: 25px;
}

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

.team-card .role {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 15px;
}

/* Reviews Page */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.review-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.review-card .stars {
  margin-bottom: 15px;
}

.review-card .review-text {
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--medium-gray);
  padding-top: 15px;
}

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

.review-service {
  font-size: 0.85rem;
  color: #666;
}

/* Contact Page */
.contact-page-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-details {
  background: var(--primary-color);
  color: var(--white);
  padding: 40px;
  border-radius: 10px;
}

.contact-details h3 {
  color: var(--accent-color);
  margin-bottom: 25px;
}

.contact-item {
  margin-bottom: 25px;
}

.contact-item h4 {
  color: var(--white);
  margin-bottom: 5px;
  font-size: 1rem;
}

.contact-item a {
  color: var(--accent-color);
  font-size: 1.1rem;
}

.contact-form-page {
  background: var(--light-gray);
  padding: 40px;
  border-radius: 10px;
}

/* Nearby Cities */
.nearby-cities {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--medium-gray);
}

.nearby-cities h3 {
  margin-bottom: 20px;
}

.nearby-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nearby-links a {
  background: var(--light-gray);
  padding: 8px 15px;
  border-radius: 5px;
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

.nearby-links a:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .service-detail {
    grid-template-columns: 1fr;
  }
  
  .service-sidebar {
    position: static;
  }
  
  .contact-wrapper,
  .contact-page-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  
  .hero {
    padding: 50px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 20px;
    transition: var(--transition);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    display: flex;
    z-index: 1001;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .header-cta .btn {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .btn {
    padding: 12px 24px;
  }
  
  .btn-large {
    padding: 14px 28px;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .header-phone {
    font-size: 0.95rem;
  }
  
  .cities-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form,
  .contact-form-page,
  .contact-details {
    padding: 25px;
  }
}

/* Overlay for mobile menu */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

/* Print Styles */
@media print {
  .header, .footer, .nav-menu, .hamburger {
    display: none;
  }
  
  .hero {
    background: none;
    color: black;
  }
  
  .hero h1 {
    color: black;
  }
}
