/* ===================================================================
   Alanfal — Modern redesign stylesheet
   Palette: forest green + gold, on clean white/soft-mint neutrals
   =================================================================== */

:root {
  --green-900: #0c4a2c;
  --green-700: #15803d;
  --green-600: #157a47;
  --green-500: #1f9d57;
  --green-tint: #e9f5ee;
  --green-tint-2: #f4faf6;

  --gold-600: #b8912f;
  --gold-500: #c9a84a;
  --gold-300: #e6cf86;

  --ink: #14241b;
  --slate: #51635a;
  --line: #e4ebe6;
  --bg: #ffffff;
  --soft: #f5f9f6;

  --shadow-sm: 0 2px 8px rgba(16, 60, 36, .06);
  --shadow-md: 0 12px 30px rgba(16, 60, 36, .10);
  --shadow-lg: 0 24px 60px rgba(16, 60, 36, .16);

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;

  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); font-weight: 700; }

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

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.text-gold { color: var(--gold-500); }
.link { color: var(--green-600); font-weight: 600; }
.link:hover { color: var(--green-900); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: 0 8px 20px rgba(21,122,71,.28); }
.btn--primary:hover { background: var(--green-900); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(21,122,71,.34); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-600); transform: translateY(-2px); }

.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section__head p { color: var(--slate); font-size: 1.05rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-900); color: #d8ecdf; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.topbar__contact { display: flex; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #d8ecdf; transition: color .15s; }
.topbar__item:hover { color: #fff; }
.topbar__item svg { width: 15px; height: 15px; fill: none; stroke: var(--gold-300); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar__meta { display: flex; align-items: center; gap: 18px; }
.topbar__badge { color: var(--gold-300); font-weight: 600; letter-spacing: .03em; }
.topbar__lang { display: flex; align-items: center; gap: 7px; }
.topbar__lang a { opacity: .7; transition: opacity .15s; }
.topbar__lang a:hover, .topbar__lang a.is-active { opacity: 1; color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.nav.is-stuck { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(255,255,255,.96); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.nav__brand img { height: 52px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links > a:not(.btn) {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink);
  padding: 9px 14px; border-radius: 10px; transition: color .15s, background .15s;
}
.nav__links > a:not(.btn):hover { color: var(--green-600); background: var(--green-tint); }
.nav__cta { margin-left: 10px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 96px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(201,168,74,.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(31,157,87,.14), transparent 55%),
    linear-gradient(180deg, var(--green-tint-2), #fff 60%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 22px; }
.hero__lead { color: var(--slate); font-size: 1.12rem; max-width: 520px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero__trust { list-style: none; display: flex; gap: 40px; padding: 0; }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--green-700); }
.hero__trust span { font-size: .9rem; color: var(--slate); }

.hero__visual { position: relative; min-height: 420px; }
.hero__card {
  position: relative; background: #fff; border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-lg); max-width: 380px; margin-left: auto;
  border: 1px solid var(--line);
}
.hero__card img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 20px; }
.hero__card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.hero__card p { color: var(--slate); }
.hero__card--main { transform: rotate(-1.5deg); }
.hero__chip { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow-md); display: grid; place-items: center; }
.hero__chip--iso { width: 110px; height: 110px; padding: 14px; bottom: 10px; left: 0; transform: rotate(4deg); }
.hero__chip--iso img { width: 100%; height: 100%; object-fit: contain; }
.hero__chip--leaf { width: 72px; height: 72px; top: -14px; right: 30px; background: var(--green-600); }
.hero__chip--leaf svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Strip ---------- */
.strip { background: var(--green-900); color: #cfe6d8; padding: 22px 0; }
.strip__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }
.strip__label { font-family: var(--font-head); font-weight: 600; color: var(--gold-300); letter-spacing: .05em; }
.strip__logos { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.strip__logos span { font-weight: 500; font-size: .95rem; opacity: .9; }
.strip__logos span::before { content: "•"; margin-right: 28px; color: var(--green-500); }
.strip__logos span:first-child::before { content: none; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__imgwrap {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--green-tint);
  box-shadow: var(--shadow-md); padding: 30px; display: grid; place-items: center;
}
.about__imgwrap img { max-height: 380px; width: auto; }
.about__stat {
  position: absolute; right: -10px; bottom: -24px; background: var(--green-600); color: #fff;
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow-md); max-width: 230px;
}
.about__stat strong { font-family: var(--font-head); font-size: 2.1rem; display: block; line-height: 1; }
.about__stat span { font-size: .9rem; opacity: .92; }
.about__body h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.about__body p { color: var(--slate); margin-bottom: 16px; }
.ticklist { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.ticklist li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 500; }
.ticklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--green-tint); color: var(--green-600);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ---------- Cards (products) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  width: 58px; height: 58px; border-radius: 14px; background: var(--green-tint);
  display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 20px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .98rem; }

/* ---------- Brands ---------- */
.brands__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.brands__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 150px; display: grid; place-items: center; padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.brands__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.brands__item img { max-height: 90px; width: auto; object-fit: contain; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.feature::after { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--gold-500); }
.feature__num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--green-tint); -webkit-text-stroke: 1px var(--green-500); margin-bottom: 14px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--slate); font-size: .95rem; }

/* ---------- News ---------- */
.cards--news { grid-template-columns: repeat(3, 1fr); }
.news { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .22s, box-shadow .22s; }
.news:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news__img { height: 180px; background-size: cover; background-position: center; }
.news__img--1 { background: linear-gradient(135deg, #1f9d57, #0c4a2c); }
.news__img--2 { background: linear-gradient(135deg, #c9a84a, #b8912f); }
.news__img--3 { background: linear-gradient(135deg, #2bb673, #157a47); }
.news__body { padding: 24px; }
.news__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); background: var(--green-tint); padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; }
.news__body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.news__body p { color: var(--slate); font-size: .95rem; margin-bottom: 14px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.faq__intro { position: sticky; top: 110px; }
.faq__intro h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 14px; }
.faq__intro p { color: var(--slate); }
.faq__list { display: grid; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 24px; transition: box-shadow .2s, border-color .2s; }
.faq__item[open] { box-shadow: var(--shadow-sm); border-color: var(--green-tint); }
.faq__item summary {
  list-style: none; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; color: var(--green-600); transition: transform .2s; line-height: 1; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--slate); padding: 0 0 18px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact__info h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; }
.contact__info > p { color: var(--slate); margin-bottom: 28px; }
.contact__list { list-style: none; padding: 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__ico { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--green-tint); display: grid; place-items: center; font-size: 1.3rem; }
.contact__list strong { font-family: var(--font-head); }
.contact__list a:hover { color: var(--green-600); }

.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: .98rem; background: var(--soft); transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-500); background: #fff; }
.field textarea { resize: vertical; }
.contact__note { font-size: .82rem; color: var(--slate); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: #c4ddcc; padding: 70px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__logo { height: 54px; width: auto; margin-bottom: 18px; }
.footer__brand p { font-size: .95rem; max-width: 320px; margin-bottom: 20px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .18s; }
.footer__social a:hover { background: var(--green-600); }
.footer__social svg { width: 20px; height: 20px; fill: #fff; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer__col a { display: block; color: #b6d3bf; font-size: .95rem; padding: 5px 0; transition: color .15s; }
.footer__col a:hover { color: var(--gold-300); }
.footer__badges { background: #fff; border-radius: 12px; padding: 12px; display: inline-grid; place-items: center; }
.footer__badges img { height: 70px; width: auto; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; gap: 12px; flex-wrap: wrap; }

/* ---------- Back to top ---------- */
.backtop {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; background: var(--green-600); color: #fff;
  display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s;
}
.backtop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop:hover { background: var(--green-900); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { min-height: auto; }
  .hero__card { margin: 0 auto; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__stat { right: 20px; }
  .faq__grid, .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .faq__intro { position: static; }
  .cards, .cards--news, .features { grid-template-columns: repeat(2, 1fr); }
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar__contact { gap: 14px; }
  .topbar__badge { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 118px 0 auto; flex-direction: column; align-items: stretch;
    background: #fff; padding: 20px 24px 28px; gap: 4px; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .3s ease; max-height: calc(100vh - 118px); overflow:auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links > a:not(.btn) { padding: 13px 12px; border-radius: 10px; font-size: 1.05rem; }
  .nav__cta { margin: 8px 0 0; }
  .section { padding: 70px 0; }
  .hero { padding: 50px 0 70px; }
  .hero__trust { gap: 26px; }
  .strip__inner { flex-direction: column; gap: 14px; }
}

@media (max-width: 540px) {
  .cards, .cards--news, .features, .brands__grid, .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
  .hero__trust { justify-content: space-between; gap: 12px; }
  .hero__trust strong { font-size: 1.6rem; }
  .footer__bottom-inner { justify-content: center; text-align: center; }
}

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