/* Fox Pool Services - Main Stylesheet */

/* Global Styles */
:root {
  --primary-color: #0077b6;
  --secondary-color: #00b4d8;
  --accent-color: #48cae4;
  --light-color: #ade8f4;
  --dark-color: #03045e;
  --white-color: #ffffff;
  --light-gray: #f8f9fa;
  --gray-color: #6c757d;
  --text-color: #333333;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  text-align: center;
}

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

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

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

/* Header Styles */
header {
  background-color: var(--white-color);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

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

.company-info {
  text-align: right;
}

.company-info p {
  margin: 0;
  font-size: 14px;
}

.company-info .phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.company-info .new-ownership {
  color: var(--accent-color);
  font-weight: 600;
}

/* Navigation */
nav {
  background-color: var(--primary-color);
}

.nav-container {
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 15px 20px;
  color: var(--white-color);
  font-weight: 500;
}

.nav-list a:hover {
  background-color: var(--secondary-color);
}

.active {
  background-color: var(--secondary-color);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white-color);
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 20px;
  max-width: 600px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Services Section */
.services {
  padding: 80px 0;
  background-color: var(--light-gray);
}

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

.section-title h2 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto;
}

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

.service-category {
  margin-bottom: 60px;
}

.service-category h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.service-item {
  background-color: var(--white-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-header {
  padding: 20px;
  background-color: var(--primary-color);
  color: var(--white-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-header h4 {
  margin: 0;
  font-size: 18px;
}

.service-header .icon {
  transition: var(--transition);
}

.service-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.service-content.active {
  padding: 20px;
  max-height: 500px;
}

.service-content p {
  margin-bottom: 15px;
}

.service-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

/* Contact Section */
.contact {
  padding: 80px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-info {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 30px;
  border-radius: 8px;
}

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

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

.contact-info .phone {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
}

.contact-form {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 8px;
}

.contact-form h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

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

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

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

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

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

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 15px;
}

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

.footer-links h4 {
  font-size: 18px;
  margin-bottom: 15px;
}

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

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

.footer-links a {
  color: var(--light-color);
}

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

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero {
    height: 500px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .company-info {
    text-align: center;
    margin-top: 10px;
  }
  
  .nav-container {
    flex-direction: column;
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
    display: none;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
    margin-top: 10px;
  }
  
  .hero {
    height: 400px;
    margin-top: 140px;
  }
  
  .services-container {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
}

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

.animate {
  animation: fadeIn 0.8s ease forwards;
}
