/* ==========================================================
   The Grand Sunny — Ship Restaurant Template
   Theme: nautical wood, deep sea navy, warm lantern gold
   ========================================================== */

:root {
  --navy: #0e1c2b;
  --navy-soft: #16293d;
  --wood: #5b3a24;
  --wood-dark: #3d2617;
  --gold: #e8a33d;
  --gold-soft: #f3c168;
  --cream: #f7efe2;
  --cream-dim: #e5d9c5;
  --text-muted: #a8b4c0;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font-display: "Pirata One", cursive;
  --font-heading: "Cinzel", serif;
  --font-body: "Josefin Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.7;
}

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

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

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 28, 43, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(232, 163, 61, 0.25);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo .sun {
  font-size: 1.4rem;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(232, 163, 61, 0.4);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-color: var(--gold);
}

.has-dropdown {
  position: relative;
}

.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.has-dropdown > a::after {
  content: "▾";
  font-size: 0.65rem;
  opacity: 0.75;
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  list-style: none;
  padding: 0.55rem 0;
  background: rgba(22, 41, 61, 0.98);
  border: 1px solid rgba(232, 163, 61, 0.35);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 120;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -0.85rem;
  left: 0;
  right: 0;
  height: 0.85rem;
}

.dropdown li {
  text-align: left;
}

.dropdown a {
  display: block;
  padding: 0.65rem 1.15rem;
  border-bottom: none;
  letter-spacing: 1.5px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.dropdown a:hover,
.dropdown a.active {
  color: var(--gold);
  background: rgba(232, 163, 61, 0.1);
  border-color: transparent;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.7rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #c77f1e);
  color: #241503;
  font-weight: 700;
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(232, 163, 61, 0.35);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-image) center/cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 28, 43, 0.55),
    rgba(14, 28, 43, 0.75) 80%,
    var(--navy)
  );
  z-index: -1;
}

.hero-inner {
  padding: 6rem 1rem;
  max-width: 820px;
}

.hero .kicker {
  font-family: var(--font-heading);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--cream);
  line-height: 1.1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero h1 span {
  color: var(--gold);
}

.hero p.lead {
  margin: 1.4rem auto 2.4rem;
  font-size: 1.15rem;
  color: var(--cream-dim);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Compact page-top hero for inner pages */
.hero.hero-page {
  min-height: 48vh;
}

/* ---------- Hero carousel ---------- */

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(232, 163, 61, 0.5);
  background: rgba(14, 28, 43, 0.55);
  color: var(--gold);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.hero-arrow:hover {
  background: rgba(232, 163, 61, 0.25);
}

.hero-arrow.prev {
  left: 1.5rem;
}

.hero-arrow.next {
  right: 1.5rem;
}

.hero-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.hero-caption {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(14, 28, 43, 0.6);
  padding: 0.35rem 1.1rem;
  border-radius: 30px;
  border: 1px solid rgba(232, 163, 61, 0.3);
}

.hero-dots {
  display: flex;
  gap: 0.6rem;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.hero-dots button.active {
  background: var(--gold);
  transform: scale(1.25);
}

/* ---------- Sections ---------- */

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--navy-soft);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-head .kicker {
  font-family: var(--font-heading);
  letter-spacing: 5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.section-head p {
  color: var(--text-muted);
}

.divider {
  width: 90px;
  height: 3px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Room cards (home) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.room-card {
  background: var(--navy-soft);
  border: 1px solid rgba(232, 163, 61, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, border-color 0.3s;
}

.section-alt .room-card {
  background: var(--navy);
}

.room-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 163, 61, 0.5);
}

.room-card .thumb {
  height: 230px;
  overflow: hidden;
}

.room-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.room-card:hover .thumb img {
  transform: scale(1.07);
}

.room-card .body {
  padding: 1.6rem;
}

.room-card h3 {
  font-family: var(--font-heading);
  color: var(--gold-soft);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.room-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.room-card .link {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- Room feature rows (rooms page) ---------- */

.room-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4.5rem 0;
  border-bottom: 1px dashed rgba(232, 163, 61, 0.2);
}

.room-feature:last-child {
  border-bottom: none;
}

.room-feature.reverse .media {
  order: 2;
}

.room-feature .media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(232, 163, 61, 0.2);
}

.room-feature .tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.3rem 0.9rem;
  border-radius: 30px;
  margin-bottom: 1rem;
}

.room-feature h3 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--cream);
  margin-bottom: 1rem;
}

.room-feature p {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.room-feature ul {
  list-style: none;
  margin-bottom: 1.6rem;
}

.room-feature ul li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.45rem;
  color: var(--cream-dim);
}

.room-feature ul li::before {
  content: "⚓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.85rem;
}

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat h3 {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
}

.stat p {
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ---------- Menu ---------- */

.menu-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
}

.menu-cats a {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(232, 163, 61, 0.35);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.menu-cats a:hover,
.menu-cats a.active {
  background: rgba(232, 163, 61, 0.18);
  color: var(--gold);
  border-color: var(--gold);
}

.menu-page-list {
  max-width: 760px;
  margin: 0 auto;
}

.menu-tabsish {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 3rem;
}

.menu-block h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.4rem;
  border-bottom: 2px solid rgba(232, 163, 61, 0.3);
  padding-bottom: 0.7rem;
  margin-bottom: 1.6rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1.4rem;
}

.menu-item .info h4 {
  font-size: 1.05rem;
  color: var(--cream);
  font-weight: 600;
}

.menu-item .info p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.menu-item .dots {
  flex: 1;
  border-bottom: 2px dotted rgba(232, 163, 61, 0.35);
  transform: translateY(-6px);
}

.menu-item .price {
  font-family: var(--font-heading);
  color: var(--gold-soft);
  font-weight: 700;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(232, 163, 61, 0.18);
  color: var(--gold-soft);
  border: 1px solid rgba(232, 163, 61, 0.4);
  padding: 0.1rem 0.55rem;
  border-radius: 20px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ---------- Menu flipbook ---------- */

.flipbook-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.flipbook {
  position: relative;
  width: min(940px, 100%);
  height: 640px;
  perspective: 2800px;
}

/* Closed-book boards visible before/after all pages are turned */
.book-base {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(145deg, var(--wood-dark), #2a1a0e);
  border: 1px solid rgba(232, 163, 61, 0.25);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.book-base span {
  font-family: var(--font-heading);
  color: rgba(243, 193, 104, 0.7);
  letter-spacing: 3px;
  font-size: 0.9rem;
  line-height: 2;
  text-transform: uppercase;
}

.book-base.left {
  left: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}

.book-base.right {
  right: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 1s cubic-bezier(0.45, 0.05, 0.25, 1);
  cursor: pointer;
}

.sheet.flipped {
  transform: rotateY(-180deg);
}

.page {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(135deg, #f9f2e4, #efe2c8);
  padding: 2.2rem 2.4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page.front {
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: inset 12px 0 24px -14px rgba(61, 38, 23, 0.55);
}

.page.back {
  transform: rotateY(180deg);
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: inset -12px 0 24px -14px rgba(61, 38, 23, 0.55);
}

.page h3 {
  font-family: var(--font-heading);
  color: var(--wood);
  font-size: 1.25rem;
  border-bottom: 2px solid rgba(91, 58, 36, 0.35);
  padding-bottom: 0.6rem;
  margin-bottom: 1.3rem;
}

.page .menu-item {
  margin-bottom: 1.15rem;
}

.page .menu-item .info h4 {
  color: #2a1a0e;
  font-size: 1rem;
  font-weight: 600;
}

.page .menu-item .info p {
  color: #7a6a52;
  font-size: 0.84rem;
}

.page .menu-item .dots {
  border-bottom-color: rgba(91, 58, 36, 0.4);
}

.page .menu-item .price {
  color: #8a5a1c;
}

.page .badge {
  background: rgba(199, 127, 30, 0.14);
  color: #8a5a1c;
  border-color: rgba(138, 90, 28, 0.45);
}

.page-num {
  margin-top: auto;
  align-self: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: rgba(91, 58, 36, 0.6);
}

/* Cover and closing pages */
.page.cover {
  background:
    radial-gradient(ellipse at center, rgba(232, 163, 61, 0.12), transparent 65%),
    linear-gradient(150deg, #1a2f47, var(--navy));
  border: 1px solid rgba(232, 163, 61, 0.35);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page.cover .cover-inner {
  border: 2px solid rgba(232, 163, 61, 0.45);
  border-radius: 10px;
  padding: 3rem 2rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.page.cover .cover-sun {
  font-size: 2.6rem;
}

.page.cover h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 2.4rem;
  border: none;
  margin: 0;
  padding: 0;
}

.page.cover p {
  font-family: var(--font-heading);
  color: var(--cream-dim);
  letter-spacing: 3px;
  font-size: 0.85rem;
  text-transform: uppercase;
  line-height: 2;
}

.page.cover .cover-hint {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
  animation: pulse-hint 2s infinite;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.flip-controls {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.flip-controls .btn {
  padding: 0.65rem 1.6rem;
  font-size: 0.78rem;
}

.flip-controls .btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.flip-indicator {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
  min-width: 180px;
  text-align: center;
}

/* Flipbook mobile fallback: stack pages as plain cards */
@media (max-width: 760px) {
  .flipbook {
    height: auto;
    perspective: none;
  }

  .book-base,
  .flip-controls,
  .page.cover,
  .page-num {
    display: none;
  }

  .sheet {
    position: static;
    width: 100%;
    height: auto;
    transform: none !important;
    cursor: default;
  }

  .page {
    position: static;
    transform: none;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
  }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(232, 163, 61, 0.2);
}

.about-grid h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  margin-bottom: 1.2rem;
  color: var(--cream);
}

.about-grid p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--navy);
  border: 1px solid rgba(232, 163, 61, 0.15);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
}

.value-card .icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.value-card h3 {
  font-family: var(--font-heading);
  color: var(--gold-soft);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Reservation / Forms ---------- */

.res-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.res-info h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.res-info p {
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.info-line {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.info-line .icon {
  font-size: 1.3rem;
  color: var(--gold);
}

.info-line h4 {
  color: var(--cream);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.info-line p {
  margin: 0;
  font-size: 0.95rem;
}

.form-card {
  background: var(--navy-soft);
  border: 1px solid rgba(232, 163, 61, 0.2);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--navy);
  border: 1px solid rgba(232, 163, 61, 0.25);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ---------- Events ---------- */

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.event-card {
  background: var(--navy-soft);
  border: 1px solid rgba(232, 163, 61, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 163, 61, 0.5);
}

.event-card .thumb {
  height: 210px;
  overflow: hidden;
  position: relative;
}

.event-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.event-card:hover .thumb img {
  transform: scale(1.07);
}

.event-card .date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(14, 28, 43, 0.9);
  border: 1px solid rgba(232, 163, 61, 0.45);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  text-align: center;
  min-width: 58px;
}

.event-card .date-badge .day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}

.event-card .date-badge .month {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.event-card .body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-card h3 {
  font-family: var(--font-heading);
  color: var(--gold-soft);
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.event-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  flex: 1;
}

.event-detail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.event-detail .media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(232, 163, 61, 0.2);
}

.event-detail .content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--cream);
  margin-bottom: 1rem;
}

.event-detail .content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.event-info-box {
  margin-top: 1.8rem;
  padding: 1.4rem 1.5rem;
  background: var(--navy-soft);
  border: 1px solid rgba(232, 163, 61, 0.2);
  border-radius: var(--radius);
}

.event-info-box h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.event-info-box ul {
  list-style: none;
}

.event-info-box li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(232, 163, 61, 0.15);
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.event-info-box li:last-child {
  border-bottom: none;
}

.event-info-box li strong {
  color: var(--gold-soft);
  font-weight: 600;
  white-space: nowrap;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
}

.feature-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  color: var(--cream-dim);
  border-bottom: 1px dashed rgba(232, 163, 61, 0.12);
}

.feature-list li::before {
  content: "⚓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.error-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.error-page p {
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 2rem;
}

.error-page .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  padding: 5rem 0;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-deck.png") center/cover no-repeat fixed;
  z-index: -2;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 43, 0.82);
  z-index: -1;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--cream);
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--cream-dim);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0a1420;
  border-top: 1px solid rgba(232, 163, 61, 0.2);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-grid h4 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 0.55rem;
}

.footer-grid ul a:hover {
  color: var(--gold-soft);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.3rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Page transition (spinning ship's wheel) ---------- */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  background:
    radial-gradient(ellipse at center, rgba(232, 163, 61, 0.08), transparent 60%),
    var(--navy);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s;
}

.page-transition.hidden {
  opacity: 0;
  visibility: hidden;
}

.page-transition svg {
  width: 110px;
  height: 110px;
  animation: wheel-spin 1.4s linear infinite;
  filter: drop-shadow(0 0 18px rgba(232, 163, 61, 0.45));
}

.page-transition span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-soft);
}

@keyframes wheel-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .room-feature,
  .about-grid,
  .event-detail,
  .res-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .room-feature.reverse .media {
    order: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .menu-tabsish {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(14, 28, 43, 0.98);
    border-bottom: 1px solid rgba(232, 163, 61, 0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-links.open {
    max-height: 980px;
  }

  .nav-links li {
    text-align: center;
    padding: 0.9rem 0;
  }

  .has-dropdown {
    padding: 0;
  }

  .has-dropdown > a {
    justify-content: center;
    width: 100%;
    padding: 0.9rem 0;
  }

  .dropdown {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown::before {
    display: none;
  }

  .has-dropdown.open > .dropdown,
  .has-dropdown:focus-within > .dropdown {
    max-height: 320px;
  }

  .has-dropdown:hover > .dropdown {
    max-height: 0;
  }

  .has-dropdown.open:hover > .dropdown {
    max-height: 320px;
  }

  .dropdown li {
    text-align: center;
    padding: 0;
  }

  .dropdown a {
    padding: 0.7rem 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .hero-arrow.prev {
    left: 0.6rem;
  }

  .hero-arrow.next {
    right: 0.6rem;
  }
}
