/* ============================================================
   GLOU — natural wine bar & bottle shop
   Palette: deep aubergine, cherry-magenta, citron, warm bone
   Type: Fraunces (display, wonky soft serif) · Space Grotesk (body)
         · Caveat (handwritten scrawls) · mono via Space Grotesk
   ============================================================ */

:root {
  --ink: #20102f;        /* deep aubergine background */
  --ink-2: #2c1840;      /* lifted panel */
  --wine: #e2447a;       /* cherry-magenta accent */
  --wine-deep: #b32a5b;
  --zest: #e9ff6b;       /* electric citron, used sparingly */
  --bone: #f4eee2;       /* warm paper surface */
  --bone-dim: #e7dfcd;
  --blush: #f6d9e3;
  --text-on-dark: #f4eee2;
  --text-on-light: #2a1830;
  --muted: #b39ec4;

  --maxw: 1180px;
  --r: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
  margin: 0;
}

a { color: inherit; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--wine);
  font-weight: 600;
  margin: 0 0 1.4rem;
}
.eyebrow.dark { color: var(--wine-deep); }

.scrawl {
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
  color: var(--zest);
  line-height: 1.1;
  transform: rotate(-4deg);
  display: inline-block;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(32, 16, 47, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 238, 226, 0.08);
}
.brand {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-dot { color: var(--wine); }
.nav { display: flex; gap: 1.8rem; }
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--bone); }
.book {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  background: var(--zest);
  color: var(--ink);
  transition: transform 0.15s;
}
.book:hover { transform: translateY(-2px) rotate(-1.5deg); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 4vw, 3rem) 2.5rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.9rem, 8vw, 6.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 1.6rem;
}
.hero-title .line { display: block; }
.hero-title em {
  font-style: italic;
  font-weight: 900;
  color: var(--wine);
  font-optical-sizing: auto;
}
.hero-sub {
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  background: var(--wine);
  color: #fff;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); background: var(--wine-deep); }
.scrawl-hero { font-size: 1.25rem; }

/* ---------- pour animation ---------- */
.pour {
  position: relative;
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.glou-chant {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--zest);
}
.glou-chant span {
  opacity: 0;
  animation: chant 2.4s infinite;
}
.glou-chant span:nth-child(2) { animation-delay: 0.3s; }
.glou-chant span:nth-child(3) { animation-delay: 0.6s; }
@keyframes chant {
  0% { opacity: 0; transform: translateY(6px) rotate(-6deg); }
  18% { opacity: 1; transform: translateY(0) rotate(-3deg); }
  40%, 100% { opacity: 0; transform: translateY(-8px) rotate(-2deg); }
}
.bottle {
  position: absolute;
  top: 90px;
  right: 38px;
  width: 54px;
  transform: rotate(38deg);
  transform-origin: bottom left;
}
.bottle .neck {
  position: absolute;
  top: -34px; left: 18px;
  width: 16px; height: 38px;
  background: linear-gradient(var(--wine-deep), var(--wine));
  border-radius: 4px 4px 0 0;
}
.bottle .body {
  display: block;
  width: 54px; height: 120px;
  background: linear-gradient(150deg, #3a1f4d, #1c0f2a);
  border: 1px solid rgba(244,238,226,0.12);
  border-radius: 10px 10px 14px 14px;
}
.bottle .stream {
  position: absolute;
  top: 116px; left: 50px;
  width: 4px; height: 0;
  background: linear-gradient(var(--wine), var(--wine-deep));
  border-radius: 4px;
  transform: rotate(-38deg);
  transform-origin: top;
  animation: stream 2.4s infinite;
}
@keyframes stream {
  0%, 8% { height: 0; opacity: 0; }
  20% { height: 96px; opacity: 1; }
  78% { height: 96px; opacity: 1; }
  92%, 100% { height: 0; opacity: 0; }
}
.glass {
  position: relative;
  width: 110px; height: 130px;
  margin-bottom: 8px;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0 0 34px 0;
  background: rgba(244,238,226,0.06);
  border: 2px solid rgba(244,238,226,0.5);
  border-bottom: none;
  border-radius: 8px 8px 60px 60px / 8px 8px 90px 90px;
  backdrop-filter: blur(2px);
}
.glass::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 6px;
  background: rgba(244,238,226,0.5);
  border-radius: 3px;
}
.glass .fill {
  position: absolute;
  left: 8px; right: 8px; bottom: 34px;
  height: 0;
  background: linear-gradient(var(--wine), var(--wine-deep));
  border-radius: 4px 4px 56px 56px / 4px 4px 80px 80px;
  animation: fill 2.4s infinite;
}
@keyframes fill {
  0%, 14% { height: 0; }
  72% { height: 56px; }
  88% { height: 56px; }
  100% { height: 0; }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid rgba(244,238,226,0.1);
  border-bottom: 1px solid rgba(244,238,226,0.1);
  background: var(--wine);
  overflow: hidden;
  padding: 0.6rem 0;
}
.marquee-track {
  display: flex;
  gap: 1.4rem;
  white-space: nowrap;
  width: max-content;
  animation: scroll-x 26s linear infinite;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: #fff;
}
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* ---------- tonight (chalkboard) ---------- */
.tonight {
  max-width: var(--maxw);
  margin: clamp(3rem, 7vw, 6rem) auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1.6rem;
  align-items: start;
}
.board {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.04), transparent 40%),
    var(--ink-2);
  border: 1px solid rgba(244,238,226,0.1);
  border-radius: var(--r);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.board-head { margin-bottom: 1.8rem; }
.board-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.board-date {
  font-family: "Caveat", cursive;
  font-size: 1.25rem;
  color: var(--zest);
  margin: 0.3rem 0 0;
}
.glass-list { list-style: none; margin: 0; padding: 0; }
.glass-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "main price" "note price";
  gap: 0.1rem 1.2rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(244,238,226,0.15);
}
.g-main { grid-area: main; display: flex; flex-direction: column; }
.g-name { font-weight: 600; font-size: 1.08rem; }
.g-meta { font-size: 0.85rem; color: var(--muted); }
.g-note {
  grid-area: note;
  font-family: "Caveat", cursive;
  font-size: 1.15rem;
  color: var(--zest);
  margin-top: 0.2rem;
}
.g-price {
  grid-area: price;
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.7rem;
}
.g-price::before { content: "€"; font-size: 0.95rem; vertical-align: super; color: var(--muted); margin-right: 1px; }
.board-foot { margin: 1.6rem 0 0; color: var(--muted); }
.board-foot strong { color: var(--bone); font-family: "Fraunces", serif; }

.snacks {
  background: var(--bone);
  color: var(--text-on-light);
  border-radius: var(--r);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.snacks h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.snacks ul { list-style: none; margin: 0; padding: 0; }
.snacks li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(42,24,48,0.12);
  font-size: 0.96rem;
}
.snacks .mono { font-weight: 600; }
.snack-note {
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  color: var(--wine-deep);
  margin: 1rem 0 0;
}

/* ---------- bottles ---------- */
.bottles {
  background: var(--bone);
  color: var(--text-on-light);
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  position: relative;
}
.section-head {
  max-width: var(--maxw);
  margin: 0 auto 2.6rem;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}
.section-head h2 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -0.02em; }
.lede { max-width: 52ch; color: #6a5470; margin: 1rem 0 0; }

.bottle-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.card {
  background: #fff;
  border: 1px solid var(--bone-dim);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 18px 40px -22px rgba(42,16,48,0.5);
}
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  background: var(--blush);
  color: var(--wine-deep);
}
.badge.orange { background: #ffe2c2; color: #b25b12; }
.badge.red { background: #f6cdcd; color: #a82a2a; }
.vintage { color: #9a86a0; font-weight: 600; }
.card h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.region { font-size: 0.9rem; color: #8a76a0; margin: 0 0 0.9rem; }
.tnote {
  font-family: "Caveat", cursive;
  font-size: 1.25rem;
  color: var(--wine-deep);
  line-height: 1.15;
  margin: 0 0 1.4rem;
  flex: 1;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: "Fraunces", serif; font-weight: 900; font-size: 1.5rem; }
.add {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.add:hover { background: var(--ink); color: var(--bone); }
.add.added { background: var(--wine); border-color: var(--wine); color: #fff; }

.box-bar {
  position: fixed;
  bottom: 1.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--ink);
  color: var(--bone);
  padding: 0.7rem 1.2rem;
  border-radius: 100px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5);
}
.box-bar[hidden] { display: none; }
.box-bar strong { color: var(--zest); font-family: "Fraunces", serif; }
.box-clear {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-family: inherit; font-size: 0.85rem; text-decoration: underline;
}

/* ---------- about ---------- */
.about {
  max-width: var(--maxw);
  margin: clamp(3.5rem, 8vw, 6rem) auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}
.big-quote {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0 0 3rem;
}
.big-quote::first-letter { color: var(--wine); }
.about-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(244,238,226,0.12);
  padding-top: 2rem;
}
.about-cols h4 { font-size: 1.25rem; color: var(--zest); margin-bottom: 0.6rem; }
.about-cols p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- visit ---------- */
.visit {
  max-width: var(--maxw);
  margin: 0 auto clamp(4rem, 9vw, 7rem);
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}
.visit-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(140deg, var(--wine), var(--wine-deep));
  border-radius: 24px;
  overflow: hidden;
}
.visit-info { padding: clamp(2rem, 5vw, 3.5rem); color: #fff; }
.visit-info .eyebrow { color: var(--zest); }
.visit-info h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1.2rem; }
.addr { font-size: 1.15rem; margin: 0 0 1.6rem; }
.hours { margin: 0 0 2rem; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size: 0.98rem;
}
.hours dt { font-weight: 600; }
.hours dd { margin: 0; opacity: 0.9; }
.visit-actions { display: flex; align-items: center; gap: 1.4rem; }
.visit-actions .btn { background: var(--ink); }
.visit-actions .btn:hover { background: #160a22; }
.ghost { text-decoration: underline; font-size: 0.95rem; }

.visit-vibe {
  position: relative;
  background:
    linear-gradient(rgba(32,16,47,0.45), rgba(32,16,47,0.78)),
    url("images/glou-interior.webp");
  background-size: cover;
  background-position: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scrawl-1 { position: absolute; top: 18%; left: 12%; transform: rotate(-7deg); }
.scrawl-2 { position: absolute; bottom: 18%; right: 10%; transform: rotate(5deg); color: var(--blush); }
.vibe-glass {
  display: none;
  width: 120px; height: 150px;
  background: radial-gradient(circle at 40% 30%, rgba(226,68,122,0.5), transparent 60%);
  border: 2px solid rgba(244,238,226,0.3);
  border-radius: 10px 10px 70px 70px;
  position: relative;
}
.vibe-glass::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 10px; height: 60%;
  background: linear-gradient(var(--wine), var(--wine-deep));
  border-radius: 4px 4px 60px 60px;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid rgba(244,238,226,0.1);
  padding: 3rem clamp(1.2rem, 4vw, 3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.foot-brand { font-family: "Fraunces", serif; font-weight: 900; font-size: 2rem; }
.footer p { margin: 0; color: var(--muted); }
.foot-fine { font-size: 0.82rem; color: #6a5470; margin-top: 0.6rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .pour { height: 280px; order: -1; margin-bottom: 1rem; }
  .tonight { grid-template-columns: 1fr; }
  .bottle-grid { grid-template-columns: repeat(2, 1fr); }
  .about-cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .visit-card { grid-template-columns: 1fr; }
  .visit-vibe { min-height: 220px; }
}
@media (max-width: 560px) {
  .nav { display: none; }
  .bottle-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.6rem, 13vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .glass .fill { height: 48px; }
  .bottle .stream { height: 90px; opacity: 1; }
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--zest);
  outline-offset: 3px;
  border-radius: 4px;
}
