/*
 * HotelMonitor Brand Design System v2.0
 * Claude Design — April 2026
 * Single source of truth. Linked from every page.
 */

/* ── FONTS ──────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Mono:wght@400;700&display=swap');

/* ── DESIGN TOKENS ──────────────────────────────────────────────────────── */
:root {
  /* Core palette — from Claude Design v1.0 */
  --navy:         #0b1c2e;
  --navy-mid:     #0f2539;
  --navy-light:   #162f47;
  --teal:         #00d4aa;
  --teal-dark:    #00b891;
  --teal-pale:    rgba(0,212,170,0.10);
  --teal-border:  rgba(0,212,170,0.22);
  --gold:         #c9a84c;
  --gold-pale:    rgba(201,168,76,0.10);
  --white:        #ffffff;
  --off-white:    #e8f0f7;
  --muted:        rgba(232,240,247,0.55);

  /* Light-surface palette (forms, cards, content areas) */
  --sand:         #f7f5f0;
  --sand-mid:     #ede9e1;
  --text:         #0b1c2e;
  --text-mid:     #3d5166;
  --text-light:   #7a90a4;

  /* Semantic */
  --success:      #00b891;
  --success-bg:   rgba(0,212,170,0.08);
  --alert:        #c0392b;
  --border:       rgba(11,28,46,0.09);

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(11,28,46,0.07);
  --shadow:       0 4px 20px rgba(11,28,46,0.07);
  --shadow-lg:    0 12px 40px rgba(11,28,46,0.12);

  /* Fonts */
  --font-serif:   'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* All form inputs inherit body font */
input, select, textarea, button {
  font-family: inherit;
}

/* ── FAVICON SVG ────────────────────────────────────────────────────────── */
/* Defined in /favicon.svg — link rel="icon" href="/favicon.svg" */

/* ── NAV ────────────────────────────────────────────────────────────────── */
.hm-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(11,28,46,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,212,170,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

/* ── LOGO MARK ──────────────────────────────────────────────────────────── */
.hm-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.hm-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--navy-light);
  border: 1px solid var(--teal-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.hm-logo-letters {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
}

.hm-logo-drop {
  width: 2px;
  height: 6px;
  background: var(--teal);
  border-radius: 1px;
  margin-top: 2px;
  position: relative;
}

.hm-logo-drop::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid var(--teal);
}

.hm-logo-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hm-logo-name span {
  color: var(--teal);
}

/* ── NAV LINKS ──────────────────────────────────────────────────────────── */
.hm-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.hm-nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.hm-nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.hm-nav-links a.active {
  color: var(--teal);
  background: var(--teal-pale);
}

.hm-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 0.42rem 1.1rem !important;
  border-radius: 100px !important;
  transition: background 0.2s, transform 0.15s !important;
}

.hm-nav-cta:hover {
  background: var(--teal-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* ── NAV MOBILE BURGER ──────────────────────────────────────────────────── */
.hm-nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--off-white);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.4rem;
}

@media (max-width: 640px) {
  .hm-nav { padding: 0 1.25rem; }
  .hm-nav-burger { display: flex; align-items: center; }
  .hm-nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: rgba(11,28,46,0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.5rem 1.25rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--teal-border);
    z-index: 99;
  }
  .hm-nav-links.open { display: flex; }
  .hm-nav-links a {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
  }
  .hm-nav-cta { margin-top: 0.25rem; }
}

/* ── BACK LINK (blog/inner pages) ───────────────────────────────────────── */
.hm-nav-back {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.hm-nav-back:hover { color: var(--white); }

/* ── COMMON PILL / BADGE ────────────────────────────────────────────────── */
.hm-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--teal-pale);
  border: 1px solid var(--teal-border);
  border-radius: 100px;
  padding: 3px 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── EYEBROW LABEL ──────────────────────────────────────────────────────── */
.hm-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.hm-footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(0,212,170,0.08);
  color: var(--muted);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
}

.hm-footer a {
  color: rgba(232,240,247,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.hm-footer a:hover { color: var(--teal); }

/* ── UTILITY CLASSES (from inlined styles optimization) */

/* Links - primary teal */
.link-teal {
  color: var(--teal);
  text-decoration: none;
}

.link-teal-sm {
  color: var(--teal);
  text-decoration: none;
  font-size: 0.72rem;
}

/* Flex utilities */
.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-gap-8 {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Cards - Glass morphism style */
.card-glass {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.card-border {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

/* Typography utilities */
.text-sm { font-size: 0.72rem; }
.text-md { font-size: 0.82rem; }
.text-lg { font-size: 0.9rem; }
.text-xl { font-size: 1.5rem; }
.text-2xl { font-size: 1.75rem; }

.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.text-white { color: white; }
.text-muted { color: rgba(255, 255, 255, 0.35); }
.text-italic { font-style: italic; }

/* Spacing utilities */
.padding-1 { padding: 1rem 0; }
.padding-1-2 { padding: 1.2rem 1rem; }
.padding-3 { padding: 3rem; }
.padding-2 { padding: 2rem; }
.margin-b-8 { margin-bottom: 8px; }
.margin-b-12 { margin-bottom: 12px; }
.margin-t-4 { margin-top: 4px; }
.padding-top-8 { padding-top: 8px; }

/* Transitions */
.transition-fast { transition: transform 0.2s; }
.transition-smooth { transition: max-height 0.3s; }

/* Borders & Dividers */
.border-right { border-right: 1px solid rgba(255, 255, 255, 0.06); }
.border-bottom { border-bottom: 1px solid var(--border); }

/* Font families */
.font-serif { font-family: var(--font-serif); }
.font-mono { font-family: var(--font-mono); }

/* Cursor utilities */
.cursor-pointer { cursor: pointer; }

/* Opacity/visibility */
.max-h-0 { max-height: 0; }
.overflow-hidden { overflow: hidden; }
.letter-spacing { letter-spacing: 0.08em; }
.letter-spacing-sm { letter-spacing: 0.07em; }
.text-transform-upper { text-transform: uppercase; }

/* Line height */
.line-height-1 { line-height: 1; }
.line-height-1-65 { line-height: 1.65; }
.line-height-1-7 { line-height: 1.7; }

/* Font weight */
.font-weight-400 { font-weight: 400; }
.font-weight-600 { font-weight: 600; }
