/* Οινοποιείο Γκλίναβος — under construction one-pager */

:root {
  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --ink: #201d1e;
  --ink-soft: #57524f;
  --muted: #8a847e;
  --line: #d8d3ca;
  --gold: #b48a3c;
  --night: #1b1a19;

  --display: "Didact Gothic", "Century Gothic", "Futura", sans-serif;
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(1.8rem, 4vw, 3.1rem); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  margin: 0 0 1.1rem;
  font-size: .74rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: .6em 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Logo (SVG used as mask so it takes currentColor) ---------- */
.logo { display: inline-block; aspect-ratio: 195 / 137; }
.logo svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.logo--sm { width: 72px; }
.logo--lg { width: clamp(150px, 19vw, 240px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 14px var(--gutter);
  color: #f6efe3;
  transition: background .4s, box-shadow .4s, color .4s, transform .4s var(--ease);
}
.nav__brand { display: flex; opacity: 0; transition: opacity .4s; }
.nav.is-solid { color: var(--ink); background: rgba(243, 241, 236, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav.is-solid .nav__brand { opacity: 1; }
.nav__links { display: flex; gap: 2rem; margin-left: auto; }
.nav__links a {
  text-decoration: none; font-size: .8rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: currentColor; transition: right .35s var(--ease);
}
.nav__links a:hover::after { right: 0; }
.lang { display: flex; align-items: center; gap: .3rem; font-size: .8rem; letter-spacing: .1em; }
.lang > span { opacity: .5; }
.lang button { background: none; border: 0; padding: 4px 2px; color: inherit; opacity: .55; letter-spacing: inherit; }
.lang button[aria-pressed="true"] { opacity: 1; font-weight: 500; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- Hero / parallax ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 640px; max-height: 1100px;
  overflow: hidden;
  isolation: isolate;
  display: flex; flex-direction: column; align-items: center;
}
.hero__photo {
  position: absolute; inset: -12% 0 0; z-index: -3;
  background: #8c8277 url(../img/hero-zitsa.jpg) center 40% / cover no-repeat;
  will-change: transform;
}
.hero__tint { /* sepia wash over the black & white photo */
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(40,26,12,.55) 0%, rgba(40,26,12,.25) 30%, rgba(40,26,12,0) 50%),
    linear-gradient(180deg, rgba(205,168,118,.55) 0%, rgba(160,115,62,.6) 55%, rgba(112,76,40,.7) 100%);
  mix-blend-mode: multiply;
}
.hero::after { /* fog fading into the page */
  content: ""; position: absolute; inset: auto 0 0; height: 46%; z-index: -1;
  background: linear-gradient(rgba(243,241,236,0), rgba(243,241,236,.88) 45%, var(--paper) 72%);
  pointer-events: none;
}

.hero__head { margin-top: clamp(84px, 13vh, 130px); color: #f6efe3; will-change: transform; filter: drop-shadow(0 2px 14px rgba(30,20,10,.35)); }

.hero__foot {
  position: relative; z-index: 2; margin-top: auto;
  text-align: center;
  padding: clamp(40px, 6vh, 64px) var(--gutter) clamp(28px, 5vh, 52px);
}
.hero__foot h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  letter-spacing: .32em; text-transform: uppercase; font-weight: 400;
  margin-right: -.32em;
}
.hero__sub {
  margin: .9rem 0 0;
  font-family: var(--display); font-size: clamp(1rem, 1.6vw, 1.3rem);
  letter-spacing: .04em; color: var(--ink-soft);
}
.hero__note {
  margin: 1rem 0 0; display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s ease-in-out infinite; }

@keyframes pulse { 50% { opacity: .25; } }

@media (max-width: 600px) {
  .hero::after { /* taller fog: the title wraps to two lines here */
    height: 56%;
    background: linear-gradient(rgba(243,241,236,0), rgba(243,241,236,.88) 42%, var(--paper) 70%);
  }
  .hero__foot h1 { font-size: 1.3rem; letter-spacing: .16em; margin-right: -.16em; }
  .hero__sub { font-size: .95rem; }
  .hero__note { font-size: .68rem; letter-spacing: .1em; }
}

/* ---------- About ---------- */
.about { padding: clamp(80px, 12vw, 150px) 0 clamp(60px, 8vw, 110px); }
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__body p { margin: 0 0 1.2em; color: var(--ink-soft); max-width: 60ch; }
.facts {
  margin-top: clamp(48px, 7vw, 90px); margin-bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.facts div { padding: 26px 20px 0 0; }
.facts dt { font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1; }
.facts dd { margin: .6rem 0 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

/* ---------- Wines (zig-zag) ---------- */
.wines { padding: clamp(70px, 9vw, 120px) 0; background: var(--paper-2); }
.wines__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.lb__btn svg, .social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.zigzag { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 120px); }
.slide {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(28px, 7vw, 110px);
}
.slide:nth-child(even) .slide__img { order: 2; }
.slide__img {
  --tint: #ece4d2;
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  background: radial-gradient(60% 55% at 50% 55%, rgba(255,255,255,.7), rgba(255,255,255,0) 70%), var(--tint);
  overflow: hidden;
}
.slide--white .slide__img { --tint: #e3e4d3; }
.slide--rose .slide__img { --tint: #efdcd2; }
.slide__img img {
  position: absolute; inset: 7% 0; width: 100%; height: 86%;
  object-fit: contain;
  transition: transform 1s var(--ease);
}
.slide:hover .slide__img img { transform: translateY(-8px); }
.slide__num { margin: 0 0 1.2rem; font-family: var(--display); font-size: 1rem; letter-spacing: .14em; color: var(--muted); }
.slide h3 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .6rem; }
.slide__type { margin: 0 0 1.6rem; font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.slide__desc { margin: 0 0 2rem; color: var(--ink-soft); max-width: 44ch; }
.slide__meta { margin: 0; border-top: 1px solid var(--line); max-width: 44ch; }
.slide__meta div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.slide__meta dt { color: var(--muted); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.slide__meta dd { margin: 0; text-align: right; }

@media (max-width: 760px) {
  .slide { grid-template-columns: 1fr; gap: 24px; }
  .slide:nth-child(even) .slide__img { order: 0; }
  .slide__img { aspect-ratio: 1 / 1; }
}

/* ---------- Masonry gallery ---------- */
.gallery { padding: clamp(80px, 11vw, 140px) 0; }
.gallery h2 { margin-bottom: clamp(36px, 5vw, 64px); }
.masonry { columns: 4 240px; column-gap: 14px; }
.masonry button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2);
  margin: 0 0 14px; break-inside: avoid;
  overflow: hidden; cursor: zoom-in; position: relative;
}
.masonry img {
  width: 100%; height: auto;
  transition: transform .9s var(--ease), opacity .6s;
  opacity: 0;
}
.masonry img.is-loaded { opacity: 1; }
.masonry button:hover img { transform: scale(1.045); }
.masonry button::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 60%, rgba(0,0,0,.25));
  opacity: 0; transition: opacity .4s;
}
.masonry button:hover::after { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 19, 18, .96);
  display: grid; place-items: center;
  opacity: 0; transition: opacity .3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb__fig img {
  max-width: min(92vw, 1600px); max-height: 84vh; width: auto; height: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transition: opacity .25s;
}
.lb__fig img.is-loading { opacity: .2; }
.lb__fig figcaption { color: #bdb7ae; font-size: .82rem; letter-spacing: .04em; text-align: center; padding: 0 60px; }
.lb__btn {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #f1ede6;
  display: grid; place-items: center; transition: background .2s;
}
.lb__btn:hover { background: rgba(255,255,255,.16); }
.lb__close { top: 18px; right: 18px; }
.lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb__prev, .lb__next { top: auto; bottom: 18px; transform: none; }
}

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 10vw, 130px) 0; background: var(--night); color: #ece8e1; }
.contact .eyebrow { color: #d1aa5f; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: stretch; }
.contact__lead { color: #a8a299; max-width: 42ch; margin: 1.2rem 0 2rem; }
address { font-style: normal; display: flex; flex-direction: column; margin-bottom: 1.6rem; }
address strong { font-weight: 500; letter-spacing: .04em; }
address span { color: #a8a299; }
.contact__list { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 1px solid rgba(255,255,255,.12); }
.contact__list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.contact__list li > span:first-child { color: #8f897f; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: #d1aa5f; }
.social { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.social a[aria-label] {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center; transition: background .25s, color .25s;
}
.social a[aria-label]:hover { background: #ece8e1; color: var(--night); }
.social .fill { fill: currentColor; }
.maps-link { margin-left: auto; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.maps-link:hover { color: #d1aa5f; }
.map { min-height: 380px; position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); transition: filter .5s; }
.map:hover iframe { filter: none; }
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #8f897f; border-top: 1px solid rgba(255,255,255,.08); }
.footer__inner { display: flex; align-items: center; gap: 20px; padding-top: 26px; padding-bottom: 26px; font-size: .8rem; }
.footer .logo { color: #ece8e1; width: 54px; }
.footer p { margin: 0; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
