/*
Theme Name: Little Wild Tribe
Theme URI: https://littlewildtribe.gdlife.co.uk
Author: GDLife Media
Author URI: https://gdlifemedia.com
Description: Custom theme for Little Wild Tribe — outdoor nursery. Luxurious nature aesthetic: wild luxury meets childhood wonder.
Version: 0.2.0
Requires at least: 6.0
Tested up to: 7.0
License: Proprietary
Text Domain: lwt
*/

/* ============================================================
   DESIGN TOKENS — the whole site re-skins from this block.
   Direction: Kelly's aesthetic brief (wild luxury, wellness-
   brand feel). Green anchors, brass (not terracotta) accents,
   Cormorant Garamond display. GDL-281.
   ============================================================ */
:root {
  /* Greens — the anchor of the brand */
  --clr-forest: #263d2f;
  --clr-forest-deep: #1b2d22;
  --clr-forest-ink: #16261d;      /* headings/text on light */
  --clr-sage: #a9b7a2;
  --clr-sage-light: #cad3c1;

  /* Warm neutrals */
  --clr-cream: #faf7f0;           /* default page ground */
  --clr-beige: #efe7d9;           /* alternate section ground */
  --clr-linen: #f5f0e6;

  /* Earth accents */
  --clr-brass: #b08d45;           /* accent — "brass elements" per Kelly */
  --clr-brass-soft: #c6a869;
  --clr-soil: #55402f;

  /* Text */
  --clr-text: #33332c;
  --clr-text-light: #6f6f63;
  --clr-text-inverse: #f4f0e6;
  --clr-text-inverse-soft: rgba(244, 240, 230, 0.72);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'Raleway', -apple-system, sans-serif;

  /* Fluid type scale */
  --fs-display: clamp(2.9rem, 6.5vw, 5rem);
  --fs-h2: clamp(2.1rem, 4.2vw, 3.2rem);
  --fs-h3: clamp(1.45rem, 2.6vw, 1.95rem);
  --fs-lead: clamp(1.15rem, 1.8vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.78rem;

  /* Spacing rhythm */
  --space-section: clamp(4.5rem, 10vw, 8rem);
  --space-block: clamp(2rem, 4vw, 3rem);
  --space-element: 1.5rem;

  /* Layout */
  --content-max-width: 1200px;
  --content-narrow-width: 720px;

  /* Motion */
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--clr-text);
  background: var(--clr-cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--clr-forest-ink);
  margin: 0 0 var(--space-element);
}

h1 { font-size: var(--fs-display); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--clr-brass);
}

p { margin: 0 0 var(--space-element); }

a { color: var(--clr-forest); text-decoration-color: var(--clr-sage); text-underline-offset: 3px; }
a:hover { color: var(--clr-brass); }

:focus-visible {
  outline: 2px solid var(--clr-brass);
  outline-offset: 3px;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.content-width {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.content-narrow {
  max-width: var(--content-narrow-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Section grounds — alternate for rhythm */
.section { padding: var(--space-section) 0; }
.section--beige { background: var(--clr-beige); }
.section--linen { background: var(--clr-linen); }

/* Immersive forest block — cream type on deep green */
.section--forest {
  background: var(--clr-forest-deep);
  color: var(--clr-text-inverse-soft);
}
.section--forest h1, .section--forest h2, .section--forest h3 { color: var(--clr-text-inverse); }
.section--forest a { color: var(--clr-sage-light); }
.section--forest a:hover { color: var(--clr-brass-soft); }
.section--forest .eyebrow { color: var(--clr-brass-soft); }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* Eyebrow — small section label above headings */
.eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-brass);
  margin-bottom: 1.1rem;
}

/* Lead paragraph */
.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--clr-text-light);
  max-width: 46ch;
}
.section--forest .lead { color: var(--clr-text-inverse-soft); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.4rem;
  border: 1px solid currentColor;
  color: var(--clr-forest);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease-soft), color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}
.btn:hover { background: var(--clr-forest); border-color: var(--clr-forest); color: var(--clr-text-inverse); }

.btn--solid { background: var(--clr-forest); border-color: var(--clr-forest); color: var(--clr-text-inverse); }
.btn--solid:hover { background: var(--clr-forest-deep); border-color: var(--clr-forest-deep); color: var(--clr-text-inverse); }

.btn--brass { color: var(--clr-brass); }
.btn--brass:hover { background: var(--clr-brass); border-color: var(--clr-brass); color: #fff; }

.section--forest .btn { color: var(--clr-text-inverse); }
.section--forest .btn:hover { background: var(--clr-cream); border-color: var(--clr-cream); color: var(--clr-forest-deep); }

/* Botanical sprig divider — the signature mark (minimal line drawing per the brief) */
.sprig {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}
.sprig svg {
  width: 72px;
  height: 28px;
  stroke: var(--clr-sage);
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
}
.sprig--brass svg { stroke: var(--clr-brass-soft); }
.section--forest .sprig svg { stroke: var(--clr-sage); opacity: 0.8; }

/* Pull quote — the copy is quote-rich (Ofsted, founders, judges) */
.pull-quote {
  max-width: 34ch;
  margin: var(--space-block) auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--clr-forest);
}
.pull-quote cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-brass);
}
.section--forest .pull-quote { color: var(--clr-text-inverse); }

/* Badge strip — rolling accreditation badges (Home) */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  align-items: center;
  padding: 1.8rem 2rem;
}
.badge-strip .badge {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-text-light);
  white-space: nowrap;
}
.badge-strip img { max-height: 56px; width: auto; }

/* ============================================================
   HEADER — logo left, single nav button top-right
   ============================================================ */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.6rem 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--clr-forest-ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-logo img { max-height: 64px; width: auto; }

/* Solid header variant for pages without a hero (add via body class) */
.header-solid .site-header {
  position: static;
  background: var(--clr-cream);
  border-bottom: 1px solid rgba(38, 61, 47, 0.1);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-forest-ink);
  background: transparent;
  border: 1px solid rgba(38, 61, 47, 0.3);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}
.nav-toggle:hover { background: var(--clr-forest); border-color: var(--clr-forest); color: var(--clr-text-inverse); }

.nav-toggle-lines { display: inline-block; width: 20px; }
.nav-toggle-lines span {
  display: block;
  height: 1.5px;
  background: currentColor;
  margin: 4px 0;
}

/* ============================================================
   OVERLAY MENU — full-screen, deep forest
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--clr-forest-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-soft), visibility 0.4s var(--ease-soft);
}

body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

.nav-overlay-close {
  position: absolute;
  top: 1.8rem; right: 2rem;
  background: none;
  border: 1px solid rgba(244, 240, 230, 0.3);
  border-radius: 999px;
  color: var(--clr-text-inverse);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.7rem 1.5rem;
  transition: background 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}
.nav-overlay-close:hover { background: var(--clr-cream); color: var(--clr-forest-deep); }

.nav-overlay-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.nav-overlay-menu li { margin: clamp(0.6rem, 1.8vh, 1.1rem) 0; }

.nav-overlay-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vh, 2.6rem);
  font-weight: 500;
  color: var(--clr-text-inverse);
  text-decoration: none;
  transition: color 0.25s var(--ease-soft);
}
.nav-overlay-menu a:hover { color: var(--clr-brass-soft); font-style: italic; }

/* Portals + contact — quiet block under the sprig at the overlay's foot */
.nav-overlay-foot {
  margin-top: clamp(1.5rem, 4vh, 3rem);
  text-align: center;
}
.nav-overlay-foot a {
  display: inline-block;
  margin: 0.3rem 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-sage-light);
  text-decoration: none;
}
.nav-overlay-foot a:hover { color: var(--clr-brass-soft); }

/* ============================================================
   FOOTER — seasonal stripe + slim forest bar
   ============================================================ */
.site-footer { margin-top: var(--space-section); }

.site-footer-stripe {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--clr-forest) 0 25%,
    var(--clr-sage) 25% 50%,
    var(--clr-brass) 50% 75%,
    var(--clr-soil) 75% 100%
  );
}

.site-footer-bar {
  background: var(--clr-forest-deep);
  color: var(--clr-text-inverse-soft);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 1.6rem 2rem;
  line-height: 1.9;
}

.site-footer-bar a {
  color: var(--clr-sage-light);
  text-decoration: none;
  margin: 0 0.6rem;
}
.site-footer-bar a:hover { color: var(--clr-brass-soft); }

.site-footer-legal { opacity: 0.75; }

/* ============================================================
   HERO (shared pattern — full home build in GDL-282)
   ============================================================ */
.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: var(--clr-beige);
  padding: 9rem 0 var(--space-section);
}

.hero h1 { max-width: 16ch; }

.hero .lead { margin-bottom: 2.2rem; }

/* ============================================================
   GENERIC PAGE CONTENT
   ============================================================ */
.site-main { padding-top: 8rem; }
.header-solid .site-main { padding-top: var(--space-block); }

.page-content { padding-bottom: var(--space-section); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .content-width, .content-narrow { padding-left: 1.25rem; padding-right: 1.25rem; }
  .site-header { padding: 1.1rem 0; }
  .site-logo img { max-height: 48px; }
  .nav-toggle { padding: 0.55rem 1.1rem; }
  .hero { min-height: 64vh; padding-top: 7rem; }
}
