/* Aquaviva Pool Service - Main Stylesheet */

/* Base Styles */
body {
  padding: 0;
  margin: 0;
  color: #000000;
  background: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 100%;
}

/* Utility Classes */
.phone-gold {
  color: #ff6600 !important;
  text-decoration: none !important;
  font-size: 150%;
  font-weight: bold;
}

.phone-gold:hover {
  text-decoration: underline !important;
}

.call-label {
  color: white;
  font-size: 150%;
  font-weight: bold;
}

/* As Seen On Badge */
.as-seen-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 85%;
  font-weight: bold;
  margin: 8px 0;
  border: 2px solid #eebb22;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.as-seen-badge span {
  color: #eebb22;
}

/* Contact Page */
.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-form-section {
  flex: 1;
  min-width: 300px;
}

.contact-info-section {
  width: 350px;
  flex-shrink: 0;
}

.contact-form {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #3f475d;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 100%;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6c90b8;
  box-shadow: 0 0 5px rgba(108, 144, 184, 0.3);
}

.submit-btn {
  background: #eebb22;
  color: #3f475d;
  border: none;
  padding: 15px 30px;
  font-size: 110%;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background: #d4a81d;
}

.form-note {
  margin-top: 15px;
  font-size: 85%;
  color: #666;
  text-align: center;
}

.contact-card {
  background: #3f475d;
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.contact-card h2 {
  color: white;
  margin-top: 0;
}

.contact-card p {
  margin: 10px 0;
}

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

.big-phone a {
  color: #ff6600;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding: 5px 0;
  padding-left: 25px;
  position: relative;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #eebb22;
  font-weight: bold;
}

.social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.social-btn {
  display: inline-block;
  background: #eebb22;
  color: #3f475d;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.social-btn:hover {
  background: #d4a81d;
}

/* FAQ Section */
.faq-section {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background: #3f475d;
  color: white;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: #4a5568;
}

.faq-question::after {
  content: "+";
  font-size: 150%;
  font-weight: bold;
  color: #eebb22;
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #f9f9f9;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
  background: #f5f5f5;
  padding: 40px 20px;
  margin: 30px 0;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.testimonial-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonial-stars {
  color: #eebb22;
  font-size: 120%;
  margin-bottom: 10px;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333;
}

.testimonial-author {
  font-weight: bold;
  color: #3f475d;
}

.testimonial-source {
  font-size: 85%;
  color: #666;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: #eebb22;
  color: #3f475d;
  padding: 15px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 110%;
  margin: 10px 0;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background: #d4a81d;
  color: #3f475d;
}

.cta-center {
  text-align: center;
  margin: 30px 0;
}

@media screen and (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-info-section {
    width: 100%;
  }

  .testimonials-container {
    grid-template-columns: 1fr;
  }
}

/* Header */
.Top {
  width: 100%;
  background-color: #3f475d;
  color: white;
  padding: 15px 0;
  text-align: center;
}

.Top a {
  color: white;
  text-decoration: none;
}

.Top a:hover {
  text-decoration: underline;
}

.Top img {
  max-width: 480px;
  margin: 0 auto;
  display: block;
}

.fltrght {
  padding: 10px;
  text-align: center;
}

.fltrght p {
  text-align: center;
  margin: 5px auto;
}

.Rght {
  margin: 5px 0;
}

/* Navigation */
.Top ul {
  padding: 10px 0;
  text-align: center;
  margin: 0;
  list-style: none;
}

.Top ul li {
  display: inline;
  padding: 5px 10px;
  font-size: 100%;
}

/* Skip Navigation Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #3f475d;
  color: white;
  padding: 8px;
  z-index: 100;
  text-decoration: none;
}

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

/* Hero Image */
.fill {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  background: #ffffff;
}

.fill img {
  margin: 0;
  padding: 0;
  display: inline-block;
}

.hero-img {
  max-width: 41%;
  height: auto;
}

/* Headings */
h1.topic,
.topic {
  text-align: center;
  font-size: 140%;
  color: #6c90b8;
  margin: 20px 0;
  font-weight: bold;
}

h2.topic2,
.topic2 {
  text-align: center;
  font-size: 110%;
  color: #6c90b8;
  margin: 8px;
}

/* Content Layout - Two Column (Home Page) */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Home Page - Two Column Cards */
.third {
  width: 48%;
  margin: 0 0 30px 0;
  padding: 0;
  text-align: center;
}

.third .fill img {
  width: 100%;
  margin: 0 auto;
  display: block;
}

.third .topic,
.third h2 {
  font-size: 120%;
  margin: 15px 0 10px 0;
}

.third p {
  margin: 10px 0;
  line-height: 1.6;
  text-align: justify;
  padding: 0 20px;
}

/* Content Layout - Main + Sidebar (Inner Pages) */
.content-wrapper-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.main-content {
  flex: 1;
  text-align: justify;
  line-height: 1.6;
  min-width: 300px;
  max-width: 100%;
  order: 1;
}

.sidebar {
  width: 315px;
  flex-shrink: 0;
  order: 2;
}

.main-content p {
  margin: 15px 0;
}

.main-content img {
  max-width: 200px;
  height: auto;
}

.main-content ul {
  line-height: 1.8;
}

.imgLft {
  float: left;
  margin: 0 15px 15px 0;
  max-width: 300px;
}

.imgRgt {
  float: right;
  margin: 0 0 15px 15px;
  max-width: 300px;
}

/* Info Box (Sidebar) */
.infoDiv {
  width: 100%;
}

.infoTop {
  background-color: #3f475d;
  color: white;
  margin: 0;
  padding: 12px;
  text-align: center;
  font-size: 100%;
}

.infoMid {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  color: black;
  margin: 0;
  padding: 12px;
  text-align: justify;
  font-size: 100%;
}

.infoBot {
  background-color: white;
  margin: 0;
  padding: 0;
}

/* Video Player */
.video-container {
  position: relative;
  width: 315px;
  height: 169px;
}

.video-container video {
  display: block;
}

.play-button {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
}

.play-button svg {
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

/* Review Links */
.review-links {
  margin: 15px 0;
  padding: 10px 0;
}

.review-links p {
  margin-bottom: 10px;
  font-size: 90%;
}

.review-links a {
  display: inline-block;
  color: #3f475d;
  background-color: #eebb22;
  padding: 8px 16px;
  margin: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.review-links a:hover {
  background-color: #d4a81d;
  color: #3f475d;
  text-decoration: none;
}

/* Footer */
.Bot {
  width: 100%;
  background-color: #3f475d;
  padding: 20px 0;
  text-align: center;
  clear: both;
}

.BotWrp {
  margin: 0 auto;
  padding: 0 20px;
  max-width: 1400px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer-content {
  flex: 1;
  text-align: center;
}

.footer-duck {
  flex: 0 0 150px;
  padding-left: 30px;
}

.Bot p {
  color: white;
  margin: 10px 0;
}

.Bot .topic,
.Bot h2 {
  color: white;
  font-size: 120%;
  margin: 10px 0 15px 0;
}

.BotWrp img {
  padding: 0;
  margin: 0;
  display: block;
  max-width: 150px;
}

.cities-container {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px 20px;
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
}

.BotWrp ul {
  margin: 0;
  padding: 0;
  text-align: left;
  list-style: none;
}

.BotWrp ul li {
  display: block;
  color: white;
  padding: 5px 0;
  white-space: nowrap;
}

/* Wider screens */
@media screen and (min-width: 1200px) {
  .content-wrapper,
  .content-wrapper-inner {
    max-width: 1400px;
  }
}

/* Tablet */
@media screen and (max-width: 1024px) {
  .cities-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  .skip-link:focus {
    top: 0;
  }

  .Top img {
    max-width: 90%;
    width: 400px;
  }

  .content-wrapper,
  .content-wrapper-inner {
    flex-direction: column;
  }

  .third {
    width: 100%;
  }

  .hero-img {
    max-width: 100%;
  }

  .sidebar {
    width: 100%;
    order: 2;
  }

  .main-content {
    width: 100%;
    max-width: 100%;
    order: 1;
  }

  .main-content img,
  .imgLft,
  .imgRgt {
    float: right;
    margin: 0 0 15px 15px;
    max-width: 300px;
  }

  .video-container,
  .infoBot > div {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .infoBot video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Phone number orange color on mobile */
  .phone-gold,
  .phone-gold *,
  p.phone-gold,
  .fltrght .phone-gold,
  .fltrght p.phone-gold,
  .infoTop .phone-gold {
    color: #ff6600 !important;
    text-decoration: none !important;
  }

  /* Social links centering on mobile */
  .social-links {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .social-btn {
    margin: 5px;
  }

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

  .footer-duck {
    padding: 15px 0 0 0;
  }

  .cities-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 15px;
  }
}
