/* Ellipse Hotels — design tokens
   Colours locked from logo analysis (assets/brand/NOTES.md)
   Type: Outfit (UI/body) + Cormorant Garamond (selective display)
*/

:root {
  --bg: #FBF9F6;
  --bg-pure: #FFFFFF;
  --surface: #F1EFEC;
  --surface-elevated: #E8E5E0;
  --ink: #1A1A1A;
  --ink-muted: #5C5A56;
  --navy: #0A2540;
  --navy-deep: #071C31;
  --navy-soft: #163A5C;
  --gold: #E8722A;
  --gold-deep: #C45A18;
  --gold-soft: #F0A06A;
  --line: rgba(10, 37, 64, 0.12);
  --line-strong: rgba(10, 37, 64, 0.22);
  --focus: #0A2540;

  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;

  --space-unit: 8px;
  --margin-mobile: 24px;
  --margin-desktop: 64px;
  --gutter: 32px;
  --container: 1280px;
  --section-y: clamp(4.5rem, 10vw, 7.5rem);

  --radius: 2px;
  --header-h: 5.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 700ms;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

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

.container {
  width: min(100% - (var(--margin-mobile) * 2), var(--container));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - (var(--margin-desktop) * 2), var(--container));
  }
}

/* Type */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.headline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.subhead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.35;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 38rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 280ms var(--ease), color 280ms var(--ease), border-color 280ms var(--ease), transform 280ms var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
}

.btn-primary.is-disabled,
.btn-primary[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}

.btn-secondary.on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary.on-dark:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  padding-inline: 0;
  min-height: auto;
  letter-spacing: 0.06em;
}

.btn-ghost::after {
  content: "→";
  transition: transform 280ms var(--ease);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

.btn-ghost.on-dark {
  color: #fff;
}

/* Media placeholders — aspect-ratio slots, not photography */
.media-slot {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

.media-slot::before {
  content: "";
  display: block;
  width: 100%;
}

.media-slot[data-ratio="16/9"]::before { padding-top: 56.25%; }
.media-slot[data-ratio="4/5"]::before { padding-top: 125%; }
.media-slot[data-ratio="3/2"]::before { padding-top: 66.666%; }
.media-slot[data-ratio="1/1"]::before { padding-top: 100%; }
.media-slot[data-ratio="21/9"]::before { padding-top: 42.857%; }

.media-slot__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

.media-slot__label span:last-child {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.8125rem;
  opacity: 0.75;
  max-width: 16rem;
}

.media-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-slot.has-image .media-slot__label {
  display: none;
}

/* Sections */
.section {
  padding-block: var(--section-y);
}

.section-tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section-navy {
  background: var(--navy);
  color: #F7F4EF;
}

.section-surface {
  background: var(--surface);
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Subtle ellipse signature — used once/twice max */
.signature-curve {
  border-radius: 50% / 8%;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover { transform: none; }
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-pure);
  color: var(--ink);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}

/* Site chrome injected regions */
#site-header-root,
#site-footer-root {
  display: contents;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: rgba(251, 249, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(10, 37, 64, 0.04);
}

.site-header.is-over-dark:not(.is-solid) {
  color: #fff;
}

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

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  width: auto;
  height: 48px;
}

.site-logo .logo-dark {
  display: none;
}

.site-header.is-over-dark:not(.is-solid) .logo-light {
  display: none;
}

.site-header.is-over-dark:not(.is-solid) .logo-dark {
  display: block;
}

@media (min-width: 768px) {
  .site-logo img {
    height: 56px;
  }
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }
}

.site-nav a {
  position: relative;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.82;
  padding-block: 0.5rem;
  transition: opacity 220ms var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
}

.site-header.is-over-dark:not(.is-solid) .site-nav a[aria-current="page"]::after {
  background: var(--gold-soft);
}

.site-header__cta {
  display: none;
}

@media (min-width: 1024px) {
  .site-header__cta {
    display: inline-flex;
  }
}

.site-header.is-over-dark:not(.is-solid) .site-header__cta.btn-primary {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.menu-toggle {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: var(--radius);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  color: var(--ink);
  padding: var(--margin-mobile);
  transform: translateX(100%);
  transition: transform 480ms var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav.is-open {
  transform: none;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.2;
  padding-block: 0.35rem;
}

.mobile-nav .btn {
  margin-top: 2.5rem;
  align-self: flex-start;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247, 244, 239, 0.82);
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}

.site-footer__brand p {
  margin-top: 1.25rem;
  max-width: 22rem;
  line-height: 1.7;
}

.site-footer h2 {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-footer__bottom {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(247, 244, 239, 0.55);
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Page hero helpers */
.page-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  color: #fff;
  background: var(--navy);
}

.page-hero > .media-slot {
  background: linear-gradient(160deg, #0A2540 0%, #163A5C 55%, #0A2540 100%);
}

.page-hero .media-slot__label {
  color: rgba(255, 255, 255, 0.55);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--margin-mobile) * 2), var(--container));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .page-hero__content {
    width: min(100% - (var(--margin-desktop) * 2), var(--container));
  }
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 28, 49, 0.15) 0%, rgba(7, 28, 49, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

/* Sticky booking strip (room details) */
.booking-sticky {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.booking-bar-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem var(--margin-mobile);
  background: rgba(251, 249, 246, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

@media (min-width: 1024px) {
  .booking-bar-mobile {
    display: none;
  }
}

body.has-booking-bar {
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  body.has-booking-bar {
    padding-bottom: 0;
  }
}

/* Legal reading */
.legal-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: none;
}

@media (min-width: 1024px) {
  .legal-toc {
    display: block;
  }
}

.legal-toc a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.legal-toc a:hover {
  color: var(--navy);
}

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

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.legal-content p,
.legal-content li {
  color: var(--ink-muted);
}

.placeholder-note {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.45rem;
  border: 1px dashed var(--line-strong);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: var(--surface);
}
