/* ===========================
   RIVERSIDE HOTEL — style.css
   =========================== */

/* Custom Properties */
:root {
  --dark: #181a20;
  --light: #fcfaf6;
  --white: #ffffff;
  --accent: #b07d4f;
  --overlay: rgba(24, 26, 32, 0.6);
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  --radius: 10px;
  --radius-sm: 5px;
  --transition: 0.25s ease-out;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--dark);
  background: var(--white);
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 0;
}

.lead {
  font-size: 1.05rem;
  opacity: 0.85;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  padding: 0.75em 1.5em;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-lg {
  padding: 0.9em 2em;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5em 1.1em;
  font-size: 0.85rem;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--dark);
  border-color: var(--dark);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark);
}

/* ===========================
   HEADER / NAV
   =========================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(24, 26, 32, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.nav-logo img {
  height: 102px;
  width: auto;
}

/* Checkbox toggle — hidden */
.nav-checkbox {
  display: none;
}

/* Hamburger */
.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 10;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Burger to X animation */
.nav-checkbox:checked + .nav-burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-checkbox:checked + .nav-burger span:nth-child(2) {
  opacity: 0;
}

.nav-checkbox:checked + .nav-burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav links */
.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--dark);
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.1rem;
}

.nav-checkbox:checked ~ .nav-links {
  display: flex;
}

.nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-links li:last-child {
  border-bottom: none;
  padding-top: 0.75rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  padding: 0.65rem 0;
  display: block;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-burger {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
  }

  .nav-links li {
    border-bottom: none;
  }

  .nav-links li:last-child {
    padding-top: 0;
  }

  .nav-links a {
    padding: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
  }
}

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: 0;
}

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

/* Mobile: static image */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../images/cirencester_15.webp');
  background-size: cover;
  background-position: center;
}

.hero-video {
  display: none;
}

@media (min-width: 768px) {
  .hero-bg-image {
    display: none;
  }

  .hero-video {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 10rem 1.25rem 3rem;
  max-width: 680px;
  width: 100%;
}

.hero-logo {
  height: 110px;
  width: auto;
  margin: 0 auto 2rem;
}

.hero-content h1 {
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.award-badge {
  height: 175px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

@media (min-width: 768px) {
  .award-badge {
    height: 250px;
  }
}

/* ===========================
   ABOUT / THE RIVERSIDE WAY
   =========================== */

.about {
  background: var(--light);
}

.about-intro {
  max-width: 680px;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 540px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.09);
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

/* ===========================
   LOCATION / CIRENCESTER
   =========================== */

.location {
  background: var(--dark);
  color: var(--white);
  padding-bottom: 0;
}

.location-intro {
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.location-intro p {
  opacity: 0.8;
}

/* Gallery */
.gallery-wrap {
  overflow: hidden;
  margin-bottom: 3rem;
}

.gallery-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 1.25rem 0.5rem;
  cursor: grab;
}

.gallery-scroll:active {
  cursor: grabbing;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-scroll img {
  scroll-snap-align: start;
  height: 240px;
  width: auto;
  border-radius: var(--radius);
  flex-shrink: 0;
  object-fit: cover;
  cursor: pointer;
  transition: opacity var(--transition);
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-scroll img:hover {
  opacity: 0.88;
}

@media (min-width: 768px) {
  .gallery-scroll img {
    height: 320px;
  }
}

/* Hotel photos strip */
.hotel-photos {
  padding-bottom: 0;
}

.hotel-photos-scroll {
  justify-content: center;
}

.hotel-photos-scroll img {
  height: 160px;
  width: 240px;
  max-width: none;
  cursor: default;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hotel-photos-scroll img {
    height: 200px;
    width: 300px;
  }
}

/* Cirencester video */
.location-video {
  padding-bottom: 4rem;
}

.location-video video {
  width: 100%;
  border-radius: var(--radius);
  max-height: 500px;
  object-fit: cover;
}

/* ===========================
   ROOMS
   =========================== */

.rooms {
  background: var(--white);
}

.rooms-intro {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.rooms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 560px) {
  .rooms-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .rooms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.room-card {
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.09);
}

.room-image {
  height: 220px;
  overflow: hidden;
  background: var(--light);
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.room-card:hover .room-image img {
  transform: scale(1.04);
}

.room-info {
  padding: 1.5rem;
}

.room-features {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.room-features li {
  font-size: 0.88rem;
  color: #5a5a5a;
  padding-left: 1rem;
  position: relative;
}

.room-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===========================
   BOOK
   =========================== */

.book {
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.book h2 {
  margin-bottom: 0.75rem;
}

.book p {
  opacity: 0.8;
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* ===========================
   INFO
   =========================== */

.info {
  background: var(--light);
}

.info h2 {
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 560px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 860px) {
  .info-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.info-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.info-item strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}

.info-item span {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Policies Accordion */
.policies {
  max-width: 680px;
}

.policies h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.policy {
  border-bottom: 1px solid #e5e0d8;
}

.policy:first-of-type {
  border-top: 1px solid #e5e0d8;
}

.policy summary {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.policy summary::-webkit-details-marker {
  display: none;
}

.policy summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
  line-height: 1;
}

.policy[open] summary::after {
  transform: rotate(45deg);
}

.policy-body {
  padding-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
  }
}

.footer-brand img {
  height: 38px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  opacity: 0.65;
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-contact strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.footer-contact a {
  font-size: 0.9rem;
  opacity: 0.75;
  transition: opacity var(--transition);
  display: block;
}

.footer-contact a:hover {
  opacity: 1;
}

.footer-award img {
  height: 250px;
  width: auto;
  max-width: none;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.78rem;
  opacity: 0.45;
  line-height: 1.6;
}

.footer-brand a,
.footer-legal a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

.footer-brand a:hover,
.footer-legal a:hover {
  color: var(--accent);
  opacity: 1;
}

.about-intro a,
.feature-card p a,
.info-item a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.about-intro a:hover,
.feature-card p a:hover,
.info-item a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ===========================
   LIGHTBOX
   =========================== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.93);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity var(--transition);
  padding: 0.25rem 0.5rem;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ===========================
   FADE IN ON SCROLL
   =========================== */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
