/* --- Global Styles & Innovative Design Variables --- */
:root {
  --primary-color: #224181;
  --secondary-color: #80c241;
  --tertiary-color: #f0f6fc;
  --dark-text: #333;
  --light-text: #fff;
  --font-family: "Poppins", sans-serif;
  --section-padding: 80px 0;
  --section-padding-mobile: 50px 0;
  --transition-speed: 0.3s;
}

/* Base Styles - Mobile First */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--dark-text);
  margin: 0;
  line-height: 1.7;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography - Mobile First */
h1,
h2,
h3 {
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.heading-white {
  color: white;
}

h1 {
  font-size: 2rem;
  margin: 0;
}

h2 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 30px;
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
  line-height: 1.7;
}

section {
  padding: var(--section-padding-mobile);
}

/* CTA Button */
.cta-button {
  background: var(--secondary-color);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(128, 194, 65, 0.3);
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* --- ANIMATIONS ON SCROLL --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  color: white;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Optimize video performance */
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(34, 65, 129, 0.85),
    rgba(34, 65, 129, 0.6)
  );
  z-index: 1;
}

.hero-section nav,
.hero-content {
  position: relative;
  z-index: 2;
}

.column-gap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-section nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  flex-wrap: wrap;
}

.logo {
  width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
}

.nav-cta {
  white-space: nowrap;
}

.hero-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  padding: 20px;
}

.subheadline {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 15px 0 30px 0;
  font-weight: 300;
  line-height: 1.6;
}

.hero-main-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-main-cta i {
  margin-right: 0;
}

/* --- TRUST BAR --- */
.trust-bar {
  background-color: var(--tertiary-color);
  padding: 30px 0;
}

.trust-bar .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex: 1;
  min-width: 250px;
}

.trust-item img {
  max-width: 100%;
  height: auto;
}

.trust-item i {
  font-size: 2rem;
  color: var(--secondary-color);
}

.trust-item span {
  text-align: left;
  font-size: 0.95rem;
}

/* --- ABOUT SECTION --- */
.about-section .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
  text-align: center;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
  font-weight: 600;
  font-size: 0.95rem;
}

.about-features div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-features i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* --- DIFFERENCE SECTION (US vs THEM) --- */
.difference-section {
  background-color: var(--tertiary-color);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: flex-start;
}

.comparison-column {
  padding: 25px;
  border-radius: 15px;
}

.comparison-column h3 {
  text-align: center;
  margin-top: 0;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
}

.comparison-logo {
  width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
}

.comparison-column ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.comparison-column li {
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}

.comparison-column li i {
  font-size: 1.3rem;
  margin-right: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}

.turfresh-side {
  background-color: var(--primary-color);
  color: white;
}

.turfresh-side h3 {
  color: white;
}

.turfresh-side i {
  color: var(--secondary-color);
}

.competitor-side {
  background-color: #e9ecef;
}

.competitor-side h3 {
  color: #6c757d;
}

.competitor-side i {
  color: #dc3545;
}

/* --- GALLERY SECTION --- */
.gallery-section {
  padding-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 0;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform var(--transition-speed) ease;
  display: block;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
  background: var(--tertiary-color);
}

.lc_reviews_widget {
  min-height: 400px;
}

/* --- OFFER SECTION --- */
.offer-section .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.offer-details h2 {
  text-align: center;
}

.offer-details h3 {
  font-size: 1.5rem;
  text-align: center;
}

.highlight {
  color: #fff;
  background: linear-gradient(
    to top,
    var(--secondary-color) 100%,
    transparent 100%
  );
  padding: 0 5px;
  display: inline-block;
}

.offer-details ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.offer-details li {
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.offer-details i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.form-wrapper {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  min-height: 477px;
}

/* --- FAQ SECTION --- */
.faq-section {
  background: var(--tertiary-color);
}

.faq-section .container {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-item summary {
  padding: 18px 0;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--primary-color);
}

.faq-item summary:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.faq-item p {
  margin: 0 0 20px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item summary i {
  transition: transform var(--transition-speed) ease;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.faq-item[open] summary i {
  transform: rotate(45deg);
}

/* --- FOOTER --- */
.footer-section {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 40px 0;
}

.footer-section .logo {
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-section a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.footer-section a:hover,
.footer-section a:focus {
  color: #a0d461;
  text-decoration: underline;
}

.footer-social {
  margin: 20px 0;
}

.footer-social a {
  font-size: 1.5rem;
  margin: 0 12px;
  display: inline-block;
  transition: transform var(--transition-speed) ease;
}

.footer-social a:hover,
.footer-social a:focus {
  transform: translateY(-3px);
}

.copyright {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 15px;
}

/* --- TABLET RESPONSIVE (768px and up) --- */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  h3 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1.1rem;
  }

  section {
    padding: 80px 0;
  }

  .container {
    padding: 0 30px;
  }

  .cta-button {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .column-gap {
    flex-direction: row;
    gap: 30px;
  }

  .logo {
    width: 140px;
  }

  .subheadline {
    font-size: 1.3rem;
    margin: 20px 0 35px 0;
  }

  .trust-bar {
    padding: 40px 0;
  }

  .trust-item {
    min-width: auto;
  }

  .trust-item i {
    font-size: 2.5rem;
  }

  .about-features {
    flex-direction: row;
    gap: 20px;
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .comparison-column li {
    font-size: 1rem;
  }

  .comparison-logo {
    width: 130px;
  }

  .offer-details h3 {
    font-size: 1.8rem;
  }

  .offer-details li,
  .faq-item summary,
  .faq-item p {
    font-size: 1rem;
  }

  .footer-social a {
    font-size: 1.8rem;
    margin: 0 15px;
  }

  .copyright {
    font-size: 0.9rem;
  }
}

/* --- DESKTOP RESPONSIVE (992px and up) --- */
@media (min-width: 992px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
  }

  section {
    padding: var(--section-padding);
  }

  .logo {
    width: 150px;
  }

  .hero-section nav {
    padding-top: 30px;
  }

  .subheadline {
    font-size: 1.4rem;
    margin: 20px 0 40px 0;
  }

  .about-section .container {
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
  }

  .about-text h2 {
    text-align: left;
  }

  .about-features {
    gap: 30px;
    font-size: 1.05rem;
  }

  .comparison-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .comparison-column {
    padding: 30px;
  }

  .comparison-column h3 {
    min-height: 40px;
    font-size: 1.5rem;
  }

  .comparison-column li {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .comparison-column li i {
    font-size: 1.5rem;
  }

  .comparison-logo {
    width: 140px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: -50px;
  }

  .offer-section .container {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .offer-details h2,
  .offer-details h3 {
    text-align: left;
  }

  .offer-details h3 {
    font-size: 2rem;
  }

  .offer-details li {
    font-size: 1.05rem;
  }

  .faq-item summary {
    font-size: 1.2rem;
    padding: 20px 0;
  }

  .faq-item p {
    font-size: 1.05rem;
  }
}

/* --- LARGE DESKTOP (1200px and up) --- */
@media (min-width: 1200px) {
  h1 {
    font-size: 4rem;
  }

  .column-gap {
    gap: 40px;
  }
}

/* --- ACCESSIBILITY IMPROVEMENTS --- */
/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cta-button {
    border: 2px solid currentColor;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles if needed */
}

/* Print styles */
@media print {
  .hero-section nav,
  .video-background,
  .footer-social,
  .cta-button {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  section {
    page-break-inside: avoid;
  }
}

/* Performance optimizations */
img {
  max-width: 100%;
  height: auto;
}

iframe {
  border: 0;
}

/* Optimize for Core Web Vitals */
.hero-section,
.video-background {
  contain: layout style paint;
}
