@import url("fonts.css");

/* ============================================================
   Plumbing only. Nothing here is a design decision — no colour,
   no typeface, no layout. Each site writes its own visual system
   on top; this file only carries the things that must be right
   on every site and are invisible when they are.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* A sideways-scrollable page drags position:fixed elements out of view on
     phones. Clip rather than scroll. (clip, not hidden: hidden would make html
     a scroll container and break scroll-padding and sticky.) */
  overflow-x: clip;
}

body { margin: 0; }
body.is-locked { overflow: hidden; }
/* [hidden] must win. A rule like `.gallery-more { display:flex }` outranks the
   browser's own `[hidden] { display:none }`, which left an empty "Show 0 more"
   button on screen whenever a gallery had nothing further to reveal. */
[hidden] { display: none !important; }

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
/* A <button> inherits the user agent's grey `buttonface` unless something says
   otherwise. An outline/ghost button that sets only border-color and color then
   renders as light-grey with (often white) text on it — invisible. Reset here;
   any variant that wants a fill sets one and wins on specificity. */
button { background: transparent; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Reveal-on-scroll. The JS failsafe shows everything if the observer
   never runs, so content can never be stranded invisible. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease, ease), transform .7s var(--ease, ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media print {
  .site-header, .lightbox, .skip-link, .gallery-more, .filters, .map-consent, .callbar { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff !important; color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: #555; }
}

/* ============================================================
   Shadow of Athos — "sea glass"
   ------------------------------------------------------------
   The logo is pale sea-cyan gulls and waves; the rooms are teal
   velvet headboards, oak, poured-grey concrete and white. So:
   a deep teal ground for the header (the only background on which
   the pale logo actually reads — checked by rendering it, not
   assumed), warm paper and stone for the page, oak for small
   labels, cyan kept for accents on dark.

   Signature: soft, generously rounded panels — echoing the rounded
   lettering of the mark — a hero photo with an information card
   overlapping its lower edge, a gallery sorted by room, and one
   full-bleed island band (the only image wide enough for it).
   ============================================================ */

:root {
  --paper:  #fbfaf7;
  --stone:  #eef0ee;
  --teal:   #12343b;
  --teal-2: #1a454d;

  --ink:    #12343b;
  --ink-2:  #4a5f63;
  --oak:    #8a5a2b;   /* labels on paper/stone */
  --sea:    #1b6f86;   /* links and solid buttons on light */
  --cyan:   #6fcae2;   /* the logo's colour; accents on dark only */
  --mist:   #d5e9ec;   /* text on teal */
  --line:   #dfe3e0;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 24px 50px -30px rgba(18,52,59,.45);
}

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(1.02rem, .97rem + .2vw, 1.12rem)/1.7 "Ysabeau Office", "Segoe UI", Helvetica, Arial, sans-serif;
}
h1, h2, h3 { font-family: Comfortaa, "Ysabeau Office", "Segoe UI", sans-serif; font-weight: 700; line-height: 1.18; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 600; }

a { color: var(--sea); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 200; background: var(--teal); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; }

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oak); margin-bottom: .7rem; }
.eyebrow--dark { color: var(--cyan); }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--teal);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.brand img { width: clamp(150px, 16vw, 196px); height: auto; }
.nav { display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.2rem); }
.nav a {
  color: var(--mist); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: .45rem .75rem; border-radius: 999px; transition: background .25s, color .25s;
}
.nav a:hover { background: var(--teal-2); color: #fff; }
.nav a[aria-current] { color: var(--teal); background: var(--cyan); }
.nav .lang {
  border: 1px solid rgba(111,202,226,.55); color: var(--cyan); margin-left: .4rem;
  font-size: .86rem; letter-spacing: .04em;
}
.nav .lang:hover { background: var(--cyan); color: var(--teal); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(213,233,236,.35); cursor: pointer; position: relative;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 20px; height: 2px; border-radius: 2px;
    background: var(--mist); position: relative; transition: transform .3s var(--ease), background .2s;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .site-header.is-open .nav-toggle span { background: transparent; }
  .site-header.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .site-header.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 78px 0 0; flex-direction: column; justify-content: flex-start;
    padding: 2rem 1.25rem; gap: .5rem; background: var(--teal);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 1.15rem; padding: .85rem 1.4rem; width: min(100%, 22rem); text-align: center; }
  .nav .lang { margin: .8rem 0 0; }
}

/* ---------- Hero: rounded photo, card overlapping its foot -------------- */
.hero { padding: clamp(1rem, 2.5vw, 2rem) 0 0; }
.hero-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16 / 9; max-height: 74vh; width: 100%;
  background: var(--stone);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; right: 1.2rem; bottom: 1.2rem; display: flex; gap: .45rem; z-index: 2; }
.hero-dots button {
  width: 11px; height: 11px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid #fff; background: rgba(0,0,0,.25); box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.hero-dots button[aria-current="true"] { background: #fff; }

.hero-card {
  position: relative; z-index: 3;
  width: min(100% - 2rem, 860px); margin: clamp(-7rem, -9vw, -3rem) auto 0 clamp(1rem, 4vw, 3.5rem);
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
}
.hero-card p { color: var(--ink-2); margin-top: .9rem; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
@media (max-width: 640px) {
  .hero-frame { aspect-ratio: 4 / 3; }
  .hero-card { margin: -2.5rem auto 0; width: calc(100% - 1rem); }
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  font: 600 .98rem/1 "Ysabeau Office", sans-serif; text-decoration: none;
  padding: .95rem 1.4rem; border-radius: 999px; border: 2px solid var(--sea);
  background: transparent; color: var(--sea); transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--sea); color: var(--paper); }
.btn--solid { background: var(--sea); color: var(--paper); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--cyan { background: var(--cyan); border-color: var(--cyan); color: var(--teal); }
.btn--cyan:hover { background: #fff; border-color: #fff; color: var(--teal); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--stone { background: var(--stone); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p { color: var(--ink-2); }
[id] { scroll-margin-top: 90px; }

/* At a glance: the facts, each in its own rounded chip. */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: .8rem; margin-top: clamp(2rem, 4vw, 3rem); }
.glance li {
  list-style: none; display: flex; align-items: center; gap: .8rem;
  background: var(--stone); border-radius: var(--r-md); padding: 1rem 1.1rem;
  font-weight: 500; line-height: 1.3;
}
.glance svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--sea); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Gallery: filtered by room ----------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.filter {
  border: 2px solid var(--line); background: var(--paper); color: var(--ink);
  padding: .55rem 1.05rem; border-radius: 999px; font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.filter:hover { border-color: var(--sea); }
.filter[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(.6rem, 1.4vw, 1rem); }
.tile {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile .room {
  position: absolute; left: .7rem; bottom: .7rem; background: rgba(18,52,59,.88); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; padding: .3rem .7rem; border-radius: 999px;
}
.tile.is-entering { animation: tile-in .45s var(--ease) backwards; }
@keyframes tile-in { from { opacity: 0; transform: scale(.97); } }

/* ---------- Location ---------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.distances { list-style: none; display: grid; gap: .6rem; margin-top: 1.4rem; }
.distances li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: var(--paper); border-radius: var(--r-sm); }
.distances b { font-family: Comfortaa, sans-serif; color: var(--sea); white-space: nowrap; }
.map-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; gap: .9rem; text-align: center; padding: 1.5rem; }
.map-consent p { color: var(--ink-2); max-width: 34ch; margin: 0 auto; }
.map-consent svg { width: 44px; height: 44px; margin: 0 auto; fill: none; stroke: var(--sea); stroke-width: 1.6; }

/* ---------- Skiathos: the one full-bleed band --------------------------- */
.island { position: relative; padding: clamp(4rem, 12vw, 9rem) 0; overflow: hidden; }
.island > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island-card {
  position: relative; background: rgba(251,250,247,.97); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: clamp(1.6rem, 4vw, 3rem); max-width: 44rem;
}
.island-card p { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.1rem 0 1.4rem; list-style: none; }
.chips li { background: var(--stone); border-radius: 999px; padding: .35rem .85rem; font-size: .92rem; font-weight: 500; }
.sweets { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.2rem; }

/* ---------- Contact ----------------------------------------------------- */
.contact-card {
  background: var(--teal); color: var(--mist); border-radius: var(--r-lg);
  padding: clamp(1.8rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
@media (max-width: 820px) { .contact-card { grid-template-columns: 1fr; } }
.contact-card h2 { color: #fff; }
.contact-card p { color: var(--mist); }
.lines { list-style: none; display: grid; gap: .7rem; }
.lines a, .lines span.line {
  display: flex; align-items: center; gap: .85rem; color: #fff; text-decoration: none;
  background: var(--teal-2); border-radius: var(--r-md); padding: .95rem 1.1rem; font-weight: 600;
  transition: background .2s, color .2s;
}
.lines a:hover { background: var(--cyan); color: var(--teal); }
.lines svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lines a:hover svg { stroke: var(--teal); }
.lines small { display: block; font-weight: 400; font-size: .8rem; color: var(--mist); }
.lines a:hover small { color: var(--teal); }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { background: var(--teal); color: var(--mist); padding: 2.4rem 0; margin-top: clamp(3rem, 7vw, 5rem); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.site-footer img { width: 150px; }
.site-footer a { color: var(--cyan); }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; font-size: .92rem; }

/* ---------- Lightbox ---------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; background: rgba(9,26,30,.95); opacity: 0; transition: opacity .26s var(--ease); padding: clamp(1rem, 4vw, 3rem); }
.lightbox.is-open { display: grid; grid-template-rows: 1fr auto; }
.lightbox.is-visible { opacity: 1; }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-figure { margin: 0; display: grid; place-items: center; gap: .8rem; max-height: 100%; }
.lb-img { max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain; border-radius: var(--r-md); transition: opacity .2s; }
.lb-img.is-loading { opacity: .3; }
.lb-caption { color: var(--mist); text-align: center; max-width: 60ch; }
.lb-counter { margin: .6rem 0 0; text-align: center; color: var(--cyan); font-weight: 600; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.lb-btn:hover:not(:disabled) { background: var(--cyan); color: var(--teal); }
.lb-btn:disabled { opacity: .3; cursor: default; }
.lb-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.lb-prev { left: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lb-close { right: clamp(.5rem, 2vw, 1.5rem); top: clamp(.5rem, 2vw, 1.5rem); }
/* E-mail line: the icon sits outside the element site.js replaces. */
.lines li.mail { position: relative; }
.lines li.mail > svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 1; }
.lines li.mail > a, .lines li.mail > span { display: block; padding: .95rem 1.1rem .95rem 3.05rem; background: var(--teal-2); border-radius: var(--r-md); color: #fff; font-weight: 600; text-decoration: none; }
.lines li.mail > a:hover { background: var(--cyan); color: var(--teal); }
.lines li.mail:hover > svg { stroke: var(--teal); }
.gallery-more { display: flex; justify-content: center; margin-top: 1.4rem; }
