/* Waste Management Liverpool - core stylesheet */

:root {
  --green-900: #10381f;
  --green-800: #164d2a;
  --green-700: #1c6636;
  --green-600: #237e42;
  --green-500: #2f9a54;
  --green-100: #e6f3ea;
  --green-050: #f3f9f5;
  --white: #ffffff;
  --ink: #14201a;
  --ink-soft: #4a584f;
  --line: #dbe8de;
  --amber: #e8a23a;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(16, 56, 31, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(16, 56, 31, 0.2);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--green-900);
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { padding-left: 1.2em; color: var(--ink-soft); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
section { padding: 72px 0; }
.section-alt { background: var(--green-050); }
.section-dark { background: var(--green-900); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #cfe6d7; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-dark .eyebrow { background: rgba(255,255,255,0.12); color: var(--green-100); }

.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--green-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--green-600); color: var(--green-700); }
.btn-outline:hover { background: var(--green-100); }
.section-dark .btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.section-dark .btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-top {
  background: var(--green-900);
  color: #d9ecdf;
  font-size: 0.85rem;
}
.header-top .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px;
}
.header-top a { color: var(--white); font-weight: 600; }
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--green-900);
  flex-shrink: 0;
}
.logo .mark { color: var(--green-600); }
.logo-sub { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-600); }

.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0; padding: 0;
  align-items: center;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a, .main-nav > ul > li > button.nav-toggle {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
  background: none; border: none; font-family: inherit; cursor: pointer;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > button.nav-toggle:hover,
.main-nav > ul > li.open > button.nav-toggle,
.main-nav > ul > li > button.nav-toggle.is-active { background: var(--green-050); color: var(--green-700); }
.main-nav .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.15s ease; margin-top: -3px; }
.main-nav > ul > li.open .caret { transform: rotate(-135deg); margin-top: 3px; }

.dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  margin: 0;
  display: none;
  z-index: 50;
}
.main-nav > ul > li.open .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.dropdown li a:hover { background: var(--green-050); color: var(--green-700); }

.header-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--green-800);
}
.header-phone .icon { width: 18px; height: 18px; flex-shrink: 0; }

.nav-burger {
  display: none;
  position: relative;
  z-index: 250;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--green-900); display: block; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--green-050) 0%, var(--white) 100%);
  padding: 60px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy p.lead { margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.88rem; color: var(--green-800); }
.hero-trust-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); flex-shrink: 0; }
.hero-visual {
  background: var(--green-800);
  border-radius: 24px;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-visual svg { width: 100%; height: 100%; }

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.card .icon-wrap {
  width: 52px; height: 52px;
  background: var(--green-100);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .icon-wrap svg { width: 26px; height: 26px; color: var(--green-600); }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 12px; font-size: 0.95rem; }
.card a.card-link { font-weight: 700; color: var(--green-700); font-size: 0.9rem; }

/* Section heading block */
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-visual {
  background: var(--green-100);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.split-visual svg { width: 78%; height: 78%; }
.checklist { list-style: none; padding: 0; margin: 20px 0; }
.checklist li { display: flex; gap: 12px; margin-bottom: 12px; font-weight: 600; color: var(--ink); }
.checklist .check {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: var(--green-600); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
}

/* Skip size table */
.skip-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skip-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  background: var(--white);
}
.skip-card .yard {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--green-700);
  font-weight: 700;
}
.skip-card .yard span { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.skip-card ul { text-align: left; font-size: 0.85rem; padding-left: 1.1em; margin-top: 12px; }

/* Process steps */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-step { position: relative; padding-top: 8px; }
.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-600); color: var(--white);
  font-weight: 700; font-family: var(--font-head);
  margin-bottom: 14px;
}

/* Coverage */
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.area-tag {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--green-800);
}
.borough-block { margin-bottom: 32px; }
.borough-block h3 { color: var(--green-700); border-bottom: 2px solid var(--green-100); padding-bottom: 8px; margin-bottom: 14px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--green-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { padding-bottom: 20px; margin: 0; }

/* CTA band */
.cta-band {
  background: var(--green-800);
  color: var(--white);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: #cfe6d7; margin: 0; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--green-900); }
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--green-500); outline-offset: 1px; border-color: var(--green-500); }
textarea { resize: vertical; min-height: 120px; }
.field-wrap { margin-bottom: 4px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; display: none; }
.form-status.error { background: #fdecea; color: #9c2b1f; display: block; }

/* Footer */
.site-footer { background: var(--green-900); color: #cfe6d7; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.03em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #cfe6d7; font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.footer-logo { font-family: var(--font-head); font-size: 1.3rem; color: var(--white); font-weight: 700; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem;
  color: #9fc2ab;
}
.footer-bottom a { color: #9fc2ab; }

/* Breadcrumb */
.breadcrumb-bar { background: var(--green-050); border-bottom: 1px solid var(--line); }
.breadcrumb-bar ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 14px 0; margin: 0; font-size: 0.85rem; color: var(--ink-soft);
}
.breadcrumb-bar a { color: var(--green-700); font-weight: 600; }
.breadcrumb-bar li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--ink-soft); opacity: 0.5; }

/* Page hero (interior pages) */
.page-hero { background: var(--green-900); color: var(--white); padding: 52px 0; }
.page-hero .eyebrow { background: rgba(255,255,255,0.12); color: var(--green-100); }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #cfe6d7; max-width: 60ch; }

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-card p { font-style: italic; }
.testimonial-card .name { font-weight: 700; color: var(--green-800); font-style: normal; margin: 0; }

/* Legal pages */
.legal-content h2 { margin-top: 1.6em; }
.legal-content { max-width: 780px; }

/* 404 */
.error-page { text-align: center; padding: 110px 0; }
.error-page .code { font-family: var(--font-head); font-size: 6rem; color: var(--green-200, var(--green-500)); font-weight: 700; }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .split-visual { order: -1; max-width: 380px; margin: 0 auto; }
  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .skip-sizes { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
}
@media (max-width: 680px) {
  .header-top .container { justify-content: center; text-align: center; }
  .main-nav { position: fixed; inset: 0; top: 0; background: var(--white); z-index: 200; padding: 90px 24px 24px; overflow-y: auto; transform: translateX(100%); transition: transform 0.2s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav > ul > li > a, .main-nav > ul > li > button.nav-toggle { width: 100%; justify-content: space-between; padding: 14px 10px; font-size: 1.05rem; }
  .dropdown { position: static; box-shadow: none; border: none; display: none; padding-left: 12px; }
  .main-nav > ul > li.open .dropdown { display: block; }
  .nav-burger { display: flex; }
  .header-cta .btn-lg-label { display: none; }
  .header-cta .btn-primary { display: none; }
  .header-main .logo { font-size: 1.05rem; }
  .header-main .logo svg { width: 28px; height: 28px; }
  .header-cta { gap: 8px; }
  .header-phone { padding: 8px; }
  .grid-3, .grid-2, .skip-sizes, .process, .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; border-radius: 18px; }
  section { padding: 52px 0; }
  .hero { padding: 40px 0 52px; }
  .error-page { padding: 70px 0; }
}
