/* Safira Living — shared brand tokens and primitives.
   Each sample layers its own layout and motion on top of this. */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&family=Cormorant:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  /* Brochure palette */
  --navy: #15213a;
  --navy-2: #1c2b4a;
  --navy-3: #243657;
  --violet: #4b4a8f;       /* brochure heading blue */
  --gold: #c0aa75;
  --gold-2: #d6c49a;
  --sand: #e0daca;
  --sand-2: #ece7db;
  --cream: #f6f3ec;
  --white: #ffffff;
  --ink: #1a1f2e;
  --ink-2: #4a5062;
  --ink-3: #8a8f9c;
  --line: rgba(21, 33, 58, 0.14);
  --line-light: rgba(255, 255, 255, 0.16);

  --wordmark: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; }
p { margin: 0; }

/* Wordmark: SAFIRA ◎ LIVING */
.wordmark {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--wordmark); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 18px; line-height: 1; white-space: nowrap;
}
.wordmark img { height: 1.35em; width: auto; }
.wordmark--lg { font-size: clamp(28px, 5vw, 64px); gap: 0.4em; }
.wordmark small { display: block; font-family: var(--serif); font-weight: 300; letter-spacing: 0.02em; text-transform: none; }

/* Type */
.serif { font-family: var(--serif); font-weight: 300; }
.display {
  font-family: var(--serif); font-weight: 300; line-height: 1.02; letter-spacing: -0.01em;
  font-size: clamp(40px, 5.2vw, 84px);
}
.display em, .display i { font-style: italic; font-weight: 300; }
.h2 { font-family: var(--serif); font-weight: 300; line-height: 1.05; font-size: clamp(34px, 4vw, 62px); }
.h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; font-size: clamp(24px, 2.4vw, 34px); }
.eyebrow {
  font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
}
.lede { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; }
.small { font-size: 13px; letter-spacing: 0.02em; }
.num { font-family: var(--serif); font-weight: 300; font-variant-numeric: lining-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 999px; border: 1px solid currentColor;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: currentColor; transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.btn:hover::after { transform: translateY(0); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { color: var(--navy); }
.btn--navy::after { background: var(--white); }
.btn--white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--white:hover { color: var(--white); }
.btn--white::after { background: var(--navy); }
.btn--ghost { color: currentColor; }
.btn--ghost:hover { color: var(--navy); }
.btn--ghost.on-dark:hover { color: var(--navy); }
.btn--ghost.on-dark::after { background: var(--white); }
.btn--ghost.on-light::after { background: var(--navy); }
.btn--ghost.on-light:hover { color: var(--white); }

/* Hairlines */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule--gold { background: var(--gold); width: 40px; }
.on-dark .rule { background: var(--line-light); }

/* Utilities */
.container { width: min(1440px, 100% - clamp(40px, 6vw, 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.on-dark { color: var(--white); }
.on-dark .eyebrow { color: var(--gold); }
.on-light .eyebrow { color: var(--violet); }

/* Line-split text (motion helpers wrap lines in .line > .line-inner) */
.split .line { overflow: hidden; display: block; }
.split .line-inner { display: block; will-change: transform; }

/* Image frames */
.frame { position: relative; overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* Custom scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: rgba(21,33,58,.25); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* Residence tour: interaction hint (the tour module injects .tour__hint next to its canvas) */
.tour__hint { position: absolute; left: 50%; bottom: 68px; transform: translateX(-50%); z-index: 3; pointer-events: none; white-space: nowrap;
  font: 400 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  background: rgba(21,33,58,.72); padding: 9px 14px; border: 1px solid rgba(192,170,117,.35); opacity: .85; transition: opacity .3s; }
.tour__hint.is-active { opacity: 1; background: rgba(21,33,58,.9); }
