/* Hotel Meridiaan — design system
   Palette roles: paper (bg) · ink (text) · pine (primary surface) · terra (accent) · brass (detail) */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/karla-latin.woff2") format("woff2");
}

:root {
  --paper: #f5efe4;
  --paper-deep: #ece3d2;
  --ink: #2a211b;
  --ink-soft: #5b4f45;
  --pine: #2e4638;
  --pine-deep: #243a2e;
  --terra: #b9542e;
  --terra-deep: #9c4423;
  --brass: #a8894f;
  --cream-on-dark: #f2ecdd;
  --line: rgba(42, 33, 27, 0.16);
  --line-on-dark: rgba(242, 236, 221, 0.22);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", "Segoe UI", system-ui, sans-serif;

  --text-xs: 0.78rem;
  --text-sm: 0.92rem;
  --text-base: 1.06rem;
  --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  --text-h3: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --text-h2: clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --text-h1: clamp(2.75rem, 1.9rem + 4.4vw, 5.2rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4.5rem, 3.5rem + 5vw, 8.5rem);

  --wrap: 74rem;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 380;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-weight: 420; }

p {
  margin: 0 0 var(--space-2);
  max-width: 62ch;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--pine);
  color: var(--cream-on-dark);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.2rem;
  border-radius: 3px;
}
.skip-link:focus-visible {
  left: 0.5rem;
}

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  transition: box-shadow 0.3s var(--ease-out);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}
.site-header.on-dark:not(.is-scrolled) {
  background: transparent;
  color: var(--cream-on-dark);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-2);
  min-height: 4.25rem;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  padding: 0.6rem 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover {
  border-bottom-color: currentColor;
}
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--terra);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 480;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  padding: 0.55rem 0;
}

.nav-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.book-mini {
  display: none;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--terra);
  color: inherit;
  padding: 0.6rem 0;
  min-height: 44px;
  align-items: center;
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: inherit;
  font: inherit;
  font-size: var(--text-sm);
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  min-height: 44px;
}

/* mobile menu */
.mobile-menu {
  border: none;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  background: var(--pine);
  color: var(--cream-on-dark);
}
.mobile-menu::backdrop {
  background: rgba(36, 58, 46, 0.5);
}
.mobile-menu-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu nav {
  margin: auto 0;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu li + li {
  border-top: 1px solid var(--line-on-dark);
}
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  padding: 0.9rem 0;
  text-decoration: none;
}
.mobile-menu a[aria-current="page"] {
  color: #e8b491;
  font-style: italic;
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--terra);
  color: #fff;
  border: 1px solid var(--terra);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.btn:hover {
  background: var(--terra-deep);
  border-color: var(--terra-deep);
}
.btn-quiet {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-quiet:hover {
  background: rgba(42, 33, 27, 0.06);
  border-color: currentColor;
}
.on-dark .btn-quiet:hover,
.band-pine .btn-quiet:hover {
  background: rgba(242, 236, 221, 0.1);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding: 0.35rem 0;
  min-height: 44px;
}
.link-arrow::after {
  content: "→";
  transition: translate 0.25s var(--ease-out);
}
.link-arrow:hover::after {
  translate: 0.3rem 0;
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 var(--space-2);
}
.band-pine .eyebrow,
.on-dark .eyebrow {
  color: #dfa17c;
}

.rule-star {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--brass);
  margin: var(--space-4) 0;
}
.rule-star::before,
.rule-star::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.band-pine .rule-star::before,
.band-pine .rule-star::after {
  border-color: var(--line-on-dark);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(92svh, 56rem);
  display: grid;
  align-items: end;
  color: var(--cream-on-dark);
  isolation: isolate;
  overflow: clip;
  margin-top: -4.25rem; /* sit under transparent header */
}
.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
@keyframes hero-drift {
  from { scale: 1; }
  to { scale: 1.07; }
}
.hero-media img {
  animation: hero-drift 26s var(--ease-out) forwards;
  transform-origin: 60% 40%;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
.hero-video.is-playing {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(26, 20, 15, 0.42), rgba(26, 20, 15, 0.08) 52%, rgba(26, 20, 15, 0) 70%),
    linear-gradient(200deg, rgba(26, 20, 15, 0) 45%, rgba(26, 20, 15, 0.6) 100%),
    linear-gradient(180deg, rgba(26, 20, 15, 0.38), rgba(26, 20, 15, 0) 32%);
}
.hero-inner {
  padding: var(--space-6) 0 clamp(3rem, 8vh, 5.5rem);
}
.hero h1 {
  max-width: 11em;
  margin-bottom: var(--space-2);
  text-shadow: 0 1px 30px rgba(26, 20, 15, 0.35);
}
.hero .hero-sub {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  max-width: 34ch;
  margin-bottom: var(--space-3);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

@keyframes rise {
  from { opacity: 0; translate: 0 1.4rem; }
  to { opacity: 1; translate: 0 0; }
}
.hero h1, .hero .hero-sub, .hero .hero-actions {
  animation: rise 0.9s var(--ease-out) both;
}
.hero .hero-sub { animation-delay: 0.12s; }
.hero .hero-actions { animation-delay: 0.24s; }

/* page hero (interior pages) */
.page-head {
  padding: var(--space-5) 0 var(--space-4);
  text-align: center;
}
.page-head .eyebrow { margin-bottom: var(--space-1); }
.page-head p {
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
}

/* ---------- sections ---------- */

.section {
  padding-block: var(--space-6);
}
.section-tight {
  padding-block: var(--space-5);
}

.band-pine {
  background: var(--pine);
  color: var(--cream-on-dark);
}
.band-pine p { color: inherit; }

.band-paper-deep {
  background: var(--paper-deep);
}

/* asymmetric editorial split */
.split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 800px) {
  .split {
    grid-template-columns: 5fr 6fr;
    gap: clamp(2.5rem, 6vw, 6rem);
  }
  .split.flip > .split-media { order: 2; }
}

/* ---------- arch imagery (signature) ---------- */

.arch {
  border-radius: 999rem 999rem 10px 10px;
  overflow: hidden;
  position: relative;
  background: var(--paper-deep);
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.02;
  transition: scale 0.8s var(--ease-out);
}
.arch-3x4 { aspect-ratio: 3 / 4; }
.arch-4x3 { aspect-ratio: 4 / 3; }
.arch-wide { aspect-ratio: 16 / 10; }
a:hover .arch img,
.card:hover .arch img {
  scale: 1.07;
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
@media (min-width: 640px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639.98px) {
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
}

.card {
  display: block;
  text-decoration: none;
}
.card h3 {
  margin: var(--space-2) 0 0.3rem;
}
.card .card-meta {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  margin-bottom: 0.4rem;
}
.band-pine .card .card-meta {
  color: rgba(242, 236, 221, 0.75);
}
.card .card-price {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--terra);
}
.band-pine .card .card-price { color: #e8b491; }

/* ---------- room rows (rooms page) ---------- */

.room-row {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-5);
  border-top: 1px solid var(--line);
  align-items: center;
}
.room-row:first-of-type { border-top: none; }
@media (min-width: 800px) {
  .room-row {
    grid-template-columns: 6fr 5fr;
    gap: clamp(2.5rem, 6vw, 5.5rem);
  }
  .room-row.flip > .room-media { order: 2; }
}
.room-facts {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
}
.room-facts li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: var(--text-sm);
}
.room-facts li::before {
  content: "✦";
  color: var(--brass);
  font-size: 0.7em;
}
.room-price-tag {
  display: inline-block;
  border: 1px solid var(--terra);
  border-radius: 999px;
  color: var(--terra-deep);
  font-size: var(--text-sm);
  padding: 0.35rem 1.1rem;
  margin-bottom: var(--space-2);
}

/* ---------- reviews ---------- */

.review {
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}
.review blockquote {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 350;
  line-height: 1.4;
}
.review figcaption {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.review .stars {
  color: var(--brass);
  letter-spacing: 0.2em;
  font-size: var(--text-sm);
  display: block;
  margin-bottom: var(--space-1);
}

/* ---------- guide ---------- */

.walk-time {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.map-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.map-panel iframe {
  display: block;
  width: 100%;
  height: clamp(20rem, 55vw, 32.5rem);
  border: 0;
  filter: grayscale(0.25) sepia(0.12);
}

/* ---------- forms ---------- */

.form-panel {
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.form-grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field {
  position: relative;
}
.field label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.4;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.8rem 0.95rem;
  min-height: 46px;
}
.field ::placeholder {
  color: var(--ink-soft);
  opacity: 0.75;
}
/* date inputs: quiet English prompt instead of the locale skeleton (dd.mm.yyyy) */
.field input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
}
.field input[type="date"]:not(:focus):invalid,
.field input[type="date"]:not(:focus):invalid::-webkit-datetime-edit {
  color: transparent;
}
.field:has(input[type="date"]:not(:focus):invalid)::after {
  content: "Select date";
  position: absolute;
  left: 0.98rem;
  top: calc(var(--text-xs) * 1.65 + 0.5rem + 0.85rem);
  font-size: var(--text-base);
  color: var(--ink-soft);
  pointer-events: none;
}
.field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 1px;
  border-color: var(--terra);
}
.field .hint {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  margin-top: 0.35rem;
}
.field .error-msg {
  display: none;
  font-size: var(--text-sm);
  color: #8f2f0f;
  margin-top: 0.35rem;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #8f2f0f;
}
.field.has-error .error-msg { display: block; }

.form-note {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.confirm-panel {
  border: 1px solid var(--pine);
  border-radius: 12px;
  background: #eef0e4;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.confirm-panel h3 { color: var(--pine-deep); }
.confirm-panel dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.5rem;
  margin: 0 0 var(--space-2);
}
.confirm-panel dt { font-weight: 700; font-size: var(--text-sm); }
.confirm-panel dd { margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(242, 236, 221, 0.85);
  padding: var(--space-5) 0 var(--space-4);
  font-size: var(--text-sm);
}
.footer-grid {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer .wordmark {
  display: inline-block;
  margin-bottom: var(--space-2);
  color: var(--cream-on-dark);
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-2);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { padding: 0.28rem 0; }
.site-footer a { text-decoration-color: rgba(242, 236, 221, 0.4); }
.site-footer li a,
.site-footer address a {
  display: inline-block;
  padding: 0.62rem 0;
  margin: -0.45rem 0;
}
.footer-legal a {
  display: inline-block;
  padding: 0.62rem 0;
  margin: -0.55rem 0;
}
.site-footer address { font-style: normal; }
.footer-legal {
  border-top: 1px solid rgba(242, 236, 221, 0.16);
  padding-top: var(--space-3);
  color: rgba(242, 236, 221, 0.6);
  font-size: var(--text-xs);
  max-width: none;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  translate: 0 1.5rem;
  transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}
@media (prefers-reduced-motion: no-preference) {
  .stagger > :nth-child(2) { --reveal-delay: 0.1s; }
  .stagger > :nth-child(3) { --reveal-delay: 0.2s; }
  .stagger > :nth-child(4) { --reveal-delay: 0.3s; }
}

/* ---------- responsive nav ---------- */

@media (max-width: 799.98px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav-cta .btn { display: none; }
  .book-mini { display: inline-flex; }
  .hero { margin-top: -4.25rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .hero h1, .hero .hero-sub, .hero .hero-actions { animation: none; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .arch img { transition: none; }
  a:hover .arch img, .card:hover .arch img { scale: 1.02; }
  .link-arrow::after { transition: none; }
}

@media print {
  .site-header, .site-footer, .hero-actions { display: none; }
}
