/* ═══════════════════════════════════════════════════
   CASINA FARMS — style.css
   Fonts: Alta (headings) → Bebas Neue fallback
          Glacial Indifference (body)
   Phase 1 colours:
     Deep forest green : #143d2c
     Terracotta        : #bb643a
     Text cream        : #f0ede4
═══════════════════════════════════════════════════ */

/* ── GLACIAL INDIFFERENCE via CDN fallback ── */
@font-face {
  font-family: 'Glacial Indifference';
  src: url('https://cdn.jsdelivr.net/gh/bBoxType/Fontello/fonts/GlacialIndifference-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Alta';
  src: url('./fonts/Alta_regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Alta';
  src: url('./fonts/Alta_light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Alta';
  src: url('./fonts/Alta_caption.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

/* ── CSS VARIABLES ── */
:root {
  --green-dark:    #143d2c;
  --green-mid:     #1e5c3a;
  --green-light:   #2d7a4f;
  --terracotta:    #bb643a;
  --terracotta-lt: #d07848;
  --cream:         #f5f0e8;
  --cream-panel:   rgba(245, 240, 228, 0.88);
  --text-dark:     #1a2e22;
  --text-muted:    #4a6a55;
  --text-light:    #f0ede4;
  --gold:          #d4a520;

  --font-heading: 'Alta';
  --font-body:    'Glacial Indifference', 'Trebuchet MS', sans-serif;

  --radius:   6px;
  --shadow:   0 4px 24px rgba(0,0,0,.18);
  --trans:    .25s ease;
  --max-w:    1200px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--trans), color var(--trans),
              border-color var(--trans), transform .15s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}
.btn-primary:hover { background: var(--terracotta-lt); border-color: var(--terracotta-lt); }

.btn-secondary {
  background: transparent;
  color: var(--terracotta);
  border-color: var(--terracotta);
}
.btn-secondary:hover { background: var(--terracotta); color: #fff; }

.btn-secondary-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-secondary-light:hover { background: rgba(255,255,255,.15); }

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

.btn-order {
  background: var(--terracotta);
  color: #fff !important;
  border-color: var(--terracotta);
  padding: .55rem 1.3rem;
}
.btn-order:hover { background: var(--terracotta-lt); }

.btn-full { width: 100%; text-align: center; }

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── SECTION SHARED ── */
.section {
  padding: 90px 0;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .6rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: .04em;
  color: var(--green-dark);
  margin-bottom: 2.5rem;
  line-height: 1.1;
}
.section-lead {
  max-width: 640px;
  margin: -1.5rem auto 2.5rem;
  text-align: center;
  color: var(--text-muted);
}

/* ══════════════════════════════════
   HEADER / NAV
══════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--green-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow var(--trans);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0;
}
.logo-badge img {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: .85rem;
  letter-spacing: .12em;
  color: var(--text-light);
  text-transform: uppercase;
  opacity: .8;
  transition: opacity var(--trans), color var(--trans);
}
.nav-links a:hover { opacity: 1; color: var(--gold); }

@media (max-width: 768px) {

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    right: 20px;
    background: #111;
    flex-direction: column;
    width: 220px;
    padding: 20px;
    border-radius: 12px;
    display: none;
    gap: 16px;
  }

  .nav-links.active {
    display: flex;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════
   HERO SLIDESHOW
══════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 70px; /* nav height */
  
}

.slides-container {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }

.slide-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
}
.dot.active {
  background: var(--terracotta);
  transform: scale(1.25);
}

/* Hero content panel */
.hero-panel {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 440px;
  max-width: 55vw;
  background: var(--cream-panel);
  padding: 2.8rem 3rem;
  z-index: 10;
  backdrop-filter: blur(2px);
  animation: panelIn .9s cubic-bezier(.22,.8,.36,1) both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-45%) translateX(-40px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: .05em;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 1.2rem;
}

.hero-taglines {
  margin-bottom: 2rem;
}
.hero-taglines li {
  font-family: var(--font-body);
  font-size: .95rem;
  color: #2a4a35;
  line-height: 1.9;
}
.hero-taglines strong { font-weight: 700; }

.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ══════════════════════════════════
   INTRO BAND
══════════════════════════════════ */
.intro-band {
  background: var(--green-dark);
  color: var(--text-light);
  text-align: center;
  padding: 1.1rem 2rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* ══════════════════════════════════
   OUR STORY
══════════════════════════════════ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.story-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-text p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}
.story-text p:last-of-type { margin-bottom: 1.8rem; }
.highlight { color: var(--terracotta); font-style: normal; }

/* ══════════════════════════════════
   MISSION / VISION / VALUES
══════════════════════════════════ */
.mvv-section {
  background: var(--green-dark);
  color: var(--text-light);
}
.mvv-section .section-tag { color: var(--gold); }
.mvv-section .section-title { color: var(--text-light); }

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.mvv-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: background var(--trans), transform var(--trans);
}
.mvv-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}
.mvv-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.mvv-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: .06em;
  color: var(--gold);
  margin-bottom: .8rem;
}
.mvv-card p, .values-list li {
  font-size: .92rem;
  color: rgba(240,237,228,.8);
  line-height: 1.7;
}
.values-list { margin-top: .5rem; }
.values-list li { padding: .2rem 0; }
.values-list strong { color: var(--gold); margin-right: .4rem; }

/* ══════════════════════════════════
   PROJECTS
══════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  transition: transform var(--trans), box-shadow var(--trans);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.15);
}
.project-img {
  position: relative;
  aspect-ratio: 16/8;
  overflow: hidden;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-img img { transform: scale(1.04); }
.project-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--terracotta);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 20px;
}
.project-body { padding: 1.8rem 2rem 2rem; }
.project-body h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--green-dark);
  margin-bottom: .8rem;
}
.project-body p { color: var(--text-muted); margin-bottom: 1rem; font-size: .93rem; }
.project-points { margin-bottom: 1.5rem; }
.project-points li {
  font-size: .88rem;
  color: var(--text-muted);
  padding: .3rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* ══════════════════════════════════
   PRODUCTS
══════════════════════════════════ */
.products-section { background: var(--cream); }

.products-lead {
  max-width: 620px;
  color: var(--text-muted);
  margin: -1.5rem 0 2.5rem;
  font-size: .96rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Push 4th & 5th cards to centre on last row */
.products-grid .product-card:nth-child(4) { grid-column: 1 / 2; }
.products-grid .product-card:nth-child(5) { grid-column: 2 / 3; }

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid .product-card:nth-child(4),
  .products-grid .product-card:nth-child(5) { grid-column: auto; }
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.09);
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,0,0,.14);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-category-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--green-dark);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .28rem .75rem;
  border-radius: 20px;
}

.product-body {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: .04em;
  color: var(--green-dark);
  margin-bottom: .45rem;
}
.product-body > p {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

.product-sizes {
  list-style: none;
  border-top: 1px solid rgba(0,0,0,.07);
  border-bottom: 1px solid rgba(0,0,0,.07);
  margin-bottom: 1.1rem;
  padding: .4rem 0;
}
.product-sizes li {
  display: flex;
  justify-content: space-between;
  font-size: .83rem;
  color: var(--text-muted);
  padding: .3rem 0;
}
.product-sizes li span:last-child {
  font-weight: 700;
  color: var(--green-dark);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: auto;
}
.product-price {
  font-size: .88rem;
  color: var(--text-muted);
}
.product-price strong {
  font-size: 1.05rem;
  color: var(--terracotta);
}

/* ══════════════════════════════════
   GALLERY / ALBUM
══════════════════════════════════ */
.gallery-section { background: var(--green-dark); }
.gallery-section .section-tag  { color: var(--gold); }
.gallery-section .section-title { color: var(--text-light); }

.gallery-lead {
  color: rgba(240,237,228,.65);
  margin: -1.5rem 0 2rem;
  font-size: .95rem;
}

/* Filter pills */
.gallery-filters {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.gallery-filter {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .45rem 1.1rem;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,.25);
  background: transparent;
  color: rgba(240,237,228,.7);
  cursor: pointer;
  transition: background var(--trans), color var(--trans),
              border-color var(--trans);
}
.gallery-filter:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.gallery-filter.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

/* Masonry-style grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: rgba(255,255,255,.06);
}
.gallery-item.tall  { grid-row: span 2; }
.gallery-item.wide  { grid-column: span 2; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.07); }

/* Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,61,44,.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--trans);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  gap: .3rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-caption {
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.gallery-tag-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Hidden / filtered items */
.gallery-item.hidden {
  display: none;
}

/* Load More */
.gallery-load-more {
  text-align: center;
  margin-top: 2.5rem;
}
.gallery-load-more .btn {
  border-color: rgba(255,255,255,.3);
  color: rgba(240,237,228,.8);
}
.gallery-load-more .btn:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,14,.95);
  z-index: 300;
  align-items: center;
  justify-content: center;
  animation: lbFadeIn .25s ease;
}
.lightbox.open { display: flex; }

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-content {
  max-width: 88vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
#lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  animation: lbZoomIn .3s cubic-bezier(.22,.8,.36,1);
}
@keyframes lbZoomIn {
  from { transform: scale(.94); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
}
#lightbox-caption {
  font-size: .9rem;
  color: rgba(240,237,228,.8);
}
#lightbox-counter {
  font-size: .78rem;
  color: rgba(240,237,228,.45);
  flex-shrink: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.lightbox-close { top: 20px; right: 20px; font-size: .9rem; }
.lightbox-prev  { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 18px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover { background: var(--terracotta); transform: rotate(90deg); }
.lightbox-prev:hover  { background: rgba(255,255,255,.2); transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover  { background: rgba(255,255,255,.2); transform: translateY(-50%) translateX(3px); }

/* Responsive gallery */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item.wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery-item.tall { grid-row: span 1; }
  .lightbox-prev, .lightbox-next { display: none; }
}

/* ══════════════════════════════════
   RESOURCES
══════════════════════════════════ */
.resources-section { background: #fff; }
.resources-section .section-title,
.resources-section .section-tag { text-align: center; display: block; }
.resources-section .section-lead { text-align: center; }

.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.resource-card {
  background: var(--cream);
  border: 1px solid rgba(20,61,44,.1);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--trans), transform var(--trans);
}
.resource-card:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.resource-icon { font-size: 2rem; margin-bottom: .8rem; }
.resource-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: .05em;
  color: var(--green-dark);
  margin-bottom: .5rem;
}
.resource-card p { font-size: .88rem; color: var(--text-muted); margin-bottom: 1.2rem; }

/* ══════════════════════════════════
   PUBLICATIONS / BLOG
══════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform var(--trans), box-shadow var(--trans);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
}
.blog-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-body { padding: 1.4rem 1.6rem 1.8rem; }
.blog-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(187,100,58,.1);
  padding: .2rem .7rem;
  border-radius: 20px;
  margin-bottom: .7rem;
}
.blog-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: .04em;
  color: var(--green-dark);
  margin-bottom: .5rem;
}
.blog-body p { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }
.read-more {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--terracotta);
  text-transform: uppercase;
  transition: color var(--trans);
}
.read-more:hover { color: var(--green-dark); }

/* ── SDGs ── */
.sdg-lead {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
  max-width: 640px;
}
.sdg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}
.sdg-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.2rem 1rem;
  border-top: 4px solid transparent;
}
.sdg-card--1  { border-top-color: #e5243b; }
.sdg-card--2  { border-top-color: #dda63a; }
.sdg-card--3  { border-top-color: #4c9f38; }
.sdg-card--13 { border-top-color: #3f7e44; }
.sdg-card--14 { border-top-color: #0a97d9; }
.sdg-card--15 { border-top-color: #56c02b; }
.sdg-card--17 { border-top-color: #19486a; }
.sdg-number { font-size: 11px; font-weight: 600; color: #888; letter-spacing: .06em; }
.sdg-icon { font-size: 28px; margin: .4rem 0; }
.sdg-card h3 { font-size: 14px; margin: .3rem 0 .5rem; }
.sdg-card p  { font-size: 13px; color: #666; line-height: 1.5; margin: 0; }

/* ══════════════════════════════════
   PARTNERS
══════════════════════════════════ */
.partners-section {
  background: var(--green-dark);
  padding: 50px 0;
}
.partners-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terracotta);
  text-align: center;
  margin-bottom: 2rem;
}
.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.partner-logo img {
  height: 50px;
  transition: opacity var(--trans);
}
.partner-logo img:hover { opacity: 1; }

/* ══════════════════════════════════
   CTA BAND
══════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-dark) 100%);
  padding: 70px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: .04em;
  color: var(--text-light);
  margin-bottom: .5rem;
}
.cta-text p { color: rgba(240,237,228,.7); max-width: 520px; }
.cta-actions { display: flex; gap: 1rem; flex-shrink: 0; flex-wrap: wrap; }

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: .04em;
  color: var(--green-dark);
  margin-bottom: .8rem;
}
.contact-info > p { color: var(--text-muted); margin-bottom: 1.8rem; }
.contact-items { margin-bottom: 1.8rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
  font-size: .92rem;
  color: var(--text-muted);
}
.contact-icon { font-size: 1.1rem; }

.social-links { display: flex; gap: .7rem; margin-top: 1rem; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  transition: background var(--trans), transform var(--trans);
}
.social-link:hover { background: var(--terracotta); transform: translateY(-2px); }

/* Contact form */
.contact-form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid rgba(20,61,44,.2);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--text-dark);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(20,61,44,.12);
}
.form-group textarea { resize: vertical; }
.form-success {
  display: none;
  margin-top: 1rem;
  padding: .8rem 1rem;
  background: rgba(45, 122, 79, .1);
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--green-mid);
  text-align: center;
}
.form-success.visible { display: block; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.site-footer { background: var(--green-dark); color: rgba(240,237,228,.75); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.8fr;
  gap: 3rem;
  padding-top: 60px;
  padding-bottom: 40px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
}
.footer-brand .footer-logo img {
  width: 44px; height: 44px;
  border-radius: 50%;
}
.footer-brand .footer-logo span {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: .08em;
  color: var(--text-light);
}
.footer-brand > p { font-size: .88rem; line-height: 1.7; margin-bottom: 1.2rem; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a {
  font-size: .88rem;
  color: rgba(240,237,228,.65);
  transition: color var(--trans);
}
.footer-col ul a:hover { color: var(--gold); }

.footer-newsletter p { font-size: .88rem; margin-bottom: 1rem; }
.newsletter-form { display: flex; flex-direction: column; gap: .6rem; }
.newsletter-form input {
  padding: .6rem .9rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: .88rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom p { font-size: .78rem; color: rgba(240,237,228,.45); }

/* ══════════════════════════════════
   SCROLL REVEAL ANIMATION
══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1024px) {
  .story-grid         { grid-template-columns: 1fr; gap: 2.5rem; }
  .mvv-grid           { grid-template-columns: 1fr 1fr; }
  .resources-grid     { grid-template-columns: 1fr 1fr; }
  .footer-inner       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--green-dark);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .9rem 2rem; display: block; width: 100%; }
  .nav-toggle  { display: flex; }
  .btn-order   { display: none; }

  .hero-panel {
    max-width: 90vw;
    left: 5%;
    padding: 1.8rem;
    top: auto;
    bottom: 60px;
    transform: none;
    animation: none;
  }

  .projects-grid  { grid-template-columns: 1fr; }
  .products-grid  { grid-template-columns: 1fr 1fr; }
  .blog-grid      { grid-template-columns: 1fr; }
  .mvv-grid       { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .cta-inner      { flex-direction: column; text-align: center; }
  .cta-actions    { justify-content: center; }
  .footer-inner   { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .products-grid  { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .hero-title     { font-size: 2.4rem; }
}
