/* ==========================================================================
   Learning in Action — site styles
   A warm, editorial look for a hands-on early childhood program.
   ========================================================================== */

:root {
  --cream: #fbf7ef;
  --cream-deep: #f2ebdd;
  --paper: #fffdf8;
  --ink: #20362b;
  --ink-soft: #526359;
  --green: #2f5d46;
  --green-dark: #1b3b2b;
  --green-deep: #142d21;
  --leaf: #6f9b74;
  --leaf-soft: #e8efe4;
  --clay: #bd6040;
  --clay-soft: #f4e0d5;
  --sun: #eebf5f;
  --line: rgba(32, 54, 43, 0.14);
  --shadow-sm: 0 6px 20px rgba(32, 54, 43, 0.07);
  --shadow-md: 0 18px 50px rgba(32, 54, 43, 0.13);
  --shadow-lg: 0 30px 80px rgba(32, 54, 43, 0.18);
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --container: 1160px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

svg {
  display: block;
}

a {
  color: var(--green);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--clay);
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.9rem, 6.2vw, 4.9rem);
  line-height: 1.02;
  margin-bottom: 1.35rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

p {
  margin-bottom: 1rem;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.container {
  width: min(100% - clamp(2.5rem, 8vw, 5rem), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.25rem, 8vw, 7rem);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: none;
  color: var(--cream);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.85rem;
  height: 2px;
  flex: none;
  background: currentColor;
  border-radius: 2px;
}

.eyebrow--center {
  justify-content: center;
}

.lead {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.45rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease,
    border-color 180ms ease, box-shadow 180ms ease;
}

.button svg {
  flex: none;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
  color: var(--paper);
  box-shadow: 0 10px 24px rgba(47, 93, 70, 0.24);
}

.button-primary:hover {
  background: var(--green-dark);
  color: var(--paper);
  box-shadow: 0 14px 30px rgba(47, 93, 70, 0.3);
}

.button-ghost {
  border-color: rgba(32, 54, 43, 0.28);
  color: var(--ink);
  background: transparent;
}

.button-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.button-sun {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.button-sun:hover {
  background: #f6cc74;
  color: var(--ink);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 247, 239, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(32, 54, 43, 0.06);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand em {
  color: var(--clay);
  font-style: italic;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.button) {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--clay);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.site-nav a:not(.button):hover,
.site-nav a:not(.button).is-active {
  color: var(--ink);
}

.site-nav a:not(.button):hover::after,
.site-nav a:not(.button).is-active::after {
  transform: scaleX(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-cta {
  padding: 0.7rem 1.15rem;
  font-size: 0.89rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.25rem, 7vw, 6rem) clamp(3.5rem, 6vw, 5.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48% 55% at 88% 12%, rgba(238, 191, 95, 0.26), transparent 72%),
    radial-gradient(42% 55% at 2% 88%, rgba(111, 155, 116, 0.2), transparent 72%);
}

.hero::after {
  content: "";
  position: absolute;
  top: -12rem;
  right: -9rem;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border: 1.5px solid rgba(47, 93, 70, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero h1 em {
  color: var(--clay);
  font-style: italic;
}

.hero-lead {
  max-width: 41ch;
  margin-bottom: 1.8rem;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.55rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.9rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-note svg {
  color: var(--leaf);
}

.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  padding: 0.75rem 0.5rem 1.75rem 0;
}

.collage-item {
  position: relative;
  overflow: hidden;
  border: 5px solid var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-main {
  grid-row: span 2;
  aspect-ratio: 3 / 4;
  transform: rotate(-2.2deg);
}

.collage-top {
  aspect-ratio: 4 / 3;
  transform: rotate(2deg);
}

.collage-bottom {
  aspect-ratio: 4 / 3;
  transform: rotate(-1.2deg);
}

.hero-badge {
  position: absolute;
  right: -0.4rem;
  bottom: -0.35rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 8.6rem;
  height: 8.6rem;
  padding: 1.1rem;
  background: var(--sun);
  border: 2px dashed rgba(32, 54, 43, 0.32);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-9deg);
}

.hero-badge svg {
  margin: 0 auto 0.3rem;
}

/* ==========================================================================
   Value strip
   ========================================================================== */

.value-strip {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.value-strip ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  margin: 0;
  padding-block: 1.55rem;
  list-style: none;
}

.value-strip li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.value-strip svg {
  flex: none;
  color: var(--clay);
}

.value-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
}

.value-strip span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* ==========================================================================
   Section headings
   ========================================================================== */

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: 1.5rem 4rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading .lead {
  margin-bottom: 0.35rem;
}

.section-heading--center {
  display: block;
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading--center .lead {
  margin-inline: auto;
}

/* ==========================================================================
   Approach
   ========================================================================== */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.approach-card {
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 0 rgba(32, 54, 43, 0.02);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.approach-card:hover {
  border-color: rgba(47, 93, 70, 0.28);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.approach-icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 1.15rem;
  background: var(--leaf-soft);
  border-radius: 50%;
  color: var(--green);
}

.approach-card:nth-child(2n) .approach-icon {
  background: var(--clay-soft);
  color: var(--clay);
}

.approach-card:nth-child(3n) .approach-icon {
  background: #fbf0d4;
  color: #9a6c14;
}

.approach-number {
  position: absolute;
  top: 1.35rem;
  right: 1.4rem;
  color: rgba(32, 54, 43, 0.2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.06em;
}

.approach-card h3 {
  font-size: 1.28rem;
}

.approach-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ==========================================================================
   Learning areas
   ========================================================================== */

.areas {
  background: var(--leaf-soft);
  border-block: 1px solid rgba(47, 93, 70, 0.1);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.3rem;
}

.area-card {
  grid-column: span 2;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(32, 54, 43, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.area-card:nth-child(4),
.area-card:nth-child(5) {
  grid-column: span 3;
}

.area-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.area-card-link:hover {
  color: inherit;
}

.area-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-deep);
}

.area-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.area-card-link:hover .area-media img {
  transform: scale(1.045);
}

.area-index {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding-inline: 0.45rem;
  background: rgba(251, 247, 239, 0.93);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 600;
}

.area-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.3rem 1.35rem 1.4rem;
}

.area-body h3 {
  margin-bottom: 0.4rem;
}

.area-body p {
  margin-bottom: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.58;
}

.area-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.area-cta svg {
  transition: transform 200ms ease;
}

.area-card-link:hover .area-cta svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.filter-btn {
  padding: 0.52rem 1rem;
  background: transparent;
  border: 1px solid rgba(32, 54, 43, 0.2);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.filter-btn[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

.gallery-count {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
}

.gallery {
  columns: 3;
  column-gap: 1.15rem;
}

.gallery-item {
  break-inside: avoid;
  margin: 0 0 1.15rem;
  animation: gallery-in 320ms ease both;
}

.gallery-item[hidden] {
  display: none !important;
}

.gallery-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--cream-deep);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.gallery-button img {
  width: 100%;
  transition: transform 550ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.gallery-button:hover img {
  transform: scale(1.035);
}

.gallery-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 45, 33, 0.28), transparent 38%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.gallery-button:hover::after,
.gallery-button:focus-visible::after {
  opacity: 1;
}

.gallery-tag {
  position: absolute;
  bottom: 0.7rem;
  left: 0.7rem;
  z-index: 1;
  padding: 0.32rem 0.65rem;
  background: rgba(251, 247, 239, 0.94);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.gallery-button:hover .gallery-tag,
.gallery-button:focus-visible .gallery-tag {
  opacity: 1;
  transform: none;
}

@keyframes gallery-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  color: var(--cream);
}

.lightbox::backdrop {
  background: rgba(14, 27, 20, 0.9);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
}

.lightbox-counter {
  margin: 0;
  color: rgba(251, 247, 239, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(251, 247, 239, 0.1);
  border: 1px solid rgba(251, 247, 239, 0.24);
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
}

.lightbox-stage {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  flex: 1;
  min-height: 0;
  width: min(100%, 1200px);
  margin-inline: auto;
  padding: 0 clamp(0.75rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2rem);
}

.lightbox-nav {
  justify-self: center;
}

.lightbox-nav[disabled] {
  opacity: 0.28;
  pointer-events: none;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  margin: 0;
}

.lightbox-image {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 11rem);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox-caption {
  margin: 0;
  color: rgba(251, 247, 239, 0.86);
  font-size: 0.9rem;
  text-align: center;
}

html.lightbox-open,
html.lightbox-open body {
  overflow: hidden;
}

/* ==========================================================================
   Visit CTA
   ========================================================================== */

.visit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--green-dark);
  color: var(--cream);
}

.visit::before,
.visit::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1.5px solid rgba(251, 247, 239, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.visit::before {
  top: -11rem;
  left: -7rem;
  width: 30rem;
  height: 30rem;
}

.visit::after {
  right: -5rem;
  bottom: -13rem;
  width: 26rem;
  height: 26rem;
}

.visit-inner {
  position: relative;
  max-width: 44rem;
  margin-inline: auto;
  padding-block: clamp(4.5rem, 9vw, 7rem);
  text-align: center;
}

.visit .eyebrow {
  justify-content: center;
  color: var(--sun);
}

.visit h2 {
  color: var(--cream);
}

.visit-lede {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: rgba(251, 247, 239, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.visit .button-ghost {
  border-color: rgba(251, 247, 239, 0.36);
  color: var(--cream);
}

.visit .button-ghost:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.visit-sun {
  position: absolute;
  top: 50%;
  right: clamp(1rem, 5vw, 5rem);
  width: clamp(5rem, 9vw, 8rem);
  height: auto;
  color: rgba(238, 191, 95, 0.5);
  transform: translateY(-50%);
  animation: slow-spin 60s linear infinite;
  pointer-events: none;
}

.visit-leaf {
  position: absolute;
  bottom: 12%;
  left: clamp(1rem, 5vw, 5rem);
  width: clamp(4.5rem, 8vw, 7rem);
  height: auto;
  color: rgba(111, 155, 116, 0.45);
  transform: rotate(-18deg);
  pointer-events: none;
}

@keyframes slow-spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--green-deep);
  color: rgba(251, 247, 239, 0.76);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem);
}

.footer-brand .brand {
  margin-bottom: 1rem;
  color: var(--cream);
}

.footer-brand .brand em {
  color: var(--sun);
}

.footer-brand p {
  max-width: 28rem;
  margin: 0;
  color: rgba(251, 247, 239, 0.62);
  line-height: 1.7;
}

.footer-title {
  margin-bottom: 1rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.55rem;
}

.footer-links a,
.footer-email {
  color: rgba(251, 247, 239, 0.78);
  text-decoration: none;
}

.footer-links a:hover,
.footer-email:hover {
  color: var(--sun);
}

.footer-email {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.footer-note {
  margin: 0;
  color: rgba(251, 247, 239, 0.52);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.35rem;
  border-top: 1px solid rgba(251, 247, 239, 0.14);
  color: rgba(251, 247, 239, 0.52);
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

/* ==========================================================================
   404 page
   ========================================================================== */

.page-404 {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding-block: 4rem;
  background:
    radial-gradient(45% 55% at 80% 15%, rgba(238, 191, 95, 0.24), transparent 70%),
    radial-gradient(45% 55% at 8% 90%, rgba(111, 155, 116, 0.2), transparent 70%),
    var(--cream);
  text-align: center;
}

.page-404 .brand {
  margin-bottom: 2.5rem;
}

.page-404 h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.page-404 p {
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: 1.8rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1040px) {
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .area-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .area-card,
  .area-card:nth-child(4),
  .area-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-copy {
    max-width: 38rem;
  }

  .hero-collage {
    max-width: 34rem;
    margin-inline: auto;
    padding-right: 1.25rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading .lead {
    margin-top: 1rem;
  }

  .gallery {
    columns: 2;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li + li {
    border-top: 1px solid rgba(32, 54, 43, 0.07);
  }

  .site-nav a:not(.button) {
    display: block;
    padding: 0.8rem 0.35rem;
    font-size: 1rem;
  }

  .site-nav a:not(.button)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 0.45rem;
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .value-strip ul {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-block: 1.35rem;
  }

  .hero-collage {
    gap: 0.65rem;
    padding-right: 0.5rem;
  }

  .collage-item {
    border-width: 4px;
    border-radius: var(--radius-sm);
  }

  .hero-badge {
    right: 0.15rem;
    bottom: 0.1rem;
    width: 6.6rem;
    height: 6.6rem;
    padding: 0.75rem;
    font-size: 0.58rem;
  }

  .hero-badge svg {
    width: 20px;
    height: 20px;
  }

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

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

  .gallery {
    columns: 1;
  }

  .gallery-tag {
    opacity: 1;
    transform: none;
  }

  .lightbox-stage {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 0.35rem;
    padding-inline: 0.5rem;
  }

  .lightbox-close,
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-image {
    max-height: calc(100dvh - 9.5rem);
  }

  .visit-sun,
  .visit-leaf {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom p + p {
    margin-top: 0.35rem;
  }
}

@media (max-width: 420px) {
  .hero-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
