/* =====================================================
   ANDY TURF CARE — Design tokens
   Deep forest ink   #1E2E1A
   Moss green        #3F6B2C
   Fresh-blade green #7FA653
   Sun-gold accent   #C99A3D
   Warm parchment    #F1EEDC
   Bark brown        #5B4530
===================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', sans-serif;
  background: #F1EEDC;
  color: #211D14;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== SOD-SEAM TEXTURE (signature motif) ===== */
.hero-seams, .gallery-seams {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 64px);
  pointer-events: none;
  z-index: 1;
}

/* ===== NAV ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(30, 46, 26, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; color: #F1EEDC; }
.brand-logo {
  height: 46px; width: auto; display: block;
  padding: 5px 12px; background: rgba(241,238,220,0.95); border-radius: 6px;
}
.brand-logo-footer {
  height: 58px; width: auto; display: block; margin: 0 auto 14px;
  padding: 8px 16px; background: rgba(241,238,220,0.95); border-radius: 6px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: rgba(241,238,220,0.82); font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: #7FA653; }
.lang-btn {
  background: rgba(127, 166, 83, 0.15); color: #A6D081;
  border: 1px solid rgba(127, 166, 83, 0.35); border-radius: 20px;
  padding: 6px 16px; font-size: 13px; font-family: 'Work Sans', sans-serif;
  cursor: pointer; transition: all 0.2s;
}
.lang-btn:hover { background: rgba(127, 166, 83, 0.28); }
.hamburger { display: none; background: none; border: none; color: #F1EEDC; font-size: 22px; cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; padding: 16px 24px 20px; gap: 12px; border-top: 1px solid rgba(255,255,255,0.08); background: rgba(30,46,26,0.98); }
.mobile-menu a { color: rgba(241,238,220,0.9); font-size: 15px; }
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  position: relative; width: 100%; min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #16220f;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 65%;
  filter: saturate(0.9);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(15,25,10,0.72) 0%, rgba(20,32,14,0.55) 45%, rgba(16,24,10,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 3; text-align: center; color: #F8F6EC;
  padding: 120px 24px 60px; animation: fadeUp 0.9s ease forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.hero-badge {
  display: inline-block; background: rgba(201, 154, 61, 0.18);
  border: 1px solid rgba(201, 154, 61, 0.5); color: #E4C275;
  border-radius: 3px; padding: 6px 18px; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 22px;
}
.hero-title {
  font-family: 'Fraunces', serif; font-optical-sizing: auto;
  font-size: clamp(48px, 8vw, 84px); font-weight: 600; font-style: normal;
  line-height: 1.02; margin-bottom: 12px; text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-owner { font-size: 15px; color: rgba(248,246,236,0.7); margin-bottom: 16px; font-weight: 300; }
.hero-sub {
  font-size: clamp(16px, 2.3vw, 20px); color: rgba(248,246,236,0.9);
  margin-bottom: 34px; font-weight: 300; max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #C99A3D; color: #17230F; padding: 14px 32px; border-radius: 3px;
  font-size: 15px; font-weight: 600; transition: all 0.2s; display: inline-block;
  box-shadow: 0 4px 20px rgba(201,154,61,0.35);
}
.btn-primary:hover { background: #dcae4d; transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.08); color: #F1EEDC; padding: 14px 32px; border-radius: 3px;
  font-size: 15px; font-weight: 400; border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px); transition: all 0.2s; display: inline-block;
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); }

/* turf-edge divider: hand-trimmed wavy grass edge between hero and next section */
.turf-edge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; z-index: 4;
  background-color: #F1EEDC;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 64' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 60 10, 120 50, 180 28 C 240 6, 300 46, 360 26 C 420 6, 480 50, 540 30 C 600 10, 660 50, 720 28 C 780 6, 840 46, 900 26 C 960 6, 1020 50, 1080 30 C 1140 10, 1170 40, 1200 24 L1200 64 L0 64 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 64' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 60 10, 120 50, 180 28 C 240 6, 300 46, 360 26 C 420 6, 480 50, 540 30 C 600 10, 660 50, 720 28 C 780 6, 840 46, 900 26 C 960 6, 1020 50, 1080 30 C 1140 10, 1170 40, 1200 24 L1200 64 L0 64 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}

/* ===== STATS BAR ===== */
.stats-bar { background: #24371C; display: flex; justify-content: center; flex-wrap: wrap; }
.stat {
  flex: 1; min-width: 140px; padding: 30px 20px; text-align: center;
  border-right: 1px dashed rgba(241,238,220,0.18); color: #F1EEDC;
}
.stat:last-child { border-right: none; }
.stat strong { display: block; font-family: 'Fraunces', serif; font-size: 34px; font-weight: 600; color: #C99A3D; }
.stat span { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(241,238,220,0.6); text-transform: uppercase; letter-spacing: 1.5px; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 52px; }
.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase;
  letter-spacing: 2px; color: #5B7C3E; font-weight: 500; margin-bottom: 12px;
}
.section-header.light .section-label { color: #9FCB74; }
.section-title { font-family: 'Fraunces', serif; font-size: clamp(30px, 4vw, 44px); font-weight: 600; margin-bottom: 14px; color: #1E2E1A; }
.section-header.light .section-title { color: #F8F6EC; }
.section-sub { font-size: 16px; color: #5B4530; max-width: 520px; margin: 0 auto; font-weight: 300; }
.section-header.light .section-sub { color: rgba(248,246,236,0.68); }

/* ===== SERVICES ===== */
.services-section { padding: 100px 0; background: #F1EEDC; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service-card {
  background: #FBF9F0; border: 1px solid rgba(91,69,48,0.12); border-radius: 6px;
  padding: 30px 26px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(30,46,26,0.1); border-color: rgba(127,166,83,0.4); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 16px; font-size: 19px; color: #3F6B2C;
  background: #E8E4CE; border-radius: 4px;
}
.service-card h3 { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; color: #1E2E1A; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: #5B4530; line-height: 1.65; font-weight: 300; }

/* ===== GALLERY ===== */
.gallery-section { position: relative; padding: 100px 0; background: #1E2E1A; overflow: hidden; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 300px 300px; gap: 16px; position: relative; z-index: 2; }
.gallery-item { position: relative; overflow: hidden; border-radius: 6px; cursor: pointer; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.06); }
.gallery-item[data-photo="house"] img { object-position: 50% 38%; }
.gallery-item[data-photo="crew"] img { object-position: 55% 62%; }
.gallery-item[data-photo="detail"] img { object-position: 50% 72%; }
.gallery-item[data-photo="commercial"] img { object-position: 50% 58%; }
.gallery-item[data-photo="frontyard"] img { object-position: 50% 42%; }
.gallery-item[data-photo="texture"] img { object-position: 50% 55%; }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 34px 18px 18px;
  background: linear-gradient(to top, rgba(10,15,6,0.85) 0%, transparent 100%);
  color: #F8F6EC; opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption h4 { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.gallery-caption p { font-size: 12px; opacity: 0.78; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding: 100px 0; background: #E8E4CE; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card { background: #FBF9F0; border-radius: 6px; padding: 30px; border: 1px solid rgba(91,69,48,0.1); }
.stars { color: #C99A3D; font-size: 17px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { font-size: 15px; color: #3a3325; line-height: 1.7; font-style: italic; font-weight: 300; margin-bottom: 18px; }
.reviewer { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #5B4530; }

/* ===== CONTACT ===== */
.contact-section { padding: 100px 0; background: #F1EEDC; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-items { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px dashed rgba(91,69,48,0.2); transition: color 0.2s; }
.contact-item:last-child { border-bottom: none; }
.contact-item:hover { color: #3F6B2C; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 4px; background: #E8E4CE;
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; color: #3F6B2C;
}
.contact-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #8a7a5f; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.6px; }
.contact-value { font-size: 15px; font-weight: 500; color: #1E2E1A; }

.contact-form-wrap { background: #FBF9F0; border: 1px solid rgba(91,69,48,0.12); border-radius: 6px; padding: 36px; }
.contact-form-wrap h3 { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 600; color: #1E2E1A; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  color: #5B4530; margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid #d8d2bd; border-radius: 4px;
  font-size: 14px; font-family: 'Work Sans', sans-serif; background: #fff; color: #211D14;
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #3F6B2C; box-shadow: 0 0 0 3px rgba(63,107,44,0.12);
}
.form-group textarea { resize: vertical; }
.btn-submit {
  width: 100%; background: #3F6B2C; color: #fff; border: none; border-radius: 4px;
  padding: 14px; font-size: 15px; font-weight: 500; font-family: 'Work Sans', sans-serif;
  cursor: pointer; transition: all 0.2s; margin-top: 8px;
}
.btn-submit:hover { background: #345824; transform: translateY(-1px); }
.form-success { margin-top: 16px; padding: 12px 16px; background: #E8E4CE; border-radius: 4px; font-size: 14px; color: #345824; text-align: center; }

/* ===== FOOTER ===== */
footer { background: #16220f; padding: 50px 24px; text-align: center; color: rgba(241,238,220,0.55); }
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo { font-family: 'Fraunces', serif; font-size: 22px; color: #F1EEDC; margin-bottom: 12px; }
footer p { font-size: 14px; line-height: 1.7; font-weight: 300; margin-bottom: 16px; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: #9FCB74; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: #C99A3D; }
.footer-copy { font-size: 12px; opacity: 0.45; }

/* ===== FOCUS STATES (accessibility) ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #C99A3D; outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content { animation: none; }
  .gallery-item img, .service-card, .btn-primary, .btn-ghost { transition: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item { aspect-ratio: 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stat { min-width: 100px; padding: 22px 12px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 4/3; }
  .hero-actions { flex-direction: column; align-items: center; }
}
