/* ==========================================================================
   The Lily Tree Group — stylesheet
   Brand palette: forest green, sage green, warm ivory, soft gold, neutral stone
   Fonts are self-hosted (no third-party requests).
   ========================================================================== */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours */
  --forest: #244c3b;
  --forest-deep: #173226;
  --sage: #91a78f;
  --sage-light: #dde6db;
  --ivory: #f5f0e5;
  --ivory-deep: #ece5d2;
  --gold: #c4aa77;
  --gold-deep: #78602a;   /* gold for text on ivory (AA contrast) */
  --stone: #645f57;       /* secondary text on ivory (AA contrast) */
  --stone-light: #e2ddd1;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Layout */
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 37rem;
  --space-section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--forest-deep);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--forest);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.12; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; max-width: var(--measure); }
li { margin-bottom: 0.4em; }

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--forest-deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 3px;
}
.on-dark :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--forest);
  color: var(--ivory);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 8px 8px;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Logo mark
   -------------------------------------------------------------------------- */
.mark {
  --m-trunk: var(--forest);
  --m-leaf: #8fa588;
  --m-bloom: #b8943f;
  --m-core: var(--forest);
  display: block;
  overflow: visible;
}
.on-dark .mark {
  --m-trunk: var(--ivory);
  --m-leaf: var(--sage);
  --m-bloom: var(--gold);
  --m-core: var(--forest-deep);
}
.m-trunk { fill: none; stroke: var(--m-trunk); stroke-linecap: round; }
.m-leaf { fill: var(--m-leaf); }
.m-bloom { fill: var(--m-bloom); }
.m-core { fill: var(--m-core); }

/* --------------------------------------------------------------------------
   Status banner (shown on every page)
   -------------------------------------------------------------------------- */
.status-banner {
  background: var(--forest-deep);
  color: var(--ivory);
  font-size: 0.9rem;
  line-height: 1.5;
}
.status-banner .wrap { padding-block: 0.65rem; }
.status-banner p { margin: 0; max-width: none; }
.status-banner a { color: var(--gold); }
.status-banner strong { font-weight: 650; }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--stone-light);
}
.site-header .wrap {
  max-width: 84rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--forest);
}
.brand:hover { color: var(--forest); }
.brand .mark { width: 2.9rem; height: 2.9rem; flex: none; }
.brand-name {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--stone);
  letter-spacing: 0;
  margin-top: 0.2rem;
}

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  background: none;
  color: var(--forest);
  border: 1.5px solid var(--forest);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--forest);
}
.site-nav a:hover { background: var(--sage-light); }
.site-nav a[aria-current="page"] {
  background: var(--forest);
  color: var(--ivory);
}

@media (max-width: 84rem) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open {
    display: block;
    flex-basis: 100%;
    order: 3;
  }
  .js .site-header .wrap { flex-wrap: wrap; }
  .js .site-nav ul { flex-direction: column; padding-top: 0.5rem; }
  .js .site-nav a { padding: 0.8rem 0.9rem; border-radius: 10px; }
  .site-nav { width: 100%; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--forest);
  background: var(--forest);
  color: var(--ivory);
  cursor: pointer;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--ivory); }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--ivory); }
.on-dark .btn { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }
.on-dark .btn:hover { background: var(--ivory); border-color: var(--ivory); color: var(--forest-deep); }
.on-dark .btn--ghost { background: transparent; color: var(--ivory); border-color: var(--sage); }
.on-dark .btn--ghost:hover { background: var(--ivory); color: var(--forest-deep); border-color: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* --------------------------------------------------------------------------
   Home hero — the tree is the one memorable element
   -------------------------------------------------------------------------- */
.hero {
  background: var(--forest);
  color: var(--ivory);
  overflow: hidden;
}
.hero h1 { color: var(--ivory); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--sage-light);
  max-width: 34rem;
}
.hero-art { justify-self: center; width: min(100%, 26rem); }
.hero-art .mark { width: 100%; }
.hero-art .m-trunk { stroke-width: 4.2; }

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: 11rem; justify-self: start; }
}

/* Single orchestrated moment: the blooms open once on the home page. */
@media (prefers-reduced-motion: no-preference) {
  .hero .m-bloom-group {
    transform-box: fill-box;
    transform-origin: center;
    animation: bloom 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero .bl-1 { animation-delay: 0.25s; }
  .hero .bl-2 { animation-delay: 0.55s; }
  .hero .bl-3 { animation-delay: 0.85s; }
  .hero .m-leaf { animation: fade 0.9s ease both; animation-delay: 0.15s; }
  @keyframes bloom {
    from { opacity: 0; transform: scale(0.2) rotate(-25deg); }
    to { opacity: 1; transform: none; }
  }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* --------------------------------------------------------------------------
   Page headers (inner pages)
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--sage-light);
  border-bottom: 1px solid var(--sage);
}
.page-head .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 0.4em; }
.page-head .lead { font-size: 1.1rem; max-width: 42rem; margin-bottom: 0; color: var(--forest); }

.breadcrumb {
  font-size: 0.9rem;
  margin: 0 0 1rem;
  color: var(--stone);
}
.breadcrumb a { color: var(--stone); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--space-section); }
.section--tint { background: var(--ivory-deep); }
.section--stone { background: var(--stone-light); }
.section--dark { background: var(--forest); color: var(--ivory); }
.section--dark h2, .section--dark h3 { color: var(--ivory); }
.section--dark p { color: var(--sage-light); }
.section--dark a { color: var(--gold); }

.section-head { margin-bottom: 2.4rem; }
.section-head p { color: var(--stone); font-size: 1.1rem; }
.section--dark .section-head p { color: var(--sage-light); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 52rem) {
  .split, .split--even { grid-template-columns: 1fr; }
}

.lead { font-size: 1.1rem; }
.small { font-size: 0.92rem; color: var(--stone); }

/* Tagline principles: belong / grow / flourish */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
}
.principles li {
  margin: 0;
  padding-top: 1.2rem;
  border-top: 3px solid var(--gold);
}
.principles h3 { font-size: 1.75rem; margin-bottom: 0.4em; }
.principles p { margin: 0; color: var(--stone); }
@media (max-width: 52rem) {
  .principles { grid-template-columns: 1fr; }
}

/* Plain rule-separated lists (used for services, values, etc.) */
.rule-list { list-style: none; padding: 0; margin: 0; max-width: none; }
.rule-list > li {
  margin: 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--sage);
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: 0.5rem 2rem;
}
.rule-list > li:last-child { border-bottom: 1px solid var(--sage); }
.rule-list h3 { margin: 0; font-size: 1.35rem; }
.rule-list p { margin: 0; }
.rule-list p + p { margin-top: 0.8em; }
@media (max-width: 44rem) {
  .rule-list > li { grid-template-columns: 1fr; }
}

/* Status tracker */
.status-list { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.status-list li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.4rem 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--sage);
  margin: 0;
}
.status-list li:last-child { border-bottom: 1px solid var(--sage); }
.status-list p { margin: 0; }
.status-list strong { display: block; font-weight: 650; color: var(--forest); }
.chip {
  display: inline-block;
  align-self: start;
  justify-self: start;
  font-size: 0.85rem;
  font-weight: 650;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--forest);
  color: var(--forest);
  background: transparent;
  white-space: nowrap;
}
.chip--done { background: var(--forest); color: var(--ivory); }
.chip--progress { background: var(--gold); border-color: var(--gold); color: var(--forest-deep); }
@media (max-width: 40rem) {
  .status-list li { grid-template-columns: 1fr; }
}

/* Callout */
.notice {
  border-left: 5px solid var(--gold);
  background: var(--ivory-deep);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 46rem;
  margin: 0 0 1.6rem;
}
.notice p { margin: 0; max-width: none; }
.notice p + p { margin-top: 0.7em; }
.notice strong { color: var(--forest); }
.section--tint .notice { background: var(--ivory); }

/* Vision branches */
.vision {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 5vw, 4rem);
}
.vision li {
  position: relative;
  margin: 0;
  padding: 1.2rem 0 1.2rem 2.2rem;
  border-top: 1px solid var(--sage);
}
.vision li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.65rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--gold-deep);
  border-radius: 0 70% 0 70%;
  transform: rotate(-20deg);
}
.vision h3 { font-size: 1.2rem; margin-bottom: 0.25em; }
.vision p { margin: 0; color: var(--stone); font-size: 0.98rem; }
.vision .chip { margin-top: 0.7rem; font-size: 0.78rem; padding: 0.1rem 0.6rem; color: var(--stone); border-color: var(--stone); }
@media (max-width: 44rem) { .vision { grid-template-columns: 1fr; } }

/* Checklist */
.tick-list { list-style: none; padding: 0; max-width: var(--measure); }
.tick-list li { position: relative; padding-left: 1.9rem; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.45em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--gold-deep);
  border-bottom: 2.5px solid var(--gold-deep);
  transform: rotate(-45deg);
}

/* Contact */
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: none; }
.contact-list li { margin: 0 0 1.4rem; }
.contact-list h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 650; margin-bottom: 0.15em; }
.contact-list p { margin: 0; }
.pending { color: var(--stone); }
.site-footer .pending { color: var(--sage); }

/* Legal / long-form text */
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose table {
  border-collapse: collapse;
  width: 100%;
  max-width: 46rem;
  margin: 0 0 1.5rem;
  font-size: 0.97rem;
}
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--sage);
}
.prose th { background: var(--ivory-deep); font-weight: 650; }
.table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--forest-deep);
  color: var(--sage-light);
  font-size: 0.96rem;
}
.site-footer a { color: var(--ivory); }
.site-footer a:hover { color: var(--gold); }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--ivory);
  margin-bottom: 0.8em;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.3fr;
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}
.footer-grid p { max-width: 24rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.footer-brand .mark { width: 3rem; height: 3rem; flex: none; }
.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ivory);
}
.footer-base {
  border-top: 1px solid rgba(145, 167, 143, 0.35);
  padding-block: 1.4rem 2rem;
  font-size: 0.88rem;
}
.footer-base p { max-width: none; margin: 0 0 0.5rem; }
@media (max-width: 62rem) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 36rem) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .site-nav, .nav-toggle, .skip-link, .btn-row { display: none; }
  body { background: #fff; color: #000; }
  .hero, .page-head, .site-footer, .section--dark { background: #fff; color: #000; }
  .hero h1, .site-footer a { color: #000; }
}

/* Small screens: keep logo and Menu button on one line */
@media (max-width: 40rem) {
  .brand { min-width: 0; }
  .brand-name { white-space: normal; font-size: 1.15rem; }
  .brand-tag { display: none; }
  .brand .mark { width: 2.5rem; height: 2.5rem; }
}
