/* Tsholetsa Disability Care Centre — site styles
   Brand palette taken from the logo: green, amber and brown. */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --green: #0f9321;
  --green-deep: #0b7a1a;
  --green-soft: #e8f6ea;
  --amber: #fdac01;
  --amber-soft: #fff4d6;
  --brown: #6b2e07;
  --ink: #1c2a1f;
  --muted: #5b6b5e;
  --line: #e4eae1;
  --bg: #fbfcf8;
  --surface: #ffffff;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(28, 42, 31, 0.06);
  --shadow-md: 0 14px 40px rgba(28, 42, 31, 0.1);
  --shadow-lg: 0 24px 60px rgba(28, 42, 31, 0.16);
  --container: 1180px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow i,
.eyebrow svg {
  width: 16px;
  height: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn svg,
.btn i {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 147, 33, 0.3);
}

.btn-primary:hover {
  background: var(--green-deep);
  color: #fff;
}

.btn-amber {
  background: var(--amber);
  color: var(--brown);
  box-shadow: 0 10px 24px rgba(253, 172, 1, 0.35);
}

.btn-amber:hover {
  color: var(--brown);
  background: #ffbc2a;
}

.btn-outline {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 52px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-deep);
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: var(--green-soft);
  color: var(--green-deep);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--green-deep);
  background: var(--green-soft);
}

.nav-links .nav-cta {
  margin-left: 8px;
  background: var(--green);
  color: #fff;
}

.nav-links .nav-cta:hover {
  background: var(--green-deep);
  color: #fff;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-deep);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg,
.nav-toggle i {
  width: 24px;
  height: 24px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 9vw, 120px);
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(253, 172, 1, 0.16), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(15, 147, 33, 0.14), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 span {
  color: var(--green);
}

.hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badges i,
.hero-badges svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.hero-visual {
  position: relative;
}

.hero-photo {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.3;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s ease;
}

.hero-visual:hover .hero-photo img {
  transform: scale(1.1);
}

.hero-card {
  position: absolute;
  left: -24px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}

.hero-card .icon-chip {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.hero-card strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-blob {
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  right: -60px;
  top: -50px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.35;
  filter: blur(2px);
  animation: float 9s ease-in-out infinite reverse;
}

/* ---------- Hero slider ---------- */

.hero-slider {
  position: relative;
}

.slides {
  display: grid;
}

.slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.slide.is-active .slide-copy > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.slide.is-active .slide-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.slide.is-active .slide-copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.slide.is-active .slide-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.slide.is-active .slide-copy > :nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
}

.dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfd9cc;
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease;
}

.dot[aria-current="true"] {
  width: 36px;
  background: var(--green);
}

.dot:hover {
  background: var(--amber);
}

.arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--green-deep);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.arrow-btn svg {
  width: 22px;
  height: 22px;
}

.arrow-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: scale(1.06);
}

/* ---------- Credit ---------- */

.credit a {
  color: var(--amber);
  font-weight: 700;
}

.credit a:hover {
  color: #fff;
}

/* ---------- Icon chips ---------- */

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-deep);
  flex-shrink: 0;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.icon-chip i,
.icon-chip svg {
  width: 26px;
  height: 26px;
}

.icon-chip.amber {
  background: var(--amber-soft);
  color: var(--brown);
}

/* ---------- Stats strip ---------- */

.stats {
  padding: 56px 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--surface);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.stat {
  text-align: center;
  padding: 8px;
}

.stat strong {
  display: block;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Cards ---------- */

.grid-3,
.grid-2 {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 147, 33, 0.25);
}

.card:hover .icon-chip {
  background: var(--green);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.card h3 {
  margin-top: 22px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 700;
}

.card-link svg,
.card-link i {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

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

/* ---------- Split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.split p {
  color: var(--muted);
  font-size: 1.05rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
}

.check-list i,
.check-list svg {
  width: 22px;
  height: 22px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.photo-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 4;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(28, 42, 31, 0.35));
  pointer-events: none;
}

/* ---------- Programme cards ---------- */

.programme {
  position: relative;
  overflow: hidden;
}

.programme::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--amber));
  transition: width 0.45s ease;
}

.programme:hover::before {
  width: 100%;
}

.programme .num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(28, 42, 31, 0.25);
}

/* ---------- Pillars band ---------- */

.band {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 60%, #0a5f15 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.band::before,
.band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.band::before {
  width: 420px;
  height: 420px;
  left: -140px;
  bottom: -180px;
}

.band::after {
  width: 260px;
  height: 260px;
  right: -80px;
  top: -90px;
  background: rgba(253, 172, 1, 0.22);
}

.band h2,
.band h3 {
  color: #fff;
}

.band p {
  color: rgba(255, 255, 255, 0.88);
}

.band .section-head p {
  color: rgba(255, 255, 255, 0.85);
}

.band .card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  color: #fff;
}

.band .card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.band .card p {
  color: rgba(255, 255, 255, 0.85);
}

.band .card .icon-chip {
  background: #fff;
  color: var(--green-deep);
}

.band .card:hover .icon-chip {
  background: var(--amber);
  color: var(--brown);
}

.band .container {
  position: relative;
  z-index: 1;
}

/* ---------- Quote ---------- */

.quote {
  background: var(--surface);
  border-radius: 26px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  border-left: 6px solid var(--amber);
}

.quote blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
}

.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */

.cta {
  padding: clamp(56px, 7vw, 84px) 0;
}

.cta-box {
  border-radius: 28px;
  padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(120deg, var(--amber-soft), #ffffff 60%, var(--green-soft));
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-box h2 {
  margin-bottom: 8px;
}

.cta-box p {
  color: var(--muted);
  margin: 0;
  max-width: 560px;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(253, 172, 1, 0.18), transparent 60%),
    linear-gradient(180deg, var(--green-soft), var(--bg));
  text-align: left;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0;
}

.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}

.crumbs a {
  color: var(--muted);
}

/* ---------- Timeline (about) ---------- */

.timeline {
  position: relative;
  display: grid;
  gap: 28px;
  padding-left: 34px;
  margin: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--green), var(--amber));
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--green);
}

.timeline strong {
  display: block;
  color: var(--green-deep);
  font-size: 1.05rem;
}

.timeline p {
  color: var(--muted);
  margin: 4px 0 0;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery figure:hover img {
  transform: scale(1.08);
}

.gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  transform: translateY(160%);
  transition: transform 0.4s ease;
}

.gallery figure:hover figcaption {
  transform: translateY(0);
}

.gallery figure.wide {
  grid-column: span 2;
  aspect-ratio: auto;
}

/* ---------- Gallery filters and lightbox ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 40px;
}

.filter-btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

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

.gallery figure {
  cursor: zoom-in;
}

.gallery figure[hidden] {
  display: none;
}

.lightbox {
  width: min(1100px, 94vw);
  max-width: 94vw;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(14, 24, 16, 0.88);
}

.lightbox-inner {
  position: relative;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  margin: 14px 0 0;
  text-align: center;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.25s ease;
}

.lightbox-close:hover {
  background: var(--amber);
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
}

/* ---------- Values ---------- */

.value {
  text-align: center;
}

.value .icon-chip {
  margin: 0 auto 18px;
}

.value p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.info-stack {
  display: grid;
  gap: 18px;
}

.info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.info-item h3 {
  font-size: 1.02rem;
  margin: 0 0 4px;
}

.info-item p,
.info-item a {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.info-item a:hover {
  color: var(--green-deep);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}

.form-card h2 {
  font-size: 1.6rem;
}

.form-card > p {
  color: var(--muted);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-weight: 700;
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fcfdfb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 147, 33, 0.15);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.map-wrap {
  margin-top: 56px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

.map-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
}

.map-caption p {
  margin: 0;
  font-weight: 600;
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 147, 33, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--green-deep);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 680px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* Honeypot field for the contact form: off-screen, so people never see it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note.is-success {
  color: var(--green-deep);
  font-weight: 700;
}

.form-note.is-error {
  color: #b42318;
  font-weight: 700;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 72px 0 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0 0 12px;
}

.footer-brand img {
  width: 160px;
  background: #fff;
  padding: 10px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: var(--amber);
  text-decoration: none;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact i,
.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal {
  transition-duration: 0.9s;
}

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

.marquee {
  overflow: hidden;
  background: var(--amber);
  color: var(--brown);
  padding: 14px 0;
  font-weight: 800;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 32s linear infinite;
  padding-left: 40px;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
}

.marquee-track span::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brown);
  opacity: 0.6;
}

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

/* ---------- Responsive ---------- */

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

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  /* the wrapper has no layout of its own here, so it must not add a flex gap */
  .nav-wrap > nav {
    display: contents;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links a {
    padding: 10px 10px;
    font-size: 0.9rem;
  }

  /* backdrop-filter would make the fixed mobile menu position against the header */
  .site-header {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
  }

  .nav-links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-links .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .slide,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }

  .hero-card {
    left: 12px;
  }

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

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

  .brand-text span {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 68px;
  }

  .brand img {
    height: 44px;
  }

  .brand-text strong {
    font-size: 1.02rem;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .gallery figure.wide {
    grid-column: span 2;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats {
    padding-top: 40px;
  }

  .stats-grid {
    padding: 20px;
  }

  .hero-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: -40px;
    margin-left: 16px;
    margin-right: 16px;
  }

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

  .map-wrap iframe {
    height: 320px;
  }

  .card {
    padding: 26px;
  }
}

@media (max-width: 380px) {
  .container {
    width: calc(100% - 28px);
  }

  h1 {
    font-size: 1.85rem;
  }

  .hero-actions .btn,
  .cta-box .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
  }

  .stat strong {
    font-size: 1.5rem;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .slider-controls {
    gap: 12px;
  }

  .arrow-btn {
    width: 46px;
    height: 46px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
