/* ===============================================
   Empire Greens Landscape Design & Artificial Turf
   Shared stylesheet
   =============================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --green-900: #1b3a2a;
  --green-800: #234a35;
  --green-700: #2d5a41;
  --green-600: #3a7355;
  --green-400: #6fae8a;
  --sand-100: #f6f1e7;
  --sand-200: #ece3d2;
  --sand-300: #ddceb3;
  --cream: #fbf8f2;
  --charcoal: #1f1d18;
  --ink: #34322c;
  --muted: #6b675d;
  --white: #ffffff;
  --gold: #b08642;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;

  --maxw: 1240px;
  --radius: 4px;
  --shadow-sm: 0 2px 12px rgba(27, 58, 42, 0.08);
  --shadow-md: 0 12px 40px rgba(27, 58, 42, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; color: var(--charcoal); letter-spacing: -0.01em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-600);
  display: inline-block;
  margin-bottom: 18px;
}
.eyebrow.light { color: var(--green-400); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 16px 34px;
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--green-700); color: var(--cream); }
.btn-primary:hover { background: var(--green-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--green-900); }
.btn-dark { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover { background: var(--green-800); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.4s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  background: var(--cream);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--white); transition: color 0.4s; line-height: 1.1; }
.site-header.scrolled .logo { color: var(--green-900); }
.logo-mark {
  width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.4s, box-shadow 0.4s;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.site-header.scrolled .logo-mark { box-shadow: 0 2px 8px rgba(27,58,42,0.12); }
.logo small { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; opacity: 0.75; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: rgba(255,255,255,0.92);
  transition: color 0.3s; padding: 8px 0; display: inline-block;
}
.site-header.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--green-400); }
.site-header.scrolled .nav-links a:hover { color: var(--green-700); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--cream); min-width: 250px; padding: 14px;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: all 0.3s var(--ease);
  list-style: none;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(8px); }
.dropdown-menu a { display: block; padding: 11px 16px; font-size: 0.9rem; color: var(--ink) !important; border-radius: var(--radius); transition: all 0.2s; }
.dropdown-menu a:hover { background: var(--sand-100); color: var(--green-800) !important; padding-left: 22px; }

.header-cta { display: flex; align-items: center; gap: 20px; }
.header-phone { font-weight: 600; font-size: 0.95rem; color: var(--white); transition: color 0.4s; white-space: nowrap; }
.site-header.scrolled .header-phone { color: var(--green-900); }
.header-cta .btn { padding: 12px 24px; font-size: 0.88rem; }

.mobile-nav { display: none; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--white); transition: 0.3s; }
.site-header.scrolled .menu-toggle span { background: var(--green-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(20,40,28,0.88) 0%, rgba(27,58,42,0.6) 45%, rgba(27,58,42,0.25) 100%);
}
.hero-content { max-width: 760px; padding: 140px 0 80px; }
.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  color: var(--white); font-weight: 500;
  margin-bottom: 26px; letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--green-400); font-weight: 400; }
.hero-sub { font-size: 1.22rem; max-width: 540px; margin-bottom: 40px; color: rgba(255,255,255,0.9); font-weight: 300; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-scroll::after { content: ''; width: 1px; height: 40px; background: rgba(255,255,255,0.5); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Stat band ---------- */
.stat-band { background: var(--green-900); color: var(--cream); padding: 60px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; padding: 0 16px; border-right: 1px solid rgba(255,255,255,0.12); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--green-400); margin-bottom: 6px; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.78); letter-spacing: 0.03em; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section-head { max-width: 660px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 20px; }
.section-head h2 em { font-style: italic; color: var(--green-600); }
.section-head p { font-size: 1.1rem; color: var(--muted); }

/* intro split */
.intro { background: var(--cream); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro-img { position: relative; }
.intro-img img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }
.intro-img .badge {
  position: absolute; bottom: -28px; left: -28px;
  background: var(--green-700); color: var(--cream);
  padding: 26px 32px; border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.intro-img .badge strong { font-family: var(--font-display); font-size: 2rem; display: block; }
.intro-img .badge span { font-size: 0.82rem; letter-spacing: 0.05em; opacity: 0.85; }
.intro-text h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 24px; }
.intro-text p { color: var(--muted); margin-bottom: 20px; font-size: 1.05rem; }
.intro-list { list-style: none; margin: 28px 0 36px; }
.intro-list li { padding: 10px 0 10px 34px; position: relative; font-weight: 500; color: var(--ink); }
.intro-list li::before {
  content: '✓'; position: absolute; left: 0; top: 9px;
  width: 22px; height: 22px; background: var(--green-600); color: var(--white);
  border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem;
}

/* ---------- Services grid ---------- */
.services { background: var(--sand-100); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card {
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all 0.45s var(--ease);
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.svc-img { aspect-ratio: 3/2; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.07); }
.svc-body { padding: 32px 30px 34px; flex: 1; display: flex; flex-direction: column; }
.svc-body h3 { font-size: 1.4rem; margin-bottom: 12px; }
.svc-body p { color: var(--muted); font-size: 0.96rem; margin-bottom: 22px; flex: 1; }
.svc-link { font-weight: 600; font-size: 0.9rem; color: var(--green-700); display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s; }
.svc-link:hover { gap: 14px; }

/* ---------- Process ---------- */
.process { background: var(--green-900); color: var(--cream); }
.process .section-head h2 { color: var(--white); }
.process .section-head h2 em { color: var(--green-400); }
.process .section-head p { color: rgba(255,255,255,0.75); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.proc-step { position: relative; }
.proc-num { font-family: var(--font-display); font-size: 3.2rem; color: rgba(111,174,138,0.35); font-weight: 600; margin-bottom: 12px; }
.proc-step h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 12px; }
.proc-step p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--cream); }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.test-card { background: var(--sand-100); padding: 40px 34px; border-radius: var(--radius); border-top: 3px solid var(--green-600); }
.test-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 18px; font-size: 0.95rem; }
.test-card p { font-style: italic; font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); margin-bottom: 24px; line-height: 1.6; }
.test-author { font-weight: 600; color: var(--green-800); }
.test-author span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); font-family: var(--font-body); }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; padding: 130px 0; color: var(--white); text-align: center; overflow: hidden; }
.cta-banner-bg { position: absolute; inset: 0; z-index: -2; }
.cta-banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(27,58,42,0.9), rgba(20,40,28,0.92)); }
.cta-banner h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--white); margin-bottom: 22px; }
.cta-banner p { font-size: 1.15rem; max-width: 560px; margin: 0 auto 38px; color: rgba(255,255,255,0.85); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.7); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 50px; padding-bottom: 60px; }
.footer-brand .logo { color: var(--white); margin-bottom: 20px; }
.footer-brand p { font-size: 0.95rem; max-width: 320px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 22px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 0.94rem; transition: color 0.3s, padding-left 0.3s; }
.footer-col a:hover { color: var(--green-400); padding-left: 5px; }
.footer-contact p { font-size: 0.94rem; margin-bottom: 14px; line-height: 1.6; }
.footer-contact strong { color: var(--white); display: block; font-size: 1.2rem; font-family: var(--font-display); margin-bottom: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 26px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; flex-wrap: wrap; gap: 14px; }
.footer-bottom a:hover { color: var(--green-400); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 200px 0 110px; color: var(--white); overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20,40,28,0.9), rgba(27,58,42,0.55)); }
.page-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); color: var(--white); margin-bottom: 18px; max-width: 800px; }
.page-hero p { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 560px; }
.breadcrumb { font-size: 0.85rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--green-400); }

/* ---------- Service detail ---------- */
.svc-detail { padding: 110px 0; }
.svc-detail-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: start; }
.svc-detail-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 24px; }
.svc-detail-text h3 { font-size: 1.4rem; margin: 38px 0 14px; color: var(--green-800); }
.svc-detail-text p { color: var(--muted); margin-bottom: 18px; font-size: 1.04rem; }
.svc-detail-img img { border-radius: var(--radius); box-shadow: var(--shadow-md); position: sticky; top: 110px; aspect-ratio: 4/5; object-fit: cover; }
.feature-list { list-style: none; margin: 24px 0; }
.feature-list li { padding: 12px 0 12px 36px; position: relative; border-bottom: 1px solid var(--sand-200); color: var(--ink); }
.feature-list li::before { content: '→'; position: absolute; left: 0; color: var(--green-600); font-weight: 700; }

.related { background: var(--sand-100); padding: 100px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { background: var(--cream); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: all 0.4s var(--ease); }
.related-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.related-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.related-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.related-card a { color: var(--green-700); font-weight: 600; font-size: 0.88rem; }


/* ---------- Gallery ---------- */
.gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 280px 280px;
  grid-template-areas:
    "a a b c"
    "d e e f";
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
  cursor: pointer;
  background: var(--sand-100);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(27,58,42,0.35));
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 240px);
    grid-template-areas:
      "a b"
      "c d"
      "e f";
  }
}
@media (max-width: 620px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 220px);
    grid-template-areas: "a" "b" "c" "d" "e" "f";
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .nav-links, .header-phone { display: none; }
  .header-cta .btn-primary { display: none; }
  .logo small { font-size: 0.58rem; }
  .logo { font-size: 1.15rem; gap: 10px; }
  .menu-toggle { display: flex; }
  .intro-grid, .svc-detail-grid { grid-template-columns: 1fr; gap: 50px; }
  .services-grid, .test-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .stat:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .svc-detail-img img { position: static; }
  .intro-img .badge { left: 16px; bottom: -20px; }

  .mobile-nav {
    display: flex;
    position: fixed; inset: 0; background: var(--green-900); z-index: 200;
    transform: translateX(100%); transition: transform 0.45s var(--ease);
    display: flex; flex-direction: column; padding: 90px 36px; overflow-y: auto;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav a { color: var(--cream); font-size: 1.3rem; font-family: var(--font-display); padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .mobile-nav .sub { font-size: 1rem; padding-left: 18px; opacity: 0.8; font-family: var(--font-body); }
  .mobile-close { position: absolute; top: 28px; right: 28px; background: none; border: none; color: var(--cream); font-size: 2rem; cursor: pointer; }
  .mobile-nav .btn { margin-top: 24px; justify-content: center; }
}

@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .section { padding: 70px 0; }
  .services-grid, .test-grid, .related-grid, .stat-grid, .process-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 30px; }
  .stat:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
