/* RiverStay — www.riverstay.com — Elegant Hotel Dummy Page */

:root {
  --color-bg: #faf8f5;
  --color-bg-dark: #1a2328;
  --color-header-start: #1e5a8c;
  --color-header-end: #143d62;
  --color-header-border: rgba(147, 197, 253, 0.22);
  --color-header-shadow: rgba(12, 45, 78, 0.42);
  --color-header-nav-hover: #bfdbfe;
  --color-river: #2d4a52;
  --color-river-light: #3d5f68;
  --color-accent: #b8860b;
  --color-accent-soft: #c9a227;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --color-white: #fff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --space: 1.5rem;
  --container: min(92vw, 1080px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Header — blue theme band */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: 56px;
  padding: 0.95rem 0;
  background: linear-gradient(180deg, var(--color-header-start) 0%, var(--color-header-end) 100%) !important;
  border-bottom: 1px solid var(--color-header-border);
  box-shadow: 0 4px 28px var(--color-header-shadow);
  transition: padding 0.3s ease;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-block {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.logo-main {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff !important;
  letter-spacing: 0.04em;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9) !important;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.site-header .nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff !important;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.site-header .nav a:hover {
  color: var(--color-header-nav-hover) !important;
}

.header-admin-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.header-admin-link:hover {
  color: var(--color-accent-soft);
}

.btn-reservation {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  background: var(--color-accent);
  color: var(--color-white);
  white-space: nowrap;
}

.btn-reservation:hover {
  background: var(--color-accent-soft);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.3s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-river) url("../images/hero-banner.png") no-repeat center center;
  background-size: cover;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space);
  width: 100%;
  max-width: 1100px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Check Availability box */
.availability-box {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.availability-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.availability-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.form-field .field-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}

.field-input {
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #333;
  background: var(--color-white);
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 120px;
}

.field-input::placeholder {
  color: #888;
}

input[type="date"].field-input {
  min-width: 130px;
  cursor: pointer;
}

.form-field-num .number-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-white);
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.num-btn {
  width: 32px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #333;
  flex-shrink: 0;
}

.num-btn:hover {
  background: #e0e0e0;
}

.field-num {
  width: 48px;
  min-width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  padding: 0.5rem;
  -moz-appearance: textfield;
}

.field-num::-webkit-outer-spin-button,
.field-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field-select {
  cursor: pointer;
  min-width: 140px;
}

.form-submit {
  align-self: stretch;
  justify-content: flex-end;
}

.btn-go {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  background: var(--color-accent);
  color: var(--color-white);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-go:hover {
  background: var(--color-accent-soft);
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-soft);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-river);
}

.btn-secondary:hover {
  background: var(--color-bg);
  color: var(--color-river);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Sections — tight vertical rhythm (CTA overrides below) */
.section {
  padding: 1.25rem 0;
}

/* First content block after hero: slightly more air under the fold */
.section#welcome {
  padding-top: 1.75rem;
}

/* Small rule + diamond between Welcome, Offers, Gallery, Rooms, Location, Amenities, Video */
main > .section:not(.cta):not(#welcome)::before {
  content: '';
  display: block;
  width: min(11rem, 72vw);
  height: 14px;
  margin: 0 auto 0.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 176 16'%3E%3Cg fill='none' stroke='%23b8860b' stroke-width='1' stroke-opacity='0.48'%3E%3Cpath d='M0 8h70'/%3E%3Cpath d='M106 8h70'/%3E%3C/g%3E%3Cpath d='M88 3.2 92.5 8 88 12.8 83.5 8z' fill='%23b8860b' fill-opacity='0.32' stroke='%23b8860b' stroke-opacity='0.42' stroke-width='0.7'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.section:not(.cta) .section-eyebrow {
  margin-bottom: 0.28rem;
}

.section:not(.cta) .section-title {
  margin-bottom: 0.75rem;
}

.section .container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--space);
  padding-right: var(--space);
  box-sizing: border-box;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 600;
  color: var(--color-river);
  margin-bottom: 0.85rem;
  letter-spacing: 0.01em;
}

.cta .section-title {
  margin-bottom: 1.35rem;
}

.section-title.light {
  color: var(--color-white);
}

.section-desc {
  color: var(--color-text-muted);
  max-width: 560px;
}

/* Welcome — full-width copy within the section, tighter vertical rhythm */
.section.welcome .container {
  max-width: 100%;
}

.welcome-text {
  max-width: none;
  width: 100%;
}

.section.welcome .section-eyebrow {
  margin-bottom: 0.35rem;
}

main > .section.welcome .section-title {
  margin-bottom: 0.65rem;
}

.welcome-text p {
  color: var(--color-text-muted);
  margin-bottom: 0.45rem;
  line-height: 1.55;
}

.welcome-text p:last-child {
  margin-bottom: 0;
}

/* Gallery — same container alignment as Welcome, Rooms, etc. */
.gallery-carousel-wrap {
  position: relative;
  margin-top: 1rem;
  padding: 0;
  user-select: none;
  width: 100%;
}

.gallery-viewport {
  position: relative;
  width: 100%;
  /* Taller than 3:2 so portrait / mixed photos show more vertical room before letterboxing */
  aspect-ratio: 4 / 3;
  max-height: min(88vh, 800px);
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: #f2efe9;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.04);
}

.gallery-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  pointer-events: none;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f2efe9;
}

.gallery-slide-fg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide-fg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.3s ease;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #444;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: background 0.2s ease, color 0.2s ease;
}

.gallery-btn:hover {
  background: #fff;
  color: var(--color-river);
}

.gallery-prev { left: 0.5rem; }
.gallery-next { right: 0.5rem; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease;
}

.gallery-dots button.active {
  background: var(--color-river);
}

@media (max-width: 768px) {
  .gallery-carousel-wrap { padding: 0; }
  .gallery-viewport {
    aspect-ratio: 4 / 3;
    max-height: min(82vh, 720px);
    min-height: 300px;
  }
  .gallery-btn { width: 38px; height: 38px; font-size: 1.2rem; }
}

/* Rooms */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.room-card {
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 248px;
  margin: 0 auto;
}

.room-card .room-image {
  height: 160px;
  background: #e8e6e3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.room-image {
  min-height: 160px;
  background: #e8e6e3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
}

.room-card .room-image img {
  max-height: 160px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.room-info {
  padding: 1rem 1.15rem;
}

.room-info h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-river);
  margin-bottom: 0.35rem;
}

.room-info p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Amenities */
.amenities-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
  max-width: 720px;
}

.amenities-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-muted);
  font-weight: 500;
}

.amenities-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* CTA — generous padding (must override .section) */
.section.cta,
.cta {
  position: relative;
  padding: 6rem 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--color-river);
}

.cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

.cta .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-text {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.domain {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--color-bg-dark);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(200deg, #163d5e 0%, #0f2840 100%);
    flex-direction: column;
    padding: 4rem 2rem 2rem;
    gap: 1.25rem;
    transform: translateX(0);
    box-shadow: -4px 0 28px rgba(12, 40, 70, 0.5);
    z-index: 99;
  }

  .btn-reservation {
    margin-left: auto;
  }

  .menu-toggle {
    display: flex;
    z-index: 101;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .availability-form .form-row {
    flex-direction: column;
  }

  .form-field {
    width: 100%;
  }

  .field-input {
    min-width: 0;
    width: 100%;
  }

  .form-submit .btn-go {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .section:not(.cta) {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .section#welcome {
    padding-top: 1.35rem;
  }

  .cta-links {
    flex-direction: column;
  }

  .btn {
    display: block;
    text-align: center;
  }

  .availability-box {
    padding: 1.25rem;
  }
}

