/* Edwards Gardening Services — palette drawn from logo */
:root {
  --lime: #9ec14d;
  --green: #5b7936;
  --green-dark: #3d5124;
  --sage: #d1d3c2;
  --sage-light: #e9eae0;
  --taupe: #696454;
  --cream: #fbfaf5;
  --ink: #2b3022;
  --white: #fffff8;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(43, 48, 34, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3 { font-family: "Lora", Georgia, serif; line-height: 1.2; color: var(--green-dark); }

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header / nav ---------- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--sage);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* top/bottom only, so the container's side padding isn't overridden */
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand-name { font-family: "Lora", Georgia, serif; font-size: 1.25rem; font-weight: 600; color: var(--green-dark); }
.brand-name span { color: var(--green); }

nav ul { display: flex; gap: 6px; list-style: none; }

nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover { background: var(--sage-light); }
nav a.active { background: var(--green); color: var(--white); }
nav a.nav-cta { background: var(--lime); color: var(--green-dark); margin-left: 6px; }
nav a.nav-cta:hover { background: var(--green); color: var(--white); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--green-dark); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(160deg, rgba(43, 56, 24, 0.82) 0%, rgba(61, 81, 36, 0.68) 55%, rgba(91, 121, 54, 0.55) 100%),
    url("../images/hero.webp") center / cover no-repeat;
  background-attachment: scroll, fixed; /* parallax: image stays put while page scrolls */
  color: var(--white);
  text-align: center;
  padding: 84px 20px 92px;
}

.hero img.hero-logo { width: 130px; height: 130px; margin: 0 auto 24px; filter: drop-shadow(0 6px 20px rgba(0,0,0,0.25)); }
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 14px; }
.hero p { max-width: 620px; margin: 0 auto 30px; font-size: 1.12rem; color: #eef0e2; }
.hero .btn { margin: 8px 6px; min-width: 220px; text-align: center; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: var(--green-dark); }
.btn-primary:hover { background: #b3d363; }
.btn-outline { border: 2px solid var(--white); color: var(--white); padding: 11px 28px; /* offsets the 2px border so height matches solid buttons */ }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--sage-light); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-head h2 { font-size: 2rem; margin-bottom: 10px; }
.section-head p { color: var(--taupe); }

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

.card {
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid .card:hover, .ba-pair:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(43, 48, 34, 0.16);
}

.ba-pair { transition: transform 0.25s ease, box-shadow 0.25s ease; }

/* Scroll-reveal: elements fade and rise into view (js/main.js adds .visible) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .grid .card:hover, .ba-pair:hover, .btn:hover { transform: none; }
  .hero, .page-banner.banner-services, .page-banner.banner-work { background-attachment: scroll; }
}

.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* Google Material Symbols — tinted in brand green */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 28px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  color: var(--green);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 28;
}

.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: #4a5040; font-size: 0.97rem; }

/* Testimonials */
.testimonial {
  background: var(--white);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.testimonial p { font-style: italic; color: #4a5040; margin-bottom: 14px; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--green-dark); }
.testimonial .stars { color: var(--lime); letter-spacing: 2px; margin-bottom: 10px; }

/* Gallery before/after */
.ba-pair {
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ba-images { display: grid; grid-template-columns: 1fr 1fr; }
.ba-images figure { position: relative; margin: 0; }
.ba-images img { width: 100%; height: 240px; object-fit: cover; }
.ba-label {
  position: absolute; top: 12px; left: 12px;
  background: var(--green-dark); color: var(--white);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 4px 12px; border-radius: 999px; text-transform: uppercase;
}
.ba-label.after { background: var(--lime); color: var(--green-dark); }
.ba-caption { padding: 18px 22px; }
.ba-caption h3 { font-size: 1.1rem; margin-bottom: 4px; }
.ba-caption p { color: var(--taupe); font-size: 0.95rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: start; }

.contact-info .card { margin-bottom: 18px; }
.contact-info a { color: var(--green); font-weight: 600; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }

form input, form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--sage);
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  margin-bottom: 18px;
}

form input:focus, form textarea:focus {
  outline: 2px solid var(--lime);
  border-color: var(--lime);
}

.form-note { font-size: 0.85rem; color: var(--taupe); margin-top: 10px; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; font-weight: 500; }
.alert-success { background: #e8f3d4; color: var(--green-dark); border: 1px solid var(--lime); }
.alert-error { background: #f7e3e0; color: #8a2f24; border: 1px solid #d9998f; }

/* CTA band */
.cta-band {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 56px 20px;
}
.cta-band h2 { color: var(--white); font-size: 1.8rem; margin-bottom: 10px; }
.cta-band p { color: var(--sage); margin-bottom: 26px; }

/* Page banner (inner pages) */
.page-banner {
  background: linear-gradient(160deg, var(--green-dark), var(--green));
  color: var(--white);
  text-align: center;
  padding: 52px 20px;
}
/* Services banner: flowers photo with overlay, same style as homepage hero */
.page-banner.banner-services {
  background:
    linear-gradient(160deg, rgba(43, 56, 24, 0.82) 0%, rgba(61, 81, 36, 0.68) 55%, rgba(91, 121, 54, 0.55) 100%),
    url("../images/services-banner.webp") center / cover no-repeat;
  background-attachment: scroll, fixed;
}

/* Our Work banner: pruning photo, same treatment */
.page-banner.banner-work {
  background:
    linear-gradient(160deg, rgba(43, 56, 24, 0.82) 0%, rgba(61, 81, 36, 0.68) 55%, rgba(91, 121, 54, 0.55) 100%),
    url("../images/work-banner.webp") center / cover no-repeat;
  background-attachment: scroll, fixed;
}

.page-banner h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 8px; }
.page-banner p { color: #e4e7d4; max-width: 560px; margin: 0 auto; }

/* Placeholder notice */
.placeholder-note {
  background: #fdf6dd;
  border: 1px dashed #d3b93e;
  color: #6b5a10;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.9rem;
  margin-bottom: 30px;
  text-align: center;
}

/* ---------- Footer ---------- */
footer { background: var(--ink); color: var(--sage); padding: 44px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 12px; }
footer ul { list-style: none; }
footer a { color: var(--sage); text-decoration: none; }
footer a:hover { color: var(--lime); }
footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #414636; padding-top: 18px; text-align: center; font-size: 0.85rem; color: #8b9078; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 42px; height: 42px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  /* fixed backgrounds are janky/unsupported on mobile — fall back to normal */
  .hero, .page-banner.banner-services, .page-banner.banner-work { background-attachment: scroll; }

  .grid-3, .grid-2, .contact-layout, .footer-grid { grid-template-columns: 1fr; }

  /* On mobile, show the contact form first, then the info cards */
  .contact-layout > .card { order: -1; }
  .ba-images { grid-template-columns: 1fr 1fr; }

  .menu-toggle { display: block; }
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul { flex-direction: column; padding: 10px 0; }
  nav a { display: block; }
  nav a.nav-cta { margin-left: 0; }
  .nav-bar { flex-wrap: wrap; }
}
