@import url('./design-tokens.css');

:root {
  --glass: rgba(255, 252, 245, .78);
}

body {
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 2000;
  padding: 10px 16px;
  background: white;
  border: var(--woh-border-gold);
}
.skip-link:focus { top: 16px; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity 1.1s ease, visibility 1.1s ease;
}
.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.intro__image {
  position: absolute;
  inset: -3%;
  background: url('../assets/images/rooms/castle-home.webp') center/cover no-repeat;
  animation: breathe 16s ease-in-out infinite alternate;
}
.intro__mist {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(255,255,255,.16), transparent 36%),
    linear-gradient(180deg, rgba(230,243,252,.08), rgba(23,63,101,.28));
  backdrop-filter: blur(1px);
}
.intro__panel {
  position: relative;
  width: min(670px, 90vw);
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
  background: rgba(255,255,255,.76);
  border: var(--woh-border-gold);
  outline: 1px solid rgba(255,255,255,.72);
  outline-offset: -10px;
  border-radius: 28px;
  box-shadow: 0 24px 90px rgba(23,63,101,.28);
  backdrop-filter: blur(10px);
}
.intro__logo {
  width: min(480px, 92%);
  margin: auto;
  mix-blend-mode: multiply;
}
.intro__motto {
  margin: 4px 0 18px;
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: .78rem;
}
.intro__poem {
  margin: 18px auto 24px;
  font-style: italic;
  line-height: 1.6;
  font-size: 1.15rem;
}
.intro__butterflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.butterfly {
  position: absolute;
  font-size: 1.7rem;
  opacity: .8;
  filter: drop-shadow(0 4px 7px rgba(23,63,101,.2));
}
.butterfly--one { left: 10%; top: 24%; animation: flyOne 13s linear infinite; }
.butterfly--two { right: 12%; top: 36%; animation: flyTwo 16s linear infinite; }
.butterfly--three { left: 38%; bottom: 12%; animation: flyThree 18s linear infinite; }

.sound-note {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border: var(--woh-border-gold);
  border-radius: 50%;
  color: var(--woh-blue);
  background: rgba(255,255,255,.75);
  cursor: pointer;
}

.royal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 13px 25px;
  border: 1px solid var(--woh-gold);
  border-radius: var(--woh-radius-pill);
  color: white;
  background: linear-gradient(180deg, #35668f, #173f65);
  font: 600 .95rem var(--woh-font-editorial);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(23,63,101,.22);
  transition: transform .25s ease, box-shadow .25s ease;
}
.royal-button:hover,
.royal-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(23,63,101,.3);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--woh-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: rgba(236,246,252,.88);
  border-bottom: var(--woh-border-gold);
  backdrop-filter: blur(15px);
  transform: translateY(-100%);
  transition: transform .7s ease;
}
.site-header.is-visible { transform: translateY(0); }

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.brand__mark { font-size: 1.2rem; }
.brand__name {
  font-family: var(--woh-font-display);
  font-size: 1.8rem;
  white-space: nowrap;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(11px, 1.8vw, 25px);
}
.main-navigation a {
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .035em;
  font-size: .84rem;
  white-space: nowrap;
}
.main-navigation a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: var(--woh-gold);
  transition: width .25s ease, left .25s ease;
}
.main-navigation a:hover::after,
.main-navigation a.is-active::after {
  width: 100%;
  left: 0;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: var(--woh-border-gold);
  border-radius: 50%;
  background: rgba(255,255,255,.62);
}
.menu-button span:not(.sr-only) {
  display: block;
  height: 1px;
  margin: 5px 0;
  background: var(--woh-blue);
}

.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;
}

.castle-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: calc(var(--woh-header-height) + 40px) 20px 70px;
  overflow: hidden;
}
.castle-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../assets/images/rooms/castle-home.webp') center/cover no-repeat;
  background-attachment: fixed;
}
.castle-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.12), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(20,52,81,.24));
}
.castle-hero__content {
  width: min(760px, 92vw);
  padding: clamp(28px, 5vw, 55px);
  text-align: center;
  background: var(--glass);
  border: var(--woh-border-gold);
  outline: 1px solid rgba(255,255,255,.7);
  outline-offset: -10px;
  border-radius: 30px;
  box-shadow: 0 22px 70px rgba(18,52,80,.24);
  backdrop-filter: blur(9px);
}
.eyebrow {
  margin: 0 0 9px;
  color: #8a6c31;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .76rem;
  font-weight: 600;
}
.castle-hero h1,
.section-heading h2,
.coming-room h2,
.contact-preview h2 {
  margin: 0;
  font-family: var(--woh-font-display);
  font-weight: 400;
  color: var(--woh-blue);
}
.castle-hero h1 {
  font-size: clamp(4rem, 9vw, 7.2rem);
  line-height: .98;
}
.castle-hero__lead {
  max-width: 630px;
  margin: 18px auto;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
}
.castle-hero__poem {
  margin: 24px auto;
  font-style: italic;
  line-height: 1.55;
  font-size: 1.12rem;
}
.ornament {
  color: var(--woh-gold);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  color: white;
  text-decoration: none;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  animation: float 1.8s ease-in-out infinite;
}
.scroll-cue strong { font-size: 2rem; line-height: 1; }

.rooms-overview {
  padding: 110px 5vw;
  background:
    linear-gradient(rgba(248,252,255,.96), rgba(223,239,250,.96)),
    var(--woh-sky);
}
.section-heading {
  max-width: 760px;
  margin: 0 auto 45px;
  text-align: center;
}
.section-heading h2 {
  font-size: clamp(3.1rem, 7vw, 5.7rem);
}
.section-heading p:last-child {
  font-size: 1.15rem;
}
.room-grid {
  max-width: var(--woh-content-width);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.room-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: var(--woh-border-gold);
  border-radius: 24px;
  box-shadow: var(--woh-shadow-soft);
  color: white;
  text-decoration: none;
  isolation: isolate;
}
.room-card:nth-child(1),
.room-card:nth-child(2) { grid-column: span 6; }
.room-card:nth-child(n+3) { grid-column: span 4; }

.room-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.room-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(12,38,61,.88));
  z-index: 0;
}
.room-card__overlay {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
}
.room-card__overlay span {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  color: var(--woh-gold-soft);
}
.room-card__overlay h3 {
  margin: 4px 0 7px;
  font-family: var(--woh-font-display);
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 400;
}
.room-card__overlay p { margin: 0; }
.room-card:hover img { transform: scale(1.045); }

.coming-room {
  min-height: 56vh;
  display: grid;
  place-items: center;
  padding: 80px 20px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.95), rgba(218,235,247,.97));
  border-top: 1px solid rgba(199,162,90,.4);
}
.coming-room__content {
  width: min(720px, 92vw);
  text-align: center;
  padding: 35px;
  background: rgba(255,255,255,.74);
  border: var(--woh-border-gold);
  border-radius: 24px;
}
.coming-room h2,
.contact-preview h2 {
  font-size: clamp(3rem, 6vw, 5rem);
}
.coming-room p:last-child { font-size: 1.1rem; }

.contact-preview {
  padding: 100px 20px;
  text-align: center;
  background: white;
}
.contact-preview__inner { max-width: 720px; margin: auto; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 5vw;
  color: var(--woh-ivory);
  background: var(--woh-blue-deep);
  font-size: .9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-seen {
  opacity: 1;
  transform: none;
}

.toast {
  position: fixed;
  z-index: 1500;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 20px);
  padding: 11px 18px;
  border: var(--woh-border-gold);
  border-radius: var(--woh-radius-pill);
  color: white;
  background: rgba(20,55,84,.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes breathe {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}
@keyframes float {
  50% { transform: translate(-50%, 8px); }
}
@keyframes flyOne {
  0% { transform: translate(-50px, 30px) rotate(-10deg); }
  50% { transform: translate(170px, -45px) rotate(10deg); }
  100% { transform: translate(340px, 10px) rotate(-6deg); }
}
@keyframes flyTwo {
  0% { transform: translate(30px, 20px) rotate(10deg); }
  50% { transform: translate(-150px, -55px) rotate(-8deg); }
  100% { transform: translate(-320px, 30px) rotate(8deg); }
}
@keyframes flyThree {
  0% { transform: translate(-50px, 0) scale(.8); }
  50% { transform: translate(80px, -70px) scale(1); }
  100% { transform: translate(190px, -15px) scale(.85); }
}

@media (max-width: 1050px) {
  .site-header { padding: 0 18px; }
  .menu-button { display: block; }
  .main-navigation {
    position: absolute;
    top: calc(var(--woh-header-height) - 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 20px 22px;
    background: rgba(239,248,253,.98);
    border-bottom: var(--woh-border-gold);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
  }
  .main-navigation.is-open {
    transform: scaleY(1);
    opacity: 1;
  }
  .main-navigation a { padding: 10px 2px; }
}

@media (max-width: 800px) {
  .room-card:nth-child(n) { grid-column: span 12; }
  .castle-hero__backdrop { background-attachment: scroll; }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  :root { --woh-header-height: 68px; }
  .brand__name { font-size: 1.45rem; }
  .intro__panel { width: 92vw; padding: 26px 18px; }
  .room-card { min-height: 300px; }
  .castle-hero__content { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
