/*
Theme Name: Greensand ESG
Theme URI: https://greensandesg.weofferwellness.co.uk/
Author: Codex
Description: Custom Greensand ESG theme built from the supplied static components.
Version: 1.0.0
Text Domain: greensand-esg
*/

:root {
  --bg: #f4f1e8;
  --paper: #fffaf2;
  --ink: #13312d;
  --muted: #5e6b66;
  --green: #004335;
  --green-2: #0a5a47;
  --accent: #f08016;
  --line: rgba(19, 49, 45, 0.12);
  --shadow: 0 18px 60px rgba(16, 36, 31, 0.12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 128, 22, 0.08), transparent 28%),
    linear-gradient(180deg, #fbf8f0 0%, #f4f1e8 60%, #edf2ec 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.page { min-height: 100vh; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(840px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(18px);
  background: rgba(244, 241, 232, 0.78);
  border-bottom: 1px solid rgba(19, 49, 45, 0.08);
}
.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-mark { width: 42px; height: 48px; flex: none; }
.brand-word { font-size: 1.1rem; text-transform: lowercase; }
.brand-word em { color: var(--accent); font-style: normal; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.98rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.menu-close { display: none; }
.header-cta { display: flex; align-items: center; gap: 12px; position: relative; z-index: 72; }
.btn, .button, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  box-shadow: none;
}
.btn:hover, .button:hover, .wp-block-button__link:hover { transform: translateY(-1px); background: var(--green-2); }
.btn.ghost, .btn.light {
  background: transparent;
  color: var(--green);
  border-color: rgba(0, 67, 53, 0.18);
}
.btn.ghost:hover, .btn.light:hover { background: rgba(0, 67, 53, 0.06); }
.btn.lime { background: #d6f1c7; color: var(--green); }
.btn.lime:hover { background: #c8ebb5; }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(19, 49, 45, 0.12);
  border-radius: 14px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(16, 36, 31, 0.08);
  position: relative;
  z-index: 73;
}
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 999px; transition: transform .2s ease, opacity .2s ease; }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 18, 15, 0.5);
  backdrop-filter: blur(2px);
  z-index: 50;
}

main { overflow: clip; }
.hero, .page-hero, .section { padding: 84px 0; }
.hero { padding-top: 68px; }
.hero-inner, .service-intro { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero-layout, .split, .footer-grid { display: grid; gap: 28px; }
.hero-layout { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); align-items: center; }
.split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.page-hero .container { position: relative; }
.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .76rem;
  color: var(--accent);
  font-weight: 800;
}
h1, h2, h3, h4, .statement, .price { letter-spacing: -0.045em; }
h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: .95;
  max-width: 12ch;
}
h1 span { color: var(--accent); }
h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}
h3 { margin: 0 0 10px; font-size: 1.5rem; }
h4 { margin: 0 0 10px; font-size: 1.18rem; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.28rem); line-height: 1.7; color: var(--muted); max-width: 64ch; }
.copy { font-size: 1.08rem; line-height: 1.85; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.signal-card, .card, .aside-panel, .panel, .timeline-card, .service-hero-card {
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid rgba(19, 49, 45, 0.09);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.signal-card, .service-hero-card { padding: 28px; }
.signal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.status-dot, .signal-number {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}
.status-dot { background: rgba(0, 67, 53, 0.08); color: var(--green); }
.signal-number { background: var(--green); color: #fff; }
.signal-list { display: flex; flex-wrap: wrap; gap: 10px; }
.signal-list span, .hero-strip div {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(0, 67, 53, 0.06);
  color: var(--green);
  font-weight: 700;
}
.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.hero-strip strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.hero-strip span { display: block; font-size: .92rem; color: rgba(19, 49, 45, 0.75); }

.paper { background: rgba(255, 255, 255, 0.35); }
.dark { background: linear-gradient(180deg, var(--green) 0%, #032f26 100%); color: #f7f3ea; }
.light-green { background: linear-gradient(180deg, rgba(214, 241, 199, .58), rgba(222, 240, 222, .5)); }
.dark .lead, .dark .copy, .dark p, .dark li { color: rgba(247, 243, 234, 0.84); }
.dark .eyebrow { color: #f3ba7a; }
.dark .btn.light, .dark .btn.ghost { color: #f7f3ea; border-color: rgba(255,255,255,0.22); }
.dark .btn.light:hover, .dark .btn.ghost:hover { background: rgba(255,255,255,0.08); }

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .timeline-card, .aside-panel, .panel { padding: 24px; }
.card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.card.dark-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); box-shadow: none; }
.number { color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.price { display: inline-flex; font-size: 1.12rem; font-weight: 800; color: var(--green); margin-top: auto; }
.dark .price { color: #fff; }
.card-link { color: var(--green); font-weight: 800; }
.check-list, .big-list, .nav-list, .detail-table ul { margin: 0; padding-left: 1.1rem; }
.check-list li, .big-list li { margin-bottom: 10px; line-height: 1.65; }
.big-list { font-size: 1.03rem; line-height: 1.75; color: var(--muted); }
.big-list.two-col-list { columns: 2; column-gap: 42px; }
.rule { height: 1px; background: var(--line); margin: 32px 0; }
.statement {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.1;
  max-width: 18ch;
}
.band {
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(19, 49, 45, 0.08);
  border-bottom: 1px solid rgba(19, 49, 45, 0.08);
  background: rgba(255,255,255,0.2);
}
.band-track {
  display: flex;
  width: max-content;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(19, 49, 45, 0.68);
  animation: band 24s linear infinite;
}
.band-group {
  display: flex;
  gap: 32px;
  flex: 0 0 auto;
}
.band-group span { flex: 0 0 auto; }

.transition-grid { display: grid; grid-template-columns: 1fr 72px 1fr; gap: 18px; align-items: center; }
.transition-box {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}
.transition-arrow { font-size: 2.5rem; color: #f3ba7a; text-align: center; font-weight: 300; }

.footer {
  padding: 78px 0 40px;
  border-top: 1px solid rgba(19, 49, 45, 0.08);
}
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer h4 { margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; color: var(--muted); }
.footer-bottom {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(19, 49, 45, 0.08);
  color: var(--muted);
  font-size: .95rem;
}

.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); margin-bottom: 16px; }
.breadcrumb span { opacity: .5; }
.breadcrumb a { color: var(--muted); }
.service-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 28px; align-items: start; }
.aside-panel { background: rgba(0,67,53,0.06); }
.detail-table { margin-top: 22px; display: grid; gap: 10px; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(19,49,45,0.08); }
.detail-row strong { min-width: 100px; }

.timeline { display: grid; gap: 16px; }
.timeline-item { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 18px; align-items: start; }
.timeline-dot {
  width: 68px; height: 68px; border-radius: 999px; display: grid; place-items: center;
  background: var(--green); color: #fff; font-weight: 800; box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: .92rem; }
input, select, textarea {
  width: 100%;
  border-radius: 0;
  border: 1px solid rgba(19,49,45,0.14);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
}
select {
  padding-right: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
textarea { min-height: 150px; resize: none; }
.panel-inner { display: grid; gap: 18px; }

.wp-block { margin-block: 0; }
.entry-content > * + *, .wp-block-group > * + * { margin-top: 1rem; }
.site-main { display: block; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes band { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 1024px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 71;
    display: grid;
    align-content: start;
    gap: 0;
    width: min(86vw, 360px);
    height: 100vh;
    padding: 24px 22px;
    background: #fffaf2;
    border-left: 1px solid rgba(19, 49, 45, 0.12);
    box-shadow: -30px 0 80px rgba(16, 36, 31, 0.2);
    transform: translateX(110%);
    transition: transform .28s ease;
  }
  .nav.is-open,
  body.menu-open .nav { transform: translateX(0); }
  .nav a {
    display: block;
    padding: 16px 0;
    font-size: 1.12rem;
    border-bottom: 1px solid rgba(19, 49, 45, 0.08);
  }
  .menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: fit-content;
    margin: 0 0 18px auto;
    padding: 0 14px;
    border: 1px solid rgba(19, 49, 45, 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--green);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  body.menu-open { overflow: hidden; }
  .hero-layout, .split, .service-intro, .footer-grid, .transition-grid, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: 1fr; }
  .big-list.two-col-list { columns: 1; }
  h1 { max-width: 100%; }
  .transition-grid { grid-template-columns: 1fr; }
  .transition-arrow {
    transform: rotate(90deg);
    margin: -4px 0;
  }
}

@media (max-width: 720px) {
  .header-inner { min-height: 74px; gap: 12px; }
  .header-cta .btn { display: none; }
  .hero, .page-hero, .section { padding: 64px 0; }
  .statement { max-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
