/* =====================================================================
   MOLNÁR BORPINCE – EGYEDI STÍLUSOK
   A Tailwind utility osztályokat egészíti ki: animációk, dekorációk,
   navigáció állapotai, űrlap- és borkártya-finomságok.
   Színvilág: elegáns zöld (forest) + meleg krém (sand) + arany akcentus.
   ===================================================================== */

:root {
  --forest: #2e5e3a;
  --forest-light: #4a7c59;
  --forest-dark: #234232;
  --forest-deep: #15281c;
  --gold: #b8923a;
  --gold-light: #c9a24b;
  --gold-dark: #9a7a2e;
  --sand-50: #faf7f0;
  --sand-100: #f3eee2;
  --sand-200: #e7decb;
  --sand-300: #d8cbb0;
  --ink: #23231f;
  --ink-muted: #857f73;
}

/* A fix navigáció miatt a szekciók ne csússzanak a fejléc alá */
section[id] {
  scroll-margin-top: 5rem;
}

/* ------------------------------ Hero ------------------------------ */

.hero {
  /* ----------------------------------------------------------------
     HERO HÁTTÉRKÉP CSERÉJE: elég az alábbi --hero-image változót
     átírni egy másik kép útvonalára (vagy teljes URL-re).
     Ha a kép nem tölt be, a background-color + a sötétítő átmenet
     adja a tartalék "naplemente a borvidéken" hangulatot.
     ---------------------------------------------------------------- */
  --hero-image: url("../assets/hero-vineyard.jpg");

  background-color: var(--forest-deep);
  background-image:
    /* finom, zöldes sötétítő overlay a jól olvasható világos szövegekért */
    linear-gradient(
      180deg,
      rgba(11, 23, 15, 0.82) 0%,
      rgba(21, 40, 28, 0.5) 45%,
      rgba(15, 30, 20, 0.85) 100%
    ),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

/* Belépő animáció: a hero elemei egymás után úsznak be betöltéskor */
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-anim > * {
  opacity: 0;
  animation: hero-in 0.9s ease forwards;
}

.hero-anim > *:nth-child(1) { animation-delay: 0.1s; }
.hero-anim > *:nth-child(2) { animation-delay: 0.25s; }
.hero-anim > *:nth-child(3) { animation-delay: 0.4s; }
.hero-anim > *:nth-child(4) { animation-delay: 0.55s; }
.hero-anim > *:nth-child(5) { animation-delay: 0.7s; }

.hero-hills {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  height: clamp(150px, 30vh, 340px);
  pointer-events: none;
}

.scroll-hint {
  animation: float 2.4s ease-in-out infinite;
}

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

/* --------------------- Szekció-háttérminták ----------------------- */
/* Nagyon finom, alig látható SVG textúrák, hogy az üres térközök ne
   legyenek csupaszok, de megmaradjon a letisztult, prémium hatás. */

/* Löszfal-rétegek sziluettje (hullámzó vízszintes rétegvonalak) */
#rolunk,
#kapcsolat {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='100' viewBox='0 0 180 100'%3E%3Cg fill='none' stroke='%232e5e3a' stroke-opacity='0.06' stroke-width='1.4'%3E%3Cpath d='M0 16q22-7 45 0t45 0 45 0 45 0'/%3E%3Cpath d='M0 50q22 7 45 0t45 0 45 0 45 0'/%3E%3Cpath d='M0 84q22-6 45 0t45 0 45 0 45 0'/%3E%3C/g%3E%3C/svg%3E");
}

/* Finom átlós szövet-textúra a sötét foglalás szekcióban */
#foglalas {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M0 26L26 0' stroke='%23faf7f0' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
}

/* ------------------------- Idézet-sáv ----------------------------- */
/* Teljes szélességű hangulati sáv a dombvidék-panorámával.
   A kép cseréjéhez elég az url(...) átírása. */

.quote-band {
  background-color: var(--forest-deep);
  background-image:
    linear-gradient(rgba(15, 30, 20, 0.78), rgba(15, 30, 20, 0.8)),
    url("../assets/band-panorama.jpg");
  background-size: cover;
  background-position: center;
}

@media (min-width: 1024px) {
  .quote-band {
    /* finom parallax hatás asztali nézetben */
    background-attachment: fixed;
  }
}

/* --------------------------- Navigáció ---------------------------- */

#site-nav {
  color: var(--sand-50);
}

.nav-logo {
  height: clamp(2.6rem, 5.5vw, 3.1rem);
  width: auto;
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

/* Görgetés után: világos háttér, sötét szöveg */
#site-nav.nav-solid {
  color: var(--ink);
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(35, 35, 31, 0.07), 0 8px 30px rgba(35, 35, 31, 0.06);
}

/* ------------------------- Szekciócímek --------------------------- */

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--forest);
}

.section-title {
  margin-top: 0.7rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}

/* Díszítő elválasztó: vonal – pötty – vonal */
.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 9rem;
  height: 9px;
  color: var(--gold);
  /* kis pötty középen, háttérként rajzolva */
  background: linear-gradient(currentColor, currentColor) center / 7px 7px no-repeat;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  opacity: 0.6;
}

.ornament::before { background: linear-gradient(to left, currentColor, transparent); }
.ornament::after  { background: linear-gradient(to right, currentColor, transparent); }

/* Sötét hátterű szekciókban világosabb arany díszítés */
.hero .ornament,
#foglalas .ornament {
  color: var(--gold-light);
}

/* ----------------------- Rólunk – statisztika --------------------- */

/* Kis vonalas ikonok a Rólunk statisztikák felett */
.stat-icon {
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--forest-light);
}

/* Kerek ikon-jelvények a foglalási élménylistában (SVG, emoji helyett) */
.perk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgba(250, 247, 240, 0.1);
  color: var(--gold-light);
}

.perk-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* ------------------- Rólunk – aszimmetrikus fotók ----------------- */

.about-figure {
  position: relative;
}

.about-figure__main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow:
    0 25px 60px -22px rgba(21, 40, 28, 0.45),
    0 8px 20px -10px rgba(21, 40, 28, 0.3);
}

/* Bekeretezett kisebb fotó a jobb alsó sarokban – magazinos hatás */
.about-figure__inset {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  width: 44%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  border: 6px solid var(--sand-50);
  box-shadow: 0 18px 40px -18px rgba(21, 40, 28, 0.5);
}

/* Idézet-kártya a bal felső sarokban */
.about-figure__quote {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  max-width: 62%;
  padding: 0.95rem 1.15rem;
  border-radius: 1rem;
  background: rgba(21, 40, 28, 0.86);
  backdrop-filter: blur(3px);
  color: var(--sand-100);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.35;
}

.about-figure__quote span {
  display: block;
  margin-top: 0.45rem;
  font-family: "Jost", system-ui, sans-serif;
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand-300);
}

@media (max-width: 380px) {
  .about-figure__quote { font-size: 0.95rem; max-width: 70%; }
  .about-figure__inset { width: 40%; }
}

/* ---------------------------- Galéria ----------------------------- */

.gallery-tile {
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 1 / 1;
  box-shadow: 0 10px 26px -16px rgba(21, 40, 28, 0.45);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-tile:hover img,
.gallery-tile:focus-within img {
  transform: scale(1.08);
}

/* ----------------- Prémium hover a kerek gombokon ----------------- */

a.rounded-full,
button.rounded-full {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

a.rounded-full:hover,
button.rounded-full:hover,
a.rounded-full:focus-visible,
button.rounded-full:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 30px -12px rgba(21, 40, 28, 0.5);
}

/* -------------------------- Borkártyák ---------------------------- */

.filter-btn {
  border: 1px solid var(--forest);
  border-radius: 9999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.filter-btn:hover {
  background: rgba(46, 94, 58, 0.08);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 22px -10px rgba(21, 40, 28, 0.4);
}

.filter-btn.is-active {
  background: var(--forest);
  color: var(--sand-50);
}

.wine-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--sand-50);
  box-shadow: 0 10px 30px -12px rgba(35, 35, 31, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wine-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 26px 50px -15px rgba(21, 40, 28, 0.3);
}

/* Palackos kártyafej – prémium „stúdió" háttéren áll a palack */
.wine-media {
  position: relative;
  height: 15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Lágy fénykör + meleg tónus bortípus szerint a palack mögött */
.wine-media--voros { background: radial-gradient(ellipse 58% 68% at 50% 40%, #ffffff 0%, #f1ead8 55%, #e2d6bd 100%); }
.wine-media--feher { background: radial-gradient(ellipse 58% 68% at 50% 40%, #ffffff 0%, #f1efe1 55%, #e1e2d0 100%); }
.wine-media--roze  { background: radial-gradient(ellipse 58% 68% at 50% 40%, #ffffff 0%, #f6ebe7 55%, #ecd5ce 100%); }

.wine-photo {
  height: 86%;
  width: auto;
  max-width: 72%;
  object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(35, 35, 31, 0.26));
  transition: transform 0.4s ease;
}

.wine-card:hover .wine-photo {
  transform: translateY(-5px) scale(1.04);
}

/* Bortípus-jelvény a kép bal felső sarkában */
.wine-type-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-50);
  box-shadow: 0 4px 12px rgba(21, 40, 28, 0.3);
  backdrop-filter: blur(2px);
}

.wine-media--voros .wine-type-badge { background: rgba(108, 28, 38, 0.92); }
.wine-media--feher .wine-type-badge { background: rgba(154, 122, 46, 0.92); }
.wine-media--roze  .wine-type-badge { background: rgba(178, 92, 92, 0.92); }

/* Díjnyertes szalag (arany) a kép jobb felső sarkában */
.award-ribbon {
  position: absolute;
  top: 0.9rem;
  right: -0.35rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--forest-deep);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 9999px 0 0 9999px;
  box-shadow: 0 4px 12px rgba(21, 40, 28, 0.35);
}

.award-ribbon svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.wine-tag {
  display: inline-block;
  border: 1px solid var(--sand-300);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: var(--sand-50);
}

/* ------------------------ Foglalási űrlap ------------------------- */

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field-input {
  width: 100%;
  border: 1px solid var(--sand-300);
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input::placeholder {
  color: #b1a99c;
}

.field-input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(46, 94, 58, 0.16);
}

/* Egyedi nyíl a legördülőhöz (zöld) */
.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e5e3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
  padding-right: 2.6rem;
}

/* Hibás mező */
.field.has-error .field-input {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.error-msg {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #c0392b;
}

.field.has-error .error-msg {
  display: block;
}

/* Animált pipa a sikeres foglalásnál */
.success-check .check-circle {
  stroke: var(--forest);
  stroke-width: 2.5;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: draw 0.7s ease forwards;
}

.success-check .check-mark {
  stroke: var(--forest);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: draw 0.5s ease 0.55s forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* --------------------------- Kapcsolat ---------------------------- */

.contact-card {
  border: 1px solid var(--sand-200);
  border-radius: 1.5rem;
  background: #fff;
  padding: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -18px rgba(21, 40, 28, 0.28);
}

.contact-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--forest);
}

.contact-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.map-placeholder {
  border: 1.5px dashed var(--sand-300);
  background:
    radial-gradient(circle at 1px 1px, rgba(46, 94, 58, 0.12) 1px, transparent 0) 0 0 / 22px 22px,
    var(--sand-100);
}

/* ----------------------- Megjelenési animáció --------------------- */

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

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

/* Ha a felhasználó kéri a mozgás csökkentését, ne animáljunk */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-anim > * {
    animation: none;
    opacity: 1;
  }
  .scroll-hint {
    animation: none;
  }
  .quote-band {
    background-attachment: scroll;
  }
  html {
    scroll-behavior: auto;
  }
}
