/* ============================================
   Estates Lawn Care — Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color tokens */
  --ink: #1C2B20;
  --ink-soft: #3C4A3E;
  --bg: #F3F5EC;
  --bg-panel: #FFFFFF;
  --green-deep: #2F5233;
  --green-mid: #4F7A52;
  --green-pale: #E4EAD9;
  --gold: #C79A2B;
  --gold-soft: #E7CE8C;
  --line: #D8DCC9;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 4px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--green-deep);
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 0.75em;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: var(--green-deep);
}
.btn-primary:hover { background: var(--gold-soft); }

.btn-outline {
  background: transparent;
  border-color: var(--bg-panel);
  color: var(--bg-panel);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--green-deep);
  color: var(--green-deep);
}
.btn-outline-dark:hover { background: var(--green-pale); }

/* ---------- Mown-stripe pattern (signature element) ---------- */
.mown-stripes {
  background-image: repeating-linear-gradient(
    115deg,
    var(--green-deep) 0px,
    var(--green-deep) 46px,
    #294A2D 46px,
    #294A2D 92px
  );
}

.mown-stripes-pale {
  background-image: repeating-linear-gradient(
    115deg,
    var(--bg) 0px,
    var(--bg) 46px,
    var(--green-pale) 46px,
    var(--green-pale) 92px
  );
}

.stripe-rule {
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--gold) 0px,
    var(--gold) 18px,
    var(--gold-soft) 18px,
    var(--gold-soft) 36px
  );
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

 .brand-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--green-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: visible;
  
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-deep);
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 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[aria-current="page"] {
  color: var(--green-deep);
  border-bottom-color: var(--gold);
}

/* CTA button that lives inside the mobile menu only — hidden on desktop,
   shown by the mobile nav media query below. */
.main-nav a.mobile-nav-cta { display: none; }

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

.phone-link {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--green-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 22, 0.62);
}
.hero .wrap {
  position: relative;
  padding: 110px 24px 100px;
  max-width: 780px;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: #fff; }
.hero .lede { color: #E7ECDD; }
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--bg-panel); }

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

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.card-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-badge svg { width: 22px; height: 22px; color: var(--green-deep); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--bg-panel);
  border-left: 3px solid var(--gold);
  padding: 26px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--green-deep);
  font-style: italic;
  margin-bottom: 12px;
}
.testimonial-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Trust bar / badges ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.trust-item svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  color: #fff;
  text-align: center;
  padding: 76px 0;
}
.cta-band h2 { color: #fff; }
.cta-band .lede { color: #E7ECDD; margin: 0 auto 28px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green-mid);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 14px;
}
#form-status {
  margin-top: 16px;
  font-weight: 600;
  display: none;
}
#form-status.visible { display: block; }
#form-status.success { color: var(--green-deep); }
#form-status.error { color: #9C3D26; }

.info-card {
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
}
.info-card h3 { color: #fff; }
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.info-row:first-of-type { border-top: none; padding-top: 0; }
.info-row svg { width: 20px; height: 20px; color: var(--gold-soft); flex-shrink: 0; margin-top: 2px; }
.info-row .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-soft);
  margin-bottom: 3px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-pale);
  border: 1px solid var(--line);
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--green-mid);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
  padding: 12px;
}
.gallery-placeholder svg { width: 28px; height: 28px; }

/* ---------- Footer ---------- */
footer {
  background: var(--green-deep);
  color: #DDE5D4;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
footer h4 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
footer a { color: #DDE5D4; }
footer a:hover { color: var(--gold-soft); }
footer p { color: #B9C6AF; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #9FB093;
  font-family: var(--font-mono);
}

/* ---------- Mobile nav ---------- */
@media (min-width: 861px) {
  .phone-link { display: inline-block; }
}

@media (max-width: 860px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .site-header { position: sticky; }
  .site-header .wrap { position: relative; }

  /* Header CTA button gets crowded next to the hamburger on small screens —
     hide it here and let the mobile menu carry the CTA instead. */
  .header-cta > .btn-outline-dark { display: none; }
  .main-nav a.mobile-nav-cta {
    display: inline-flex;
    border-bottom: none;
    width: 100%;
    justify-content: center;
    margin-top: 14px;
    padding: 13px 26px;
  }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { padding: 80px 24px 70px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
