/*
Theme Name: Rinker's Lawn Care
Author: Your Name
Description: Custom WordPress theme for Rinker's Cutting Edge Lawn Services
Version: 1.0
*/
:root {
  --primary: #084200;
  --secondary: #00a708;
  --accent: #4caf50;
  --light: #ffffff;
  --dark: #121212;
  --gray: #f5f5f5;
  --text: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background-color: var(--light);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
}

p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-scrolled {
  background-color: var(--light);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
  position: relative;
  height: 50px;
}

.logo img {
  height: 120px;
  position: absolute;
  left: 0;
  top: -3px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light);
  transition: color 0.3s ease;
}

.header-scrolled .logo-text {
  color: var(--primary) !important;
}

.nav-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  color: var(--light);
  transition: color 0.3s ease;
}

.header-scrolled .nav-toggle {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.header-scrolled .nav-link {
  color: var(--text);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--secondary);
}

.header-cta {
  margin-left: 2rem;
  padding: 0.8rem 1.5rem;
  background-color: var(--secondary);
  color: var(--light);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.header-cta:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
  height: 100vh;
  background-color: var(--dark);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.61); /* dark overlay */
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding: 0 5%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

.hero-badge {
  background-color: var(--secondary);
  color: var(--light);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  color: var(--light);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  max-width: 700px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--light);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-container {
  display: flex;
  gap: 1rem;
}

.hero-cta {
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-cta-primary {
  background-color: var(--secondary);
  color: var(--light);
}

.hero-cta-primary:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-cta-secondary {
  background-color: transparent;
  color: var(--light);
  border: 2px solid var(--light);
}

.hero-cta-secondary:hover {
  background-color: var(--light);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--light);
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.scroll-indicator i {
  font-size: 1.5rem;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* About Section */
.section {
  padding: 6rem 5%;
}

.about {
  background-color: var(--light);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subheading {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-heading {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.about-image-container {
  grid-column: span 5;
  position: relative;
}

.about-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 100%;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.about-image:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.about-text-container {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-text-subtitle {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-text-description {
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--accent);
  border-radius: 50%;
  font-size: 1.2rem;
}

.about-feature-text h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about-feature-text p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Services Section */
.services {
  background-color: var(--gray);
  position: relative;
  overflow: hidden;
}

.services-container {
  position: relative;
  z-index: 1;
}

.services-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    45deg,
    var(--accent) 0%,
    var(--primary) 100%
  );
  clip-path: polygon(0 15%, 100% 0%, 100% 85%, 0% 100%);
  opacity: 0.03;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--light);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 2rem;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  color: var(--light);
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-description {
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
}

.service-feature {
  display: flex;
  align-items: center;
  margin-bottom: 0.7rem;
}

.service-feature i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.service-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.service-link i {
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Gallery Section */
.gallery {
  background-color: var(--light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 250px;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  height: auto;
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-item:nth-child(7) {
  grid-column: span 2;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info {
  color: var(--light);
}

.gallery-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.gallery-category {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Contact Section */
.contact {
  background-color: var(--gray);
  position: relative;
}

.contact-container {
  position: relative;
  z-index: 1;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.contact-info {
  grid-column: span 5;
  background-color: var(--primary);
  border-radius: 15px;
  padding: 3rem;
  color: var(--light);
}

.contact-info-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-info-description {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.contact-info-text h4 {
  margin-bottom: 0.3rem;
}

.contact-info-text p {
  opacity: 0.9;
  margin-bottom: 0;
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.contact-social-link:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.contact-form-container {
  grid-column: span 7;
  background-color: var(--light);
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-submit {
  background-color: var(--secondary);
  color: var(--light);
  border: none;
  border-radius: 30px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-submit:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.form-success-message {
  background: #e6ffe6;
  padding: 1rem;
  border: 1px solid #0a0;
  margin: 1rem 0;
  text-align: center;
  font-weight: 600;
  color: #0a0;
}

.wpforms-form input,
.wpforms-form select,
.wpforms-form textarea {
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  width: 100%;
}

.wpforms-submit {
  background-color: var(--accent) !important;
  color: white !important;
  padding: 1rem 2rem !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  min-height: 50px !important;
  min-width: 150px !important;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--light);
  padding: 4rem 5% 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
}

.footer-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--light);
}

.footer-about {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 0.8rem;
}

.footer-link a {
  color: var(--light);
  opacity: 0.8;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link a:hover {
  opacity: 1;
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-link a i {
  margin-right: 0.5rem;
}

.footer-contact {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  margin-right: 1rem;
  margin-top: 0.3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--secondary);
  color: var(--light);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Media Queries */
@media (max-width: 991px) {
  .logo {
    height: auto;
  }

  .logo img {
    height: 50px;
    position: relative;
  }
  .hero-title {
    font-size: 3rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image-container,
  .about-text-container {
    grid-column: span 10;
  }

  .about-image-container {
    margin-bottom: 2rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: 2rem !important;
  }

  .contact-info,
  .contact-form-container {
    grid-column: span 10;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(7) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem 8%;
  }

  .nav.active ~ .header-container * {
    color: var(--light) !important;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(-100%);
    transition: all 0.3s ease;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .nav-link {
    font-size: 1.2rem;
    color: var(--light) !important;
  }

  .header-cta {
    margin-left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 5%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-cta-container {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta {
    width: 100%;
    text-align: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(7) {
    grid-column: span 1;
  }
}
