/* Driftfenlodge — London Noir Casino Hotel */

:root {
  --midnight: #0a0a0c;
  --charcoal: #141418;
  --graphite: #2a2a30;
  --smoky: #3d3d45;
  --walnut: #3b2a22;
  --burgundy: #5c1f2a;
  --ivory: #f3eee4;
  --ivory-muted: #cfc6b8;
  --gold: #baa87a;
  --brass: #9a7b4f;
  --emerald: #2f4f45;
  --text: #f3eee4;
  --text-muted: #a8a094;
  --border: rgba(186, 168, 122, 0.22);
  --overlay: rgba(10, 10, 12, 0.72);
  --header-h: 4.5rem;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--midnight);
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

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

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

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Typography */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ivory-muted);
  max-width: 38rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.92);
  border-bottom-color: var(--border);
}

.site-header.is-scrolled:not(.is-open) {
  backdrop-filter: blur(16px);
}

.site-header.is-open {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1002;
  position: relative;
}

.logo img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
}

.media-noir img {
  filter: brightness(0.88) contrast(1.05) saturate(0.9);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--ivory);
}

.nav-toggle {
  display: none;
  z-index: 1002;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--ivory);
}

.nav-toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 1.15rem;
}

.nav-toggle-lines span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.site-header.is-open .nav-toggle-lines span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.is-open .nav-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle-lines span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
}

.nav-list a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  transition: color 0.25s var(--ease);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--brass);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  background: transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-align: center;
}

.btn:hover:not(:disabled) {
  background: var(--brass);
  color: var(--midnight);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
  background: var(--gold);
  color: var(--midnight);
}

.btn-primary {
  background: var(--brass);
  color: var(--midnight);
  border-color: var(--brass);
}

.btn-primary:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
}

.btn.is-success {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--ivory);
  opacity: 1 !important;
  cursor: default;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.35) 40%, rgba(10, 10, 12, 0.88) 100%),
    linear-gradient(90deg, rgba(10, 10, 12, 0.7) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero-content p {
  margin-top: 1.25rem;
  color: var(--ivory-muted);
  max-width: 34rem;
}

.page-hero {
  position: relative;
  min-height: 58svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 3rem) 0 3.5rem;
  overflow: hidden;
}

.page-hero .hero-media img {
  animation: none;
  transform: scale(1.02);
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}

.section-dark {
  background: var(--charcoal);
}

.section-mid {
  background:
    radial-gradient(ellipse at top right, rgba(92, 31, 42, 0.18), transparent 45%),
    radial-gradient(ellipse at bottom left, rgba(47, 79, 69, 0.14), transparent 40%),
    var(--midnight);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-copy {
  order: -1;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--graphite);
}

.media-frame.wide {
  aspect-ratio: 16 / 10;
}

.media-frame.square {
  aspect-ratio: 1 / 1;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.05);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  pointer-events: none;
}

.split-copy p + p {
  margin-top: 1rem;
}

.split-copy .btn-group {
  margin-top: 1.75rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
  background: var(--graphite);
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.feature-card:hover img {
  transform: scale(1.06);
}

.feature-card-body {
  position: absolute;
  inset: auto 0 0;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 12, 0.92) 55%);
}

.feature-card-body p {
  margin-top: 0.55rem;
  color: var(--ivory-muted);
  font-size: 0.95rem;
}

/* Room / service catalogue */
.catalogue {
  display: grid;
  gap: 2.5rem;
}

.catalogue-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.catalogue-item:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.catalogue-item:nth-child(even) .catalogue-copy {
  order: -1;
}

.catalogue-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding-block: 0.5rem;
}

.catalogue-copy p {
  color: var(--text-muted);
}

.amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.amenity-list-spaced {
  margin-top: 1.25rem;
}

.amenity-list li {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  color: var(--ivory-muted);
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Stats / highlights strip */
.highlight-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.highlight-item {
  padding: 1.4rem 1.1rem;
  border-top: 1px solid var(--border);
}

.highlight-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.highlight-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.cta-band .hero-media {
  position: absolute;
  inset: 0;
}

.cta-band .hero-overlay {
  background: linear-gradient(90deg, rgba(10, 10, 12, 0.9), rgba(10, 10, 12, 0.7));
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.cta-inner p {
  margin: 1rem 0 0;
  color: var(--ivory-muted);
}

/* Responsible gaming note */
.notice {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-left: 2px solid var(--emerald);
  background: rgba(47, 79, 69, 0.18);
  color: var(--ivory-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.contact-block h3 {
  margin-bottom: 0.5rem;
}

.contact-block p,
.contact-block span {
  color: var(--text-muted);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-plain {
  display: block;
  color: var(--ivory-muted);
}

.map-frame {
  margin-top: 1rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Forms */
.enquiry-form {
  display: grid;
  gap: 1.15rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(59, 42, 34, 0.25), transparent 50%),
    var(--charcoal);
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.55);
  color: var(--ivory);
  outline: none;
  transition: border-color 0.25s var(--ease);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--brass);
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: #8a3a45;
}

.field-error {
  min-height: 1.1rem;
  font-size: 0.82rem;
  color: #d4a7a7;
}

.form-field.is-invalid .field-error {
  color: #e0a0a8;
}

.form-actions {
  margin-top: 0.35rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.78);
}

.modal-dialog {
  position: relative;
  width: min(100%, 28rem);
  padding: 2rem 1.75rem;
  background: var(--charcoal);
  border: 1px solid var(--border);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  max-height: min(90svh, 32rem);
  overflow: auto;
}

.modal-dialog h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.modal-dialog p {
  color: var(--ivory-muted);
  margin-bottom: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--ivory);
}

.modal-close:hover {
  border-color: var(--brass);
  color: var(--gold);
}

/* Legal */
.legal {
  padding: calc(var(--header-h) + 3.5rem) 0 5rem;
}

.legal-content {
  max-width: 46rem;
}

.legal-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}

.legal-content .meta {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.65rem;
  margin: 2.25rem 0 0.85rem;
}

.legal-content p,
.legal-content li {
  color: var(--ivory-muted);
  margin-bottom: 0.85rem;
}

.legal-content ul {
  padding-left: 1.15rem;
  list-style: disc;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #08080a;
  padding: 3.5rem 0 2rem;
}

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

.footer-brand .logo-text {
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p,
.footer-col p,
.footer-col span {
  color: var(--text-muted);
  font-size: 0.95rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--ivory-muted);
  font-size: 0.95rem;
  transition: color 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.social-links a {
  color: var(--ivory-muted);
  font-size: 0.95rem;
  transition: color 0.25s var(--ease);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.social-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Deco line accent */
.deco-line {
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
  margin: 1.25rem 0;
}

/* Mobile nav */
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    min-height: 100vh;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(10, 10, 12, 0.98);
    padding: calc(var(--header-h) + 1.5rem) 1.25rem max(2rem, env(safe-area-inset-bottom));
    transform: translate3d(100%, 0, 0);
    transition: transform 0.4s var(--ease);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    pointer-events: none;
  }

  .site-header.is-open .site-nav {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-header.is-open .logo,
  .site-header.is-open .nav-toggle {
    z-index: 1003;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    flex: 1 0 auto;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-list a {
    display: block;
    padding: 1.1rem 0;
    font-size: 0.9rem;
  }

  .split,
  .split.reverse,
  .catalogue-item,
  .catalogue-item:nth-child(even),
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-copy,
  .catalogue-item:nth-child(even) .catalogue-copy {
    order: 0;
  }

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

  .highlight-row {
    grid-template-columns: 1fr 1fr;
  }

  .media-frame {
    aspect-ratio: 5 / 4;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .feature-grid {
    gap: 1rem;
  }

  .feature-card {
    min-height: 18rem;
  }

  .highlight-row {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .enquiry-form {
    padding: 1.25rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  body {
    font-size: 1rem;
  }

  .logo-text {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media img,
  .media-frame img,
  .feature-card img {
    transform: none !important;
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1);
  }
}
