/* ==========================================================================
   Avery Landscaping LLC — Shared Stylesheet
   ========================================================================== */

:root {
  --deep-green: #10261c;
  --green: #1c3d2b;
  --green-light: #2f5a41;
  --accent: #6fae5c;
  --accent-bright: #83c46b;
  --black: #0b0c0c;
  --white: #ffffff;
  --off-white: #f6f7f5;
  --gray-100: #eceeec;
  --gray-300: #cfd3d0;
  --gray-500: #8a908c;
  --gray-700: #4b514d;
  --gray-900: #202422;

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

  --radius: 6px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.15);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section {
  padding: 88px 0;
}

.section--tight { padding: 64px 0; }

.section--dark {
  background: var(--deep-green);
  color: var(--gray-100);
}

.section--dark h2, .section--dark h3 { color: var(--white); }

.section--gray { background: var(--off-white); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--gray-700);
  font-size: 17px;
}

.section--dark .section-head p { color: var(--gray-300); }

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--accent);
  color: var(--black);
}
.btn--primary:hover { background: var(--accent-bright); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn--dark {
  background: var(--black);
  color: var(--white);
}
.btn--dark:hover { background: var(--deep-green); }

.btn--block { width: 100%; justify-content: center; }

/* Header / Nav ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  color: var(--white);
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 18px; font-weight: 700; letter-spacing: 0.01em; }
.brand__tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

.nav__links {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.nav__links.open {
  display: flex;
  position: absolute;
  top: 84px;
  right: 24px;
  min-width: 280px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  background: var(--black);
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  z-index: 200;
}

.nav__links a {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-300);
  padding: 10px 12px;
  border-radius: 4px;
  border-bottom: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav__section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav__sublink {
  font-size: 13px;
  font-weight: 500;
  padding-left: 22px;
  color: var(--gray-500);
}

.nav__sublink:hover {
  color: var(--white);
}

.nav__cta { display: flex; align-items: center; gap: 18px; }

.nav__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 12, 0.55) 0%, rgba(11, 12, 12, 0.62) 45%, rgba(16, 38, 28, 0.88) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 100px 0;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(38px, 5.4vw, 60px);
  margin-bottom: 22px;
}

.hero h1 span { color: var(--accent-bright); }

.hero p {
  font-size: 18px;
  color: var(--gray-100);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--white);
}

.hero__stat span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-300);
}

/* Page header (non-home hero) ------------------------------------------- */

.page-header {
  position: relative;
  padding: 150px 0 70px;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 12, 0.68) 0%, rgba(16, 38, 28, 0.86) 100%);
}

.page-header__content { position: relative; z-index: 2; max-width: 640px; }

.page-header h1 { color: var(--white); font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 14px; }

.breadcrumb {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-300);
  margin-bottom: 16px;
}

.breadcrumb a:hover { color: var(--accent-bright); }

/* Service cards ----------------------------------------------------------- */

.grid {
  display: grid;
  gap: 28px;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--deep-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card__icon svg { width: 26px; height: 26px; stroke: var(--accent-bright); }

.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--gray-700); font-size: 15px; }

.card--link { display: block; }
.card__more {
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Service detail rows ----------------------------------------------------- */

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--gray-100);
}

.service-row:last-child { border-bottom: none; }

.service-row--reverse .service-row__media { order: 2; }

.service-row__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.service-row__num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.service-row h3 { font-size: 26px; margin-bottom: 14px; }
.service-row p { color: var(--gray-700); margin-bottom: 18px; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--gray-700);
  font-size: 15px;
}

.check-list svg { width: 18px; height: 18px; stroke: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* Feature split ----------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.split h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 18px; }
.split p { color: var(--gray-700); margin-bottom: 20px; }

/* Stat strip --------------------------------------------------------------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px 20px;
}

.stat-strip__item { text-align: center; }
.stat-strip__item strong { display: block; font-family: var(--font-head); font-size: 34px; color: var(--accent-bright); }
.stat-strip__item span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-300); }

/* Process steps -------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  color: var(--gray-100);
  display: block;
  margin-bottom: 10px;
}
.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--gray-700); font-size: 14.5px; }

/* Gallery ---------------------------------------------------------------- */

.gallery-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.gallery-filter button {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-filter button:hover { border-color: var(--green); color: var(--green); }

.gallery-filter button.active {
  background: var(--deep-green);
  border-color: var(--deep-green);
  color: var(--white);
}

.gallery-section {
  margin-bottom: 48px;
}

.gallery-section__title {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.gallery-note {
  color: var(--gray-500);
  font-size: 14px;
  font-style: italic;
  border-top: 1px solid var(--gray-100);
  padding-top: 24px;
  margin-top: 8px;
}

.gallery-grid {
  columns: 3 260px;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, rgba(11,12,12,0) 0%, rgba(11,12,12,0.82) 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover .gallery-item__caption { opacity: 1; transform: translateY(0); }

/* Lightbox ---------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 9, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
}

.lightbox__close { top: 28px; right: 28px; }
.lightbox__prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 28px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--accent); color: var(--black); }

/* CTA band ---------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(120deg, var(--deep-green), var(--green-light));
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cta-band p { color: var(--gray-100); }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Testimonials -------------------------------------------------------- */

.testimonial {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
}

.testimonial__stars { color: var(--accent); font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial p { color: var(--gray-700); font-size: 15px; margin-bottom: 18px; }
.testimonial__name { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--black); }
.testimonial__loc { font-size: 13px; color: var(--gray-500); }

/* Contact / form ----------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-100);
}

.info-card:last-child { border-bottom: none; }

.info-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-card__icon svg { width: 20px; height: 20px; stroke: var(--green); }
.info-card h4 { font-size: 15.5px; margin-bottom: 4px; }
.info-card p { color: var(--gray-700); font-size: 14.5px; }

.form-panel {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--gray-900);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--white);
  color: var(--gray-900);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
}

.field textarea { resize: vertical; min-height: 120px; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-sm);
}

/* Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 70px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p { margin: 16px 0 20px; font-size: 14.5px; color: var(--gray-500); max-width: 280px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; stroke: var(--white); }
.footer-social a:hover svg { stroke: var(--black); }

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-col li { margin-bottom: 11px; font-size: 14.5px; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: 12px;
}

/* Utility ------------------------------------------------------------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* Responsive ------------------------------------------------------------ */

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split img { height: 320px; }
  .service-row { grid-template-columns: 1fr; gap: 28px; }
  .service-row--reverse .service-row__media { order: 0; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav__phone span.hide-sm { display: none; }
}

@media (max-width: 760px) {
  .nav__links.open {
    left: 24px;
    right: 24px;
    min-width: auto;
  }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
  .hero__content { padding-left: 24px; padding-right: 24px; }
  .hero__stats { gap: 26px; }
}

@media (max-width: 560px) {
  .nav { height: 72px; }
  .nav__links.open { top: 72px; max-height: calc(100vh - 88px); }
  .brand { gap: 10px; }
  .brand__name { font-size: 16px; }
  .nav__cta { gap: 14px; }
  .nav__cta .btn { display: none; }
  .hero__content { padding-top: 64px; padding-bottom: 64px; }
  .hero__stats { flex-wrap: wrap; row-gap: 18px; }
}
