/* JDW Landscapes — shared styles */
:root {
  --green: #009a44;
  --green-dark: #007a36;
  --grey: #6d6e70;
  --grey-dark: #4a4b4d;
  --charcoal: #2b2c2e;
  --ink: #1d1e20;
  --bg: #ffffff;
  --bg-soft: #f5f6f5;
  --line: #e3e5e3;
  --max: 1180px;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(0,0,0,.08);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
}
h1, h2, h3 { line-height: 1.2; color: var(--charcoal); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 .5em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); }
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow { color: var(--green); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; margin: 0 0 .6rem; }
.lead { font-size: 1.15rem; color: var(--grey-dark); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: .2s; border: 2px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--charcoal); }
.btn--outline { border-color: var(--green); color: var(--green-dark); }
.btn--outline:hover { background: var(--green); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--charcoal); text-decoration: none; font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-cta { background: var(--green); color: #fff !important; padding: .55rem 1.1rem; border-radius: 999px; }
.nav-cta:hover { background: var(--green-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--charcoal); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; color: #fff; text-align: left; overflow: hidden; background: #16201a; }
.hero-reel { position: absolute; inset: 0; height: 100%; display: flex; width: max-content; z-index: 0;
  animation: heroReel 90s linear infinite; will-change: transform; }
.hero-reel img { height: 100%; width: auto; max-width: none; object-fit: cover; flex: 0 0 auto; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, rgba(16,26,19,.93) 0%, rgba(16,26,19,.80) 42%, rgba(0,70,30,.60) 100%); }
.hero .container { position: relative; z-index: 2; }
@keyframes heroReel { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hero-reel { animation: none; } }
.hero .container { padding-top: clamp(3.5rem, 9vw, 7rem); padding-bottom: clamp(3.5rem, 9vw, 7rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.2rem; max-width: 52ch; }
.hero .actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.page-hero { background: var(--charcoal); color: #fff; }
.page-hero .container { padding: clamp(2.5rem,6vw,4.5rem) 1.25rem; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 60ch; margin: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: .8rem; }
.breadcrumb a { color: rgba(255,255,255,.85); }

/* Grid + cards */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: .2s; height: 100%;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: rgba(0,154,68,.12);
  display: grid; place-items: center; margin-bottom: 1rem; color: var(--green-dark); }
.card .ico svg { width: 26px; height: 26px; }

/* Trust bar */
.trustbar { background: var(--green); color: #fff; }
.trustbar .container { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 1rem; padding: 1.1rem 1.25rem; text-align: center; }
.trustbar strong { display: block; font-size: 1.4rem; }
.trustbar span { font-size: .85rem; opacity: .9; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* List checks */
.checks { list-style: none; padding: 0; margin: 1rem 0; }
.checks li { padding-left: 1.9rem; position: relative; margin-bottom: .6rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery figure > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: .4s; }
.gallery figure:hover > img { transform: scale(1.06); }
.gallery figcaption { padding: .8rem 1rem; font-weight: 700; color: var(--charcoal); font-size: .95rem; }

/* Slideshow */
.slideshow { position: relative; max-width: 900px; margin: 2.2rem auto 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.slides { position: relative; aspect-ratio: 16/10; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.2rem .9rem; color: #fff; font-weight: 700;
  text-align: left; font-size: 1.05rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--charcoal);
  font-size: 1.1rem; line-height: 44px; transition: .2s; }
.slide-btn:hover { background: var(--green); color: #fff; }
.slide-prev { left: 12px; } .slide-next { right: 12px; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; justify-content: center; gap: .5rem; }
.slide-dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; transition: .2s; }
.slide-dots button.is-active { background: #fff; }
@media (max-width: 540px) { .slide figcaption { font-size: .9rem; } .slide-btn { width: 38px; height: 38px; line-height: 38px; } }

/* CTA band */
.cta-band { background: var(--charcoal); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .8rem; margin-bottom: 1.1rem; align-items: flex-start; }
.info-list .ico { color: var(--green-dark); flex: 0 0 auto; margin-top: 3px; }
form label { display: block; font-weight: 600; margin: 0 0 .3rem; font-size: .92rem; }
form input, form textarea, form select {
  width: 100%; padding: .8rem; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; margin-bottom: 1rem; background: #fff;
}
form input:focus, form textarea:focus, form select:focus { outline: 2px solid var(--green); border-color: var(--green); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0 1.2rem; margin-bottom: .8rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1rem 0; color: var(--charcoal); }
.faq details[open] summary { color: var(--green-dark); }

/* Footer */
.site-footer { background: var(--ink); color: #c9cbc9; padding: 3rem 0 1.5rem; font-size: .92rem; }
.site-footer a { color: #c9cbc9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer img { height: 48px; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; margin: 0 0 .8rem; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom { border-top: 1px solid #34352f; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .82rem; }

/* ===== Razzle dazzle ===== */
/* Scroll reveal (only active once JS adds .has-reveal so no-JS shows everything) */
body.has-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
body.has-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* Hero entrance */
.hero .container > * { animation: heroIn .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .container > *:nth-child(1) { animation-delay: .05s; }
.hero .container > *:nth-child(2) { animation-delay: .18s; }
.hero .container > *:nth-child(3) { animation-delay: .31s; }
.hero .container > *:nth-child(4) { animation-delay: .44s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Button shine sweep + lift */
.btn { position: relative; overflow: hidden; }
.btn--primary::after, .btn--ghost::after, .btn--outline::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn--primary:hover, .btn--outline:hover, .btn--ghost:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.btn:hover::after { left: 130%; }

/* Icon pop on card hover */
.card .ico { transition: transform .3s ease, background .3s ease; }
.card:hover .ico { transform: translateY(-2px) scale(1.08); background: rgba(0,154,68,.2); }

/* Animated underline accent on section headings */
.section h2 { position: relative; }

@media (prefers-reduced-motion: reduce) {
  body.has-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero .container > * { animation: none; }
  .btn:hover { transform: none; }
  .btn::after { display: none; }
}

/* Accessibility + anchor offset under sticky header */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible,
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
[id] { scroll-margin-top: 90px; }
img { height: auto; }

@media (max-width: 860px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 1rem 1.2rem 1.4rem; gap: .25rem; border-bottom: 1px solid var(--line);
    transform: translateY(-150%); transition: .3s; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { display: block; padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .nav-cta { text-align: center; margin-top: .5rem; padding: .85rem 1.1rem; }
  .nav-toggle { display: block; padding: .6rem; }
  .hero .container { padding-top: clamp(3rem, 12vw, 5rem); padding-bottom: clamp(3rem, 12vw, 5rem); }
}
@media (max-width: 540px) {
  .grid--3, .grid--4, .gallery, .footer-grid { grid-template-columns: 1fr; }
  .trustbar .container { gap: .9rem 1.2rem; }
  .trustbar > .container > div { flex: 1 0 40%; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { text-align: center; }
  .cta-band .container a.btn { flex: 1 1 auto; text-align: center; }
  .footer-bottom { flex-direction: column; }
  h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}
