/* MK Design Hotel — shared tokens (coastal & airy) */
:root {
  /* Palette — sun-washed whites, stone, muted blues/sand */
  --bone: #F6F1E8;
  --ivory: #FBF7EF;
  --sand: #E8DCC6;
  --sand-2: #D9C9AE;
  --stone: #A89A83;
  --stone-2: #867964;
  --ink: #1E211F;
  --ink-soft: #2E322E;
  --muted: #6B6E68;
  --sea: #7A99A3;
  --sea-deep: #4C6973;
  --sea-shadow: #2E464D;
  --accent: #D4B8A0;      /* tweakable */
  --line: rgba(30, 33, 31, 0.12);
  --line-soft: rgba(30, 33, 31, 0.06);

  /* Type pair — Cormorant (display) + Inter (body). Swap via tweaks. */
  --font-display: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing (relaxed) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --radius-s: 2px;
  --radius-m: 4px;
  --radius-l: 8px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
}

.display-xl { font-size: clamp(56px, 8vw, 128px); font-weight: 300; letter-spacing: -0.03em; line-height: 0.92; }
.display-l  { font-size: clamp(44px, 5.5vw, 88px); font-weight: 300; letter-spacing: -0.02em; line-height: 0.98; }
.display-m  { font-size: clamp(32px, 3.8vw, 56px); font-weight: 400; line-height: 1.05; }
.display-s  { font-size: clamp(24px, 2.4vw, 36px); font-weight: 400; line-height: 1.15; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-2);
  font-weight: 500;
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
}

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-light {
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--ivory);
}
.btn-light:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }

/* Utility */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 32px;
}

.hairline { height: 1px; background: var(--line); width: 100%; }
.hairline-v { width: 1px; background: var(--line); height: 100%; }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Noise grain overlay */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.8'/></svg>");
  z-index: 1;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 32px;
  border-bottom: 1px solid var(--line-soft);
}
.nav.dark:not(.scrolled) { color: var(--ivory); }
.nav.dark:not(.scrolled) .nav-link::after { background: var(--ivory); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  justify-self: start;
}
.nav-link {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.4s var(--ease-out);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.14em;
  font-weight: 400;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.nav-logo small {
  font-family: var(--font-body);
  font-size: 8px;
  letter-spacing: 0.35em;
  margin-top: 4px;
  color: var(--stone-2);
  text-transform: uppercase;
}
.nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-self: end;
}
.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.lang-switch button {
  padding: 4px 6px;
  opacity: 0.5;
  transition: opacity 0.3s;
  font-weight: 500;
}
.lang-switch button.active { opacity: 1; }
.lang-switch span { opacity: 0.3; }

.nav-cta {
  padding: 10px 20px;
  border: 1px solid currentColor;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.nav.dark:not(.scrolled) .nav-cta:hover { background: var(--ivory); color: var(--ink); }

/* Footer */
.footer {
  background: var(--ink);
  color: var(--ivory);
  padding: var(--s-9) 0 var(--s-6);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(251, 247, 239, 0.5);
  font-weight: 500;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 13px; opacity: 0.85; }
.footer li a { transition: opacity 0.3s; }
.footer li a:hover { opacity: 1; }
.footer-logo {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.footer-address { font-size: 13px; opacity: 0.7; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(251, 247, 239, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Cursor-tracker */
.custom-cursor {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.2s var(--ease-out), width 0.3s, height 0.3s;
  transform: translate(-50%, -50%);
}
@media (pointer: coarse) { .custom-cursor { display: none; } }

/* MOBILE MENU (Hotel) */
.hotel-mm-btn {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
  z-index: 1002;
  color: inherit;
  opacity: 0.85;
}
.hotel-mm-btn:hover { opacity: 1; }
.hotel-mm-btn span {
  position: absolute; left: 12px;
  width: 20px; height: 1px;
  background: currentColor;
  transition: transform 280ms ease, top 280ms ease;
}
.hotel-mm-btn span:nth-child(1) { top: 18px; }
.hotel-mm-btn span:nth-child(2) { top: 25px; }
.hotel-mm-btn.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hotel-mm-btn.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.hotel-mm {
  position: fixed; inset: 0;
  z-index: 1001;
  pointer-events: none;
  visibility: hidden;
}
.hotel-mm.is-open { visibility: visible; pointer-events: auto; }
.hotel-mm-backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 33, 31, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 280ms ease;
}
.hotel-mm.is-open .hotel-mm-backdrop { opacity: 1; }
.hotel-mm-panel {
  position: absolute; top: 0; right: 0;
  width: min(440px, 94vw); height: 100dvh;
  background: var(--ivory, #FBF7EF);
  color: var(--ink, #1E211F);
  display: flex; flex-direction: column;
  padding: 22px 28px 32px;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.6, 0, 0.2, 1);
  overflow-y: auto;
  border-left: 1px solid var(--line);
}
.hotel-mm.is-open .hotel-mm-panel { transform: translateX(0); }
.hotel-mm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.hotel-mm-brand {
  font-family: var(--font-display);
  font-size: 26px; letter-spacing: 0.06em; line-height: 1;
  display: flex; flex-direction: column;
}
.hotel-mm-brand small {
  font-family: var(--font-body); font-weight: 500;
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--stone-2); margin-top: 6px; opacity: 0.8;
}
.hotel-mm-close {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 22px; line-height: 1;
  color: inherit; cursor: pointer;
  transition: background 200ms ease;
}
.hotel-mm-close:hover { background: rgba(30,33,31,0.05); }
.hotel-mm-nav { display: flex; flex-direction: column; flex: 1; }
.hotel-mm-link {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(8px);
  transition: opacity 360ms ease, transform 360ms ease, color 200ms ease;
}
.hotel-mm.is-open .hotel-mm-link { opacity: 1; transform: translateY(0); }
.hotel-mm-link:hover, .hotel-mm-link.active { color: var(--accent); font-style: italic; }
.hotel-mm-num {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--accent); opacity: 0.8;
  min-width: 28px;
}
.hotel-mm-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.hotel-mm-foot .lang-switch {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
}
.hotel-mm-foot .lang-switch button {
  background: none; border: none; cursor: pointer; padding: 4px 4px;
  color: var(--ink); opacity: 0.5;
}
.hotel-mm-foot .lang-switch button.active { opacity: 1; color: var(--accent); }
.hotel-mm-cta {
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
  transition: background 200ms ease;
}
.hotel-mm-cta:hover { background: var(--sea-deep); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links, .nav-right .nav-cta { display: none; }
  .nav-right .lang-switch { display: none; }
  .hotel-mm-btn { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-logo { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .hotel-mm-panel, .hotel-mm-backdrop, .hotel-mm-link { transition-duration: 0.01ms !important; }
}

/* ======= MOBILE: 768px ======= */
@media (max-width: 768px) {
  .container, .container-wide { padding: 0 20px; }

  .nav { padding: 14px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-logo { font-size: 18px; }

  .footer { padding: 64px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-logo { font-size: 32px; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    font-size: 10px;
    padding-top: 20px;
  }

  .display-xl { font-size: clamp(40px, 12vw, 72px); }
  .display-l  { font-size: clamp(32px, 9vw, 56px); }
  .display-m  { font-size: clamp(24px, 7vw, 40px); }
}

/* ======= MOBILE: 480px ======= */
@media (max-width: 480px) {
  .container, .container-wide { padding: 0 16px; }
  .nav { padding: 12px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo { font-size: 28px; }
}
