/*
Theme Name: FG Landscape
Description: Custom theme for FG Landscape Inc. — Waltham & Newton MA
Version: 1.0.0
Author: FG Landscape Inc.
*/

/* =============================================
   CSS Variables
   ============================================= */
:root {
  --green:       #2a5c1a;
  --green-dark:  #1a3a11;
  --green-mid:   #3a7024;
  --red:         #b82020;
  --red-dark:    #8b1818;
  --white:       #ffffff;
  --off-white:   #f6f8f3;
  --gray-light:  #efefef;
  --gray:        #888;
  --text:        #1c1c1c;
  --text-mid:    #4a4a4a;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --shadow-md:   0 6px 28px rgba(0,0,0,.12);
  --radius:      5px;
  --radius-md:   10px;
  --max-w:       1200px;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: #fff; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* =============================================
   Shared / Utilities
   ============================================= */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-red   { background: var(--red);   color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #f0f0f0; }
.btn-outline-white2 { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline-white2:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* =============================================
   Site Header
   ============================================= */
.site-header {
  background: #fff;
  box-shadow: 0 1px 0 #e5e5e5, 0 2px 8px rgba(0,0,0,.05);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-bar {
  height: 3px;
  background: var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 28px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-dark);
  flex-shrink: 0;
}
.site-logo .logo-icon { width: 36px; height: 36px; }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}
.site-nav a:hover { color: var(--red); }
.site-nav a.nav-active { color: var(--red); font-weight: 600; }
.site-nav a.nav-active::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

/* Phone button */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  transition: background .2s;
}
.header-phone:hover { background: var(--red-dark); }
.header-phone svg { width: 15px; height: 15px; fill: currentColor; }

/* Hamburger */
.menu-toggle { display: none; padding: 6px; }
.menu-toggle svg { width: 24px; height: 24px; fill: var(--text); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 12px 28px 20px;
}
.mobile-nav a {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* =============================================
   Hero
   ============================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(125deg, #0d2209 0%, #1a3a11 30%, #2a5c1a 65%, #3a7024 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.50);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 80px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  max-width: 720px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.hero-content .hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.87);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.88);
}
.hero-badge svg { width: 16px; height: 16px; fill: currentColor; opacity: .85; }

/* =============================================
   Features Strip
   ============================================= */
.features-strip {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-w);
  margin: 0 auto;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid #e5e5e5;
  gap: 8px;
}
.feature-item:last-child { border-right: none; }
.feature-item svg { width: 32px; height: 32px; fill: var(--red); }
.feature-item span { font-size: 12px; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: .05em; }

/* =============================================
   Services Section
   ============================================= */
.services-section {
  padding: 80px 28px;
  background: #fff;
}
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  gap: 16px;
}
.services-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.services-header .sub { font-size: 14px; color: var(--text-mid); max-width: 480px; line-height: 1.6; }
.view-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s;
}
.view-all:hover { color: var(--red); }
.view-all svg { width: 14px; height: 14px; fill: currentColor; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.svc-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.svc-img {
  height: 190px;
  position: relative;
  overflow: hidden;
}
.svc-img img { width: 100%; height: 100%; object-fit: cover; }

/* Gradient placeholders — replace with real images via background-image */
.svc-img.masonry    { background: linear-gradient(135deg, #7a6a58 0%, #5a4a38 100%); }
.svc-img.tree       { background: linear-gradient(135deg, #1a3a11 0%, #2d5c1a 100%); }
.svc-img.property   { background: linear-gradient(135deg, #3a7024 0%, #5a9a3a 100%); }
.svc-img.irrigation { background: linear-gradient(135deg, #1a4a6a 0%, #2a6a9a 100%); }
.svc-img.mulching   { background: linear-gradient(135deg, #5a3a18 0%, #7a5a28 100%); }
.svc-img.snow       { background: linear-gradient(135deg, #3a5a7a 0%, #5a7aaa 100%); }

.svc-body { padding: 20px; }
.svc-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.svc-title svg { width: 22px; height: 22px; fill: var(--green); flex-shrink: 0; }
.svc-title h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.svc-body p { font-size: 14px; color: var(--text-mid); margin-bottom: 16px; line-height: 1.65; }
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  transition: gap .18s;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.learn-more:hover { gap: 10px; }
.learn-more svg { width: 12px; height: 12px; fill: currentColor; }

/* =============================================
   Expert Masonry Section
   ============================================= */
.masonry-section {
  background: var(--green-dark);
  color: #fff;
  padding: 80px 28px;
}
.masonry-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.masonry-content .section-tag {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
}
.masonry-content h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.masonry-content p {
  font-size: 15px;
  color: rgba(255,255,255,.78);
  line-height: 1.75;
  margin-bottom: 32px;
}
.masonry-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.projects-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
}
.badge-circle svg { width: 20px; height: 20px; fill: #fff; }
.badge-text { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.88); }

.masonry-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 240px 200px;
  gap: 12px;
}
.masonry-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.masonry-photo img { width: 100%; height: 100%; object-fit: cover; }
.masonry-photo:first-child {
  grid-row: span 2;
  background: linear-gradient(160deg, #4a6a3a, #5a8a4a);
}
.masonry-photo.p2 { background: linear-gradient(135deg, #6a7a5a, #4a5a3a); }
.masonry-photo.p3 { background: linear-gradient(135deg, #3a5a3a, #5a7a4a); }

/* =============================================
   Testimonials
   ============================================= */
.testimonials-section {
  padding: 80px 28px;
  background: var(--off-white);
}
.testimonials-head {
  text-align: center;
  margin-bottom: 48px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.testimonials-head h2 { font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 8px; }
.testimonials-head p { font-size: 14px; color: var(--text-mid); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.testi-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
}
.stars { display: flex; gap: 2px; margin-bottom: 16px; }
.stars svg { width: 18px; height: 18px; fill: #f5a623; }
.testi-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
.testi-author .name { font-weight: 700; font-size: 14px; color: var(--text); }
.testi-author .loc { font-size: 13px; color: var(--gray); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.testi-author .loc svg { width: 12px; height: 12px; fill: var(--gray); }

/* =============================================
   Service Area
   ============================================= */
.service-area {
  padding: 40px 28px;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}
.service-area-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.area-icon { width: 48px; height: 48px; flex-shrink: 0; }
.area-icon svg { width: 100%; height: 100%; fill: var(--green); }
.area-text p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }
.area-map {
  width: 280px;
  height: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #d4e4c4;
  flex-shrink: 0;
  position: relative;
}
.area-map-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42,92,26,.18);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: .04em;
}

/* =============================================
   CTA Banner
   ============================================= */
.cta-banner {
  padding: 72px 28px;
  text-align: center;
  background: linear-gradient(135deg, #7a0e0e 0%, #b82020 60%, #8b1818 100%);
  color: #fff;
}
.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-banner .sub {
  font-size: 15px;
  color: rgba(255,255,255,.82);
  margin-bottom: 32px;
}
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: #111e0e;
  color: rgba(255,255,255,.65);
  padding: 60px 28px 0;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .site-logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.social-btn:hover { background: rgba(255,255,255,.18); }
.social-btn svg { width: 15px; height: 15px; fill: rgba(255,255,255,.75); }

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.55);
}
.contact-item svg { width: 15px; height: 15px; fill: rgba(255,255,255,.4); flex-shrink: 0; margin-top: 2px; }
.contact-item a { color: rgba(255,255,255,.55); transition: color .2s; }
.contact-item a:hover { color: #fff; }

.hours-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: rgba(255,255,255,.55); }
.hours-row .day { color: rgba(255,255,255,.8); font-weight: 500; }
.hours-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,.4); margin-top: 12px;
}
.hours-note svg { width: 13px; height: 13px; fill: rgba(255,255,255,.35); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.3);
}
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: rgba(255,255,255,.3); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .site-nav, .header-phone { display: none; }
  .menu-toggle { display: block; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(3) { border-top: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5; }
  .feature-item:nth-child(4) { border-top: 1px solid #e5e5e5; border-right: none; }

  .services-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; }

  .masonry-inner { grid-template-columns: 1fr; gap: 40px; }
  .masonry-photos { grid-template-rows: 200px 180px; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .service-area-inner { flex-direction: column; align-items: flex-start; }
  .area-map { width: 100%; height: 180px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-content { padding: 56px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none !important; border-top: 1px solid #e5e5e5 !important; }
  .feature-item:first-child { border-top: none !important; }
  .masonry-photos { grid-template-columns: 1fr; grid-template-rows: auto; }
  .masonry-photo:first-child { grid-row: auto; height: 220px; }
  .masonry-photo.p2, .masonry-photo.p3 { height: 180px; }
}

.page-hero {
  padding: 96px 28px 48px;
  background: #f6f8f3;
}
.page-hero--center {
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 18px;
  margin-bottom: 12px;
}
.page-hero-sub {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-mid);
  line-height: 1.75;
  font-size: 1.03rem;
}
.page-content {
  padding: 60px 28px;
  background: #fff;
}
.content-columns {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 36px;
}
.about-list {
  margin: 24px 0 0;
  padding: 0;
}
.about-list li {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.content-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
}
.content-card h2 {
  margin-bottom: 14px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.gallery-item {
  min-height: 180px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e9f0e0, #f8f5e5);
  box-shadow: var(--shadow);
}
.gallery-copy {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-mid);
  line-height: 1.7;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info {
  display: grid;
  gap: 18px;
}
.info-card {
  background: #f7f7f2;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
}
.info-card h2,
.service-sidebar h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}
.info-card a,
.info-card p {
  color: var(--text);
}
.contact-form {
  background: #f9faf6;
  border-radius: var(--radius-md);
  padding: 28px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}
.contact-form h2 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}
.form-control {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}
.form-control:focus {
  outline: 2px solid rgba(42,92,26,.25);
  border-color: var(--green);
}
.service-details {
  max-width: 720px;
}
.service-sidebar {
  display: grid;
  gap: 24px;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-list li {
  margin-bottom: 12px;
}
.service-list a {
  color: var(--green-dark);
  font-weight: 600;
  transition: color .2s;
}
.service-list a:hover {
  color: var(--red);
}
@media (max-width: 1024px) {
  .content-columns {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .page-hero {
    padding: 56px 20px 36px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
