/* =============================================================
   ACORN TO OAK INITIATIVE — Main Stylesheet
   =============================================================

   Table of Contents
   -----------------
   1.  Custom Properties (Design Tokens)
   2.  Reset & Base
   3.  Typography
   4.  Utilities (eyebrow, reveal animation, buttons)
   5.  Layout: Site Wrapper & Background Blobs
   6.  Header
   7.  Hero
   8.  Philosophy
   9.  What We Develop (Skills Grid)
   10. Programmes
   11. How We Support Growth
   12. Lifelong Pathway
   13. Closing CTA
   14. Footer
   15. Keyframe Animations
   16. Media Queries
   ============================================================= */


/* =============================================
   1. Custom Properties
   ============================================= */
:root {
  /* Colours */
  --green-darkest:  #26311a;
  --green-dark:     #2e3a1c;
  --green-mid:      #4a5a26;
  --green-sage:     #5f6b2e;
  --green-light:    #7a8659;
  --green-muted:    #cdd2ba;
  --cream:          #f7f1e3;
  --cream-dark:     #eee4cf;
  --cream-warm:     #fffdf7;
  --cream-bg:       #dccfb2;
  --brown-dark:     #5c3f22;
  --brown-mid:      #8a5a2e;
  --brown-light:    #c8b98f;
  --brown-tan:      #b0a077;
  --brown-earth:    #7a5a2c;
  --text-dark:      #33421f;
  --text-body:      #4c583a;
  --text-light:     #5b6746;

  /* Typography */
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans:  'Work Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad-v: clamp(70px, 9vw, 130px);
  --section-pad-h: clamp(20px, 5vw, 64px);
  --max-w:         1240px;
}


/* =============================================
   2. Reset & Base
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--green-dark);
  color: var(--cream);
}

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

p {
  margin: 0;
}


/* =============================================
   3. Typography
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

a {
  color: var(--brown-dark);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--green-dark);
}

.section-h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  color: var(--green-dark);
}

.section-h2--center {
  text-align: center;
}

.section-h2--light {
  color: #f7f1e3;
}

.section-body {
  margin-top: 20px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-body);
}

.section-body--centered {
  margin: 30px auto 0;
  max-width: 44rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.75;
}

.section-body--muted {
  color: var(--green-muted);
}

/* Italic accent colours inside headings */
em {
  font-style: italic;
  font-weight: 400;
}

.accent--warm { color: var(--brown-dark); }
.accent--earth { color: var(--brown-mid); }


/* =============================================
   4. Utilities
   ============================================= */

/* -- Eyebrow label -- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
  margin-bottom: 22px;
}

.eyebrow--center {
  display: block;
  text-align: center;
  margin-bottom: 28px;
}

.eyebrow--gold {
  color: var(--brown-light);
}

.eyebrow__line {
  width: 26px;
  height: 1px;
  background: var(--brown-tan);
  flex: none;
}

/* -- Scroll-reveal -- */
.anim-on .reveal {
  opacity: 0;
  transform: translateY(26px);
}

.anim-on .reveal.is-visible {
  animation: revealUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--green-dark);
  color: var(--cream);
  box-shadow: 0 12px 30px rgba(46, 58, 28, 0.22);
}

.btn--primary:hover {
  color: var(--cream);
}

.btn--outline {
  background: transparent;
  color: var(--green-dark);
  padding: 15px 26px;
  border: 1.5px solid rgba(46, 58, 28, 0.28);
}

.btn--outline:hover {
  color: var(--green-dark);
}


/* =============================================
   5. Site Wrapper & Background Blobs
   ============================================= */
.site-wrapper {
  position: relative;
  overflow-x: hidden;
  background: var(--cream);
}

.bg-blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.bg-blob--tr {
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 58% 42% 47% 53% / 54% 44% 56% 46%;
  background: radial-gradient(circle at 40% 35%, rgba(74, 90, 38, 0.14), rgba(74, 90, 38, 0) 70%);
}

.bg-blob--bl {
  top: 1400px;
  left: -160px;
  width: 520px;
  height: 520px;
  border-radius: 47% 53% 60% 40% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 55% 45%, rgba(138, 90, 46, 0.10), rgba(138, 90, 46, 0) 70%);
}


/* =============================================
   6. Header
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--section-pad-h);
  transition: padding 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background-color: rgba(247, 241, 227, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(46, 58, 28, 0.10);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
}

.header-logo img {
  height: 160px;
  width: auto;
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--green-mid);
}

.nav-links a:hover {
  color: var(--green-dark);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--green-mid);
}

.header-contact span {
  font-weight: 600;
}

.header-contact__icon {
  color: var(--green-mid);
  flex: none;
}


/* =============================================
   7. Hero
   ============================================= */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) var(--section-pad-h) clamp(60px, 8vw, 110px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero__content {
  /* left column */
}

.hero__h1 {
  font-size: clamp(2.9rem, 6vw, 5rem);
  line-height: 1.02;
  color: var(--green-dark);
  letter-spacing: -0.02em;
}

.hero__body {
  margin-top: 26px;
  max-width: 30rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-body);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__stats {
  display: flex;
  gap: 34px;
  margin-top: 46px;
  flex-wrap: wrap;
  align-items: center;
}

.stat__number {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--green-dark);
}

.stat__label {
  font-size: 0.82rem;
  color: var(--green-light);
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(46, 58, 28, 0.14);
}

/* Hero image column */
.hero__visual {
  position: relative;
}

.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px 26px 26px;
  overflow: hidden;
  background: #e5dac0;
  border: 1px solid rgba(46, 58, 28, 0.12);
  box-shadow: 0 30px 70px -30px rgba(46, 58, 28, 0.4);
}

.hero__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 58, 28, 0) 52%, rgba(46, 58, 28, 0.3));
}

.hero__badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--cream-warm);
  border: 1px solid rgba(46, 58, 28, 0.12);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 18px 40px -20px rgba(46, 58, 28, 0.4);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: floaty 7s ease-in-out infinite;
}

.hero__badge-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
}

.hero__badge-text {
  line-height: 1.2;
}

.hero__badge-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--green-dark);
}

.hero__badge-sub {
  font-size: 0.78rem;
  color: var(--green-light);
}


/* =============================================
   8. Philosophy
   ============================================= */
.section-philosophy {
  background: var(--cream-dark);
  padding: var(--section-pad-v) var(--section-pad-h);
  position: relative;
}

.section-intro {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.section-intro .section-h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.15;
}

.philosophy__split {
  max-width: 1100px;
  margin: clamp(50px, 6vw, 80px) auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.philosophy__photo {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: var(--cream-bg);
  border: 1px solid rgba(46, 58, 28, 0.12);
}

.philosophy__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy__pillars {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pillar__dot {
  flex: none;
  margin-top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.pillar__dot--brown { background: var(--brown-mid); }
.pillar__dot--green { background: var(--green-mid); }
.pillar__dot--sage  { background: var(--green-light); }

.pillar__h3 {
  font-size: 1.35rem;
  color: var(--green-dark);
}

.pillar__p {
  margin-top: 6px;
  color: var(--text-body);
  line-height: 1.6;
}


/* =============================================
   9. What We Develop (Skills Grid)
   ============================================= */
.section-develop {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad-v) var(--section-pad-h);
}

.section-develop__intro {
  max-width: 640px;
}

.dev-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.dev-card {
  background: var(--cream-warm);
  border: 1px solid rgba(46, 58, 28, 0.10);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.dev-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(46, 58, 28, 0.4);
}

.dev-card--dark {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.dev-card--dark:hover {
  box-shadow: 0 20px 44px -22px rgba(46, 58, 28, 0.6);
}

.dev-card__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--brown-tan);
}

.dev-card--dark .dev-card__num {
  color: var(--brown-light);
}

.dev-card__h3 {
  margin-top: 10px;
  font-size: 1.28rem;
  color: var(--green-dark);
}

.dev-card--dark .dev-card__h3 {
  color: var(--cream);
}

.dev-card__p {
  margin-top: 8px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-light);
}

.dev-card--dark .dev-card__p {
  color: var(--green-muted);
}


/* =============================================
   10. Programmes
   ============================================= */
.section-programmes {
  background: var(--green-dark);
  color: var(--cream);
  padding: var(--section-pad-v) var(--section-pad-h);
  position: relative;
  overflow: hidden;
}

.programmes__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-programmes .section-develop__intro {
  max-width: 640px;
}

.prog-track {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
  align-items: end;
  position: relative;
}

.prog-baseline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 96px;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 185, 143, 0), rgba(200, 185, 143, 0.5), rgba(200, 185, 143, 0));
}

.prog-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  position: relative;
}

.prog-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(247, 241, 227, 0.16);
}

.prog-photo--sm { height: clamp(130px, 16vw, 180px); }
.prog-photo--md { height: clamp(170px, 20vw, 230px); }
.prog-photo--lg { height: clamp(210px, 24vw, 280px); }
.prog-photo--xl {
  height: clamp(250px, 28vw, 330px);
  border-color: rgba(200, 185, 143, 0.4);
}

.prog-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prog-photo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 58, 28, 0.04), rgba(46, 58, 28, 0.34));
}

.prog-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brown-light);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--green-dark);
}

.prog-dot--light {
  background: var(--cream);
}

.prog-info {
  text-align: center;
}

.prog-info__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--cream);
}

.prog-info__subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-top: 4px;
}

.prog-info__subtitle--gold {
  color: #f0e6c8;
}

.prog-info__desc {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--green-muted);
}

.prog-info__desc--warm {
  color: #e4e5d3;
}


/* =============================================
   11. How We Support Growth
   ============================================= */
.section-support {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad-v) var(--section-pad-h);
}

.support-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.support-card {
  background: var(--cream-warm);
  border: 1px solid rgba(46, 58, 28, 0.10);
  border-radius: 20px;
  overflow: hidden;
}

.support-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-bg);
}

.support-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-card__body {
  padding: 24px;
}

.support-card__h3 {
  font-size: 1.3rem;
  color: var(--green-dark);
}

.support-card__p {
  margin-top: 8px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-light);
}


/* =============================================
   12. Lifelong Pathway
   ============================================= */
.section-pathway {
  background: var(--cream-dark);
  padding: var(--section-pad-v) var(--section-pad-h);
}

.pathway__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.pathway__intro {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.pathway-track {
  position: relative;
  margin-top: clamp(50px, 6vw, 84px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.pathway-line {
  position: absolute;
  top: 11px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--brown-mid), var(--green-mid));
  border-radius: 2px;
}

.pathway-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.pathway-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid var(--cream-dark);
  position: relative;
  z-index: 1;
}

.pathway-dot--1 { background: var(--brown-mid); }
.pathway-dot--2 { background: var(--brown-earth); }
.pathway-dot--3 { background: var(--green-sage); }
.pathway-dot--4 { background: var(--green-mid); }
.pathway-dot--5 { background: var(--green-dark); }

.pathway-step__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-top: 16px;
}

.pathway-step__desc {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-light);
  max-width: 15rem;
}


/* =============================================
   13. Closing CTA
   ============================================= */
.section-cta {
  background: var(--green-dark);
  color: var(--cream);
  padding: clamp(80px, 11vw, 150px) var(--section-pad-h);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 185, 143, 0.14), rgba(200, 185, 143, 0) 70%);
  pointer-events: none;
}

.cta__inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.cta__logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
  margin: 0 auto 28px;
}

.cta__h2 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.14;
  color: var(--cream);
}

.cta__em {
  font-style: italic;
  font-weight: 400;
  color: var(--brown-light);
}

.cta__body {
  margin: 26px auto 0;
  max-width: 38rem;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--green-muted);
}

.cta__contact {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cta__label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
}

.cta__email {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--cream);
}

.cta__email:hover {
  color: var(--brown-light);
}


/* =============================================
   14. Footer
   ============================================= */
.site-footer {
  background: var(--green-darkest);
  color: #aeb897;
  padding: clamp(40px, 5vw, 60px) var(--section-pad-h);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--cream);
}

.footer__email {
  font-size: 0.95rem;
  color: var(--green-muted);
}

.footer__email:hover {
  color: var(--cream);
}

.footer__copy {
  font-size: 0.82rem;
  color: #7d8763;
}


/* =============================================
   15. Keyframe Animations
   ============================================= */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}


/* =============================================
   16. Media Queries
   ============================================= */
@media (max-width: 900px) {

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__h1 {
    font-size: clamp(2.6rem, 11vw, 3.6rem);
  }

  .philosophy__split {
    grid-template-columns: 1fr;
  }

  .prog-track {
    grid-template-columns: 1fr;
  }

  .prog-col {
    align-items: stretch;
  }

  .prog-photo--sm,
  .prog-photo--md,
  .prog-photo--lg,
  .prog-photo--xl {
    height: 210px;
  }

  .pathway-track {
    flex-direction: column;
    align-items: stretch;
  }

  .pathway-line {
    display: none;
  }

  .nav-links {
    display: none;
  }

}
