/* ==========================================================================
   Maldonado Lawns LLC — Stylesheet
   ========================================================================== */

:root {
  --forest-950: #0b1f13;
  --forest-900: #0f2a19;
  --forest-800: #14361f;
  --forest-700: #1c4a2a;
  --green-accent: #5a9c4b;
  --green-accent-light: #7ec46a;
  --beige: #f5f0e6;
  --beige-light: #faf7f0;
  --white: #ffffff;
  --ink: #1c2620;
  --ink-soft: #4c584f;
  --border-soft: #e6e0d2;

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 8px rgba(11, 31, 19, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 31, 19, 0.12);
  --shadow-lg: 0 20px 50px rgba(11, 31, 19, 0.22);

  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
svg { width: 1em; height: 1em; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--forest-950); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest-900);
  color: var(--white);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--green-accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(90, 156, 75, 0.35);
}
.btn-primary:hover { background: var(--green-accent-light); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(90, 156, 75, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-3px); border-color: var(--white); }

.btn-outline-dark {
  background: transparent;
  color: var(--forest-800);
  border: 1.5px solid var(--forest-800);
}
.btn-outline-dark:hover { background: var(--forest-800); color: var(--white); transform: translateY(-3px); }

.btn-call {
  background: var(--green-accent);
  color: var(--white);
  padding: 12px 22px;
  font-size: 0.9rem;
}
.btn-call:hover { background: var(--green-accent-light); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---------- Section shared ---------- */
.section-head { text-align: center; margin-bottom: 48px; }
.eyebrow {
  display: inline-block;
  color: var(--green-accent);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.eyebrow-light { color: var(--green-accent-light); }
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  position: relative;
  padding-bottom: 16px;
}
.section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--green-accent);
  border-radius: 2px;
}
.section-head-light h2 { color: var(--white); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(11, 31, 19, 0.96);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--white); letter-spacing: 0.5px; }
.logo-sub { font-size: 0.62rem; font-weight: 600; letter-spacing: 3px; color: var(--green-accent-light); margin-top: 4px; }

.main-nav ul { display: flex; gap: 32px; }
.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green-accent-light);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-call { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--forest-950);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}
.mobile-nav.open { max-height: 480px; }
.mobile-nav ul { display: flex; flex-direction: column; padding: 10px 24px; gap: 4px; }
.mobile-nav .nav-link { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav .btn-call { margin: 16px 24px 24px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 20, 12, 0.92) 0%, rgba(8, 20, 12, 0.78) 32%, rgba(8, 20, 12, 0.35) 58%, rgba(8, 20, 12, 0.15) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 60px; }
.hero-content { max-width: 640px; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero h1 span { color: var(--green-accent-light); display: block; }

.hero-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 28px; }
.trust-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.trust-badges svg { width: 18px; height: 18px; color: var(--green-accent-light); }

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: 100px 0; background: var(--beige-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(90, 156, 75, 0.1);
  color: var(--green-accent);
  transition: background var(--transition), transform var(--transition), color var(--transition);
}
.service-icon svg { width: 30px; height: 30px; }
.service-card:hover .service-icon {
  background: var(--forest-900);
  color: var(--green-accent-light);
  transform: scale(1.08) rotate(-4deg);
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 0.92rem; }

/* ==========================================================================
   Before & After
   ========================================================================== */
.before-after {
  padding: 100px 0;
  background: var(--forest-950);
  background-image: radial-gradient(circle at 20% 10%, rgba(90,156,75,0.12), transparent 45%);
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ba-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--forest-900);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ba-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}

.ba-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ba-before { clip-path: inset(0 0 0 0); will-change: clip-path; }

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--forest-900);
  box-shadow: var(--shadow-md);
}
.ba-handle svg { width: 14px; height: 14px; }

.ba-label {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  background: rgba(11, 31, 19, 0.75);
  color: var(--white);
  pointer-events: none;
}
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; }

.ba-caption {
  padding: 16px 18px;
  color: var(--beige);
  font-size: 0.92rem;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ba-cta { text-align: center; margin-top: 48px; }

/* ==========================================================================
   Why Us
   ========================================================================== */
.why-us { padding: 100px 0; background: var(--white); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 28px; }

.check-list { display: flex; flex-direction: column; gap: 16px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.check-list svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--white);
  background: var(--green-accent);
  border-radius: 50%;
  padding: 5px;
  box-sizing: border-box;
}

.why-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.2; transition: transform 0.6s ease; }
.why-image:hover img { transform: scale(1.06); }

/* ==========================================================================
   Featured Projects
   ========================================================================== */
.featured { padding: 100px 0; background: var(--beige-light); }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.featured-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.featured-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.featured-item:hover img { transform: scale(1.1); }
.featured-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,31,19,0.35), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}
.featured-item:hover::after { opacity: 1; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { padding: 100px 0; background: var(--white); }

.testimonial-track {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  min-height: 220px;
}
.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.testimonial-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; }

.testimonial-card {
  background: var(--beige-light);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.stars { color: #e0a530; font-size: 1.2rem; letter-spacing: 3px; margin-bottom: 16px; }
.testimonial-card p { font-size: 1.05rem; color: var(--ink); font-style: italic; margin-bottom: 20px; }
.client { font-weight: 700; color: var(--forest-800); font-size: 0.9rem; }

.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-soft); transition: background var(--transition), transform var(--transition); }
.dot.active { background: var(--green-accent); transform: scale(1.3); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: 100px 0; background: var(--forest-950); }
.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.2rem); margin: 8px 0 32px; }

.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--green-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-list a { color: var(--white); font-weight: 600; }
.contact-list a:hover { color: var(--green-accent-light); }
.contact-list div { color: var(--white); font-weight: 600; }
.contact-list small { display: block; color: rgba(255, 255, 255, 0.55); font-weight: 400; font-size: 0.82rem; margin-top: 2px; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: none; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--beige-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-accent);
  box-shadow: 0 0 0 4px rgba(90, 156, 75, 0.15);
  background: var(--white);
}
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234c584f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

.form-note { margin-top: 14px; text-align: center; font-weight: 600; font-size: 0.9rem; min-height: 1.2em; color: var(--green-accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #081209; padding: 70px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand p { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; margin-top: 18px; }
.footer-tag { color: var(--green-accent-light) !important; font-weight: 600; margin-top: 6px !important; }

.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--green-accent-light); }
.footer-areas li { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  margin-bottom: 14px;
  transition: background var(--transition), transform var(--transition);
}
.social-link:hover { background: var(--green-accent); transform: translateY(-3px); }
.social-link svg { width: 18px; height: 18px; }
.footer-note { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }

.site-footer .container > p,
.footer-grid + .container p {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  padding-top: 20px;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--forest-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
  z-index: 400;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-accent); }
.back-to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */
@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .why-image { order: -1; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .header-call.header-call { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
}

/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .trust-badges { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 26px; }
  .hero-inner { padding-top: 110px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(8,20,12,0.55) 0%, rgba(8,20,12,0.88) 55%, rgba(8,20,12,0.95) 100%); }
}
