/* =========================================
   CHAM — Shared styles · Light edition
   ========================================= */

:root {
  --bg:          #f7f2eb;
  --bg-2:        #ede7dc;
  --bg-3:        #e2dbd0;
  --line:        rgba(28, 20, 8, 0.12);
  --line-strong: rgba(28, 20, 8, 0.24);
  --fg:          #1c1408;
  --fg-dim:      rgba(28, 20, 8, 0.72);
  --fg-muted:    rgba(28, 20, 8, 0.46);
  --alpenglow:   #e05a14;
  --alpenglow-light: #ff7a3a;
  --ice:         #1d6fa4;
  --safe:        #1f7a44;
  --warn:        #b45309;
  --danger:      #c0302a;
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Geist', -apple-system, sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --max-w: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* ============ NAV — always dark ============ */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--fg);
  border-bottom: 2px solid var(--fg);
}
nav.top .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; max-width: var(--max-w); margin: 0 auto;
}
.logo {
  font-family: var(--serif);
  font-weight: 900;
  font-variation-settings: "opsz" 144;
  font-size: 28px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--bg);
}
.logo .dot { color: var(--alpenglow-light); }
.nav-links {
  display: flex; gap: 28px; list-style: none;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.nav-links a {
  color: rgba(247, 242, 235, 0.7);
  text-decoration: none; transition: color 0.2s; padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--bg); }
.nav-links a.active { border-bottom: 1px solid var(--alpenglow-light); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-switch {
  display: flex; gap: 2px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
}
.lang-switch a { color: rgba(247,242,235,0.5); text-decoration: none; padding: 4px 6px; transition: color 0.2s; }
.lang-switch a:hover { color: var(--bg); }
.lang-switch a.active { color: var(--alpenglow-light); }
.mobile-burger {
  display: none; background: none; border: none;
  color: var(--bg); cursor: pointer; padding: 8px;
}

/* ============ PAGE HEAD ============ */
.page-head {
  padding: 80px 0 60px; border-bottom: 2px solid var(--fg);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ''; position: absolute; top: 0; right: -5%; width: 50%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(224, 90, 20, 0.08), transparent 65%);
  pointer-events: none;
}
.section-num {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.3em; color: var(--alpenglow);
  margin-bottom: 20px; display: block; text-transform: uppercase;
}
.page-title {
  font-family: var(--serif); font-variation-settings: "opsz" 144, "wght" 900;
  font-size: clamp(52px, 8vw, 120px); line-height: 0.9;
  letter-spacing: -0.045em; margin-bottom: 28px;
}
.page-title em { font-style: italic; color: var(--alpenglow); }
.page-sub {
  font-size: 18px; color: var(--fg-dim); max-width: 640px; line-height: 1.6;
}

/* ============ SECTIONS ============ */
.section { padding: 90px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 50px; gap: 40px;
}
.section-title {
  font-family: var(--serif); font-variation-settings: "opsz" 144, "wght" 800;
  font-size: clamp(36px, 5vw, 64px); line-height: 0.92; letter-spacing: -0.035em;
}
.section-title em { font-style: italic; color: var(--alpenglow); }
.section-meta { font-size: 14px; color: var(--fg-dim); max-width: 320px; text-align: right; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--fg); color: var(--fg);
  cursor: pointer; transition: all 0.2s; background: transparent;
}
.btn:hover { background: var(--fg); color: var(--bg); transform: translateX(2px); }
.btn.primary { background: var(--alpenglow); color: #fff; border-color: var(--alpenglow); }
.btn.primary:hover { background: var(--alpenglow-light); border-color: var(--alpenglow-light); transform: translateX(2px); }
.btn.light { border-color: rgba(247,242,235,0.5); color: var(--bg); }
.btn.light:hover { background: rgba(247,242,235,0.12); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============ TICKER ============ */
.status-strip {
  border-bottom: 2px solid var(--fg); background: var(--fg); overflow: hidden;
}
.ticker {
  display: flex; gap: 60px; padding: 14px 0;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; white-space: nowrap;
  animation: ticker 80s linear infinite; color: rgba(247,242,235,0.7);
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 12px; }
.ticker-item strong { color: var(--bg); font-weight: 600; }
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: #4ade80; }
.dot-amber { background: #fbbf24; }
.dot-red   { background: #f87171; }

/* ============ BUSINESS CARDS ============ */
.directory-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; background: var(--fg); border: 2px solid var(--fg); }
.biz-card {
  background: var(--bg); text-decoration: none; color: inherit;
  display: block; transition: background 0.3s; position: relative; overflow: hidden;
}
.biz-card:hover { background: var(--bg-2); }
.biz-image { height: 180px; background: var(--bg-3); position: relative; overflow: hidden; background-size: cover; background-position: center; }
.biz-image::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(28,20,8,0.7)); }
.biz-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  background: var(--alpenglow); color: #fff; padding: 4px 9px; text-transform: uppercase;
}
.biz-content { padding: 20px; }
.biz-name {
  font-family: var(--serif); font-variation-settings: "opsz" 96, "wght" 700;
  font-size: 20px; letter-spacing: -0.015em; margin-bottom: 4px;
}
.biz-type { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.18em; color: var(--fg-muted); text-transform: uppercase; margin-bottom: 14px; }
.biz-meta { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-dim); }
.biz-meta .open { color: var(--safe); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.15em; }

/* ============ FILTERS ============ */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.filter-pill {
  padding: 9px 18px; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; border: 1px solid var(--line-strong);
  color: var(--fg-dim); cursor: pointer; transition: all 0.2s; background: transparent;
}
.filter-pill:hover { color: var(--fg); border-color: var(--fg); }
.filter-pill.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 28px; }
.form-label { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 10px; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: #fff; border: 1px solid var(--line-strong);
  color: var(--fg); padding: 14px 18px; font-family: var(--sans); font-size: 15px;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--alpenglow); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-family: var(--mono); font-size: 11px; color: var(--fg-muted); margin-top: 6px; letter-spacing: 0.1em; }

/* ============ FOOTER — stays dark ============ */
footer { padding: 80px 0 40px; background: var(--fg); color: var(--bg); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 60px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(247,242,235,0.15);
}
.footer-brand h3 {
  font-family: var(--serif); font-variation-settings: "opsz" 144, "wght" 900;
  font-size: 42px; letter-spacing: -0.04em; margin-bottom: 12px; line-height: 1;
}
.footer-brand h3 em { font-style: italic; color: var(--alpenglow-light); }
.footer-brand p { font-size: 14px; color: rgba(247,242,235,0.65); max-width: 320px; line-height: 1.6; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(247,242,235,0.45); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(247,242,235,0.75); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--bg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: rgba(247,242,235,0.4); flex-wrap: wrap; gap: 16px; }

/* ============ MOBILE MENU ============ */
.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--fg); z-index: 200;
  padding: 80px 32px 40px; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--bg); cursor: pointer; padding: 8px; }
.mobile-menu a { font-family: var(--serif); font-variation-settings: "opsz" 96, "wght" 700; font-size: 32px; color: var(--bg); text-decoration: none; padding: 16px 0; border-bottom: 1px solid rgba(247,242,235,0.15); letter-spacing: -0.02em; }
.mobile-menu a:hover { color: var(--alpenglow-light); }

/* ============ PULSE ANIMATION ============ */
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(224, 90, 20, 0.7); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(224, 90, 20, 0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .directory-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) { .nav-links { display: none; } .mobile-burger { display: block; } .lang-switch { display: none; } }
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  nav.top .inner { padding: 14px 20px; }
  .section { padding: 60px 0; }
  .page-head { padding: 60px 0 40px; }
  .section-head { flex-direction: column; align-items: start; gap: 16px; }
  .section-meta { text-align: left; }
  .directory-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: start; }
}
