/*
  File: styles.css
  Description: Cleaned & optimized CSS for High Tide Irrigation
  Author: Pro Image Websites
*/

/* === Fonts === */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: white;
  color: #8a8a8a;
}

h1, h2, h3, h5, h6 {
  color: #009298;
  font-weight: bold;
}

.heading-dark-teal {
  color: #009298;
}

/* === Hero Section === */
.hero-section {
  background-image: url('images/beautiful-lawn-thanks-to-high-tide-sprinklers-washington-mi.jpg');
  background-size: cover;
  background-position: center center;
  min-height: 90vh;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeInHero 1.2s ease-in-out both;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-section h4 {
  font-size: 1.5rem;
  font-weight: 500;
 line-height:1.6;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* === Responsive Hero Images === */
@media (min-width: 1201px) {
  .hero-section {
    background-image: url('images/beautiful-lawn-thanks-to-high-tide-sprinklers-washington-mi.jpg');
  }
}
@media (min-width: 768px) {
  .hero-section {
    background-image: url('images/beautiful-lawn-thanks-to-high-tide-sprinklers-washington-mi-med.jpg');
  }
}
@media (max-width: 768px) {
  .hero-section {
    background-image: url('images/beautiful-lawn-thanks-to-high-tide-sprinklers-washington-mi-sm.jpg');
    padding: 3rem 1.25rem;
    min-height: 400px;
  }
  .hero-section h1 { font-size: 2rem; line-height: 1.3; }
  .hero-section h4 { font-size: 1.2rem; }
}

/* === Utility Styles === */
.text-shadow-dark {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

img { height: auto; }
a, button { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

/* === Buttons === */
.btn-primary, .btn-secondary {
  padding: .75rem 1rem;
  border-radius: .5rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .12);
}
.btn-primary {
  background: #7ed0d4;
  border: 3px solid #009298;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: #009298;
  transform: scale(1.1);
}
.btn-secondary {
  background: #0f766e;
}
.btn-secondary:hover {
  background: #115e59;
}

/* === Headings & Decor === */
.h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; color: #009298; }
.h4 { font-size: 1.125rem; font-weight: 600; }
.lead { font-size: 1.125rem; line-height: 1.65; }

.heading-with-border {
  position: relative;
  padding-bottom: .5rem;
}
.heading-with-border::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #7ed0d4;
  margin-top: .75rem;
}

/* === Cards / CTA === */
.card {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}
.cta-band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 1rem;
  border: 1px solid #7ed0d4;
  border-left-width: 5px;
  border-radius: .5rem;
  background: #fff;
  margin: 2.5rem 0;
}

/* === Dropdown & Sprinkler Menu === */
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu { display: none; }

details > summary::-webkit-details-marker { display: none; }
details[open] > summary { color: #7ed0d4; }

/* === Swiper Testimonial Section === */
.swiper-container-testimonial { width: 100%; height: auto; }

.swiper-slide-testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
  text-align: center;
}

.swiper-pagination-testimonial {
  position: relative !important;
  bottom: -20px !important;
}
.swiper-pagination-bullet-testimonial {
  background: #009298 !important;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.swiper-pagination-bullet-testimonial-active {
  opacity: 1;
}
.swiper-button-next, .swiper-button-prev {
  color: #7ed0d4 !important;
}

/* Testimonial Author Styling */
.testimonial-author {
  color: #009298;
  font-weight: bold;
}
.testimonial-title {
  color: #009298;
  font-weight: normal;
  font-size: 0.875rem;
}
/* Default: Desktop and larger */
.top-bar-reset {
  padding-top: 1.5rem;   /* py-6 = 1.5rem top */
  padding-bottom: 1.5rem; /* py-6 = 1.5rem bottom */
}

/* Mobile: under 768px */
@media (max-width: 767px) {
  .top-bar-reset {
    padding-top: 0 !important;
    padding-bottom: 1.5rem !important; /* pb-6 */
  }
}

/* === Print Overrides === */
@media print {
  header, nav, .btn-primary, .btn-secondary, .cta-band, .card, .h2::after {
    display: none !important;
  }
}

/* === Animations === */
     /* Hero */
@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* === Hero Text Micro Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Animate headline (h1) */
.hero-section h1 {
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0; /* ensures it starts invisible */
}

/* Animate subheadline (h4) */
.hero-section h4 {
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 1s; /* slight delay after h1 */
  opacity: 0;
}
/* === Call CTA Scroll Animation === */
.call-cta {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.call-cta.animate {
  opacity: 1;
  transform: translateY(0);
}
/* === Typography Adjustments === */
strong {
  font-weight: 600;
}

