/* ============================================================
   ODAYU — High-End Hospitality Editorial
   Shared stylesheet for the marketing site
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Signature gold */
  --gold-1: #775a19;
  --gold-2: #c5a059;
  --gold-soft: #e9dcc0;
  --gold-grad: linear-gradient(135deg, #8a6a22 0%, #c5a059 60%, #d8bd7e 100%);

  /* Warm minimalist surfaces (light tone) */
  --bg: #faf9f8;
  --surface: #faf9f8;
  --surface-low: #f3f1ec;
  --surface-container: #eeeeed;
  --surface-high: #e7e4dd;
  --paper: #ffffff;

  /* Ink */
  --ink: #1a1c1c;
  --ink-soft: rgba(26, 28, 28, 0.64);
  --ink-faint: rgba(26, 28, 28, 0.42);
  --ink-ghost: rgba(26, 28, 28, 0.13);

  /* Depth */
  --shadow-amb: 0 12px 40px rgba(26, 28, 28, 0.06);
  --shadow-lift: 0 24px 70px rgba(26, 28, 28, 0.10);
  --shadow-device: 0 40px 90px -30px rgba(26, 28, 28, 0.34);

  /* Type */
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-script: 'Allura', cursive;

  --radius: 2px;
  --radius-pill: 999px;
  --container: 1240px;

  /* Spacing scale (4pt base) */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px;  --sp-10: 128px; --sp-11: 160px;

  /* Easing */
  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Font pairing tweak — vary the editorial serif, keep Manrope as the voice of record */
:root[data-font="classic"] { --font-display: 'Cormorant Garamond', Georgia, serif; }
:root[data-font="refined"] { --font-display: 'EB Garamond', Georgia, serif; }

/* Deep tone tweak — warm espresso night mode */
:root[data-tone="deep"] {
  --bg: #16130e;
  --surface: #16130e;
  --surface-low: #1e1a13;
  --surface-container: #221d15;
  --surface-high: #2a2419;
  --paper: #211c14;

  --ink: #f4efe6;
  --ink-soft: rgba(244, 239, 230, 0.66);
  --ink-faint: rgba(244, 239, 230, 0.44);
  --ink-ghost: rgba(244, 239, 230, 0.14);

  --gold-2: #d8b870;
  --gold-soft: #4a3c1f;
  --shadow-amb: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-device: 0 50px 110px -30px rgba(0, 0, 0, 0.7);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold-soft); color: var(--ink); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-1);
}
:root[data-tone="deep"] .eyebrow { color: var(--gold-2); }
.eyebrow--dot { display: inline-flex; align-items: center; gap: 0.6em; }
.eyebrow--dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-grad);
}
.smallcaps {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint);
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.serif-italic { font-family: var(--font-display); font-style: italic; }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.section { padding-bottom: 120px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em; padding: 15px 28px; border-radius: var(--radius);
  border: none; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
  line-height: 1; white-space: nowrap;
}
.btn--gold {
  background: var(--gold-grad); color: #fff;
  box-shadow: 0 10px 26px -12px rgba(119, 90, 25, 0.6);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(119, 90, 25, 0.7); }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink-ghost);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold-2); color: var(--gold-1); }
:root[data-tone="deep"] .btn--ghost:hover { color: var(--gold-2); }

.link-editorial {
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--gold-1);
  display: inline-flex; align-items: center; gap: 0.5em;
  border-bottom: 1px solid var(--gold-2); padding-bottom: 2px;
  transition: gap 0.25s ease;
}
:root[data-tone="deep"] .link-editorial { color: var(--gold-2); }
.link-editorial:hover { gap: 0.85em; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  transition: background 0.5s ease;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 86px;
}
.brand {
  font-family: var(--font-display); font-size: 27px; font-weight: 500;
  letter-spacing: 0.16em; color: var(--ink); display: inline-flex; align-items: center; gap: 0.5em;
  line-height: 1;
}
.brand__mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold-grad); display: inline-grid; place-items: center;
  box-shadow: var(--shadow-amb);
}
.brand__mark::after {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg);
}
.nav__links { display: flex; align-items: center; gap: 38px; }
.nav__link {
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-soft);
  transition: color 0.2s ease; position: relative; white-space: nowrap;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1.5px;
  background: var(--gold-grad);
}
.nav__cta { padding: 12px 22px; font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--surface-low); padding: 80px 0 44px; transition: background 0.5s ease; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px;
  padding-bottom: 56px;
}
.footer__brand { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.16em; margin-bottom: 16px; }
.footer__tag { font-size: 14px; color: var(--ink-soft); max-width: 30ch; line-height: 1.7; }
.footer__col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 18px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 14px; color: var(--ink-soft); transition: color 0.2s ease; }
.footer__col a:hover { color: var(--gold-1); }
:root[data-tone="deep"] .footer__col a:hover { color: var(--gold-2); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 30px; font-size: 13px; color: var(--ink-faint);
}
.footer__bottom .smallcaps { font-size: 11px; }

/* ---------- Device: phone ---------- */
.phone {
  position: relative; width: 340px; aspect-ratio: 340 / 720;
  background: #0c0c0d; border-radius: 52px; padding: 11px;
  box-shadow: var(--shadow-device), inset 0 0 0 2px #2a2a2c;
}
.phone__screen {
  position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden;
  background: #fbfaf8; color: #1a1c1c;
  display: flex; flex-direction: column;
}
.phone__island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; background: #0c0c0d; border-radius: 999px; z-index: 5;
}
.statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px 0; font-size: 13px; font-weight: 600; color: #1a1c1c;
}
.statusbar__icons { display: flex; align-items: center; gap: 7px; color: #1a1c1c; }
.statusbar__icons svg { display: block; }

/* in-app concierge screen */
.app { flex: 1; padding: 30px 24px 0; display: flex; flex-direction: column; overflow: hidden; }
.app__eyebrow { font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #b08d44; }
.app__greeting {
  font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.05;
  margin: 12px 0 6px; color: #1a1c1c;
}
.app__meta { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(26,28,28,.42); }
.app__list { margin-top: 26px; display: flex; flex-direction: column; }
.app__item { padding: 17px 0; display: flex; align-items: flex-start; gap: 14px; }
.app__item + .app__item { box-shadow: inset 0 0.5px 0 rgba(26,28,28,.08); }
.app__icon {
  width: 34px; height: 34px; border-radius: 2px; flex-shrink: 0;
  background: #f1ede4; display: grid; place-items: center; color: #8a6a22;
}
.app__icon svg { width: 17px; height: 17px; }
.app__item h5 { font-family: var(--font-display); font-weight: 500; font-size: 17px; color: #1a1c1c; line-height: 1.1; }
.app__item p { font-size: 11px; color: rgba(26,28,28,.5); margin-top: 3px; line-height: 1.35; }
.app__item .app__chev { margin-left: auto; color: rgba(26,28,28,.3); font-size: 16px; align-self: center; }
.app__cta {
  margin: auto 0 0; padding: 16px; border-radius: 2px; background: var(--gold-grad); color: #fff;
  text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 22px;
}

/* ---------- Device: browser (dashboard) ---------- */
.browser {
  width: 100%; border-radius: 8px; overflow: hidden; background: #fbfaf8;
  box-shadow: var(--shadow-lift); border: 0.5px solid var(--ink-ghost);
}
.browser__bar {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  background: #efece6; border-bottom: 0.5px solid rgba(26,28,28,.08);
}
.browser__dots { display: flex; gap: 7px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #d7d2c8; }
.browser__url {
  margin-left: 14px; flex: 1; max-width: 360px; height: 26px; border-radius: 999px;
  background: #fbfaf8; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  font-size: 11.5px; color: rgba(26,28,28,.5); font-weight: 500;
}
.dash { display: grid; grid-template-columns: 200px 1fr; min-height: 460px; background: #fbfaf8; color: #1a1c1c; }
.dash__side { background: #f3f0ea; padding: 26px 20px; display: flex; flex-direction: column; gap: 4px; }
.dash__brand { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.14em; margin-bottom: 24px; }
.dash__nav { font-size: 12.5px; font-weight: 500; color: rgba(26,28,28,.55); padding: 10px 12px; border-radius: 2px; display: flex; align-items: center; gap: 10px; }
.dash__nav--active { background: #fff; color: #1a1c1c; box-shadow: 0 4px 14px rgba(26,28,28,.05); }
.dash__nav i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.dash__nav--active i { background: var(--gold-1); opacity: 1; }
.dash__main { padding: 30px 32px; }
.dash__h { font-family: var(--font-display); font-size: 25px; font-weight: 400; }
.dash__sub { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(26,28,28,.4); margin-top: 4px; }
.dash__rows { margin-top: 26px; display: flex; flex-direction: column; }
.dash__row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; padding: 15px 0; }
.dash__row + .dash__row { box-shadow: inset 0 0.5px 0 rgba(26,28,28,.08); }
.dash__room { font-family: var(--font-display); font-size: 17px; color: #8a6a22; }
.dash__req h6 { font-size: 13.5px; font-weight: 600; color: #1a1c1c; }
.dash__req p { font-size: 11px; color: rgba(26,28,28,.45); margin-top: 2px; }
.dash__status { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.dash__status--new { background: #efe6d2; color: #8a6a22; }
.dash__status--prog { background: #e6ebe7; color: #4a6151; }
.dash__status--done { background: #ededed; color: rgba(26,28,28,.4); }

/* ---------- Feature blocks ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center;
}
.feature--flip .feature__media { order: -1; }
.feature__num { font-family: var(--font-display); font-size: 15px; color: var(--gold-1); font-style: italic; }
:root[data-tone="deep"] .feature__num { color: var(--gold-2); }
.feature__title { font-family: var(--font-display); font-size: clamp(34px, 4vw, 50px); font-weight: 400; line-height: 1.05; margin: 14px 0 20px; }
.feature__body { font-size: 17px; color: var(--ink-soft); line-height: 1.7; max-width: 42ch; }
.feature__list { margin-top: 28px; display: flex; flex-direction: column; gap: 2px; max-width: 44ch; }
.feature__li { display: flex; gap: 14px; padding: 14px 0; align-items: baseline; }
.feature__li + .feature__li { box-shadow: inset 0 0.5px 0 var(--ink-ghost); }
.feature__li .smallcaps { color: var(--gold-1); flex-shrink: 0; width: 34px; }
:root[data-tone="deep"] .feature__li .smallcaps { color: var(--gold-2); }
.feature__li p { font-size: 15px; color: var(--ink-soft); }
.feature__li strong { color: var(--ink); font-weight: 600; }

/* feature media card (pod) */
.pod {
  background: var(--paper); border-radius: var(--radius); padding: 0; overflow: hidden;
  box-shadow: var(--shadow-amb);
}

/* ---------- Image slots ---------- */
image-slot {
  --is-bg: var(--surface-container);
  background: var(--surface-container);
}

/* ---------- Gradient transition helpers (no abrupt crops) ---------- */
.fade-into { position: relative; }
.fade-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; z-index: 2;
}
.tone-band { background: var(--surface-low); transition: background 0.5s ease; }

/* utilities */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-narrow { max-width: 720px; }
.stack-sm > * + * { margin-top: 14px; }
.stack-md > * + * { margin-top: 22px; }
.row-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* ============================================================
   LAYOUT REFINEMENTS
   ============================================================ */

/* Feature block vertical rhythm (replaces per-element inline styles) */
.feature + .feature { margin-top: 150px; }

/* Features section intro block */
.features-intro { margin-bottom: 104px; }
.features-intro h2 { font-size: clamp(36px, 4.6vw, 58px); margin-top: 18px; }
.features-intro p  { font-size: 18px; color: var(--ink-soft); margin-top: 22px; line-height: 1.7; }

/* CTA band refinements (replaces per-element inline styles) */
.cta-band h2 { margin-top: 20px; }
.cta-band .btn--gold { padding: 17px 38px; font-size: 16px; }

/* ============================================================
   MOTION SYSTEM
   ============================================================ */

/* --- Keyframes --- */
@keyframes od-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes od-right {
  from { opacity: 0; transform: translateX(38px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes od-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- Hero: immediate page-load animations --- */
/* fill-mode: both → starts at 'from' state even before delay, ends at 'to' state */
.h-anim   { animation: od-up    0.9s var(--ease-expo)  both; animation-delay: var(--d, 0ms); }
.h-anim-r { animation: od-right 1.0s var(--ease-expo)  both; animation-delay: var(--d, 0ms); }
.h-anim-f { animation: od-fade  1.1s var(--ease-quart) both; animation-delay: var(--d, 0ms); }

/* --- Scroll reveals: hidden state (only when .js is on <html>) --- */
.js [data-reveal]:not([data-revealed])    { opacity: 0; transform: translateY(24px); }
.js [data-reveal="f"]:not([data-revealed]){ opacity: 0; transform: none; }
.js [data-reveal="r"]:not([data-revealed]){ opacity: 0; transform: translateX(26px); }

/* --- Scroll reveals: revealed --- */
.js [data-reveal][data-revealed]     { animation: od-up    0.82s var(--ease-expo)  both; animation-delay: var(--d, 0ms); }
.js [data-reveal="f"][data-revealed] { animation: od-fade  0.9s  var(--ease-quart) both; animation-delay: var(--d, 0ms); }
.js [data-reveal="r"][data-revealed] { animation: od-right 0.9s  var(--ease-expo)  both; animation-delay: var(--d, 0ms); }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .h-anim, .h-anim-r, .h-anim-f {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .js [data-reveal]:not([data-revealed]) {
    opacity: 1 !important;
    transform: none !important;
  }
  .js [data-reveal][data-revealed] { animation: none !important; }
}
