/* J&M Landscape & Hardscape — Custom Styles */
/* Supplements Tailwind CSS CDN */

/* ===== CSS Variables ===== */
:root {
  --gold: #C5A54E;
  --gold-light: #D4B96A;
  --gold-dark: #A68A3A;
  --green-dark: #2D5A27;
  --green-light: #4A8B3F;
  --green-accent: #3A7233;
  --near-black: #1A1A1A;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #F5F5F0;
  --warm-cream: #FAF8F3;
  --white: #FFFFFF;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--near-black);
  line-height: 1.2;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--near-black);
}

.site-header.scrolled {
  background-color: var(--near-black);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.site-header.scrolled .nav-link:hover {
  color: var(--gold);
}

.site-header.scrolled .header-phone {
  color: white;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-phone {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: white;
  transition: color 0.3s ease;
}

/* Services Dropdown */
.services-dropdown {
  position: relative;
}

.services-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 240px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 8px 0;
  pointer-events: none;
}

.services-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--dark-gray);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: var(--light-gray);
  color: var(--green-dark);
  padding-left: 24px;
}

/* ===== Buttons ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 90, 39, 0.3);
}

.btn-secondary {
  border: 2px solid white;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--near-black);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 165, 78, 0.35);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.7) 0%,
    rgba(26, 26, 26, 0.5) 50%,
    rgba(45, 90, 39, 0.3) 100%
  );
  z-index: 1;
}

/* Hero Slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-indicators {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
}

/* ===== Trust Bar ===== */
.trust-bar {
  background: var(--near-black);
  position: relative;
}

.trust-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green-light), var(--gold));
}

.trust-item {
  text-align: center;
  padding: 24px 16px;
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--gold);
}

.trust-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: white;
}

.trust-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== Section Spacing ===== */
.section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }
}

.section-alt {
  background-color: var(--warm-cream);
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.section-heading .accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green-light));
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-heading p {
  color: var(--medium-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Service Cards ===== */
.service-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 320px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.08);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.3s ease;
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(45, 90, 39, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%);
}

.service-card h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.service-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.service-card .card-arrow {
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.service-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Featured Projects (Masonry) ===== */
.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 90, 39, 0);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: background 0.3s ease;
}

.project-card:hover .project-card-overlay {
  background: rgba(45, 90, 39, 0.7);
}

.project-card-info {
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.project-card:hover .project-card-info {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Instagram Feed Grid ===== */
.ig-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ig-card:hover img {
  transform: scale(1.08);
}

.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.ig-overlay svg {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.ig-card:hover .ig-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.ig-card:hover .ig-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* ===== About Snippet ===== */
.about-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 50%;
  height: 50%;
  border: 3px solid var(--gold);
  border-radius: 12px;
  z-index: -1;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-weight: 700;
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-card::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.testimonial-text {
  font-style: italic;
  color: var(--dark-gray);
  margin-bottom: 16px;
  line-height: 1.7;
}

.testimonial-author {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--near-black);
}

.testimonial-location {
  font-size: 0.85rem;
  color: var(--medium-gray);
}

/* ===== Process Steps ===== */
.process-step {
  text-align: center;
  position: relative;
}

.process-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  color: white;
}

.process-step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--medium-gray);
  font-size: 0.95rem;
}

.process-connector {
  position: absolute;
  top: 40px;
  left: calc(50% + 50px);
  width: calc(100% - 100px);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold),
    var(--gold) 8px,
    transparent 8px,
    transparent 16px
  );
}

/* ===== Service Areas Grid ===== */
.area-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--light-gray);
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--dark-gray);
  transition: all 0.2s ease;
}

.area-tag:hover {
  background: var(--green-dark);
  color: white;
}

/* ===== Bottom CTA ===== */
.bottom-cta {
  position: relative;
  overflow: hidden;
}

.bottom-cta .cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.bottom-cta .cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 90, 39, 0.9), rgba(26, 26, 26, 0.85));
}

/* ===== Footer ===== */
.site-footer {
  background: var(--near-black);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-heading {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.85rem;
}

/* ===== Floating Mobile CTA ===== */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--near-black);
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .mobile-cta {
    display: flex;
    gap: 10px;
  }

  body {
    padding-bottom: 70px;
  }
}

.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: white;
  z-index: 1100;
  transition: right 0.35s ease;
  overflow-y: auto;
  padding: 80px 32px 32px;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: var(--dark-gray);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--light-gray);
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--green-dark);
}

.mobile-menu .mobile-submenu {
  padding-left: 16px;
}

.mobile-menu .mobile-submenu a {
  font-size: 0.95rem;
  color: var(--medium-gray);
  padding: 10px 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1200;
  padding: 8px;
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }
  .desktop-nav {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}

.site-header.scrolled .hamburger span {
  background: var(--dark-gray);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Floating CTA Button (Desktop) ===== */
.floating-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(45, 90, 39, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(45, 90, 39, 0.5);
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
}

.floating-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .floating-cta {
    display: none;
  }
}

/* ===== Counter Animation ===== */
.counter {
  display: inline-block;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .section-heading h2 {
    font-size: 1.8rem;
  }

  .hero {
    min-height: 85vh;
  }

  .process-connector {
    display: none;
  }

  .service-card {
    height: 260px;
  }
}
