/* ==========================================================================
   069 · TIDEHOUSE (بيت المدّ) — 1:1 Sun-Washed Mediterranean Paper & 24h Porthole Sun-Dial
   #F7EEDC warm cream · #0E2233 deep sea-navy booking band · #E07A3F terracotta · Arched rooms
   ========================================================================== */

:root {
  --th-paper: #F7EEDC;
  --th-lime: #F2E3C6;
  --th-sea: #1F5F8B;
  --th-navy: #0E2233;
  --th-ink: #16202A;
  --th-muted: #5B6670;
  --th-terra: #E07A3F;
  --th-terra-ink: #A4461C;
  --th-sun: #F6C453;
  --th-line: rgba(14, 34, 51, 0.15);
  --th-serif: 'Amiri', Georgia, serif;
  --th-sans: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
  --th-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--th-paper);
  color: var(--th-ink);
  font-family: var(--th-sans);
  letter-spacing: 0;
}

body {
  background: radial-gradient(circle at 50% 0%, #FBF4E6 0%, #F7EEDC 55%, #EFE1C4 100%);
  color: var(--th-ink);
  font-family: var(--th-sans);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

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

button, input, select {
  font-family: inherit;
  letter-spacing: 0;
}

.th-terra-italic {
  font-family: var(--th-serif);
  font-style: italic;
  color: var(--th-terra-ink);
}

.th-btn-terra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 999px;
  border: none;
  background: var(--th-terra);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.th-btn-terra:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.th-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid var(--th-line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--th-ink);
  font-size: 14px;
  font-weight: 500;
}

/* ======================== STICKY TOP NAVBAR & NAVY MENU ======================== */
.th-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 68px;
  padding: 0 32px;
  background: rgba(247, 238, 220, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--th-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.th-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--th-serif);
  font-size: 22px;
  font-weight: 700;
}

.th-sun-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--th-terra);
  display: inline-block;
}

.th-nav-inline {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
  color: var(--th-muted);
}

.th-nav-inline a:hover {
  color: var(--th-ink);
}

.th-menu-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--th-line);
  background: transparent;
  color: var(--th-ink);
  cursor: pointer;
  font-size: 16px;
}

.th-navy-menu {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: var(--th-navy);
  color: var(--th-paper);
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 48px 64px;
  gap: 16px;
}

.th-navy-menu.is-open {
  display: flex;
}

.th-navy-menu a {
  font-family: var(--th-serif);
  font-size: 38px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(247, 238, 220, 0.16);
}

/* ======================== 1. HERO + INTERACTIVE 24H PORTHOLE DIAL ======================== */
.th-hero {
  max-width: 1260px;
  margin: 0 auto;
  padding: 44px 32px 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.th-h1 {
  font-family: var(--th-serif);
  font-size: clamp(2.6rem, 5vw, 4.35rem);
  font-weight: 400;
  line-height: 1.16;
  margin: 12px 0 16px;
}

.th-trust-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.th-trust-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--th-line);
  font-size: 12px;
  color: var(--th-muted);
}

.th-env-bar {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--th-line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  font-family: var(--th-mono);
  font-size: 11.5px;
  color: var(--th-muted);
}

/* Interactive Circular Porthole Sun-Dial */
.th-porthole-wrap {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.th-porthole {
  position: relative;
  width: min(440px, 86vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 14px;
  background: #FBF6EA;
  border: 1px solid var(--th-line);
  box-shadow: 0 24px 60px rgba(22, 32, 42, 0.12);
}

.th-porthole-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.th-porthole-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.45s ease;
}

.th-porthole-pill {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(14, 34, 51, 0.78);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-family: var(--th-mono);
  font-size: 11.5px;
  white-space: nowrap;
}

/* ======================== 2. DAY TIMELINE & 3. ARCHED ROOMS ======================== */
.th-sec {
  max-width: 1260px;
  margin: 0 auto;
  padding: 84px 32px;
  border-top: 1px solid var(--th-line);
}

.th-h2 {
  font-family: var(--th-serif);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
}

.th-day-pill {
  margin-top: 24px;
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: var(--th-navy);
  gap: 4px;
  flex-wrap: wrap;
}

.th-day-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(247, 238, 220, 0.72);
  font-size: 13px;
  cursor: pointer;
}

.th-day-btn.is-active {
  background: var(--th-terra);
  color: #FFFFFF;
  font-weight: 600;
}

.th-rooms-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.th-room-card {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--th-line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.th-room-arch {
  aspect-ratio: 4 / 4.3;
  border-radius: 999px 999px 14px 14px;
  overflow: hidden;
}

.th-room-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-quotes-4 {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* ======================== CLOSING DEEP SEA-NAVY BOOKING BAND (#stay) ======================== */
.th-stay-band {
  background: var(--th-navy);
  color: var(--th-paper);
  padding: 96px 32px;
}

.th-stay-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.th-booking-bar {
  margin-top: 32px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(247, 238, 220, 0.16);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}

.th-book-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(247, 238, 220, 0.2);
  background: rgba(14, 34, 51, 0.8);
  color: var(--th-paper);
  font-size: 13.5px;
}

.th-btn-sun {
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  background: var(--th-sun);
  color: #16202A;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ======================== FOOTER ======================== */
.th-footer {
  max-width: 1260px;
  margin: 0 auto;
  padding: 56px 32px 36px;
}

.th-watermark {
  margin: 34px 0 20px;
  text-align: center;
  font-family: var(--th-serif);
  font-size: clamp(3.2rem, 9.5vw, 7.6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(31, 95, 139, 0.38);
}

.th-showcase-bar {
  padding-top: 18px;
  border-top: 1px solid var(--th-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--th-muted);
}

@media (max-width: 720px) {
  .th-nav-inline {
    display: none;
  }
  .th-hero,
  .th-env-bar,
  .th-rooms-grid,
  .th-quotes-4,
  .th-booking-bar {
    grid-template-columns: 1fr;
  }
}
