/* ============================================
   Canvas Backyard — Landscaping Website
   Palette drawn from the business card:
   deep green / cream / leaf green
   ============================================ */

:root {
  --green-900: #1d3d1f;
  --green-800: #274f28;
  --green-700: #2f5e31;
  --green-600: #3d7440;
  --green-500: #4e8a50;
  --green-100: #e3eede;
  --cream: #f5f2e6;
  --cream-dark: #ece8d8;
  --white: #ffffff;
  --ink: #22301f;
  --ink-soft: #55614f;
  --gold: #c9a227;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 61, 31, 0.12);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

section[id], [id] { scroll-margin-top: 96px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: var(--green-700); text-decoration: none; }

.container { width: min(1160px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green-900); line-height: 1.2; }

h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.78rem; font-weight: 700; color: var(--green-600); margin-bottom: 10px;
}
.section-head p { color: var(--ink-soft); margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--green-700); color: var(--white); }
.btn-primary:hover { background: var(--green-800); }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: var(--white); }
.btn-light { background: var(--white); color: var(--green-800); }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-900); color: #dfe8d9; font-size: 0.85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-group { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 242, 230, 0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 56px; height: 56px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--green-900); line-height: 1.05; }
.brand-tag { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green-600); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--green-700); border-bottom-color: var(--green-700); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 700; color: var(--green-800); white-space: nowrap; }

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

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(120deg, var(--green-900) 0%, var(--green-700) 100%); color: var(--white); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: url('../images/hero.svg') center/cover no-repeat; opacity: 0.22;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 84px 0; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero p.lead { font-size: 1.13rem; color: #e6eddf; max-width: 34rem; margin-bottom: 28px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.badge {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px; padding: 8px 16px; font-size: 0.82rem; font-weight: 600;
}

/* Quote form card */
.quote-card { background: var(--white); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); color: var(--ink); }
.quote-card h3 { margin-bottom: 4px; font-size: 1.45rem; }
.quote-card .sub { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 18px; }
.quote-card label { display: block; font-size: 0.82rem; font-weight: 600; margin: 12px 0 4px; color: var(--green-900); }
.quote-card input, .quote-card select, .quote-card textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid #d8d4c4; border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; background: #fdfcf8;
}
.quote-card input:focus, .quote-card select:focus, .quote-card textarea:focus { outline: 2px solid var(--green-500); border-color: var(--green-500); }
.quote-card button { width: 100%; margin-top: 18px; }
.form-note { font-size: 0.75rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }

/* ---------- Trust strip ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--cream-dark); }
.trust .container { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; color: var(--green-800); }
.trust-item svg { width: 26px; height: 26px; flex-shrink: 0; }

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

.card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: 0 4px 16px rgba(29,61,31,0.07); transition: transform 0.18s ease, box-shadow 0.18s ease;
  border-top: 4px solid var(--green-600);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .icon {
  width: 54px; height: 54px; border-radius: 12px; background: var(--green-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.94rem; }
.card .link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.9rem; }

/* ---------- Why us ---------- */
.why { background: var(--green-900); color: #e6eddf; }
.why h2, .why h3 { color: var(--white); }
.why .section-head .eyebrow { color: var(--gold); }
.why .section-head p { color: #c9d6c0; }
.why-item { text-align: center; padding: 10px 14px; }
.why-item .num { font-family: var(--font-head); font-size: 2.4rem; color: var(--gold); font-weight: 700; }
.why-item h3 { margin: 8px 0; font-size: 1.1rem; }
.why-item p { font-size: 0.9rem; color: #c9d6c0; }

/* ---------- Service areas ---------- */
.areas-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.areas-list span {
  background: var(--white); border: 1px solid var(--cream-dark); padding: 8px 18px;
  border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--green-800);
}

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(29,61,31,0.10); }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(29,61,31,0.85));
  color: var(--white); font-size: 0.88rem; font-weight: 600;
}

/* ---------- Process ---------- */
.process { counter-reset: step; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 30px 24px 26px; box-shadow: 0 4px 16px rgba(29,61,31,0.07); }
.step .step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--green-700); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.15rem;
  font-family: var(--font-head); margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--white); border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 4px 16px rgba(29,61,31,0.07); }
.stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; font-size: 1.05rem; }
.testimonial p { font-size: 0.95rem; color: var(--ink-soft); font-style: italic; }
.testimonial .who { margin-top: 16px; font-weight: 700; color: var(--green-900); font-style: normal; font-size: 0.92rem; }
.testimonial .who small { display: block; font-weight: 500; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: 12px; margin-bottom: 12px; overflow: hidden; border: 1px solid var(--cream-dark); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; font-weight: 600; font-size: 1rem; color: var(--green-900);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: inherit;
}
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--green-600); transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 22px 18px; color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--green-800), var(--green-600)); color: var(--white); text-align: center; padding: 64px 0; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: #e6eddf; margin-bottom: 26px; }
.cta-band .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: var(--white); text-align: center; padding: 64px 0; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: #dce7d4; max-width: 620px; margin: 12px auto 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: 0 4px 16px rgba(29,61,31,0.07); }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--cream-dark); }
.contact-line:last-child { border-bottom: none; }
.contact-line svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.contact-line strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-600); }
.contact-line a, .contact-line span.val { font-size: 1.02rem; font-weight: 600; color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: #b9c8b0; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 36px; }
.footer h4 { color: var(--white); margin-bottom: 14px; font-size: 1.05rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; font-size: 0.92rem; }
.footer a { color: #b9c8b0; }
.footer a:hover { color: var(--white); }
.footer .brand-name { color: var(--white); }
.footer-brand p { font-size: 0.9rem; margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; text-align: center; font-size: 0.82rem; }

/* ---------- Sticky mobile call button ---------- */
.mobile-call {
  display: none; position: fixed; bottom: 18px; right: 18px; z-index: 90;
  background: var(--green-700); color: var(--white); border-radius: 999px;
  padding: 14px 22px; font-weight: 700; box-shadow: var(--shadow);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar .topbar-group:last-child { display: none; }
  /* backdrop-filter creates a containing block that would trap the
     fixed-position mobile menu inside the header — disable it on mobile */
  .header { backdrop-filter: none; background: var(--cream); }
  .nav-links {
    position: fixed; inset: 0; top: 0; background: var(--green-900);
    flex-direction: column; justify-content: center; gap: 30px;
    transform: translateX(100%); transition: transform 0.3s ease; z-index: 200;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--white); font-size: 1.3rem; }
  .nav-links a:hover, .nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }
  .nav-toggle { display: block; z-index: 300; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: #fff; }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: #fff; }
  .nav-phone { display: none; }
  .nav-cta .btn { padding: 10px 18px; font-size: 0.85rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust .container { justify-content: center; }
  .mobile-call { display: inline-flex; align-items: center; gap: 8px; }
  .section { padding: 52px 0; }
}
