﻿/* Бони Холдинг — 35 години
   Визуална идентичност по брошурата: тъмнозелено, кремаво, червено, светлозелено, корал.
   Шрифтове: Muller Next Wide (основен) и Muller Next (менюта) — същите като на boniholding.com. */

@font-face {
  font-family: "Muller Next Wide";
  src: url("../fonts/MullerNextWide-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Muller Next Wide";
  src: url("../fonts/MullerNextWide-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Muller Next";
  src: url("../fonts/MullerNext-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Muller Next";
  src: url("../fonts/MullerNext-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Muller Next";
  src: url("../fonts/MullerNext-ExtraBold.woff2") format("woff2");
  font-weight: 800 900; font-style: normal; font-display: swap;
}

:root {
  --green: #005e48;
  --green-deep: #004d3b;
  --cream: #feede3;
  --paper: #fff8f3;
  --red: #b00f1e;
  --light-green: #85c882;
  --coral: #f48480;
  --white: #ffffff;

  --font: "Muller Next Wide", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-narrow: "Muller Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --leaf: 22px; /* радиус на "листовите" ъгли */
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(15px, 0.9vw + 10px, 17px);
  line-height: 1.6;
  color: var(--green);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
sup { font-size: .62em; line-height: 0; }
sup a { color: inherit; text-decoration: none; }
sup a:hover { text-decoration: underline; }
a { color: inherit; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--green); padding: 10px 16px; border-radius: 0 0 12px 12px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green);
  color: var(--cream);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 40, 30, .25); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand img { height: 34px; width: auto; }

.nav-toggle {
  display: none;
  background: none; border: 1.5px solid var(--light-green); color: var(--cream);
  font: 500 13px/1 var(--font-narrow); letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 12px 0 12px 0; cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; gap: clamp(12px, 1.6vw, 26px); margin: 0; padding: 0; }
.site-nav a {
  color: var(--cream); text-decoration: none; font-family: var(--font-narrow); font-weight: 500; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 0; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--light-green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--green); border-top: 1px solid rgba(133, 200, 130, .3);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .site-nav.is-open { max-height: 480px; box-shadow: 0 16px 24px rgba(0, 40, 30, .25); }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; }
  .site-nav a { display: block; padding: 12px 0; font-size: 14px; }
  .site-nav a::after { display: none; }
}

/* ---------- Sections ---------- */
/* Всяка секция заема поне един екран (без хедъра), съдържанието се центрира вертикално.
   На по-ниски екрани секцията просто става по-висока от екрана и се скролва. */
.section {
  position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0; scroll-margin-top: 72px;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex; flex-direction: column; justify-content: center;
}
.section--green { background: var(--green); color: var(--cream); }
.section--cream { background: var(--cream); color: var(--green); }

.deco-flower { position: absolute; pointer-events: none; z-index: 0; width: clamp(220px, 26vw, 360px); }
.deco-flower--tr { top: clamp(-120px, -8vw, -60px); right: clamp(-120px, -8vw, -60px); }
.section--cream .deco-flower,
.site-footer .deco-flower { opacity: .33; }
.section--green .deco-flower { opacity: .16; }

.h-title {
  font-weight: 500; text-transform: uppercase; letter-spacing: .005em;
  font-size: clamp(24px, 2.9vw, 40px); line-height: 1.18; margin: 0 0 .9em;
}
.h-sub {
  font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(14px, 1.2vw, 17px); margin: 0 0 1.4em;
}
.text-light-green { color: var(--light-green); }
.text-red { color: var(--red); }
.text-coral { color: var(--coral); }

.footnotes {
  margin-top: clamp(40px, 5vw, 64px); font-size: 13px; line-height: 1.5; opacity: .9;
  list-style: none; padding: 0;
}
.footnotes li { margin: 0 0 4px; }
.footnotes li:target { color: var(--light-green); }
.section--cream .footnotes li:target { color: var(--red); }

/* leaf-shaped boxes */
.leaf { border-radius: var(--leaf) 0 var(--leaf) 0; }
.leaf-lg { border-radius: 36px 0 36px 0; }

/* ---------- Hero ---------- */
.hero { background: var(--green); color: var(--cream); position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 10vw, 140px); }
.hero {
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero .container { display: flex; flex-direction: column; justify-content: center; }
.hero__num {
  font-weight: 500; font-size: clamp(170px, 30vw, 420px); line-height: .8; letter-spacing: -.02em;
  margin: 0; display: block;
}
.hero__word {
  font-weight: 500; text-transform: uppercase; font-size: clamp(56px, 10vw, 140px); line-height: 1;
  margin: .12em 0 .35em; display: block; letter-spacing: -.005em;
}
.hero__tag {
  border-left: 3px solid var(--light-green); padding: 4px 0 4px 22px;
  font-weight: 500; text-transform: uppercase; font-size: clamp(18px, 2.2vw, 30px); line-height: 1.25; margin: 0;
  max-width: 18em;
}
.hero__flower {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(340px, 52vw, 760px);
  right: clamp(-260px, -12vw, -80px); bottom: clamp(-260px, -14vw, -90px);
  animation: spin 160s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  color: var(--light-green); text-decoration: none; font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero__scroll span { width: 2px; height: 34px; background: var(--light-green); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.box-outline { border: 2.5px solid var(--green); padding: 20px 24px; font-weight: 700; }
.intro-grid .lead-bold { font-weight: 700; margin-top: 1.2em; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px); margin-top: clamp(56px, 7vw, 96px); }
.fact .fact__num { color: var(--coral); font-weight: 500; font-size: clamp(34px, 3.6vw, 50px); line-height: 1; margin: 0 0 .4em; letter-spacing: -.01em; white-space: nowrap; }
.fact p { font-size: .95em; }

/* ---------- Big numbers ---------- */
.numbers-card {
  background: var(--cream); color: var(--green); padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: end;
}
.numbers-card .h-title { grid-column: 1 / -1; margin-bottom: .2em; }
.num-big { font-weight: 500; font-size: clamp(48px, 6vw, 84px); line-height: .95; letter-spacing: -.02em; margin: 0 0 .15em; white-space: nowrap; }
.num-mid { font-weight: 500; font-size: clamp(26px, 2.7vw, 40px); line-height: 1; margin: 0 0 .35em; white-space: nowrap; }
.num-col { border-left: 3px solid var(--light-green); padding-left: clamp(16px, 2vw, 24px); align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.num-col--first { border-left: 0; padding-left: 0; }
.num-label { margin: 0; font-size: .95em; }
.pig-meter { display: grid; grid-template-columns: repeat(5, minmax(0, 40px)); gap: 10px 8px; margin: 4px 0 18px; }
.pig-meter img { width: 100%; height: auto; }
.pig-meter img.off { opacity: .22; }
.households-icon { width: 64px; margin: 2px 0 16px; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-top: clamp(48px, 6vw, 80px); }

/* ---------- Learned / Why ---------- */
.lw-head { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 0 16px; margin-bottom: 8px; }
.lw-head .h-sub { margin: 0 0 1em; }
.lw-head .h-sub:last-child { grid-column: 3; }
.lw-row { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 16px; align-items: center; padding: clamp(18px, 2.4vw, 28px) 0; }
.lw-item h3 {
  display: flex; align-items: center; gap: 12px; margin: 0 0 .5em;
  font-weight: 500; text-transform: uppercase; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.3;
}
.lw-item h3 img { width: 28px; height: auto; flex: none; }
.lw-item p { margin-bottom: .7em; }
.lw-arrow { width: 30px; justify-self: center; transform: translateY(-4px); }
.lw-card {
  border: 2px solid var(--red); background: var(--paper); color: var(--red);
  padding: 18px 22px; line-height: 1.55; font-size: .97em;
}
.section--green .lw-card { background: var(--paper); }
.lw-mobile-label { display: none; }

/* ---------- 650+ ---------- */
.trapeza {
  background: var(--cream); color: var(--green); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 240px;
}
.trapeza__text { padding: clamp(28px, 4vw, 48px); position: relative; z-index: 2; }
.trapeza__text .h-title { margin: 0 0 .2em; font-size: clamp(19px, 2.2vw, 30px); }
.trapeza__yes { color: var(--light-green); font-weight: 500; font-size: clamp(56px, 7.5vw, 104px); line-height: 1; margin: 0; letter-spacing: -.01em; }
.trapeza__art { position: relative; align-self: stretch; min-height: 220px; display: flex; align-items: center; justify-content: center; }
.trapeza__art .fireworks {
  position: absolute; inset: -10% -6% -16% -12%; width: 118%; height: 126%; max-width: none; object-fit: cover; object-position: center;
}
.trapeza__num {
  position: relative; z-index: 2; color: var(--red); font-weight: 700; margin: 0;
  font-size: clamp(88px, 11vw, 160px); line-height: 1; letter-spacing: -.03em;
}
.trapeza__art.is-visible .fireworks { animation: burst 1.4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes burst { from { transform: scale(.75); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Technologies ---------- */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pigs-card { background: var(--cream); color: var(--green); overflow: hidden; position: relative; }
.pigs-card__art { padding-top: 6%; padding-left: 4%; }
.pigs-card__art img { width: 112%; max-width: none; }
.pigs-card h3 {
  margin: 0; padding: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 48px) clamp(32px, 4vw, 48px);
  font-weight: 500; font-size: clamp(28px, 3vw, 46px); line-height: 1.1; text-align: center;
}
.callout-cream { border: 2.5px solid var(--cream); padding: 18px 24px; font-weight: 700; margin-top: 28px; }

/* ---------- Fortress ---------- */
.fortress-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(48px, 6vw, 88px); }
.fortress {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "grey white" "castle black"; gap: 16px; align-items: end;
}
.zone { padding: 14px 18px; font-size: .9em; line-height: 1.45; }
.zone h4 { margin: 0 0 4px; font-weight: 700; text-transform: uppercase; font-size: 1em; letter-spacing: .01em; }
.zone--grey { grid-area: grey; background: var(--light-green); color: var(--green); }
.zone--white { grid-area: white; background: var(--white); border: 2px solid var(--green); color: var(--green); }
.zone--black { grid-area: black; background: var(--green); color: var(--cream); align-self: start; }
.fortress__castle { grid-area: castle; }
.fortress__castle img { width: 100%; max-width: 280px; margin: 0 auto; }

/* ---------- Responsibility ---------- */
.resp-intro { max-width: 60em; }
.resp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 44px); margin-top: 8px; }
.resp-item { border-top: 1px solid rgba(133, 200, 130, .45); padding: 22px 0 36px; }
.resp-item h3 {
  display: flex; gap: 14px; align-items: flex-start; margin: 0 0 .9em;
  font-weight: 500; text-transform: uppercase; font-size: clamp(14px, 1.15vw, 16px); line-height: 1.3;
}
.resp-item h3 img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.resp-item--empty { visibility: hidden; }
.closing {
  margin: clamp(40px, 5vw, 72px) auto 0; max-width: 46em; text-align: center; color: var(--light-green);
  font-weight: 500; text-transform: uppercase; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.35;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); color: var(--green); padding: clamp(56px, 7vw, 96px) 0 32px; position: relative; overflow: hidden; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.footer-logo { width: clamp(180px, 22vw, 260px); }
.footer-text .h-title { margin-bottom: .4em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 18px 0 0; padding: 0; }
.footer-nav a { font-family: var(--font-narrow); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.footer-nav a:hover { color: var(--red); }
.footer-bottom { margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid rgba(0, 94, 72, .2); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Floating action buttons ---------- */
.fab {
  position: fixed; z-index: 40; right: 16px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.fab__btn {
  --size: 48px;
  display: flex; flex-direction: row-reverse; align-items: center;
  height: var(--size); min-width: var(--size); padding: 0 12px;
  border-radius: 20px 0 20px 0;
  background: var(--green); color: var(--cream);
  border: 2px solid var(--light-green);
  box-shadow: 0 6px 18px rgba(0, 40, 30, .28);
  text-decoration: none; white-space: nowrap; overflow: hidden;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease,
              opacity .3s ease, transform .3s ease, visibility .3s;
}
.fab__icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.fab__label {
  display: inline-flex; align-items: baseline; gap: 8px;
  max-width: 0; opacity: 0; margin-right: 0; overflow: hidden;
  font-family: var(--font-narrow); font-weight: 500; font-size: 15px; letter-spacing: .02em;
  transition: max-width .35s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, margin-right .35s ease;
}
.fab__label small { font-size: 12px; opacity: .75; font-weight: 400; }
.fab__btn:hover,
.fab__btn:focus-visible { background: var(--cream); color: var(--green); border-color: var(--green); }
.fab__btn:hover .fab__label,
.fab__btn:focus-visible .fab__label { max-width: 260px; opacity: 1; margin-right: 10px; }
.fab__btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
/* обратните цветове на „Към началото“: кремав фон, зелена икона */
.fab__btn--download { background: var(--cream); color: var(--green); border-color: var(--green); }
.fab__btn--download:hover,
.fab__btn--download:focus-visible { background: var(--green); color: var(--cream); border-color: var(--light-green); }

/* бутонът "Към началото" се показва чак след като се превърти надолу */
.js .fab__btn--top:not(.is-shown) { opacity: 0; visibility: hidden; transform: translateX(16px); pointer-events: none; }

@media (hover: none) {
  .fab__btn:hover .fab__label { max-width: 0; opacity: 0; margin-right: 0; }
}
@media (max-width: 760px) {
  .fab { right: 12px; top: auto; bottom: 16px; transform: none; }
  .fab__btn { --size: 44px; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .fab__btn, .fab__label { transition: none; }
}

/* ---------- „Има още“ – пулсиращата линийка от началото, за секции, по-високи от екрана ---------- */
.more-hint {
  position: fixed; left: 50%; bottom: 22px; z-index: 40; transform: translateX(-50%);
  width: 2px; height: 34px; pointer-events: none;
  color: var(--light-green);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
.more-hint.is-shown { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
.more-hint.on-cream { color: var(--green); }
.more-hint span {
  display: block; width: 100%; height: 100%; background: currentColor;
  transform-origin: top; animation: drip 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .more-hint, .more-hint.is-shown { transition: none; }
  .more-hint span { animation: none; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__flower, .hero__scroll span { animation: none; }
  .trapeza__art.is-visible .fireworks { animation: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .numbers-card { grid-template-columns: 1fr 1fr; }
  .numbers-card .num-col--first { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .resp-grid { grid-template-columns: repeat(2, 1fr); }
  .resp-item--empty { display: none; }
  .tech-grid, .fortress-grid { grid-template-columns: 1fr; }
  .tech-grid .pigs-col { max-width: 560px; }
  .trapeza { grid-template-columns: 1fr; }
  .trapeza__art { min-height: 200px; }
}

@media (max-width: 760px) {
  .intro-grid, .cols-2 { grid-template-columns: 1fr; }
  .lw-head { display: none; }
  .lw-row { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid rgba(0, 94, 72, .15); }
  .section--green .lw-row { border-top-color: rgba(133, 200, 130, .3); }
  .lw-arrow { transform: rotate(35deg); margin: -4px 0 -4px 18px; justify-self: start; }
  .lw-mobile-label { display: block; font-weight: 500; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; margin: 0 0 10px; opacity: .8; }
  .lw-card .lw-mobile-label { color: var(--red); }
}

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .numbers-card { grid-template-columns: 1fr; }
  .num-col { border-left: 0; padding-left: 0; border-top: 3px solid var(--light-green); padding-top: 18px; }
  .numbers-card .num-col--first { border-top: 0; padding-top: 0; }
  .resp-grid { grid-template-columns: 1fr; }
  .fortress { grid-template-columns: 1fr; grid-template-areas: "castle" "grey" "black" "white"; }
  .footer-inner { grid-template-columns: 1fr; }
  .brand img { height: 30px; }
}
