/* Heggenes Lawn Care — shared styles */

:root {
  --charcoal: #2a2e35;
  --charcoal-dark: #1c1f24;
  --red: #c8161d;
  --red-light: #e0262d;
  --paper: #f7f7f5;
  --stone: #ebebe8;
  --ink: #1d2024;
  --muted: #5d636b;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 22, 26, 0.12);
  --max: 1140px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--red); }
a:hover { color: var(--charcoal); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

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

.section { padding: 80px 0; }
.section--stone { background: var(--stone); }
.section--dark { background: var(--charcoal); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--paper); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6em;
}
.section--dark .eyebrow { color: #f08a8e; }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--charcoal); color: var(--white); }
.btn--light { background: var(--paper); color: var(--charcoal); }
.btn--light:hover { background: var(--white); color: var(--charcoal); }
.btn--outline { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn--outline:hover { background: var(--paper); color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  color: var(--paper);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}
.brand:hover { color: var(--white); }
.brand img { width: 44px; height: 44px; flex: none; border-radius: 3px; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f08a8e;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}
.nav a:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.14); }
.nav .nav-phone {
  margin-left: 8px;
  background: var(--red);
  white-space: nowrap;
}
.nav .nav-phone:hover { background: var(--red-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--paper);
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--charcoal);
    padding: 8px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .nav-phone { margin: 8px 0 0; text-align: center; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--charcoal-dark) url("../images/hero-aerial-mowing.jpg") center 60% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18, 20, 24, 0.85) 0%, rgba(18, 20, 24, 0.55) 50%, rgba(18, 20, 24, 0.15) 100%);
}
.hero .container { position: relative; padding-top: 60px; padding-bottom: 60px; }
.hero h1 { color: var(--white); max-width: 720px; }
.hero p { font-size: 1.25rem; max-width: 580px; color: #eef0f2; }
.hero .eyebrow { color: #f08a8e; }

.page-hero {
  position: relative;
  padding: 90px 0 70px;
  color: var(--white);
  background: var(--charcoal) center / cover no-repeat;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 24, 0.72);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: #eef0f2; font-size: 1.2rem; max-width: 640px; margin: 0; }
.page-hero .eyebrow { color: #f08a8e; }

/* Trust strip */
.trust {
  background: var(--white);
  border-bottom: 1px solid var(--stone);
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
}
.trust li span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.trust svg { width: 30px; height: 30px; flex: none; color: var(--red); }
@media (max-width: 820px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .trust ul { grid-template-columns: 1fr; } }

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
}
.card h3 { margin-bottom: 0.35em; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fbe7e8;
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split-media { order: 0; }
}

.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Service area chips */
.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.towns li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
}

/* Testimonials */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.quote {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.stars { color: #d6a531; letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 10px; }
.quote blockquote {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
  flex: 1;
}
.quote figcaption { font-weight: 700; color: var(--charcoal); }
.quote figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.92rem; }

/* Services page */
.service-nav {
  background: var(--white);
  border-bottom: 1px solid var(--stone);
  position: sticky;
  top: 72px;
  z-index: 40;
}
.service-nav ul {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.service-nav a {
  display: block;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  color: var(--charcoal);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper);
}
.service-nav a:hover { background: #fbe7e8; }

.service-block { scroll-margin-top: 140px; }
.service-block + .service-block { border-top: 1px solid var(--stone); }

.sub-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.sub-service {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  border-left: 4px solid var(--red);
}
.section--stone .sub-service { background: var(--paper); }
.sub-service h4 { font-size: 1.12rem; margin-bottom: 0.3em; }
.sub-service p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Illustrated panel for services without a photo yet */
.art-panel {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}
.art-panel svg { width: 100%; height: 100%; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band p { max-width: 600px; margin: 0 auto 28px; font-size: 1.15rem; color: #d6d9de; }
.cta-band .btn-row { justify-content: center; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info {
  background: var(--charcoal);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.contact-info h2 { color: var(--paper); font-size: 1.7rem; }
.contact-info a { color: var(--white); text-decoration: none; font-weight: 700; }
.contact-info a:hover { text-decoration: underline; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-item svg { width: 24px; height: 24px; flex: none; color: #f08a8e; margin-top: 3px; }
.contact-item small { display: block; color: #f08a8e; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.contact-item a, .contact-item div { overflow-wrap: anywhere; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid #d3d6da;
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 22, 29, 0.18);
  background: var(--white);
}
.hp { display: none !important; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
  display: none;
}
.form-status.is-success { display: block; background: #e3f1e0; color: #1f5a2a; }
.form-status.is-error { display: block; background: #f8e3df; color: #8a2b1a; }
.form-note { font-size: 0.92rem; color: var(--muted); margin: 14px 0 0; }

/* Footer */
.site-footer {
  background: var(--charcoal-dark);
  color: #c3c7cd;
  padding: 56px 0 28px;
  font-size: 0.98rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: var(--paper); font-size: 1.1rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.88rem;
  color: #8d939c;
}

/* Sister company (Heggenes Stump Grinding) */
.sister {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--stone);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section--stone .sister { border-color: #dcdcd8; border-left-color: var(--red); }
.sister-text { flex: 1; line-height: 1.4; }
.sister-text strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--charcoal); margin-bottom: 4px; }
.sister-text span { color: var(--muted); }
.sister .btn { flex: none; }
@media (max-width: 700px) {
  .sister { flex-direction: column; align-items: flex-start; }
}
.footer-sister a { color: #f08a8e; font-weight: 700; }
