/* MOWHAWK LANDSCAPING - EARTHY EDITORIAL CSS */

:root {
  /* Color Palette */
  --primary-green: #2F5D50;
  --deep-olive: #3F4F44;
  --warm-white: #F7F6F2;
  --soft-sage: #A8B5A2;
  --charcoal: #1E1E1E;
  
  --bg-color: var(--warm-white);
  --text-color: var(--charcoal);
  --text-muted: #555555;
  --border-color: rgba(63, 79, 68, 0.15);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Spacing */
  --spacing-section: 8rem;
  --spacing-container: clamp(1.5rem, 5vw, 4rem);
}

/* BASE RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Fluid scaling: on laptops/tablets, the entire UI (rem units) will scale down proportionally */
  font-size: clamp(12px, 1.1vw, 16px);
}

@media (max-width: 768px) {
  html {
    /* Reset for mobile so text remains readable and standard stacking takes over */
    font-size: 16px;
  }
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--deep-olive);
  line-height: 1.1;
  font-weight: 500;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 65ch;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary-green);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--deep-olive);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(47, 93, 80, 0.15);
}

.btn-outline-light {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.05);
  border-color: #fff;
  transform: translateY(-3px);
}

.btn-white {
  background-color: var(--warm-white);
  color: var(--primary-green);
}

.btn-white:hover {
  background-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* LAYOUT HELPERS */
.section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header p {
  font-size: 1.25rem;
}

/* SCROLL REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* 1. NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem var(--spacing-container);
  transition: all 0.4s ease;
  z-index: 1000;
  /* Transparent initially for hero */
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(247, 246, 242, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem var(--spacing-container);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
  color: var(--primary-green);
}

.navbar.scrolled .logo span {
  color: var(--deep-olive);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1;
  transition: color 0.4s ease;
}

.logo span {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
  transition: color 0.4s ease;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  padding: 0.8rem 1.8rem;
}

/* 2. HERO SECTION */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-parallax-bg {
  position: absolute;
  inset: -15% 0;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center top;
  will-change: transform;
  z-index: 0;
}

/* Color blending overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 46, 26, 0.4) 0%,
    rgba(30, 40, 33, 0.6) 40%,
    rgba(20, 30, 23, 0.8) 100%
  );
  z-index: 1;
}

/* Fade seamlessly into the warm white body */
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--warm-white), transparent);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 0 2rem;
  margin-top: -40px; /* Slight optical adjustment */
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  margin: 0 auto 3rem auto;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-green); /* Blends with the white fade */
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--primary-green), transparent);
  animation: scrollPulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(0.4); transform-origin: top; }
}

/* 3. SERVICES SECTION */
.services {
  padding: var(--spacing-section) var(--spacing-container);
  position: relative;
  z-index: 10;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  padding: 3.5rem 2.5rem;
  border-radius: 4px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(47, 93, 80, 0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  color: var(--primary-green);
  margin-bottom: 2rem;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* 4. WHY CHOOSE US */
.why-us {
  padding: var(--spacing-section) var(--spacing-container);
  /* Seamless blend from white to soft sage */
  background: linear-gradient(to bottom, var(--warm-white) 0%, rgba(168, 181, 162, 0.15) 100%);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.why-us-content h2 {
  margin-bottom: 3rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.feature-list li {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--primary-green);
  padding-left: 2rem;
}

.feature-list strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--deep-olive);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.why-us-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.why-us-image img {
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 1s ease;
}

.why-us-image:hover img {
  transform: scale(1.03);
}

/* 5. PROJECTS SECTION */
.projects {
  padding: var(--spacing-section) var(--spacing-container);
  background-color: var(--deep-olive);
  color: var(--warm-white);
}

.projects .section-header h2 {
  color: var(--warm-white);
}

.projects .section-header p {
  color: rgba(247, 246, 242, 0.7);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.project-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/11;
  background-color: var(--charcoal);
  border-radius: 4px;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.project-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(to top, rgba(11, 18, 11, 0.9), transparent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-item:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}

.project-item:hover .project-label {
  transform: translateY(0);
  opacity: 1;
}

/* 6. PROCESS SECTION */
.process {
  padding: var(--spacing-section) var(--spacing-container);
  background-color: var(--soft-sage);
  color: var(--deep-olive);
  /* Blend out of deep olive */
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, var(--deep-olive), transparent);
  z-index: 1;
}

.process .section-inner {
  position: relative;
  z-index: 2;
}

.process .section-header p {
  color: var(--charcoal);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-top: 5rem;
}

.process-step {
  padding-top: 2.5rem;
  border-top: 2px solid var(--deep-olive);
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.process-step h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.process-step p {
  color: var(--charcoal);
  font-size: 1.1rem;
}

/* 7. TESTIMONIALS SECTION */
.testimonials {
  padding: var(--spacing-section) var(--spacing-container);
  background: linear-gradient(to bottom, var(--soft-sage) 0%, var(--warm-white) 15%);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.testimonial-card {
  padding: 4rem 3rem;
  border: 1px solid var(--border-color);
  background-color: #fff;
  border-radius: 4px;
}

.quote {
  font-size: 1.25rem;
  color: var(--charcoal);
  font-style: italic;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.author {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--primary-green);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 8. FINAL CTA SECTION */
.final-cta {
  padding: 10rem var(--spacing-container);
  background-color: var(--primary-green);
  text-align: center;
  color: #fff;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.final-cta h2 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.35rem;
  margin: 0 auto 4rem auto;
}

/* 9. FOOTER */
footer {
  background-color: var(--deep-olive);
  color: var(--warm-white);
  padding: 8rem var(--spacing-container) 3rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 5rem;
  margin-bottom: 5rem;
}

.footer-brand .logo {
  color: var(--warm-white);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.footer-brand .logo span {
  color: var(--soft-sage);
}

.footer-brand p {
  color: rgba(247, 246, 242, 0.7);
  font-size: 1.1rem;
}

footer h4 {
  color: var(--soft-sage);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

footer a {
  color: var(--warm-white);
  transition: color 0.3s ease;
  font-size: 1.05rem;
}

footer a:hover {
  color: var(--soft-sage);
}

.footer-areas p {
  color: rgba(247, 246, 242, 0.7);
  font-size: 1.05rem;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid rgba(247, 246, 242, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(247, 246, 242, 0.4);
  font-size: 0.9rem;
  margin: 0 auto;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .why-us-image {
    order: -1;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

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

  .hero-content h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}
