/* site3_swiss_living: Swiss Living Cost Blueprint - Analytical & Institutional */
:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-primary: #09090b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #0f172a;
  --accent: #1e3a8a;
  --accent-soft: #eff6ff;
  --accent-hover: #172554;
  --accent-gold: #b45309;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container-max: 1140px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-badge {
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--text-primary);
  color: #fff;
}

.header-btn {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.header-btn:hover {
  background: var(--accent-hover);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.hero-section {
  padding: 56px 0 40px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 900px;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: 28px;
}

/* Photo Box */
.editorial-photo-box {
  margin: 32px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.editorial-photo-box img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.photo-caption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.photo-caption-loc {
  font-weight: 600;
  color: var(--text-primary);
}

/* Interactive Calculator Module */
.calculator-section {
  padding: 56px 0;
}

.calc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.calc-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.calc-header h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.calc-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}

/* Controls */
.control-group {
  margin-bottom: 24px;
}

.control-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.btn-toggle-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-toggle {
  padding: 9px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-toggle:hover {
  background: #e2e8f0;
}

.btn-toggle.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

/* Result Panel */
.calc-result-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
}

.calc-total-wrap {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.calc-total-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.calc-total-val {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin: 4px 0;
}

.calc-total-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.calc-breakdown-list {
  list-style: none;
  font-size: 14px;
}

.calc-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #cbd5e1;
}

.calc-item:last-child {
  border-bottom: none;
}

.calc-item-name {
  color: var(--text-secondary);
}

.calc-item-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
}

.startup-deposit-box {
  margin-top: 20px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 13px;
}

.startup-deposit-box strong {
  color: var(--accent-gold);
}

/* Article & Analysis Section */
.analysis-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.analysis-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.article-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 36px 0 16px;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
  color: #334155;
  line-height: 1.65;
}

.article-content ul, .article-content ol {
  margin: 16px 0 24px 20px;
  color: #334155;
}

.article-content li {
  margin-bottom: 8px;
}

.note-box {
  background: var(--bg-subtle);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
}

/* Sidebar Lead Form */
.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow-sm);
}

.sidebar-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.sidebar-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.sidebar-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-submit:hover {
  background: var(--accent-hover);
}

.form-legal {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 12px;
  text-align: center;
}

.hidden-field {
  display: none !important;
  visibility: hidden !important;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 32px;
  border-top: 1px solid #1e293b;
  font-size: 13px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-brand p {
  line-height: 1.6;
  max-width: 460px;
}

.compliance-box {
  margin-top: 14px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.footer-col h5 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: #fff;
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 100%;
  padding: 36px;
  text-align: center;
}

.modal-icon {
  width: 52px;
  height: 52px;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.modal-btn {
  padding: 11px 24px;
  background: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    font-size: 32px;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
  }
  .mobile-toggle {
    display: block;
  }
  .calc-box {
    padding: 24px;
  }
}
