/* Hotels for Kings — Editorial design language (shared) */
:root {
  --paper: #FBFAF7;
  --ink: #181512;
  --ink-soft: #5C564D;
  --ink-faint: #8E8779;
  --gold: #B9924D;
  --gold-deep: #9A7434;
  --hairline: #E7E1D4;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); }

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(.22,1,.36,1), transform 0.9s cubic-bezier(.22,1,.36,1); }
  .rv.in { opacity: 1; transform: none; }
  .rv-d1 { transition-delay: 0.1s; }
  .rv-d2 { transition-delay: 0.2s; }
  .rv-d3 { transition-delay: 0.3s; }
  .rv-d4 { transition-delay: 0.4s; }
}

/* ---------- Nav ---------- */
nav.hfk {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 48px;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
  color: #fff;
}
nav.hfk.scrolled, nav.hfk.solid {
  background: rgba(251,250,247,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  padding: 16px 48px;
  box-shadow: 0 1px 0 var(--hairline);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo svg { width: 26px; height: 26px; }
.nav-logo .wordmark { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; transition: opacity 0.2s; position: relative; }
.nav-links a:hover { opacity: 1; }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: currentColor; transition: width 0.3s ease; }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a.current { opacity: 1; }
.nav-links a.current::after { width: 100%; background: var(--gold); }
.nav-cta {
  border: 1px solid currentColor; padding: 9px 22px; border-radius: 100px;
  font-size: 12px !important; font-weight: 700 !important; letter-spacing: 0.14em !important;
  transition: background 0.3s, color 0.3s;
}
nav.hfk:not(.scrolled):not(.solid) .nav-cta:hover { background: #fff; color: var(--ink); }
nav.hfk.scrolled .nav-cta:hover, nav.hfk.solid .nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- Page hero (subpages with image) ---------- */
.page-hero {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end;
  overflow: hidden; color: #fff; padding: 140px 48px 64px;
}
.page-hero .media { position: absolute; inset: 0; }
.page-hero .media img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .page-hero .media img { animation: heroDrift 26s ease-in-out infinite alternate; }
}
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.06); } }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,8,0.4), rgba(12,10,8,0.12) 45%, rgba(12,10,8,0.6)); }
.page-hero .inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; width: 100%; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.78); margin-bottom: 20px; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: 0.5; }
.page-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
.page-hero h1 em { font-style: italic; color: #EBD9B4; }
.page-hero .sub { margin-top: 18px; font-size: 16.5px; font-weight: 500; color: rgba(255,255,255,0.88); max-width: 560px; text-wrap: pretty; }

/* ---------- Light page header (no image) ---------- */
.page-head { padding: 170px 48px 0; max-width: 1280px; margin: 0 auto; }
.page-head .kicker { color: var(--gold-deep); display: block; margin-bottom: 18px; }
.page-head h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
.page-head h1 em { font-style: italic; color: var(--gold-deep); }
.page-head .sub { margin-top: 22px; font-size: 17px; color: var(--ink-soft); max-width: 600px; text-wrap: pretty; }

/* ---------- Sections ---------- */
section.hfk-sec { padding: 96px 48px; }
.section-head { max-width: 1280px; margin: 0 auto 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-head .label { color: var(--gold-deep); display: block; margin-bottom: 16px; }
.section-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -0.01em; }
.section-head h2 em { font-style: italic; color: var(--gold-deep); }
.section-link { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; padding-bottom: 6px; border-bottom: 1px solid var(--ink); transition: color 0.2s, border-color 0.2s; }
.section-link:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.btn-outline {
  display: inline-block; border: 1px solid var(--ink); border-radius: 100px; padding: 16px 44px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s; cursor: pointer; background: transparent; color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- Rank rows ---------- */
.ranking { max-width: 1100px; margin: 0 auto; }
.rank-row {
  display: grid; grid-template-columns: 110px 200px 1fr auto; gap: 36px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--hairline);
  transition: background 0.3s; position: relative;
}
.rank-row:hover { background: #FDFCF9; }
.rank-num { font-family: var(--serif); font-size: 64px; font-weight: 300; font-style: italic; color: var(--gold); line-height: 1; }
.rank-img { width: 200px; height: 132px; border-radius: 3px; overflow: hidden; }
.rank-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(.22,1,.36,1); }
.rank-row:hover .rank-img img { transform: scale(1.06); }
.rank-info h3 { font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.1; }
.rank-info .place { font-size: 13px; color: var(--ink-faint); margin-top: 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.rank-info .note { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; max-width: 480px; text-wrap: pretty; }
.rank-score { text-align: right; }
.rank-score .score { font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1; }
.rank-score .of { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; }

/* compact rows (positions 6+) */
.rank-row.compact { grid-template-columns: 110px 1fr auto auto; padding: 22px 0; }
.rank-row.compact .rank-num { font-size: 40px; }
.rank-row.compact h3 { font-size: 25px; }
.rank-row.compact .rank-score .score { font-size: 30px; }

/* ---------- Stats ---------- */
.stats { max-width: 1100px; margin: 80px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 0 24px; border-left: 1px solid var(--hairline); text-align: center; }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--serif); font-weight: 300; font-size: 62px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .num sup { font-size: 28px; color: var(--gold-deep); }
.stat .desc { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Footer ---------- */
footer.hfk { background: var(--ink); color: #CFC8BB; padding: 90px 48px 48px; }
.foot-inner { max-width: 1280px; margin: 0 auto; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.12); flex-wrap: wrap; }
.foot-brand .wordmark { font-family: var(--serif); font-size: 30px; color: #fff; display: flex; align-items: center; gap: 12px; }
.foot-brand p { margin-top: 16px; font-size: 14px; max-width: 320px; color: #9A9384; text-wrap: pretty; }
.foot-cols { display: flex; gap: 80px; flex-wrap: wrap; }
.foot-col .label { color: #8E8779; display: block; margin-bottom: 18px; }
.foot-col a { display: block; font-size: 14.5px; padding: 5px 0; color: #CFC8BB; transition: color 0.2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { padding-top: 32px; display: flex; justify-content: space-between; font-size: 12.5px; color: #7B7466; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .rank-row { grid-template-columns: 70px 150px 1fr; }
  .rank-score { display: none; }
  .rank-row.compact { grid-template-columns: 70px 1fr auto; }
  .rank-row.compact .rank-score { display: block; }
  .rank-img { width: 150px; height: 104px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}
@media (max-width: 760px) {
  nav.hfk, nav.hfk.scrolled, nav.hfk.solid { padding-left: 20px; padding-right: 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  section.hfk-sec { padding: 64px 20px; }
  .page-hero { padding: 120px 20px 44px; }
  .page-head { padding: 130px 20px 0; }
  .rank-row { grid-template-columns: 56px 1fr; }
  .rank-img { display: none; }
  .rank-row.compact { grid-template-columns: 56px 1fr auto; }
}
