/* =========================================================
   Rootworks Landscapes — earthy, natural landscaping demo
   ========================================================= */

:root {
  /* Earthy palette */
  --deep-green: #1f3d2b;
  --green: #2f5d3f;
  --moss: #7aa874;
  --moss-soft: #aecaa4;
  --sand: #e8e0cf;
  --stone: #d4ccba;
  --paper: #f6f3ea;
  --ink: #20271f;
  --ink-soft: #4a544444;
  --muted: #5d6a58;
  --line: #d9d3c2;
  --accent: #c2772f; /* warm terracotta accent */
  --white: #ffffff;

  /* Seasonal accent (shifts via [data-season]) */
  --season: var(--moss);
  --season-deep: var(--green);

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(31,61,43,.06), 0 4px 14px rgba(31,61,43,.06);
  --shadow-md: 0 8px 30px rgba(31,61,43,.12);
  --max: 1180px;
  --font: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Seasonal colour shifts */
[data-season="spring"] { --season:#7aa874; --season-deep:#3f6d4a; }
[data-season="summer"] { --season:#5b9b53; --season-deep:#2f6d3a; }
[data-season="autumn"] { --season:#c2772f; --season-deep:#8a4a1f; }
[data-season="winter"] { --season:#6b8f9c; --season-deep:#3d5a66; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

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

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3 { line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--deep-green); color: #fff; padding: 10px 16px;
  border-radius: 10px; z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Focus states */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn__icon { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--deep-green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--deep-green); border-color: var(--deep-green); }
.btn--ghost:hover { background: var(--deep-green); color: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Decorative leaf motifs ---------- */
.leaf-motif {
  position: absolute; width: 260px; height: 260px; color: var(--moss);
  opacity: .18; pointer-events: none; z-index: 0;
}
.leaf-motif--a { top: 320px; right: -70px; transform: rotate(20deg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,243,234,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-weight: 600; font-size: 1.25rem; line-height: 1; display: flex; flex-direction: column; }
.brand-name__sub { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.primary-nav a {
  text-decoration: none; color: var(--ink); padding: .5em .8em; border-radius: 10px;
  font-size: .98rem; transition: background .2s var(--ease), color .2s var(--ease);
}
.primary-nav a:hover { background: var(--sand); }
.nav-cta { background: var(--deep-green); color: #fff !important; }
.nav-cta:hover { background: var(--green) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle__bar { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 90px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__layer { position: absolute; inset: -10% -5%; }
.hero__layer--back {
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(122,168,116,.30), transparent 60%),
    radial-gradient(50% 40% at 10% 90%, rgba(194,119,47,.16), transparent 60%),
    linear-gradient(180deg, var(--paper), #eef0e3);
}
.hero__layer--mid {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(47,93,63,.10) 0 22%, transparent 23%),
    radial-gradient(circle at 75% 70%, rgba(47,93,63,.08) 0 18%, transparent 19%);
  background-size: 340px 340px, 280px 280px;
  opacity: .7;
}
.hero__inner { position: relative; z-index: 1; max-width: 720px; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 600; color: var(--green); margin-bottom: 1em;
  padding: .4em .9em; border: 1px solid var(--moss); border-radius: 999px; background: rgba(122,168,116,.12);
}
.eyebrow--light { color: var(--moss-soft); border-color: rgba(174,202,164,.4); background: rgba(174,202,164,.1); }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6em 0; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; padding: 0; margin: 2em 0 0; color: var(--muted); font-size: .98rem; }
.hero__trust strong { color: var(--deep-green); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(56px, 8vw, 100px) 0; }
.section--moss { background: linear-gradient(180deg, #eef0e3, #e6ecdf); }
.section--sand { background: linear-gradient(180deg, var(--sand), #efe9da); }
.section--deep { background: var(--deep-green); color: var(--paper); }
.section--deep h2 { color: #fff; }
.section--deep p { color: var(--moss-soft); }

.section-head { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* organic divider top of moss/sand sections */
.section--moss::before, .section--sand::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 28px;
  background: var(--paper);
  -webkit-mask: radial-gradient(28px at 50% 0, transparent 98%, #000) 50% / 70px 100%;
  mask: radial-gradient(28px at 50% 0, transparent 98%, #000) 50% / 70px 100%;
}

/* ---------- Cards / services ---------- */
.card-grid { display: grid; gap: 20px; }
.services-grid { grid-template-columns: 1fr; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--moss); }
.service-card__icon {
  display: inline-flex; width: 52px; height: 52px; border-radius: 14px;
  align-items: center; justify-content: center; margin-bottom: 14px;
  background: linear-gradient(160deg, rgba(122,168,116,.25), rgba(47,93,63,.12));
  color: var(--green);
}
.service-card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.service-card p { color: var(--muted); margin: 0; }

/* ---------- Seasonal packages ---------- */
.season-toggle { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.season-btn {
  font-family: var(--font); font-size: 1rem; font-weight: 600; cursor: pointer;
  padding: .6em 1.3em; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink);
  transition: all .2s var(--ease);
}
.season-btn:hover { border-color: var(--season); }
.season-btn.is-active { background: var(--season-deep); border-color: var(--season-deep); color: #fff; }

.package-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); max-width: 760px; margin: 0 auto;
  border-top: 6px solid var(--season); transition: border-color .4s var(--ease);
}
.package-card__head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.package-card__season { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 600; color: var(--season-deep); margin: 0 0 .2em; }
.package-card__price { font-size: 2rem; font-weight: 700; color: var(--deep-green); margin: 0; white-space: nowrap; }
.package-card__per { font-size: .9rem; font-weight: 500; color: var(--muted); }
.package-card__desc { color: var(--muted); margin: 1em 0 1.2em; }
.package-card__list { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 10px; }
.package-card__list li { position: relative; padding-left: 30px; color: var(--ink); }
.package-card__list li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px;
  background: var(--season); -webkit-mask: var(--leaf-tick) center/contain no-repeat; mask: var(--leaf-tick) center/contain no-repeat;
}
.package-card__foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; }
.package-card__freq { margin: 0; color: var(--muted); font-size: .95rem; }

/* leaf-shaped tick mask */
:root { --leaf-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Portfolio gallery ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.filter-btn {
  font-family: var(--font); font-size: .95rem; font-weight: 600; cursor: pointer;
  padding: .5em 1.2em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--moss); }
.filter-btn.is-active { background: var(--deep-green); border-color: var(--deep-green); color: #fff; }

.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.gallery-item { margin: 0; }
.gallery-item button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item button:hover img { transform: scale(1.06); }
.gallery-item__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(31,61,43,.82));
  color: #fff; font-size: .95rem; font-weight: 600;
}
.gallery-item__tag { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moss-soft); font-weight: 600; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(20,28,20,.9); padding: 24px; backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 900px; width: 100%; text-align: center; }
.lightbox__img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; }
.lightbox__cap { color: #fff; margin-top: 12px; font-size: 1rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Service area ---------- */
.area-grid { display: grid; gap: 36px; }
.area-copy p { color: var(--muted); }
.postcode-checker { margin: 24px 0; }
.postcode-checker label { display: block; font-weight: 600; margin-bottom: 8px; }
.postcode-checker__row { display: flex; gap: 10px; flex-wrap: wrap; }
.postcode-checker input {
  flex: 1 1 180px; min-width: 0; font-family: var(--font); font-size: 1rem; padding: .75em 1em;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
}
.postcode-checker input:focus { border-color: var(--green); }
.postcode-result { margin: 12px 0 0; font-weight: 600; min-height: 1.4em; }
.postcode-result.ok { color: var(--green); }
.postcode-result.no { color: var(--accent); }

.area-pills { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-pills li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: .4em 1em; font-size: .9rem; color: var(--muted);
}

.area-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); background: var(--white); }
.area-map iframe { width: 100%; height: 340px; border: 0; display: block; }
.area-map__link { display: block; text-align: center; padding: 12px; font-weight: 600; background: var(--white); }

/* ---------- Reviews ---------- */
.reviews-avg { font-weight: 700; color: var(--accent); }
.reviews-wall { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
.review-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); position: relative;
}
.review-card__stars { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 10px; }
.review-card__stars .dim { color: var(--stone); }
.review-card__text { margin: 0 0 16px; color: var(--ink); }
.review-card__meta { display: flex; align-items: center; gap: 12px; }
.review-card__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1rem;
  background: linear-gradient(150deg, var(--moss), var(--green));
}
.review-card__name { font-weight: 600; margin: 0; line-height: 1.2; }
.review-card__loc { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Quote ---------- */
.quote-grid { display: grid; gap: 36px; }
.quote-points { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 10px; }
.quote-points li { position: relative; padding-left: 28px; }
.quote-points li::before { content: "✦"; position: absolute; left: 0; color: var(--moss-soft); }
.quote-call a { color: var(--moss-soft); font-weight: 600; }

.quote-form { padding: clamp(22px, 4vw, 34px); color: var(--ink); }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .95rem; }
.field__opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 1rem; padding: .75em .9em;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.field textarea { resize: vertical; }
.field__error { display: block; color: #b3401f; font-size: .85rem; margin-top: 5px; min-height: 1em; font-weight: 600; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b3401f; }
.form-success {
  margin: 16px 0 0; padding: 14px 16px; border-radius: 12px;
  background: rgba(122,168,116,.18); border: 1px solid var(--moss); color: var(--deep-green); font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer { background: #16291d; color: #cfd8c8; }
.footer-inner { display: grid; gap: 32px; padding: clamp(40px, 6vw, 64px) 20px 32px; grid-template-columns: 1fr; }
.brand--footer .brand-name, .footer-brand { color: #f3f1e8; }
.footer-tag { color: #9fb097; max-width: 320px; font-size: .98rem; }
.footer-h { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #8aa183; margin: 0 0 14px; font-weight: 600; }
.site-footer address { font-style: normal; color: #cfd8c8; line-height: 1.7; }
.footer-contact, .footer-hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-contact a { color: #d7e0cd; text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-hours li { display: flex; justify-content: space-between; gap: 16px; max-width: 240px; color: #b8c5ad; }
.footer-social { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 12px; }
.footer-social a {
  display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #d7e0cd; transition: background .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover { background: var(--moss); color: #16291d; transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }

.footer-bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bar__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 18px 20px; font-size: .88rem; color: #9fb097; }
.footer-bar__inner p { margin: 0; }
.footer-credit a { color: var(--moss-soft); font-weight: 600; text-decoration: none; }
.footer-credit a:hover { color: #fff; text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .reviews-wall { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .reviews-wall { grid-template-columns: repeat(3, 1fr); }
  .area-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .quote-grid { grid-template-columns: 1fr 1.05fr; align-items: start; }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 68px 0 auto 0; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .primary-nav.is-open { max-height: 460px; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; }
  .primary-nav a { padding: .9em 1em; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 6px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__layer { transform: none !important; }
}
