/* ============================================================
   Пчелна ферма „Три слънца“ — стилове
   Палитра, извлечена от емблемата:
   кремаво / медено злато / тъмнокафяво
   ============================================================ */

:root {
  --cream:        #faf1dc;
  --cream-deep:   #f3e4c2;
  --paper:        #fffdf5;
  --gold:         #e9a820;
  --gold-deep:    #c8860d;
  --gold-soft:    #f6d788;
  --brown:        #3a2a12;
  --brown-soft:   #6d5836;
  --brown-faint:  #a08d6a;
  --shadow:       0 10px 30px rgba(58, 42, 18, .12);
  --shadow-soft:  0 4px 14px rgba(58, 42, 18, .08);
  --radius:       18px;
  --header-h:     74px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Manrope", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--brown);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-deep); }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 10px); }

/* ---------- Типография ---------- */

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; }
h1 em { font-style: italic; color: var(--gold-deep); }

h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }

.overline {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--gold-deep);
  margin-bottom: .6rem;
}

/* ---------- Хедър ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--cream-deep);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--brown);
}

.brand-logo {
  height: 52px;
  width: auto;
  border-radius: 50%;
  filter: drop-shadow(0 2px 4px rgba(58,42,18,.18));
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.brand-tag {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown-soft);
}

.site-nav { display: flex; align-items: center; gap: .25rem; }

.nav-link {
  text-decoration: none;
  color: var(--brown);
  font-weight: 600;
  font-size: .95rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  transition: background .25s, color .25s;
}

.nav-link:hover { background: var(--cream-deep); }

.nav-link.is-active { color: var(--gold-deep); }

.nav-link--cta {
  background: var(--gold);
  color: var(--brown);
  box-shadow: var(--shadow-soft);
}

.nav-link--cta:hover { background: var(--gold-deep); color: var(--paper); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .6rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px; height: 3px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ---------- Херо ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(2.5rem, 8vh, 5.5rem)) 0 7rem;
  background:
    radial-gradient(1100px 550px at 78% 10%, var(--gold-soft) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #f8ecd0 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-sub {
  margin-top: 1.2rem;
  font-size: 1.12rem;
  color: var(--brown-soft);
  max-width: 34rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.btn {
  display: inline-block;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .25s, color .25s;
}

.btn--gold {
  background: var(--gold);
  color: var(--brown);
  box-shadow: var(--shadow-soft);
}

.btn--gold:hover { background: var(--gold-deep); color: var(--paper); transform: translateY(-2px); }

.btn--ghost {
  border: 2px solid var(--brown);
  color: var(--brown);
}

.btn--ghost:hover { background: var(--brown); color: var(--cream); transform: translateY(-2px); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin-top: 2rem;
}

.hero-badges li {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .4rem .95rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  color: var(--brown-soft);
  box-shadow: var(--shadow-soft);
}

.hero-visual { display: flex; justify-content: center; }

.hero-logo-ring {
  position: relative;
  padding: clamp(.8rem, 2vw, 1.4rem);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}

.hero-logo-ring::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  border: 2px dashed var(--gold);
  opacity: .55;
  animation: spin 60s linear infinite;
}

.hero-logo-ring img {
  width: clamp(240px, 30vw, 400px);
  border-radius: 50%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* летящи пчелички */
.hero-bees { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.bee { position: absolute; width: 44px; opacity: .8; }

.bee-1 { top: 16%; left: 6%;  animation: buzz 11s ease-in-out infinite; }
.bee-2 { top: 64%; left: 44%; width: 32px; animation: buzz 13s ease-in-out infinite reverse; }
.bee-3 { top: 26%; right: 5%; width: 36px; animation: buzz 9s  ease-in-out infinite 1.2s; }

@keyframes buzz {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  25%      { transform: translate(26px, -20px) rotate(7deg); }
  50%      { transform: translate(-14px, 12px) rotate(-4deg); }
  75%      { transform: translate(18px, 22px) rotate(9deg); }
}

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg { width: 100%; height: 90px; }
.hero-wave path { fill: var(--paper); }

/* ---------- Секции ---------- */

.section { padding: clamp(4rem, 9vh, 6.5rem) 0; }

.section--tinted { background: var(--cream); }

.section-head { text-align: center; margin-bottom: clamp(2.5rem, 6vh, 4rem); }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin-top: 1.1rem;
}

.divider::before,
.divider::after {
  content: "";
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }

.divider-bee { width: 34px; }

/* ---------- За нас ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.two-col--reverse > figure { order: -1; }

.prose p + p { margin-top: 1rem; }
.prose { font-size: 1.05rem; color: var(--brown-soft); }
.prose strong { color: var(--brown); }

.value-cards { display: grid; gap: 1rem; }

.value-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .25s, box-shadow .25s;
}

.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.value-icon {
  grid-row: span 2;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--cream);
  color: var(--gold);
}

.value-icon svg { width: 30px; height: 30px; }

.value-card h3 { font-size: 1.15rem; align-self: end; }

.value-card p { font-size: .93rem; color: var(--brown-soft); }

/* ---------- Пчелинът ---------- */

.apiary-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 1rem .5rem;
  box-shadow: var(--shadow-soft);
}

.stat-num, .stat-plus {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold-deep);
}

.stat-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brown-soft);
  margin-top: .15rem;
}

/* ---------- Нашият мед ---------- */

.honey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.honey-card {
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 2rem 1.4rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .25s, box-shadow .25s;
}

.honey-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.jar {
  position: relative;
  width: 84px;
  margin: 0 auto 1.1rem;
}

.jar svg { width: 100%; position: relative; z-index: 2; }

.jar-fill {
  position: absolute;
  left: 18%; right: 18%;
  bottom: 9%;
  height: 55%;
  border-radius: 6px 6px 12px 12px;
  z-index: 1;
}

.jar-fill--bouquet   { background: linear-gradient(180deg, #d98e1b, #a95f0a); }
.jar-fill--acacia    { background: linear-gradient(180deg, #f7dc8e, #ecc353); }
.jar-fill--linden    { background: linear-gradient(180deg, #eec24f, #cf9a1d); }
.jar-fill--sunflower { background: linear-gradient(180deg, #f3b32b, #dd8f0e); }

.honey-card h3 { font-size: 1.3rem; }

.honey-note {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold-deep);
  margin: .2rem 0 .8rem;
}

.honey-card > p:last-child { font-size: .92rem; color: var(--brown-soft); }

.extras {
  margin-top: 3rem;
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  background: var(--cream);
  border-radius: var(--radius);
  text-align: center;
}

.extras-lead { font-weight: 700; font-size: 1.05rem; }

.extras-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.2rem;
  list-style: none;
  margin: 1.1rem 0;
}

.extras-list li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  color: var(--brown);
}

.extras-list svg { width: 26px; height: 26px; color: var(--gold-deep); }

.extras-cta { color: var(--brown-soft); font-size: .97rem; }

/* ---------- Галерия ---------- */

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

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  transition: transform .25s, box-shadow .25s;
}

.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.gallery-item figcaption {
  padding: .8rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--brown-soft);
}

.gallery-note {
  text-align: center;
  margin-top: 1.6rem;
  font-size: .88rem;
  color: var(--brown-faint);
  font-style: italic;
}

/* ---------- Контакти ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.contact-cards { display: grid; gap: 1rem; align-content: start; }

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.contact-icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  padding: 9px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--gold-deep);
}

.contact-card h3 { font-size: 1.05rem; margin-bottom: .15rem; }

.contact-card p { font-size: .95rem; color: var(--brown-soft); }

.contact-card a { font-weight: 700; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-deep);
  min-height: 380px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* ---------- Футър ---------- */

.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.6rem;
  justify-items: center;
  text-align: center;
}

.footer-logo {
  height: 74px;
  border-radius: 50%;
  margin-inline: auto;
}

.footer-brand p { margin-top: .7rem; font-size: .95rem; opacity: .9; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem 1.4rem;
}

.footer-nav a {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
}

.footer-nav a:hover { color: var(--gold); }

.footer-note { font-size: .85rem; opacity: .65; }

/* ---------- Лайтбокс ---------- */

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 21, 8, .88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.lightbox img {
  max-width: min(90vw, 960px);
  max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lightbox-caption { color: var(--cream); font-weight: 600; }

.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.6rem;
  font-size: 2.4rem;
  line-height: 1;
  background: none;
  border: 0;
  color: var(--cream);
  cursor: pointer;
}

/* ---------- Reveal анимации ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo-ring, .hero-logo-ring::before, .bee { animation: none; }
}

/* ---------- Адаптивност ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo-ring img { width: clamp(200px, 40vw, 300px); }

  .two-col { grid-template-columns: 1fr; }
  .two-col--reverse > figure { order: 0; }

  .honey-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-deep);
    box-shadow: var(--shadow);
    padding: 1rem 4%;
    gap: .3rem;
    transform: translateY(-130%);
    transition: transform .35s ease;
  }

  .site-nav.is-open { transform: translateY(0); }

  .nav-link { padding: .8rem 1rem; text-align: center; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .brand-tag { display: none; }
}

@media (max-width: 520px) {
  .honey-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
