/* Godfrey Groundscaping — site styles */
:root {
  --forest: #14281d;
  --pine: #1e3d2c;
  --green: #2f5d3a;
  --leaf: #3f7a4c;
  --sage: #8fa888;
  --moss: #c5d4b8;
  --cream: #f6f3ec;
  --sand: #e8e1d4;
  --paper: #fffcf7;
  --gold: #c4a265;
  --gold-deep: #a68545;
  --ink: #1c1a16;
  --muted: #5c6158;
  --line: rgba(20, 40, 29, 0.12);
  --shadow: 0 16px 40px rgba(20, 40, 29, 0.12);
  --header-h: 4.5rem;
  --radius: 1rem;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--pine); }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--forest);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.25rem, 5vw, 4.15rem); font-weight: 600; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--forest);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 3rem;
}
.section-intro p { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { color: inherit; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold);
  color: var(--forest);
  box-shadow: 0 8px 20px rgba(196, 162, 101, 0.28);
}
.btn-primary:hover {
  background: #d4b275;
  color: var(--forest);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 243, 236, 0.45);
}
.btn-ghost:hover {
  background: rgba(246, 243, 236, 0.1);
  color: var(--cream);
  border-color: var(--cream);
}
.btn-header {
  background: var(--forest);
  color: var(--cream);
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
}
.btn-header:hover { background: var(--pine); color: var(--cream); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(20, 40, 29, 0.06);
}
.header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--forest);
  flex-shrink: 0;
}
.logo:hover { color: var(--forest); }
.logo-mark { display: block; flex-shrink: 0; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 0.2rem;
}
.nav { margin-left: auto; }
.nav ul {
  display: flex;
  gap: 0.2rem 1.6rem;
}
.nav a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 46rem);
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
  background: var(--forest);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 28, 20, 0.92) 0%, rgba(15, 28, 20, 0.72) 42%, rgba(15, 28, 20, 0.28) 100%),
    linear-gradient(to top, rgba(15, 28, 20, 0.55) 0%, transparent 42%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5.5rem 0 4.5rem;
  max-width: 40rem;
  margin-left: max(1.25rem, calc((100% - 1120px) / 2));
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--cream); margin-bottom: 1.1rem; }
.hero-lead {
  font-size: 1.12rem;
  color: rgba(246, 243, 236, 0.86);
  margin-bottom: 2rem;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Services */
.services {
  padding: 5.5rem 0 5rem;
  background: var(--cream);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.15rem;
}
.service-card {
  grid-column: span 3;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.45rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(47, 93, 58, 0.22);
}
.service-card p { color: var(--muted); font-size: 0.98rem; }
.icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  background: var(--pine);
  color: var(--moss);
  margin-bottom: 1.05rem;
}

/* Why */
.why {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse at top left, rgba(197, 212, 184, 0.45), transparent 50%),
    var(--sand);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.75rem;
}
.why-grid li {
  padding-top: 0.4rem;
  border-top: 1.5px solid rgba(20, 40, 29, 0.18);
}
.why-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-deep);
  margin: 0.85rem 0 0.7rem;
}
.why-grid p { color: var(--muted); }

/* Area */
.area {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 32rem;
  background: var(--forest);
  color: var(--cream);
}
.area-media { min-height: 22rem; }
.area-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.area-copy {
  padding: 4.25rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.area-copy h2 { color: var(--cream); }
.area-copy p { color: rgba(246, 243, 236, 0.82); }
.area .eyebrow { color: var(--gold); }
.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.4rem 0 1.15rem;
}
.town-list li {
  border: 1px solid rgba(246, 243, 236, 0.22);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--moss);
}
.area-note { margin-bottom: 1.6rem !important; }
.area .btn-primary { margin-top: 0.2rem; }

/* Quote */
.quote {
  padding: 5.5rem 0 5.75rem;
  background: var(--paper);
}
.quote-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}
.quote-intro { position: sticky; top: calc(var(--header-h) + 1.25rem); }
.contact-list { margin-top: 2rem; display: grid; gap: 1.05rem; }
.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.contact-list a {
  color: var(--forest);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  word-break: break-word;
}
.contact-list a:hover { color: var(--green); text-decoration: underline; }

.quote-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.quote-form .form-row label,
.quote-form .message-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
}
.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 0.65rem;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quote-form textarea { resize: vertical; min-height: 7.5rem; }
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(63, 122, 76, 0.18);
}
.quote-form input.is-invalid,
.quote-form textarea.is-invalid {
  border-color: #9b3b2a;
}
.services-fieldset {
  border: 0;
  margin: 0.4rem 0 1.1rem;
  padding: 0;
}
.services-fieldset legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.7rem;
  padding: 0;
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.8rem;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.15rem;
  cursor: pointer;
  color: var(--forest);
}
.check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--green);
  flex-shrink: 0;
}
.form-submit { margin-top: 0.4rem; }
.form-submit .btn { width: auto; min-width: 14rem; }
.form-hint, .form-status {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
}
.form-status[data-state="error"] { color: #8a2e20; }
.form-status[data-state="ok"] { color: var(--green); }

/* Footer */
.site-footer {
  background: var(--forest);
  color: rgba(246, 243, 236, 0.8);
  padding: 3.5rem 0 1.5rem;
}
.footer-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand .logo { color: var(--cream); margin-bottom: 1rem; }
.footer-brand .logo:hover { color: var(--cream); }
.footer-brand .logo-sub { color: var(--moss); }
.footer-brand p { max-width: 22rem; }
.footer-col h3 {
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-col ul { display: grid; gap: 0.45rem; }
.footer-col a, .site-footer a {
  color: rgba(246, 243, 236, 0.82);
  text-decoration: none;
}
.footer-col a:hover, .site-footer a:hover { color: var(--gold); }
.footer-bottom {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(246, 243, 236, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.photo-credit a { text-decoration: underline; text-underline-offset: 0.15em; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Tablet */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card,
  .service-card:nth-child(n+5) { grid-column: auto; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .area { grid-template-columns: 1fr; }
  .area-media { max-height: 22rem; }
  .area-copy { padding: 3rem 1.5rem 3.5rem; }
  .quote-layout { grid-template-columns: 1fr; gap: 2rem; }
  .quote-intro { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .btn-header .btn-label { display: none; }
  .btn-header { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  body.nav-open .nav { max-height: 20rem; }
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1.1rem;
  }
  .nav a { display: block; padding: 0.75rem 0; font-size: 1.05rem; }
  .header-inner { width: calc(100% - 1.5rem); }
  .hero-inner, .section-inner, .footer-inner, .footer-bottom {
    width: calc(100% - 1.75rem);
  }
  .hero { min-height: auto; }
  .hero-inner {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
    padding: 4.25rem 0 3.25rem;
  }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .services, .why, .quote { padding: 3.75rem 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card,
  .service-card:nth-child(n+5) { grid-column: auto; }
  .why-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .form-row, .check-grid { grid-template-columns: 1fr; }
  .quote-form { padding: 1.25rem; }
  .form-submit .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .section-intro { margin-bottom: 2.2rem; }
}

@media (max-width: 420px) {
  .logo-name { font-size: 1.12rem; }
  h1 { font-size: 2.05rem; }
}
