:root {
  --color-primary: #C8781F;
  --color-primary-dark: #A5611A;
  --color-text: #262220;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAF6F2;
  --color-border: #E5DCD3;
  --font-sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

h1, h2, h3 { line-height: 1.2; }

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

a { color: var(--color-primary-dark); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  margin-right: auto;
}
/* The source PNG is tightly cropped to the leaf, so this height is the leaf
   itself — sized to match the two-line wordmark beside it. */
.logo-icon { height: 84px; width: auto; }
.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  text-transform: uppercase;
  max-width: 9em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}
.hamburger::before, .hamburger::after {
  content: "";
  position: absolute;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Scoped to the direct child list so it doesn't beat `.dropdown-menu`'s
   `display: none` on specificity and force the dropdown permanently open. */
.primary-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}
.has-dropdown { position: relative; }
.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0;
  min-width: 240px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.dropdown-menu.is-open { display: block; }
.dropdown-menu li a { display: block; padding: 0.5rem 1rem; }
.dropdown-menu li a:hover { background: var(--color-bg-alt); }

.header-cta { margin-left: 0.5rem; }

@media (max-width: 768px) {
  .logo-icon { height: 56px; }
  .logo-text { font-size: 1.1rem; }
  .nav-toggle { display: block; }
  .primary-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0;
  }
  .primary-nav li { width: 100%; padding: 0.5rem 0; }
  .dropdown-menu { position: static; border: none; box-shadow: none; padding-left: 1rem; }
  .header-cta { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  background-image: url("/images/services/lawn-mowing/mowing-3.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}
/* Dark scrim so the headline stays readable over the photo. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 24, 20, 0.55);
}
.hero-inner { position: relative; }
.hero h1 {
  font-size: 2.5rem;
  max-width: 40rem;
  margin: 0 auto 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hero p {
  font-size: 1.15rem;
  max-width: 38rem;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.hero-cta { margin-top: 1.5rem; }

@media (max-width: 768px) {
  .hero { padding: 4rem 0; }
  .hero h1 { font-size: 1.9rem; }
}

/* Generic sections */
section.container { padding: 2.5rem 1.25rem; }
.page-header { padding-bottom: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}

/* Service pages */
.service-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}
.includes-list { padding-left: 1.25rem; }
.cta-block { margin-top: 2rem; }

/* Homepage services grid */
.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.service-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.25rem;
}
.service-card a { text-decoration: none; color: inherit; }
.service-card h3 { color: var(--color-primary-dark); margin-top: 0; }

.cta-band { text-align: center; }

/* Footer */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-inner { text-align: center; }
.footer-logo { margin: 0 auto 1rem; max-height: 50px; width: auto; }
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  padding: 0;
  margin: 1rem 0 0;
}
.footer-links a { color: var(--color-text); overflow-wrap: anywhere; }
