/* =========================================================================
   Hotel 360° Design System — base: reset, themes, type styles, layout
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: inherit; }
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: var(--nav-h); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
::selection { background: var(--green-500); color: var(--ink-850); }

/* Any themed element paints its own surface */
[data-theme] { background-color: var(--bg); color: var(--text); }
[data-theme].is-alt { background-color: var(--bg-alt); }

/* ---------- Type styles ---------- */
.t-giant, .t-display, .t-h1, .t-h2, .t-h3 { font-weight: var(--fw-light); color: var(--text); }
.t-h1, .t-h2 { font-weight: var(--fw-heading); }
.t-giant b, .t-display b, .t-h1 b, .t-h2 b, .t-h3 b,
.t-giant strong, .t-display strong, .t-h1 strong, .t-h2 strong { font-weight: var(--fw-bold); }

.t-giant   { font-size: var(--fs-giant); line-height: var(--lh-tight); letter-spacing: var(--ls-giant); }
.t-display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: var(--ls-heading); font-weight: var(--fw-regular); }
.t-display em { font-style: normal; font-weight: var(--fw-medium); color: var(--accent-display); }
.t-h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: var(--ls-heading); }
.t-h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: var(--ls-heading); }
.t-h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: var(--ls-title); font-weight: var(--fw-medium); }
.t-stat { font-size: var(--fs-stat); line-height: 1; letter-spacing: var(--ls-heading); font-weight: var(--fw-medium); }
.t-title-xl { font-size: var(--fs-xl); line-height: 1.25; letter-spacing: var(--ls-title); font-weight: var(--fw-bold); }
.t-title-lg { font-size: var(--fs-lg); line-height: var(--lh-snug); font-weight: var(--fw-medium); }
.t-title    { font-size: var(--fs-md); line-height: 1.25; letter-spacing: var(--ls-title); font-weight: var(--fw-bold); }
.t-lead     { font-size: var(--fs-md); line-height: var(--lh-body); color: var(--text-muted); }
.t-body     { font-size: var(--fs-base); line-height: var(--lh-body); color: var(--text-body); }
.t-body-sm  { font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--text-body); }
.t-small    { font-size: var(--fs-xs); line-height: 1.65; color: var(--text-muted); }
.t-caption  { font-size: var(--fs-2xs); line-height: 1.4; color: var(--text-subtle); }
.t-eyebrow  { font-size: var(--fs-3xs); line-height: 1.2; font-weight: var(--fw-medium); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-muted); }
.t-label    { font-size: var(--fs-2xs); font-weight: var(--fw-medium); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-muted); }
.t-accent   { color: var(--accent-text); }
.t-muted    { color: var(--text-muted); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gut));
  margin-inline: auto;
  padding-inline: var(--gut);
}
.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: calc(var(--sec-y) * .6); }
.head-gap { margin-top: var(--head-gap); }
.stack { display: flex; flex-direction: column; gap: var(--stack-gap, var(--space-4)); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, var(--space-3)); }
.grid { display: grid; gap: var(--grid-gap, var(--space-5)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Brand textures ---------- */
.tex-dots { position: relative; isolation: isolate; }
.tex-dots::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--tex-dots); background-size: 22px 22px;
}
.tex-dots--fade::before {
  -webkit-mask: radial-gradient(ellipse 70% 80% at 50% 40%, #000 20%, transparent 75%);
          mask: radial-gradient(ellipse 70% 80% at 50% 40%, #000 20%, transparent 75%);
}
.tex-grid { position: relative; isolation: isolate; }
.tex-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
          mask: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
}
.tex-atmosphere {
  background:
    radial-gradient(55% 45% at 18% 85%, rgba(125,191,65,.16), transparent 70%),
    radial-gradient(50% 40% at 85% 20%, rgba(125,191,65,.10), transparent 70%),
    var(--bg);
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
