/* ============================================================
   GREEN CORP — Stylesheet
   Refined, editorial green-business aesthetic
   ============================================================ */

:root {
  --forest: #1A3C2E;
  --forest-700: #163325;
  --leaf: #4CAF7D;
  --leaf-soft: #d9efe3;
  --stone: #F5F3EE;
  --stone-200: #ECE8DF;
  --slate: #2D3748;
  --amber: #E8A020;

  --ink: var(--slate);
  --paper: var(--stone);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 4px 20px -8px rgba(26, 60, 46, .25);
  --shadow-md: 0 24px 60px -28px rgba(26, 60, 46, .45);
  --shadow-lg: 0 40px 90px -40px rgba(26, 60, 46, .55);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Grain overlay ---- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Typography helpers ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display);
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--leaf); border-radius: 2px; }
.eyebrow--light { color: var(--leaf); }
.eyebrow--light::before { background: var(--amber); }

.section { padding-block: clamp(72px, 11vw, 140px); }

.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--forest);
}
.section__title em { font-style: italic; color: var(--leaf); font-weight: 700; }
.section__sub { margin-top: 18px; font-size: 1.1rem; color: var(--slate); opacity: .8; }

/* ---- Buttons ---- */
.btn {
  --btn-pad: .95em 1.6em;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: var(--btn-pad);
  font-family: var(--font-display); font-weight: 700; font-size: .96rem; letter-spacing: -.01em;
  border-radius: 100px; border: 1.6px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s, border-color .3s;
  will-change: transform;
}
.btn--solid { background: var(--leaf); color: var(--forest-700); box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--forest); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: rgba(26,60,46,.25); color: var(--forest); }
.btn--ghost:hover { border-color: var(--forest); background: var(--forest); color: #fff; transform: translateY(-3px); }
.btn--block { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background .4s, box-shadow .4s, padding .4s;
  padding-block: 18px;
}
.nav--scrolled {
  background: rgba(245, 243, 238, .82);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(26,60,46,.08);
  padding-block: 10px;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* On desktop the wrapper is transparent to layout so brand · links · cta keep
   their original flex positions; on mobile it becomes the dropdown panel. */
.nav__menu { display: contents; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--forest); }
.brand__mark { display: grid; place-items: center; color: var(--forest); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; }
.brand__name span { color: var(--leaf); }

.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--forest);
  position: relative; padding-block: 4px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--leaf);
  transition: width .35s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 26px; height: 2.4px; background: var(--forest); border-radius: 3px; transition: .35s var(--ease); }
.nav.open .nav__burger span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(130px, 18vw, 200px); padding-bottom: 0; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy { max-width: 620px; }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.7rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -.035em;
  color: var(--forest); margin-top: 24px;
}
.hero__title em { font-style: italic; color: var(--leaf); font-weight: 700; }
.hero__lead { margin-top: 26px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 520px; color: var(--slate); }
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; }
.hero__imgwrap {
  position: relative; border-radius: var(--radius-lg); overflow: visible;
}
.hero__imgwrap img {
  border-radius: var(--radius-lg); aspect-ratio: 4/4.4; object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute; background: rgba(245,243,238,.9); backdrop-filter: blur(10px);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; line-height: 1.15; border: 1px solid rgba(255,255,255,.5);
}
.hero__badge-num { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--forest); }
.hero__badge-label { font-size: .76rem; color: var(--slate); max-width: 130px; }
.hero__badge--top { top: 26px; left: -28px; }
.hero__badge--bottom { bottom: 30px; right: -26px; }
.hero__badge--bottom .hero__badge-num { color: var(--amber); }

/* marquee */
.hero__marquee {
  margin-top: clamp(56px, 8vw, 96px); overflow: hidden; border-block: 1px solid rgba(26,60,46,.14);
  padding-block: 18px; background: linear-gradient(var(--stone), var(--stone));
}
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--forest);
  white-space: nowrap; opacity: .55;
}
.marquee__track span:nth-child(even) { color: var(--leaf); opacity: .9; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--forest); color: var(--stone); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  padding-block: clamp(48px, 7vw, 80px);
}
.stat { position: relative; padding-left: 22px; }
.stat::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--leaf); border-radius: 3px; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -.02em; color: #fff; }
.stat__label { font-size: .95rem; opacity: .75; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--stone); }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  position: relative; background: #fff; border: 1px solid var(--stone-200);
  border-radius: var(--radius); padding: 34px 30px 38px; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, rgba(76,175,125,.12), transparent 60%);
  opacity: 0; transition: opacity .45s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--leaf); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px;
  background: var(--leaf-soft); margin-bottom: 22px;
  transition: background .4s, transform .4s var(--ease);
}
.card:hover .card__icon { background: var(--forest); transform: rotate(-6deg) scale(1.05); }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--forest); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.card:hover .card__icon svg { stroke: var(--leaf); }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; color: var(--forest); margin-bottom: 10px; letter-spacing: -.01em; }
.card p { font-size: .98rem; color: var(--slate); opacity: .85; }
.card p em { color: var(--amber); font-style: normal; font-weight: 600; }
.card__num {
  position: absolute; top: 22px; right: 26px; font-family: var(--font-display);
  font-weight: 800; font-size: 1rem; color: var(--stone-200);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--stone); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); aspect-ratio: 4/4.6; object-fit: cover; box-shadow: var(--shadow-lg); }
.about__tag {
  position: absolute; bottom: -22px; right: -20px; background: var(--amber); color: var(--forest-700);
  border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-md); max-width: 200px;
  display: flex; align-items: center; gap: 12px;
}
.about__tag-num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.about__tag-label { font-size: .82rem; font-weight: 500; line-height: 1.25; }
.about__copy p { margin-top: 18px; max-width: 540px; }
.about__copy .btn { margin-top: 30px; }
.about__copy .section__title { margin-top: 18px; }

/* ============================================================
   WHY
   ============================================================ */
.why { background: var(--forest); color: var(--stone); }
.why .eyebrow { color: var(--leaf); }
.why .section__title { color: #fff; }
.why .section__title em { color: var(--amber); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 26px; }
.why__item { position: relative; padding-top: 26px; border-top: 1px solid rgba(245,243,238,.18); }
.why__index { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--leaf); letter-spacing: .1em; }
.why__item h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; margin: 12px 0 8px; }
.why__item p { font-size: .96rem; opacity: .78; }

.why__feature {
  position: relative; margin-top: clamp(48px, 7vw, 80px); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.why__feature img { width: 100%; aspect-ratio: 21/8; object-fit: cover; }
.why__feature-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(80deg, rgba(22,51,37,.78), rgba(22,51,37,.05) 70%);
}
.why__feature-overlay p {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 2.6rem); color: #fff; max-width: 14ch; letter-spacing: -.02em;
}

/* ============================================================
   CTA / KONTAKT
   ============================================================ */
.cta { background: var(--stone); }
.cta__grid { display: block; }
.cta__copy { max-width: 640px; }
.cta__copy .section__title { margin-top: 16px; }
.cta__copy > p { margin-top: 20px; }
.cta__list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.cta__list li { position: relative; padding-left: 30px; font-weight: 500; color: var(--forest); }
.cta__list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A3C2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/11px no-repeat;
}
.cta__contacts { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.cta__contacts a { font-family: var(--font-display); font-weight: 700; color: var(--forest); border-bottom: 2px solid var(--leaf); padding-bottom: 2px; transition: color .3s; }
.cta__contacts a:hover { color: var(--leaf); }


/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--forest-700); color: var(--stone); padding-top: clamp(56px, 8vw, 88px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
.brand--footer { color: #fff; }
.brand--footer .brand__mark { color: #fff; }
.footer__brand p { margin-top: 14px; opacity: .7; max-width: 280px; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a, .footer__meta p { opacity: .75; transition: opacity .3s, color .3s; }
.footer__nav a:hover { opacity: 1; color: var(--leaf); }
.footer__meta { display: flex; flex-direction: column; gap: 12px; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid rgba(245,243,238,.15); padding-block: 24px;
  font-size: .85rem; opacity: .65;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* Desktop line-heights are very tight; loosen them so wrapped
     titles don't look cramped on narrow screens. */
  .hero__title { line-height: 1.06; letter-spacing: -.02em; }
  .section__title { line-height: 1.14; letter-spacing: -.01em; }
  .section__head { margin-bottom: clamp(28px, 8vw, 44px); }
  .section__sub { margin-top: 14px; }

  /* Keep eyebrow labels on a single line. */
  .eyebrow { font-size: .68rem; letter-spacing: .13em; white-space: nowrap; }

  .nav__burger { display: flex; }

  /* Dropdown panel holds both the links and the CTA together. */
  .nav__menu {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 14px var(--gutter) 22px;
    background: rgba(245,243,238,.98);
    backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid rgba(26,60,46,.08);
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.open .nav__menu { opacity: 1; visibility: visible; transform: none; }

  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a {
    font-size: 1.12rem; padding-block: 14px;
    border-bottom: 1px solid rgba(26,60,46,.08);
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; }

  .nav__cta { width: 100%; margin-top: 16px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  .services__grid, .why__grid, .stats__grid, .footer__grid { grid-template-columns: 1fr; }
  .stats__grid { gap: 26px; }
  .why__grid { gap: 24px; }

  /* Keep the floating badges inside the viewport on small screens. */
  .hero__badge { padding: 11px 14px; }
  .hero__badge-num { font-size: 1.4rem; }
  .hero__badge--top { left: 6px; top: 16px; }
  .hero__badge--bottom { right: 6px; bottom: 18px; }

  .card { padding-inline: clamp(20px, 6vw, 30px); }

  /* About tag tucks under the image instead of hanging off the edge. */
  .about__media { max-width: 100%; margin-bottom: 18px; }
  .about__tag { right: 10px; bottom: -16px; max-width: 220px; }

  .cta__contacts { gap: 8px 20px; }

  .footer__bottom { flex-direction: column; text-align: left; }
}

@media (max-width: 400px) {
  .hero__title { font-size: clamp(2.3rem, 11vw, 2.7rem); }
  .hero__badge--top, .hero__badge--bottom { position: static; margin-top: 12px; box-shadow: var(--shadow-sm); }
  .hero__imgwrap { display: flex; flex-direction: column; }
}
