/* Kanellopoulos Xmas 2026 landing */
:root {
  --petrol: #0F4A5F;
  --petrol-deep: #0A3445;
  --teal: #12A39A;
  --red: #C01E32;
  --red-dark: #9A1726;
  --gold: #B08D48;
  --gold-soft: #E9DCC0;
  --ecru: #FAF6EF;
  --ecru-2: #F3ECE0;
  --ink: #1D2A33;
  --muted: #56636D;
  --line: #E4DACB;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 52, 69, .12);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Noto Serif Display', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
html.viewer-lock, html.viewer-lock body { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ecru);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--petrol); }
svg { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; color: var(--petrol-deep); line-height: 1.15; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .container { padding: 0 14px; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--petrol); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.expired-banner { background: var(--red); color: #fff; text-align: center; padding: 12px 16px; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(192, 30, 50, .25); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: #fff; color: var(--petrol); border-color: var(--petrol); }
.btn-secondary:hover { background: var(--petrol); color: #fff; }
.btn-outline { background: transparent; color: var(--petrol); border-color: var(--petrol); }
.btn-outline:hover { background: var(--petrol); color: #fff; }
.btn-light { background: #fff; color: var(--petrol-deep); }
.btn-light:hover { background: var(--gold-soft); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--teal) 0 33%, var(--red) 33% 66%, var(--petrol) 66%); opacity: .9; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.brand img { height: 48px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.hdr-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--petrol); text-decoration: none; min-height: 44px; }
.hdr-link:hover { color: var(--red); }
@media (max-width: 720px) { .hdr-link { display: none; } }
@media (max-width: 480px) {
  .header-inner { min-height: 64px; }
  .brand img { height: 36px; }
  .hide-xs { display: none; }
  .btn-sm { padding: 8px 12px; font-size: .88rem; }
}
@media (max-width: 360px) { .brand img { height: 30px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 400px at 90% -10%, rgba(176,141,72,.14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(18,163,154,.10), transparent 60%),
    var(--ecru);
  padding: 44px 0 36px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.eyebrow.light { color: var(--gold-soft); }
.spark { color: var(--gold); }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); margin-bottom: 16px; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 560px; margin-bottom: 18px; }
.date-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--gold-soft); color: var(--petrol-deep);
  padding: 8px 14px; border-radius: 999px; font-size: .98rem; margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(176,141,72,.12);
}
.date-badge svg { color: var(--gold); }
.date-badge strong { color: var(--red); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.visit-chips { list-style: none; padding: 0; margin: 22px 0 10px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--petrol-deep); font-weight: 600; }
.visit-chips li { display: inline-flex; align-items: center; gap: 7px; }
.visit-chips svg { color: var(--teal); }
.note-line { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 10px; }

.hero-cover { position: relative; display: block; max-width: 470px; justify-self: center; width: 100%; text-decoration: none; }
.hero-cover img { position: relative; z-index: 2; border-radius: 6px; box-shadow: 0 24px 48px rgba(10,52,69,.22), 0 2px 6px rgba(0,0,0,.08); transform: rotate(1.5deg); transition: transform .35s ease; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.cover-stack { position: absolute; inset: 0; z-index: 1; }
.cover-stack::before, .cover-stack::after { content: ''; position: absolute; inset: 0; border-radius: 6px; background: #fff; box-shadow: 0 10px 24px rgba(10,52,69,.10); }
.cover-stack::before { transform: rotate(-3.5deg) translate(-8px, 6px); }
.cover-stack::after { transform: rotate(-1deg) translate(-3px, 3px); background: #f7f1e6; }
.hero-cover:hover img { transform: rotate(0deg) translateY(-4px); }
.cover-cta { position: absolute; z-index: 3; right: 14px; bottom: 14px; background: var(--red); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 999px; font-size: .92rem; box-shadow: 0 6px 16px rgba(0,0,0,.2); }

@media (max-width: 900px) {
  .hero { padding: 28px 0 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-cover { display: none; }
}
@media (max-width: 480px) {
  .cta-row .btn { flex: 1 1 100%; }
  .visit-chips { gap: 6px 14px; font-size: .95rem; }
}

/* ---------- Flipbook ---------- */
.flipbook-section { padding: 34px 0 44px; background: linear-gradient(180deg, var(--ecru-2), var(--ecru) 70%); scroll-margin-top: 8px; border-top: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.muted-title { color: var(--gold); font-weight: 500; }
.section-sub { color: var(--muted); margin-top: 6px; font-size: .98rem; }

.reader { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.book-zone { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; }
.book-frame { position: relative; max-width: 100%; cursor: zoom-in; }
.book { margin: 0 auto; }
.book .page { background: #fff; overflow: hidden; }
.book .page img { width: 100%; height: 100%; object-fit: contain; background: #f4efe6; user-select: none; -webkit-user-select: none; pointer-events: none; }
.stf__parent { box-shadow: none; }
.book-frame::after { /* soft table shadow */
  content: ''; position: absolute; left: 6%; right: 6%; bottom: -14px; height: 22px;
  background: radial-gradient(ellipse at center, rgba(10,52,69,.22), transparent 70%); z-index: -1; pointer-events: none;
}

.side-nav {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--petrol); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: background .2s, transform .15s, opacity .2s;
}
.side-nav svg { width: 28px; height: 28px; }
.side-nav:hover:not(:disabled) { background: var(--red); transform: scale(1.06); }
.side-nav:disabled { opacity: .3; cursor: default; }
@media (max-width: 899px) { .side-nav { display: none; } }

.toolbar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: 0 4px 14px rgba(10,52,69,.07);
}
.tb-btn {
  min-width: 44px; height: 44px; border-radius: 999px; border: none; background: transparent; color: var(--petrol-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none;
  font: 700 .95rem var(--font); padding: 0 10px; transition: background .2s, color .2s;
}
.tb-btn svg { width: 24px; height: 24px; }
.tb-btn:hover:not(:disabled) { background: var(--ecru-2); color: var(--red); }
.tb-btn:disabled { opacity: .3; cursor: default; }
.tb-wide { padding: 0 14px; background: var(--ecru); }
.counter { min-width: 140px; text-align: center; font-weight: 700; color: var(--petrol-deep); font-variant-numeric: tabular-nums; }
.tb-sep { width: 1px; height: 26px; background: var(--line); margin: 0 4px; }
@media (max-width: 520px) {
  .toolbar { border-radius: 18px; row-gap: 4px; width: 100%; }
  .tb-sep { flex-basis: 100%; height: 0; margin: 0; background: none; }
  .counter { min-width: 0; flex: 1; font-size: .95rem; }
  .tb-wide { flex: 1; padding: 0 12px; }
}

.thumbs {
  display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 6px 4px 10px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.thumb {
  position: relative; flex: 0 0 auto; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 8px;
  background: #fff; cursor: pointer; overflow: hidden; scroll-snap-align: center; transition: border-color .2s, transform .15s, opacity .2s; opacity: .75;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb span { position: absolute; right: 3px; bottom: 3px; background: rgba(10,52,69,.85); color: #fff; font-size: .7rem; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 4px; }
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb.active { border-color: var(--red); opacity: 1; }
@media (min-width: 900px) { .thumb { width: 82px; height: 82px; } }

.fallback-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; width: 100%; }
.fallback-grid img { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow); }
.fallback-pdf { text-align: center; margin-top: 18px; }
.no-js .reader { display: none; }

/* ---------- Visit ---------- */
.visit { background: var(--petrol-deep); color: #E8EEF0; padding: 56px 0; position: relative; overflow: hidden; scroll-margin-top: 8px; }
.visit::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 300px at 100% 0, rgba(176,141,72,.18), transparent 60%), radial-gradient(600px 300px at 0 100%, rgba(18,163,154,.16), transparent 60%); pointer-events: none; }
.visit-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.visit h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
.visit-copy > p { color: #C9D6DB; margin-bottom: 22px; max-width: 520px; }
.visit-facts { margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.visit-facts div { border-top: 1px solid rgba(233,220,192,.28); padding-top: 10px; }
.visit-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-soft); font-weight: 700; }
.visit-facts dd { margin: 2px 0 0; color: #fff; font-weight: 600; }
.visit-facts a { color: #fff; }
.map-card { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #0d3e50; box-shadow: 0 18px 40px rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); }
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  width: 100%; height: 100%; border: 0; cursor: pointer; color: #fff; font-family: var(--font);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 38px),
    linear-gradient(135deg, #10556b, #0b3a4b);
}
.map-pin { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(192,30,50,.22); }
.map-pin svg { width: 32px; height: 32px; }
.map-title { font-weight: 800; font-size: 1.15rem; margin-top: 6px; }
.map-hint { color: #C9D6DB; font-size: .92rem; }
.map-placeholder:hover .map-pin { transform: scale(1.06); }
@media (max-width: 900px) {
  .visit { padding: 40px 0; }
  .visit-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 480px) {
  .visit-facts { grid-template-columns: 1fr; }
  .visit .cta-row .btn { flex: 1 1 100%; }
}

/* ---------- Footer ---------- */
.site-footer { background: #072634; color: #A9BBC2; padding: 32px 0 34px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 24px; }
.f-brand { font-family: var(--serif); color: #fff; font-size: 1.3rem; font-weight: 600; }
.site-footer a { color: #fff; }
.f-legal { margin-top: 8px; font-size: .82rem; color: #8AA0A8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 6px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(10,52,69,.08);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 12px;
    font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--petrol-deep); background: var(--ecru);
  }
  .mobile-bar a.primary { background: var(--red); color: #fff; }
}

/* ---------- Viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 1000; background: #06161E; display: flex; flex-direction: column; }
.viewer[hidden] { display: none; }
.viewer-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); color: #fff; }
.viewer-count { font-weight: 700; padding-left: 6px; }
.viewer-tools { display: flex; gap: 8px; }
.v-btn { width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 1.4rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.v-btn:hover { background: var(--red); }
.viewer-stage { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: zoom-in; margin: 0 8px; }
.viewer.zoomed .viewer-stage { cursor: grab; }
.viewer-stage img { position: absolute; transform-origin: 0 0; user-select: none; -webkit-user-select: none; max-width: none; background: #fff; border-radius: 4px; }
.viewer-loading { position: absolute; right: 14px; bottom: 14px; width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; opacity: 0; transition: opacity .2s; }
.viewer-loading.on { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: none; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.v-nav svg { width: 30px; height: 30px; }
.v-nav:hover:not(:disabled) { background: var(--red); }
.v-nav:disabled { opacity: .25; cursor: default; }
.v-nav.prev { left: 12px; }
.v-nav.next { right: 12px; }
.viewer-hint { text-align: center; color: #9FB3BA; font-size: .85rem; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); }
@media (max-width: 600px) {
  .v-nav { top: auto; bottom: calc(46px + env(safe-area-inset-bottom)); transform: none; width: 48px; height: 48px; }
  .viewer-hint { padding-left: 64px; padding-right: 64px; }
}
