/* ============================================================
   Flavours of Berat — Warm Minimalism
   Modern layout · traditional soul · terracotta accent
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --cream:      #f6faf7;
  --cream-2:    #e9f1ec;
  --ink:        #16211a;
  --ink-soft:   #55635b;
  --line:       #dbe6de;

  --terra:      #18bf5c;
  --terra-dark: #12a049;
  --terra-soft: #d3f5df;

  --white:      #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 50px -20px rgba(50, 38, 28, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--muted { background: var(--cream-2); }

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

.section__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section__lead {
  margin-top: 16px;
  font-size: 1.06rem;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 12px 26px -12px rgba(193, 101, 47, 0.7);
}
.btn--primary:hover { background: var(--terra-dark); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  transition: color 0.4s;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  transition: color 0.3s;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--terra);
  transition: width 0.3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--terra);
  color: var(--white) !important;
}
.nav__cta:hover { background: var(--terra-dark); }

/* Scrolled state (added via JS) */
.nav.is-scrolled {
  background: rgba(246, 250, 247, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-scrolled .nav__logo,
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav.is-scrolled .nav__links a { color: var(--ink-soft); }
.nav.is-scrolled .nav__cta { color: var(--white) !important; }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background:
    url("../images/hero.jpeg") center/cover no-repeat;
  transform: scale(1.04);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,32,19,0.85) 0%, rgba(9,32,19,0.5) 52%, rgba(9,32,19,0.22) 100%),
    linear-gradient(180deg, rgba(9,32,19,0.12) 0%, rgba(9,32,19,0.45) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 76px;
  color: var(--white);
}
.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra-soft);
  margin-bottom: 22px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.hero__sub {
  margin-top: 24px;
  max-width: 540px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 300;
}
.hero__actions {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about__text p { color: var(--ink-soft); margin-top: 18px; max-width: 46ch; }
.about__facts {
  margin-top: 36px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.about__facts li { display: flex; flex-direction: column; }
.about__facts strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--terra);
}
.about__facts span { font-size: 0.88rem; color: var(--ink-soft); }

.about__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background-color: #d9eade;
  background-image:
    url("../images/interior.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
  position: relative;
}

/* ============================================================
   STEPS (How it works)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--terra);
  display: inline-block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.94rem; color: var(--ink-soft); }

/* ============================================================
   MENU
   ============================================================ */
.menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.menu__cat {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.menu__item { padding: 14px 0; }
.menu__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 500;
  font-size: 1.02rem;
}
.menu__row > span:first-child { flex: 1; }
/* dotted leader between name and price */
.menu__row::after { display: none; }
.menu__price {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--terra);
  font-size: 1.1rem;
}
.menu__desc {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.menu__note {
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}
.menu__sub {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  margin: 26px 0 10px;
  color: var(--ink);
}
.menu__sub:first-of-type { margin-top: 8px; }
.menu__winery {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
  margin: 16px 0 2px;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 16px;
}
.gallery__item {
  border-radius: var(--radius);
  background-color: #cfe6d6;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item img { transition: transform 0.6s var(--ease); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* ============================================================
   VISIT
   ============================================================ */
.visit {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: stretch;
}
.visit__block { margin-top: 26px; }
.visit__block h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 6px;
}
.visit__block p { color: var(--ink-soft); }
.visit__block a:hover { color: var(--terra); }

.visit__social {
  margin-top: 32px;
  display: flex;
  gap: 22px;
}
.visit__social a {
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.visit__social a:hover { color: var(--terra); border-color: var(--terra); }

.visit__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
  border: 1px solid var(--line);
}
.visit__map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(0.15) contrast(1.02);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__logo-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.footer__logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--white);
}
.footer__copy { font-size: 0.88rem; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ============================================================
   INTERACTIVITY
   ============================================================ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--terra), #7fe6ac);
  z-index: 60;
  transition: width 0.08s linear;
}

/* Animated hamburger → X */
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Active nav link (scroll-spy) */
.nav__links a.is-current:not(.nav__cta) { color: var(--terra); }
.nav__links a.is-current:not(.nav__cta)::after { width: 100%; }
.nav.is-scrolled .nav__links a.is-current:not(.nav__cta) { color: var(--terra); }

/* Back-to-top button */
.to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 55;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px -8px rgba(24, 191, 92, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
              background 0.3s, visibility 0.35s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--terra-dark); transform: translateY(-3px); }

/* Menu category filter */
.menu-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.menu-filter__btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.menu-filter__btn:hover { border-color: var(--terra); color: var(--terra); transform: translateY(-2px); }
.menu-filter__btn.is-active {
  background: var(--terra);
  border-color: var(--terra);
  color: #fff;
}
.menu__col { transition: opacity 0.4s var(--ease); }
.menu__col.is-hidden { display: none; }
.menu.is-filtered {
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
}

/* Gallery: clickable + hover overlay hint */
.gallery__item { cursor: pointer; }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9,32,19,0) 55%, rgba(9,32,19,0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery__item::before {
  content: "⤢";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  z-index: 2;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--terra-dark);
  font-size: 1.15rem;
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item:hover::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 20, 12, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.35s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background 0.25s, transform 0.25s;
}
.lightbox__close {
  top: 22px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.8rem;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  font-size: 2rem;
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__close:hover { background: var(--terra); transform: rotate(90deg); }
.lightbox__nav:hover { background: var(--terra); transform: translateY(-50%) scale(1.08); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Nav collapses to hamburger earlier so links never crowd the logo */
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 28px;
    background: rgba(246, 250, 247, 0.99);
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform 0.45s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { color: var(--ink) !important; width: 100%; padding: 10px 0; }
  .nav__links a:not(.nav__cta) { border-bottom: 1px solid var(--line); }
  .nav__links a:not(.nav__cta)::after { display: none; }
  .nav__cta { text-align: center; margin-top: 10px; }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .menu { grid-template-columns: 1fr; gap: 8px; }
  .menu__col + .menu__col { margin-top: 24px; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; }
  .visit { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .about__facts { gap: 24px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
