/* ===========================================================
   Alberternst Lawn Care & Excavating — shared stylesheet
   Palette: deep green / cream / warm gold accent
   =========================================================== */

:root {
  --green-900: #163a20;
  --green-800: #1f4d2c;
  --green-600: #3c6b45;
  --green-100: #eef3ea;
  --cream: #faf8f3;
  --gold: #c98a2c;
  --ink: #22281f;
  --ink-soft: #4a5245;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(22, 58, 32, 0.12);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: inherit; }

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

/* ---------- Top contact bar ---------- */
.top-bar {
  background: var(--green-900);
  color: var(--green-100);
  font-size: 0.85rem;
}
.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 8px;
}
.top-bar a { color: var(--green-100); text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }
.top-bar .top-bar-cta {
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Header / nav ---------- */
header.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(22, 58, 32, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 58px; width: auto; }
nav.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav.main-nav li {
  display: flex;
  align-items: center;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--green-900);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--gold);
}
.nav-cta {
  background: var(--green-800);
  color: var(--white) !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--green-600); border-bottom: none !important; }
.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800) !important;
  border-bottom: none !important;
  padding: 0 !important;
}
.nav-social:hover { background: var(--green-800); color: var(--white) !important; }
.nav-social svg { width: 18px; height: 18px; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(180deg, rgba(22,58,32,0.72), rgba(22,58,32,0.82)), center/cover no-repeat;
}
.hero.hero--home { background-image: linear-gradient(180deg, rgba(22,58,32,0.72), rgba(22,58,32,0.85)), url("images/lawn-hero.jpg"); }
.hero.hero--services { background-image: linear-gradient(180deg, rgba(22,58,32,0.72), rgba(22,58,32,0.85)), url("images/rock-work.jpg"); }

.hero-inner {
  padding: 96px 24px 84px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0 0 14px;
  line-height: 1.15;
}
.hero p.lede {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 30px;
  color: var(--green-100);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.hero-badges span {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #b3791f; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--white); }

/* ---------- Specialties band ---------- */
.specialties-band {
  background: var(--green-100);
  padding: 26px 0;
}
.specialties-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
}
.specialties-label {
  color: var(--green-900);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
}
.tag-pill {
  background: var(--white);
  border: 1px solid rgba(22,58,32,0.15);
  color: var(--green-900);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--green-900);
  margin: 8px 0 10px;
}
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- Service cards ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.services-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.services-grid .card { padding: 22px 16px; }
.services-grid .card h3 { font-size: 1rem; }
.services-grid .card p { font-size: 0.9rem; }
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .services-grid { grid-template-columns: 1fr; }
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.card h3 {
  color: var(--green-900);
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.card p { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* ---------- Service detail rows (services page) ---------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid rgba(22,58,32,0.1);
}
.service-row:last-child { border-bottom: none; }
.service-row img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.service-row.reverse .service-copy { order: 2; }
.service-row.reverse .service-image { order: 1; }
.service-copy .eyebrow { display: block; margin-bottom: 6px; }
.service-copy h3 {
  color: var(--green-900);
  font-size: 1.5rem;
  margin: 0 0 12px;
}
.service-copy p { color: var(--ink-soft); }
.service-copy ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.service-copy ul li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.service-copy ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Stats / credibility strip ---------- */
.stats {
  background: var(--green-900);
  color: var(--white);
}
.stats .grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); text-align: center; }
.stats .stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--gold);
}
.stats .stat-label {
  font-size: 0.92rem;
  color: var(--green-100);
  margin-top: 6px;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gallery figure { margin: 0; }

/* ---------- Contact / CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  color: var(--white);
  text-align: center;
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: var(--green-100); margin: 0 0 28px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.contact-card h3 { color: var(--green-900); margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--green-100);
  color: var(--ink-soft);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .label { color: var(--green-900); font-weight: 700; min-width: 90px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--green-900);
  color: var(--green-100);
  padding: 44px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 18px;
}
.footer-grid h4 {
  color: var(--white);
  margin: 0 0 12px;
  font-size: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: var(--green-100); }
.footer-grid a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(238,243,234,0.7);
}

/* ---------- Placeholder note (remove once real photos/logo are in) ---------- */
.placeholder-note {
  background: #fff6e0;
  border: 1px dashed var(--gold);
  color: #7a5210;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 8px;
  margin: 0 auto 30px;
  max-width: var(--max-width);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav.main-nav ul { gap: 16px; }
  .service-row { grid-template-columns: 1fr; }
  .service-row.reverse .service-copy,
  .service-row.reverse .service-image { order: initial; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-wrap { flex-direction: column; align-items: stretch; gap: 10px; }
  .logo-link { justify-content: center; }
  nav.main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 18px;
  }
  nav.main-nav a { font-size: 0.9rem; }
  .hero-inner { padding: 64px 20px 56px; }
}
