/* ==========================================================================
   Casa Donya — Mobile-first hub
   Single page · vertical video hero · 4 buttons · slide-up panels
   No gradients. Flat color only.
   ========================================================================== */

@font-face {
  font-family: 'La Luxes Serif';
  src: url('fonts/LaLuxesSerif.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'La Luxes Script';
  src: url('fonts/LaLuxesScript.ttf') format('truetype');
  font-display: swap;
}

:root {
  --terracotta:    #A8593A;
  --terracotta-2:  #C97A4D;
  --terracotta-3:  #6B3220;
  --cream:         #F7F1E5;
  --sand:          #ECE2CD;
  --olive:         #7C8266;
  --moss:          #4F5440;
  --cocoa:         #2A1F18;
  --charcoal:      #3D3328;
  --stone:         #6E5F4E;
  --brass:         #B89169;
  --line:          rgba(42, 31, 24, 0.14);

  --font-display:  'La Luxes Serif', Georgia, serif;
  --font-script:   'La Luxes Script', cursive;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease:          cubic-bezier(.2,.7,.2,1);
  --safe-bottom:   env(safe-area-inset-bottom, 0px);
  --safe-top:      env(safe-area-inset-top, 0px);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--charcoal);
  background: var(--cocoa);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; padding: 0; margin: 0; }
::selection { background: var(--terracotta); color: var(--cream); }

/* ===== Hub layout (mobile-first) ===== */
.hub {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  color: var(--cream);
  overflow: hidden;
}

/* Background video / photo */
.hub__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  background: var(--cocoa);
}
.hub__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hub__scrim {
  position: absolute;
  inset: 0;
  background: rgba(42, 31, 24, 0.38);
  z-index: -1;
  pointer-events: none;
}

/* Hero block — top half */
.hub__hero {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(4rem + var(--safe-top)) 1.5rem 1.5rem;
  gap: 0.4rem;
}
.hub__logo {
  width: 64px;
  height: auto;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.hub__wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  line-height: 1;
  color: var(--cream);
  margin: 0;
  letter-spacing: -0.01em;
}
.hub__tagline {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  color: var(--cream);
  margin: 0;
  line-height: 1;
}

/* Button stack — bottom half */
.hub__buttons {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 1.25rem;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}
.hub__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  width: 100%;
  text-align: left;
  background: rgba(247, 241, 229, 0.94);
  color: var(--cocoa);
  border: 1px solid rgba(168, 89, 58, 0.18);
  border-radius: 4px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.hub__button:hover,
.hub__button:active {
  background: var(--cream);
  transform: translateY(-1px);
}
.hub__button-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.hub__button-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cocoa);
}
.hub__button-sub {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
}
.hub__button-arrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--terracotta);
  line-height: 1;
}

/* Footer mini */
.hub__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  padding: 0.5rem 1.5rem calc(1rem + var(--safe-bottom));
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 241, 229, 0.78);
}
.hub__foot a { transition: color 0.25s var(--ease); }
.hub__foot a:hover { color: var(--cream); }

/* ===== Panels ===== */
.panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}
.panel.is-open { pointer-events: auto; }

.panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 31, 24, 0.55);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.panel.is-open .panel__backdrop { opacity: 1; }

.panel__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  max-height: 92dvh;
  background: var(--cream);
  color: var(--charcoal);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(42, 31, 24, 0.25);
}
.panel.is-open .panel__sheet { transform: translateY(0); }

.panel__handle {
  width: 44px;
  height: 4px;
  background: rgba(42, 31, 24, 0.2);
  border-radius: 4px;
  margin: 0.65rem auto 0;
  flex-shrink: 0;
}

.panel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.2rem 1.5rem 0;
  flex-shrink: 0;
}
.panel__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1;
  color: var(--cocoa);
  margin: 0;
}
.panel__sub {
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: var(--terracotta);
  line-height: 1;
  display: block;
  margin-top: 0.3rem;
}
.panel__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cocoa);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.panel__close:hover { transform: rotate(90deg); }

.panel__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem 1.5rem calc(2rem + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}

/* Section dividers */
.panel__hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.8rem 0;
}
.panel h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 1rem;
}
.panel h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cocoa);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}
.panel p { margin: 0 0 0.85rem; line-height: 1.6; }
.panel p:last-child { margin-bottom: 0; }
.panel a:not(.btn):not(.cta) { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }

/* Action button inside panel */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--terracotta);
  color: var(--cream);
  font-size: 0.84rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 4px;
  text-align: center;
  transition: background 0.25s var(--ease);
  margin-bottom: 0.75rem;
}
.cta:last-child { margin-bottom: 0; }
.cta:hover { background: var(--terracotta-3); }
.cta--outline {
  background: transparent;
  color: var(--cocoa);
  border: 1px solid var(--cocoa);
}
.cta--outline:hover { background: var(--cocoa); color: var(--cream); }
.cta--olive { background: var(--moss); }
.cta--olive:hover { background: var(--cocoa); }

/* Menu lines */
.menu-list { display: flex; flex-direction: column; gap: 0; }
.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
  gap: 1rem;
}
.menu-list li:last-child { border-bottom: 0; }
.menu-list li .name { color: var(--charcoal); flex: 1 1 auto; }
.menu-list li .price { color: var(--cocoa); font-variant-numeric: tabular-nums; font-weight: 500; flex-shrink: 0; }
.menu-list li .desc { display: block; font-size: 0.82rem; color: var(--stone); margin-top: 0.15rem; font-weight: 400; }

/* Tabs (used inside cafe panel) */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  padding: 0.7rem 0.9rem;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--stone);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button[aria-selected="true"] {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}
.tab-panel[hidden] { display: none; }

/* Pass cards (spa) */
.pass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}
.pass {
  background: var(--sand);
  padding: 1.2rem 1rem;
  border-radius: 4px;
  text-align: center;
}
.pass--featured { background: var(--terracotta); color: var(--cream); }
.pass__label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}
.pass__price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  margin: 0.6rem 0 0.3rem;
  color: var(--cocoa);
}
.pass--featured .pass__price { color: var(--cream); }
.pass__sub { font-size: 0.78rem; opacity: 0.85; }

/* Room tile (hotel panel) */
.room-tile {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.room-tile:last-child { border-bottom: 0; }
.room-tile__img {
  width: 64px;
  height: 64px;
  background: var(--sand);
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  flex-shrink: 0;
}
.room-tile__body { flex: 1; min-width: 0; }
.room-tile__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cocoa);
  margin: 0;
  line-height: 1.2;
}
.room-tile__meta {
  font-size: 0.78rem;
  color: var(--stone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* Info row */
.info-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.info-row:last-child { border-bottom: 0; }
.info-row dt {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin: 0;
}
.info-row dd { margin: 0; color: var(--charcoal); }

/* Note (placeholder content marker) */
.note {
  background: rgba(168, 89, 58, 0.08);
  border-left: 3px solid var(--terracotta);
  padding: 0.7rem 0.9rem;
  font-size: 0.86rem;
  color: var(--stone);
  margin-bottom: 1rem;
  border-radius: 2px;
}
.note strong { color: var(--terracotta); font-weight: 500; }

/* ===== Desktop tuning ===== */
@media (min-width: 720px) {
  .hub {
    align-items: center;
    justify-content: center;
  }
  .hub__hero { flex: 0 0 auto; padding-top: 6rem; gap: 0.6rem; }
  .hub__logo { width: 80px; }
  .hub__wordmark { font-size: 4rem; }
  .hub__tagline { font-size: 2rem; }
  .hub__buttons {
    flex: 0 0 auto;
    max-width: 460px;
    width: 100%;
    margin: 2rem auto 0;
  }
  .hub__foot {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding-bottom: calc(1.25rem + var(--safe-bottom));
  }
  .panel__sheet {
    max-width: 540px;
    left: 50%;
    transform: translate(-50%, 100%);
    border-radius: 18px;
    bottom: 4vh;
    max-height: 85vh;
  }
  .panel.is-open .panel__sheet { transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hub__bg { display: none; }
}
