/* A project-led homepage, using the existing INNOECOFOOD identity and photography. */
body.home-page {
  --home-ink: #143b31;
  --home-green: #176e50;
  --home-blue: #126b91;
  --home-blue-deep: #103e54;
  --home-blue-pale: #edf7fa;
  --home-muted: #597267;
  --home-line: #dce7dd;
  color: var(--home-ink);
  background: #fbfcf9;
}
.home-page .navbar, .home-page .navbar.transparent { background: linear-gradient(180deg, rgba(7, 32, 43, .75), rgba(7, 32, 43, 0)); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home-page .navbar.scrolled { background: rgba(10, 36, 45, .96); box-shadow: 0 4px 24px rgba(3, 24, 32, .18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.home-page :focus-visible { outline: 3px solid #d89d34; outline-offset: 4px; }
.home-page main { overflow: clip; }
.home-shell { width: min(100% - clamp(2.5rem, 8vw, 6rem), 1200px); margin-inline: auto; }
.home-section { padding: clamp(5rem, 8vw, 8rem) 0; }
.home-kicker { display: flex; align-items: center; gap: .75rem; color: var(--home-blue); font-size: .68rem; font-weight: 800; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.home-kicker > span { width: 30px; height: 2px; background: linear-gradient(90deg, #1682aa, #36a77c); flex: none; }
.home-page :is(h1,h2,h3,h4) { font-family: var(--font-heading); }
.home-page :is(.home-hero,.home-section,.home-approach,.home-quote,.home-involved) em { color: #2a8668; font-style: normal; }
.home-btn, .home-text-link { display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem; min-height: 50px; font-size: .84rem; font-weight: 800; text-decoration: none; }
.home-btn { padding: .85rem 1.2rem; border: 1px solid transparent; border-radius: 4px; transition: background .2s, border-color .2s, transform .2s; }
.home-btn:hover { transform: translateY(-2px); }
.home-btn-primary { color: #fff; background: #165b43; border-color: #165b43; }
.home-btn-primary:hover { color: #fff; background: #0e4532; border-color: #0e4532; }
.home-text-link { justify-content: flex-start; gap: .9rem; min-height: 42px; color: #125f80; border-bottom: 1px solid #9cc8d3; }
.home-text-link:hover { color: #0b455e; border-color: currentColor; }
.home-btn span, .home-text-link span { font-size: 1.15rem; line-height: 1; font-weight: 400; }

/* Full-bleed project photographs with accessible slideshow controls. */
.home-hero { padding: 0; background: #edf6f8; }
.home-hero-stage { position: relative; isolation: isolate; overflow: hidden; background: #102d37; }
.home-hero-carousel, .home-hero-shade { position: absolute; inset: 0; }
.home-hero-carousel { z-index: 0; }
.home-hero-carousel .carousel-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.1s ease; }
.home-hero-carousel .carousel-slide.active { opacity: 1; }
.home-hero-shade { z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(7,35,48,.96) 0%, rgba(8,43,52,.8) 42%, rgba(7,35,48,.3) 100%), linear-gradient(0deg, rgba(7,35,48,.5), transparent 68%); }
.home-hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; min-height: clamp(530px, calc(100vh - 115px), 680px); padding-top: var(--nav-h); }
.home-hero-copy { padding: 5rem 0; min-width: 0; }
.home-hero .home-kicker { color: #d3eef2; }
.home-hero .home-kicker > span { background: #8ddbe7; }
.home-hero h1 { max-width: 750px; margin: 1.3rem 0 1.45rem; font-size: clamp(3.3rem, 5.7vw, 5.4rem); line-height: 1.04; font-weight: 700; letter-spacing: -.06em; color: #fff; }
.home-page .home-hero h1 em { display: block; color: #8fd8e9; }
.home-hero-description { max-width: 590px; color: #e4f1f3; font-size: clamp(.98rem, 1.15vw, 1.06rem); line-height: 1.8; }
.home-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.6rem; margin-top: 1.8rem; }
.home-hero-actions .home-btn-primary { background: #08749a; border-color: #08749a; }
.home-hero-actions .home-btn-primary:hover { background: #095d7b; border-color: #095d7b; }
.home-hero-actions .home-text-link { color: #fff; border-color: rgba(231,247,237,.6); }
.home-hero-actions .home-text-link:hover { border-color: #fff; }
.home-carousel-details { align-self: end; justify-self: end; margin: 0 0 3.6rem; color: #fff; }
.home-carousel-label { color: #c7e9ef; font-size: .63rem; font-weight: 800; letter-spacing: .15em; }
.home-carousel-caption { margin-top: .35rem; color: #fff; font-size: .9rem; font-weight: 700; }
.home-carousel-controls { display: flex; align-items: center; gap: .45rem; margin-top: 1rem; }
.home-carousel-count { margin-right: .5rem; color: #e5f3eb; font-size: .72rem; font-weight: 700; letter-spacing: .07em; white-space: nowrap; }
.home-carousel-controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 .65rem; border: 1px solid rgba(255,255,255,.5); border-radius: 3px; background: rgba(11,44,60,.42); color: #fff; font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.home-carousel-controls button:hover { background: #fff; color: #125b77; }
.home-carousel-controls button:disabled { opacity: .55; cursor: default; }
.home-carousel-controls button span { font-size: 1.15rem; line-height: 1; }
.home-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home-stats-shell { position: relative; z-index: 2; }
.home-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid rgba(220,245,248,.32); }
.home-stat { position: relative; padding: 1.55rem 1.5rem 1.75rem 0; }
.home-stat + .home-stat { padding-left: clamp(1.2rem, 3vw, 3rem); }
.home-stat + .home-stat::before { content: ''; position: absolute; left: 0; top: 1.75rem; bottom: 1.8rem; width: 1px; background: rgba(220,245,248,.3); }
.home-stat strong { display: block; color: #fff; font-family: var(--font-heading); font-size: clamp(1.65rem, 2.4vw, 2.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.045em; }
.home-stat span { display: block; margin-top: .45rem; color: #d0e9ec; font-size: .75rem; font-weight: 700; }

/* Shared section headings */
.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; margin-bottom: clamp(2.4rem, 4vw, 3.5rem); }
.home-section-heading h2, .home-approach h2, .home-involved h2 { margin: 1rem 0 0; color: #173d32; font-size: clamp(2.35rem, 4.2vw, 3.9rem); font-weight: 700; line-height: 1.13; letter-spacing: -.05em; }
.home-page :is(.home-hubs, .home-work, .home-partners) .home-section-heading h2 em { color: #176b91; }
.home-heading-side { width: min(100%, 360px); flex: 0 1 360px; }
.home-heading-side p { color: #5c7568; font-size: .94rem; line-height: 1.75; }
.home-heading-side .home-text-link { margin-top: 1rem; }

/* Places */
.home-hub-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.25rem; }
.home-hub-card { min-width: 0; }
.home-hub-link { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 340px; aspect-ratio: .82; overflow: hidden; border-radius: 6px; background: #173d49; color: #fff; }
.home-hub-image { position: absolute; inset: 0; overflow: hidden; }
.home-hub-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,38,50,.08) 8%, rgba(8,42,53,.32) 46%, rgba(6,30,42,.96) 100%); pointer-events: none; }
.home-hub-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.home-hub-link:hover .home-hub-image img, .home-hub-link:focus-visible .home-hub-image img { transform: scale(1.045); }
.home-hub-arrow { display: grid; place-items: center; position: absolute; z-index: 1; right: 1rem; top: 1rem; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(14,55,67,.35); color: #fff; font-size: 1.2rem; transition: background .2s, color .2s; }
.home-hub-link:hover .home-hub-arrow { background: #fff; color: #126b91; }
.home-hub-body { position: relative; width: 100%; padding: 1.5rem; }
.home-hub-place { color: #bce6ed; font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.home-hub-body h3 { color: #fff; margin: .4rem 0 .8rem; font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.2; letter-spacing: -.035em; }
.home-hub-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.home-hub-tags span, .home-hub-tags span:nth-child(2) { padding: .3rem .6rem; border: 1px solid rgba(220,246,248,.38); background: rgba(8,38,49,.5); color: #effcfc; font-size: .67rem; font-weight: 700; border-radius: 3px; }
.home-hub-explore { display: inline-flex; gap: .5rem; margin-top: 1.2rem; color: #d2f2f6; font-size: .78rem; font-weight: 800; }

/* Project approach */
.home-approach { padding: clamp(4rem, 7vw, 7rem) 0; background: #edf6f7; }
.home-approach-layout { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.home-approach-image { position: relative; min-width: 0; }
.home-approach-image img { display: block; width: 100%; height: clamp(340px, 37vw, 470px); object-fit: cover; border-radius: 4px; }
.home-approach-image > span { position: absolute; bottom: 1rem; left: 1rem; padding: .6rem .8rem; background: #fff; color: #1b6888; font-size: .6rem; font-weight: 800; letter-spacing: .12em; }
.home-approach-copy > p:not(.home-kicker) { max-width: 490px; margin-top: 1.35rem; color: #4f6a5c; line-height: 1.8; font-size: .96rem; }
.home-approach-topics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem 1rem; margin: 1.7rem 0 1.2rem; }
.home-approach-topics span { padding: .7rem 0; color: #2d624a; border-bottom: 1px solid #cbdfe2; font-size: .78rem; font-weight: 800; }

/* Work packages */
.home-work { background: #fbfcf9; }
.home-work-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: #d8e7e9; border: 1px solid #d8e7e9; }
.home-work-card { min-width: 0; background: #fff; }
.home-work-card a { display: flex; flex-direction: column; height: 100%; min-height: 235px; padding: clamp(1.3rem, 2.2vw, 2rem); color: inherit; transition: background .2s; }
.home-work-card a:hover { background: #f0f8fa; }
.home-work-top { display: flex; justify-content: space-between; align-items: center; color: #176f93; font-size: .68rem; font-weight: 800; letter-spacing: .11em; }
.home-work-top span:last-child { font-size: 1.15rem; font-weight: 400; }
.home-work-card h3 { margin: 1.1rem 0 .55rem; color: #173e31; font-size: 1.07rem; line-height: 1.35; letter-spacing: -.02em; }
.home-work-card p { color: #637a6d; font-size: .82rem; line-height: 1.65; margin-bottom: 1.1rem; }
.home-work-status { display: flex; justify-content: space-between; gap: .5rem; margin-top: auto; color: #6c8376; font-size: .68rem; font-weight: 700; }
.home-work-status strong { color: #176f93; }
.home-work-track { height: 3px; margin-top: .55rem; background: #e2eef0; }
.home-work-track span { display: block; height: 100%; background: linear-gradient(90deg, #177da4, #39a178); }

/* Quote and editorial cards */
.home-quote { background: linear-gradient(110deg, #103d53, #15564f); }
.home-quote-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 300px; }
.home-quote-copy { display: flex; flex-direction: column; justify-content: center; padding: 3.5rem 3rem 3.5rem 0; }
.home-quote .home-kicker { color: #b8e2e6; }
.home-quote blockquote { margin: 1.3rem 0; color: #fff; font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.25; }
.home-quote-source { color: #b8d4c0; font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.home-quote-copy .home-text-link { align-self: flex-start; margin-top: 1.2rem; }
.home-quote-layout > img { width: 100%; height: 100%; min-height: 300px; max-height: 390px; object-fit: cover; }
.home-news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.3rem; }
.home-page .article-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #e1e9e1; border-radius: 4px; box-shadow: none; background: #fff; }
.home-page .article-card:hover { transform: none; border-color: #aecdb8; box-shadow: 0 12px 28px rgba(22,62,44,.07); }
.home-page .article-card-img { aspect-ratio: 1.55; background: #eaf2eb; overflow: hidden; }
.home-page .article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.home-page .article-card-img img[src*="event-54th-wefta"], .home-page .article-card-img img[src*="securefood-logo"] { object-fit: contain; }
.home-page .article-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.45rem; }
.home-page .article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; color: #789082; font-size: .71rem; font-weight: 700; }
.home-page .article-meta .badge { padding: .25rem .5rem; border: 0; border-radius: 2px; background: #e6f3f8; color: #176b8c; font-size: .64rem; }
.home-page .article-card h3 { margin: .85rem 0 .7rem; color: #173e31; font-size: 1.08rem; line-height: 1.42; }
.home-page .article-excerpt { color: #63796d; font-size: .85rem; line-height: 1.65; }
.home-page .article-card .read-more { display: inline-flex; margin-top: auto; padding-top: 1.25rem; color: #126b91; font-size: .78rem; }

/* Partner marks remain original assets. */
.home-partners { background: #eef6f7; }
.home-partner-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1px; border: 1px solid #d6e6e8; background: #d6e6e8; }
.home-partner { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; gap: .9rem; padding: 1.1rem; background: #fff; }
.home-partner img { width: 100%; max-width: 130px; height: 65px; object-fit: contain; }
.home-partner span { color: #71897b; font-size: .65rem; font-weight: 700; letter-spacing: .05em; }

/* Closing call to action */
.home-involved { background: linear-gradient(115deg, #103d54, #124c43); color: #fff; }
.home-involved-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; padding-block: clamp(4rem,7vw,7rem); }
.home-involved .home-kicker { color: #b8dfc9; }
.home-involved h2 { color: #fff; }
.home-page .home-involved h2 em { color: #9fd7b9; }
.home-involved-copy > p:not(.home-kicker) { max-width: 500px; margin-top: 1.3rem; color: #d2e5d8; font-size: .96rem; line-height: 1.8; }
.home-involved-actions { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: 1.8rem; }
.home-btn-light { background: #fff; border-color: #fff; color: #164b39; }
.home-btn-light:hover { background: #e5f1e8; border-color: #e5f1e8; color: #164b39; }
.home-text-link-light { color: #d4eadb; border-color: #7cae92; }
.home-text-link-light:hover { color: #fff; }
.home-involved-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: .65rem; height: clamp(330px, 34vw, 440px); }
.home-involved-photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 3px; }

/* Keep the shared footer, with spacing and contrast aligned to the homepage. */
.home-page footer { padding: clamp(4rem, 6vw, 6rem) clamp(1.25rem, 4vw, 3rem) 1.75rem; background: #102d37; }
.home-page .footer-grid, .home-page .footer-bottom { max-width: 1200px; }
.home-page .footer-grid { gap: clamp(1.75rem, 4vw, 4rem); border-bottom-color: rgba(224,241,231,.14); }
.home-page .footer-brand p, .home-page .footer-col a { color: rgba(231,242,234,.72); }
.home-page .footer-col h5 { color: #fff; font-size: .72rem; letter-spacing: .1em; }
.home-page .footer-col a:hover { color: #a7ddbc; }
.home-page .footer-bottom p { color: rgba(231,242,234,.58); }

@media (max-width: 960px) {
  .home-hero-layout { gap: 2.25rem; }
  .home-hero h1 { font-size: clamp(3.3rem, 6vw, 4.5rem); }
  .home-hub-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem 1.2rem; }
  .home-hub-link { aspect-ratio: 1.15; min-height: 300px; }
  .home-partner-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .home-shell { width: calc(100% - 2.5rem); }
  .home-hero-layout, .home-approach-layout, .home-involved-layout { grid-template-columns: 1fr; gap: 2.2rem; }
  .home-hero-layout { min-height: 0; gap: 1.5rem; padding: calc(var(--nav-h) + 3.4rem) 0 2.5rem; }
  .home-hero-shade { background: linear-gradient(90deg, rgba(7,35,48,.94), rgba(7,35,48,.72)), linear-gradient(0deg, rgba(7,35,48,.55), transparent); }
  .home-hero-copy { padding: 0; }
  .home-hero h1 { max-width: 600px; font-size: clamp(3rem, 11.5vw, 4.3rem); }
  .home-carousel-details { align-self: auto; justify-self: start; margin: 0; }
  .home-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-stat { padding: 1.3rem 1rem 1.3rem 0; }
  .home-stat + .home-stat { padding-left: 1.2rem; }
  .home-stat:nth-child(3) { padding-left: 0; border-top: 1px solid rgba(220,245,248,.3); }
  .home-stat:nth-child(3)::before { display: none; }
  .home-stat:nth-child(4) { border-top: 1px solid rgba(220,245,248,.3); }
  .home-section-heading { display: block; }
  .home-heading-side { width: 100%; margin-top: 1.25rem; }
  .home-section-heading > .home-text-link { margin-top: 1rem; }
  .home-section-heading h2, .home-approach h2, .home-involved h2 { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .home-hub-grid { gap: 1.7rem .9rem; }
  .home-hub-link { aspect-ratio: .85; min-height: 280px; }
  .home-hub-body { padding: 1.15rem; }
  .home-hub-body h3 { font-size: 1.15rem; }
  .home-hub-tags span { font-size: .62rem; }
  .home-approach-image img { height: clamp(270px, 75vw, 420px); }
  .home-work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-work-card a { min-height: 235px; padding: 1.15rem; }
  .home-work-card h3 { font-size: .98rem; }
  .home-quote-layout { grid-template-columns: 1fr; }
  .home-quote-copy { padding: calc(var(--nav-h) + 3.4rem) 0 2.5rem; }
  .home-quote-layout > img { height: 230px; min-height: 0; margin-bottom: 2.5rem; }
  .home-news-grid { grid-template-columns: 1fr; }
  .home-partner-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-partner { min-height: 135px; }
  .home-involved-photos { height: clamp(280px,80vw,400px); }
}
@media (max-width: 390px) {
  .home-hero h1 { font-size: clamp(2.65rem, 12vw, 3rem); }
  .home-hub-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .home-hub-link { aspect-ratio: 1.15; min-height: 280px; }
  .home-work-grid { grid-template-columns: 1fr; }
  .home-work-card a { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
