/* ==========================================================
   ΛΕΥΚΑΡΙΤΙΣΣΑ — Rooms & Café
   script.js weaves the linen texture and cuts the kofto reveals.
   ========================================================== */

:root {
  --linen:  #D8CDBA;
  --stitch: #FFFDF7;
  --ink:    #211C18;
  --muted:  #6B5E4E;
  --madder: #9E3426;
  --night:  #25201C;

  --tex-light: none;   /* set by script.js */
  --tex-dark: none;
  --tex-size: 198px;

  --display: "GFS Didot", "Didot", Georgia, serif;
  --sans: "Commissioner", "Helvetica Neue", Arial, sans-serif;

  --gut: clamp(20px, 5vw, 72px);
  --space: clamp(56px, 7vw, 96px);   /* one vertical rhythm for every section */
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }   /* clear the fixed header on anchor jumps */
body {
  margin: 0;
  background: var(--linen) var(--tex-light);
  background-size: var(--tex-size);
  color: var(--ink);
  font: 300 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.05; }
p { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gut);
  transition: background .4s, box-shadow .4s;
}
.site-header.scrolled, .site-header.solid { background: var(--linen) var(--tex-light); background-size: var(--tex-size); box-shadow: 0 1px 0 rgba(33, 28, 24, .08); }
.brand { font: 400 22px/1 var(--display); text-decoration: none; opacity: 0; transition: opacity .4s; }
.site-header.scrolled .brand, .site-header.solid .brand { opacity: 1; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 14px; letter-spacing: .04em; text-decoration: none; }
.nav a:hover { color: var(--madder); }
.nav-book { border: 1px solid var(--ink); padding: 9px 18px; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border: 1px solid var(--ink); background: var(--ink); color: var(--linen);
  font: 400 14px/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: background .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--linen); }
.link { font-size: 14px; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link:hover { color: var(--madder); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px var(--gut) 80px; }
.hero h1 { font-size: min(11vw, 120px); line-height: .95; }
.hero p { margin-top: 16px; font-size: 15px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }

/* live medallion (lefkaritiko.js) */
.medallion { position: relative; width: min(76vw, 52vh, 500px); aspect-ratio: 1; margin-bottom: clamp(20px, 3vh, 36px); }
.medallion canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* drawn-thread divider */
.hemstitch { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.block + .hemstitch { margin-top: var(--space); }
.hemstitch canvas { display: block; width: 100%; }

/* ---------- Sections ---------- */
.block { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: var(--space) var(--gut) 0; }
.block h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 24px; }
.lead { color: var(--muted); margin: -12px 0 24px; max-width: 52ch; }

/* ---------- Kofto (cutwork) photo reveal ---------- */
.kofto { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--night) var(--tex-dark); background-size: var(--tex-size); }
.kofto::before { content: attr(data-shot); position: absolute; left: 16px; bottom: 14px; z-index: 1; font-size: 12px; letter-spacing: .06em; color: rgba(255, 253, 247, .55); }
.kofto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kofto:has(img)::before { content: none; }
.kofto canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }

/* ---------- Rooms ---------- */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.room .kofto { aspect-ratio: 3 / 2; }
.room h3 { font-size: 24px; margin: 14px 0 2px; }
.room p { color: var(--muted); font-size: 14px; }
.book { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* ---------- Café ---------- */
.cafe { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.cafe .kofto { aspect-ratio: 1; }
.menu p { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; }
.menu b { font: 400 21px var(--display); }
.menu i { flex: 1; min-width: 16px; border-bottom: 1px dotted rgba(33, 28, 24, .35); transform: translateY(-5px); }
.menu span { font-variant-numeric: tabular-nums; }
.menu .link { display: inline-block; margin-top: 20px; }

/* ---------- Story ---------- */
.story-text { font: 400 clamp(21px, 2.3vw, 30px)/1.4 var(--display); max-width: 36ch; }
.story-text p + p { margin-top: .8em; }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--ink); padding-top: 24px; }
.visit-grid a { text-decoration: none; border-bottom: 1px solid rgba(33, 28, 24, .35); }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--space); background: var(--night) var(--tex-dark); background-size: var(--tex-size); color: var(--stitch); text-align: center; padding: 56px var(--gut) 28px; }
.footer-word { font: 400 min(9vw, 96px)/1 var(--display); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: 32px 0 26px; font-size: 14px; }
.footer-links a, .footer-links button { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; letter-spacing: .03em; }
.footer-links a:hover, .footer-links button:hover { color: #D9A08F; }
.footer-legal { font-size: 12px; line-height: 1.8; color: rgba(255, 253, 247, .5); border-top: 1px solid rgba(255, 253, 247, .12); padding-top: 20px; }
.footer-legal a { text-decoration: none; }

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 130px var(--gut) 0; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); }
.legal .updated { color: var(--muted); font-size: 14px; margin: 10px 0 36px; }
.legal h2 { font-size: 24px; margin: 32px 0 10px; }
.legal p, .legal li { color: #3b332b; font-size: 16px; }
.legal p + p { margin-top: .8em; }
.legal ul { padding-left: 20px; margin: 0; } .legal li { margin: 6px 0; }
.legal a { color: inherit; }
.cookie-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.cookie-table th, .cookie-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(33, 28, 24, .2); vertical-align: top; }
.cookie-table th { font-weight: 500; }
.cookie-settings.inline { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin: 0 auto;
  background: var(--night) var(--tex-dark); background-size: var(--tex-size); color: var(--stitch);
  padding: 20px 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); border: 1px solid rgba(255, 253, 247, .22);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  transform: translateY(calc(100% + 24px)); transition: transform .45s var(--ease);
}
.cookie-banner.show { transform: none; }
.cookie-banner p { flex: 1 1 260px; font-size: 14px; line-height: 1.5; color: rgba(255, 253, 247, .85); }
.cookie-banner a { color: inherit; }
.cookie-banner .actions { display: flex; gap: 8px; }
.cookie-banner button { font: 400 14px/1 var(--sans); padding: 12px 18px; cursor: pointer; border: 1px solid var(--stitch); }
.cookie-banner .accept { background: var(--stitch); color: var(--ink); }
.cookie-banner .reject { background: transparent; color: var(--stitch); }

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* rooms become a swipeable row */
  .rooms { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); scrollbar-width: none; }
  .rooms::-webkit-scrollbar { display: none; }
  .room { flex: 0 0 clamp(230px, 62vw, 340px); scroll-snap-align: start; }
  .rooms { scroll-padding-left: var(--gut); }
  .rooms::after { content: ""; flex: 0 0 calc(var(--gut) - 14px); }
  .cafe { grid-template-columns: 1fr; }
  .cafe .kofto { aspect-ratio: 16 / 9; }
  .visit-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 40px; height: 40px; padding: 0 8px; background: none; border: 0; cursor: pointer; z-index: 60; margin-left: auto; }
  .nav-toggle span { height: 1px; background: var(--ink); transition: transform .35s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px; background: var(--linen) var(--tex-light); background-size: var(--tex-size); opacity: 0; pointer-events: none; transition: opacity .35s; }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a { font: 400 34px/1 var(--display); letter-spacing: 0; }
  .nav-book { font-size: 16px !important; font-family: var(--sans) !important; }
  .hero { min-height: 88svh; }
  .menu b { font-size: 19px; }
  .book { flex-wrap: nowrap; gap: 8px; }
  .book .btn { flex: 1; padding: 13px 8px; font-size: 13px; }
}
