/* =====================================================================
   Bičiulė — natūralus medus
   ===================================================================== */

:root {
  --honey:        #e8971e;
  --honey-deep:   #c97d0a;
  --honey-light:  #f9c65a;
  --brown:        #3a2a18;
  --brown-soft:   #6b563d;
  --cream:        #fdf6e8;
  --cream-2:      #f6ead3;
  --green:        #4f7a2f;
  --green-light:  #5f9236;

  --shadow-sm: 0 2px 8px rgba(58, 42, 24, .08);
  --shadow-md: 0 12px 30px rgba(58, 42, 24, .12);
  --shadow-lg: 0 24px 60px rgba(58, 42, 24, .18);

  --wrap: 1160px;
  --radius: 20px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ------------------------------- base ------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--brown);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.015em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

/* ------------------------------ buttons ----------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease,
              border-color .18s ease, color .18s ease, opacity .18s ease;
}

.btn--large { padding: 13px 26px; font-size: 15.5px; }
.btn--small { padding: 8px 16px; font-size: 13.5px; }

.btn--primary {
  background: var(--honey);
  color: #2f2113;
  box-shadow: 0 2px 8px rgba(232, 151, 30, .4);
}
.btn--primary:hover {
  background: #d98b16;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 151, 30, .45);
}

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, .06);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .16);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: #25d366;
  color: #06331c;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
}
.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 211, 102, .42);
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
}

/* ------------------------------ header ------------------------------ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.header.is-scrolled {
  background: rgba(253, 246, 232, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(58, 42, 24, .08), 0 6px 24px rgba(58, 42, 24, .06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  transition: color .3s ease;
}
.brand__mark { display: inline-flex; color: var(--honey); }
.brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.header.is-scrolled .brand { color: var(--brown); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  transition: color .3s ease;
}
.nav a:not(.btn) { position: relative; padding-block: 4px; }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--honey);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.header.is-scrolled .nav { color: var(--brown); }

/* ------------------------------- hero ------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #7fb7d4 0%, #f0b45a 55%, #b8862f 100%);
  background-image:
    linear-gradient(180deg, rgba(20, 40, 60, .1), rgba(120, 70, 10, .15)),
    url("../images/hero-field.jpg");
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  animation: heroDrift 26s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1.2%, 0); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(30, 20, 10, .55) 0%, rgba(30, 20, 10, .18) 32%, rgba(40, 25, 8, .5) 78%, rgba(58, 42, 24, .82) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: 140px 190px;
  max-width: 820px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(30, 18, 6, .45);
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 600;
  margin-block: 14px 22px;
}

.hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  max-width: 30em;
  color: rgba(255, 255, 255, .93);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}
.hero__actions .btn { width: auto; }

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--honey-deep);
}
.eyebrow--light { color: var(--honey-light); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 104px;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  animation: cueBob 2.2s ease-in-out infinite;
}
.scroll-cue:hover { color: #fff; }

@keyframes cueBob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

.divider {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 4;
  width: 100%;
  height: 90px;
  fill: var(--cream);
}

/* ------------------------------ sections ---------------------------- */

.section { position: relative; }

.section--honey {
  padding-block: 96px 110px;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c97d0a' fill-opacity='0.07' fill-rule='evenodd'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/svg%3E");
  overflow: hidden;
}

.section__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-block: 12px 16px;
}
.section__title--light { color: #fff; }

.section__lead {
  color: var(--brown-soft);
  font-size: 1.05rem;
}
.section__lead--light { color: rgba(255, 255, 255, .88); }

.section__note {
  margin-top: 44px;
  text-align: center;
  font-size: 15px;
  color: var(--brown-soft);
}

/* ------------------------------- cards ------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream-2), #e5c78d);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1), filter .3s ease;
}
.card:hover .card__media img { transform: scale(1.06); }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.card[data-stock="low"] .badge      { background: #d98218; }
.card[data-stock="sold-out"] .badge { background: #8d8378; }

.card[data-stock="sold-out"] .card__media img { filter: grayscale(.85) opacity(.75); }
.card[data-stock="sold-out"] .price__value    { color: var(--brown-soft); }
.card[data-stock="sold-out"] .card__cta {
  background: #e4dbcc;
  color: #8a7f70;
  box-shadow: none;
  pointer-events: none;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 28px;
}

.card__title { font-size: 1.55rem; margin-bottom: 10px; }

.card__text {
  color: var(--brown-soft);
  font-size: 15.5px;
  flex: 1;
}

.card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(58, 42, 24, .1);
}

.price { display: flex; flex-direction: column; line-height: 1.25; }
.price__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--honey-deep);
}
.price__unit { font-size: 13px; color: var(--brown-soft); }

/* ------------------------------ contact ----------------------------- */

.section--contact {
  position: relative;
  padding-block: 110px;
  overflow: hidden;
  isolation: isolate;
}

.contact__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #2c3a22;
  background-image: url("../images/beekeeper.jpg");
  background-size: cover;
  background-position: center 40%;
}

.contact__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(38, 28, 16, .93) 0%, rgba(45, 33, 18, .84) 48%, rgba(45, 35, 20, .55) 100%);
}

.contact__inner { position: relative; z-index: 2; }
.contact__text { max-width: 620px; }

.contact__selected {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(232, 151, 30, .2);
  border: 1px solid rgba(249, 198, 90, .5);
  color: #fff;
  font-size: 14.5px;
  animation: chipIn .45s cubic-bezier(.2, .7, .3, 1);
}
.contact__selected[hidden] { display: none; }
.contact__selected strong { color: var(--honey-light); }

@keyframes chipIn {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* atsiradus pasirinkimo žymai, tarpas iki mygtukų sumažėja */
.contact__selected:not([hidden]) + .contact__actions { margin-top: 22px; }

.contact__note {
  margin-top: 26px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .68);
}

/* ------------------------------- footer ----------------------------- */

.footer {
  background: var(--brown);
  color: rgba(255, 255, 255, .72);
  padding-block: 32px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand--footer { color: #fff; }
.footer__text { font-size: 14px; }

/* ------------------------------ flowers ----------------------------- */

.flower {
  position: absolute;
  z-index: 1;
  width: 92px;
  pointer-events: none;
  transform-origin: 50% 100%;
  animation: sway 5.5s ease-in-out infinite alternate;
}
.flower--sm { width: 68px; }

.flower__svg { width: 100%; height: auto; overflow: visible; }

.flower__stem {
  fill: none;
  stroke: var(--green);
  stroke-width: 4.5;
  stroke-linecap: round;
}
.flower__leaf { fill: var(--green-light); }

.flower__head { transform-box: fill-box; transform-origin: 50% 33%; }

.flower__petals--cream  ellipse { fill: #fff8e7; stroke: #edd9ac; stroke-width: 1.5; }
.flower__petals--pink   ellipse { fill: #f8c8d4; stroke: #e9a6b8; stroke-width: 1.5; }
.flower__petals--violet ellipse { fill: #cbbaf0; stroke: #ab99db; stroke-width: 1.5; }
.flower__petals--gold   ellipse { fill: #ffd97e; stroke: #e0b352; stroke-width: 1.5; }

.flower__core { fill: var(--honey); }

@keyframes sway {
  from { transform: rotate(-2.5deg); }
  to   { transform: rotate(2.5deg); }
}

.flower.is-sipped .flower__head { animation: nod .9s ease-in-out; }
@keyframes nod {
  0%, 100% { transform: rotate(0) scale(1); }
  30%      { transform: rotate(-9deg) scale(1.06); }
  65%      { transform: rotate(6deg) scale(1.03); }
}

/* flower placement */
.flower--hero-left   { left: 4%;  bottom: 46px; }
.flower--hero-right  { right: 8%; bottom: 62px; }
.flower--honey-left  { left: 2%;  bottom: 90px; }
.flower--honey-right { right: 1.5%; top: 120px; }
.flower--contact     { right: 9%; bottom: 60px; }

/* --------------------------------- bee ------------------------------ */

.bee-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}

.bee {
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 54px;
  margin: -27px 0 0 -38px;
  opacity: 0;
  will-change: transform;
  filter: drop-shadow(0 6px 10px rgba(45, 30, 10, .28));
  transition: opacity .6s ease;
}
.bee.is-ready { opacity: 1; }

.bee__wing {
  transform-box: fill-box;
  transform-origin: 78% 92%;
  animation: flap .09s infinite alternate ease-in-out;
}
.bee__wing--back { animation-delay: -.045s; opacity: .85; }

@keyframes flap {
  from { transform: scaleY(1) rotate(0deg); }
  to   { transform: scaleY(.32) rotate(-14deg); }
}

.sparkle {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3c4, var(--honey));
  box-shadow: 0 0 8px rgba(232, 151, 30, .8);
  animation: sparkleRise 1s ease-out forwards;
}

@keyframes sparkleRise {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) scale(.4); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--dx, 0), -38px, 0) scale(1.1); }
}

/* ---------------------------- scroll reveal ------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s cubic-bezier(.2, .7, .3, 1),
              transform .75s cubic-bezier(.2, .7, .3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* pakopinis pasirodymas pagal stulpelį — veikia su bet kokiu prekių skaičiumi */
.cards .card:nth-child(3n + 2) { transition-delay: .12s; }
.cards .card:nth-child(3n + 3) { transition-delay: .24s; }

/* ----------------------------- responsive --------------------------- */

@media (max-width: 900px) {
  .hero__media { background-position: center 60%; }
  .hero__content { padding-block: 130px 170px; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .divider { height: 60px; }

  /* kortelės užima visą plotį — gėles perkeliame į laisvą vietą apačioje */
  .section--honey { padding-block: 90px 124px; }
  .flower--honey-right { display: none; }
  .flower--honey-left { left: 5%; bottom: 10px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .header__inner { height: 66px; }
  .nav { gap: 18px; font-size: 14px; }
  .nav a:not(.btn) { display: none; }
  .brand__name { font-size: 20px; }

  .hero { min-height: 92svh; }
  .hero__content { padding-block: 110px 150px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .btn--large { padding: 12px 22px; font-size: 15px; }

  .section--honey { padding-block: 70px 112px; }
  .section--contact { padding-block: 78px 124px; }
  .section__head { margin-bottom: 40px; }

  .card__body { padding: 22px 22px 24px; }
  .card__foot { align-items: center; }

  .contact__actions .btn { width: 100%; }
  .contact__veil {
    background: linear-gradient(180deg, rgba(38, 28, 16, .9) 0%, rgba(45, 33, 18, .9) 100%);
  }

  .footer__inner { flex-direction: column; text-align: center; gap: 10px; }

  .flower { width: 66px; }
  .flower--sm { width: 52px; }
  .flower--hero-left { left: 2%; bottom: 10px; }
  .flower--hero-right { right: 3%; bottom: 10px; }
  .flower--honey-left { left: 7%; bottom: 12px; }
  .flower--contact { right: 8%; bottom: 20px; }

  .bee { width: 54px; height: 38px; margin: -19px 0 0 -27px; }
  .bee svg { width: 54px; height: 38px; }

  .scroll-cue { bottom: 78px; }
}

@media (max-width: 380px) {
  .wrap { padding-inline: 18px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .price__value { font-size: 1.75rem; }
}

/* ------------------------- reduced motion --------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .bee-layer { display: none; }

  .hero__media,
  .scroll-cue,
  .contact__selected,
  .flower { animation: none; }

  [data-reveal] { opacity: 1; transform: none; transition: none; }

  .btn { transition: none; }
  .card:hover { transform: none; }
  .card:hover .card__media img { transform: none; }
}
