/* ============================================================
   Rumbo Suiza — shared design system
   Swiss-inspired palette, geometric mountain motifs, no external
   fonts/images/network dependencies.
   ============================================================ */

:root {
  --photo-summer: url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/1a/Alps_of_Switzerland_Lake_Sils_%2823783810673%29.jpg/1920px-Alps_of_Switzerland_Lake_Sils_%2823783810673%29.jpg');
  --photo-winter: url('https://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/Ski_Slopes_of_Verbier.jpg/1920px-Ski_Slopes_of_Verbier.jpg');
  --red: #d52b1e;
  --red-dark: #a91f16;
  --red-light: #ffecea;
  --ink: #171a1f;
  --ink-soft: #454b54;
  --slate: #6b7280;
  --line: #e4e7eb;
  --paper: #ffffff;
  --fog: #f6f7f9;
  --alpine-1: #274156;
  --alpine-2: #3d5a73;
  --alpine-3: #6f93a8;
  --snow: #f8fafc;
  --gold: #d4a72c;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(23, 26, 31, 0.08);
  --shadow-lg: 0 16px 48px rgba(23, 26, 31, 0.14);
  --max: 1120px;
  --font: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul, ol { color: var(--ink-soft); padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.center { text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red-light); color: var(--red-dark);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.03em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.cross {
  display: inline-block; width: 1.6em; height: 1.6em; position: relative;
}
.cross::before, .cross::after {
  content: ""; position: absolute; background: currentColor;
}
.cross::before { top: 13%; left: 36%; width: 28%; height: 74%; }
.cross::after { left: 13%; top: 36%; height: 28%; width: 74%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(213,43,30,.28); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--alpine-1); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max); margin: 0 auto; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 6px; background: var(--red);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem;
  flex-shrink: 0;
}
nav.primary { display: flex; align-items: center; gap: 22px; }
nav.primary a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
nav.primary a:hover { color: var(--ink); text-decoration: none; }
nav.primary a.active { color: var(--red); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 0.82rem; font-weight: 700;
}
.lang-switch a { padding: 6px 12px; color: var(--slate); }
.lang-switch a.active { background: var(--ink); color: #fff; }
.lang-switch a:hover { text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
  header.site { backdrop-filter: none; }
  .nav-wrap { gap: 8px; padding: 12px 16px; }
  .brand { white-space: nowrap; font-size: 1.05rem; }
  .brand-mark { width: 32px; height: 32px; font-size: 0.85rem; }
  .nav-right { gap: 8px; }
  .nav-right .btn-primary { padding: 6px 10px !important; font-size: 0.72rem !important; white-space: nowrap; }
  .lang-switch { font-size: 0.75rem; }
  .lang-switch a { padding: 5px 9px; }
  nav.primary { position: fixed; inset: 62px 0 0 0; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 24px; gap: 18px; transform: translateX(100%);
    transition: transform .25s ease; overflow-y: auto; }
  nav.primary.open { transform: translateX(0); }
  .nav-toggle { display: block; }
}

/* ---------- Hero with mountain motif ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: 580px; display: flex; align-items: flex-end;
  background-image:
    linear-gradient(180deg, rgba(9,15,20,.62) 0%, rgba(9,15,20,.4) 40%, rgba(9,15,20,.18) 68%, #fff 100%),
    var(--photo-summer);
  background-size: cover; background-position: center 38%; background-repeat: no-repeat;
  padding: 150px 0 0;
}
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px 72px; position: relative; z-index: 2; }
.hero h1 { max-width: 780px; color: #fff; }
.hero .lead { font-size: 1.15rem; max-width: 640px; color: rgba(255,255,255,.92); }
.hero .badge { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.mountains {
  width: 100%; display: block; margin-top: 32px;
}
.mountains .peak-a { fill: var(--alpine-3); opacity: .55; }
.mountains .peak-b { fill: var(--alpine-2); opacity: .85; }
.mountains .peak-c { fill: var(--alpine-1); }
.mountains .snowcap { fill: var(--snow); }
.mountains .sun { fill: var(--gold); opacity: .85; }

.page-hero {
  background-image:
    linear-gradient(135deg, rgba(39,65,86,.88), rgba(61,90,115,.82)),
    var(--photo-summer);
  background-size: cover; background-position: center 40%; background-repeat: no-repeat;
  color: #fff; padding: 64px 0 48px; position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 700px; }
.page-hero .badge { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Season bands (things-to-do page) ---------- */
.season-band {
  padding: 96px 0; color: #fff; position: relative; background-size: cover; background-position: center;
}
.season-band .container { max-width: 720px; }
.season-band h2 { color: #fff; }
.season-band p { color: rgba(255,255,255,.92); }
.season-band .badge { background: rgba(255,255,255,.18); color: #fff; }
.season-summer {
  background-image: linear-gradient(135deg, rgba(18,54,36,.6), rgba(10,28,20,.72)), var(--photo-summer);
}
.season-winter {
  background-image: linear-gradient(135deg, rgba(18,36,64,.62), rgba(10,20,38,.74)), var(--photo-winter);
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--red-light); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; margin-bottom: 10px; }
.card a.more { font-weight: 700; font-size: 0.9rem; }

.step-list { counter-reset: step; list-style: none; padding: 0; }
.step-list li {
  counter-increment: step; position: relative; padding: 20px 20px 20px 64px;
  background: var(--fog); border-radius: var(--radius); margin-bottom: 14px; border: 1px solid var(--line);
}
.step-list li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem;
}
.step-list h3 { margin-bottom: 6px; font-size: 1.05rem; }
.step-list p { margin-bottom: 0; font-size: 0.94rem; }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #1a8f4c; font-weight: 800;
  width: 20px; height: 20px; background: #e7f8ee; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 0.75rem;
}

table.data { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.94rem; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.data th { background: var(--fog); font-weight: 700; color: var(--ink); }
table.data td { color: var(--ink-soft); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.table-wrap table.data { margin: 0; }

.callout {
  border-left: 4px solid var(--red); background: var(--red-light); padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0;
}
.callout.info { border-color: var(--alpine-2); background: #eef4f8; }
.callout h4 { margin-bottom: 6px; font-size: 0.98rem; }
.callout p:last-child { margin-bottom: 0; }

.tag { display: inline-block; background: var(--fog); border: 1px solid var(--line); padding: 4px 10px;
  border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); margin: 0 6px 6px 0; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }

/* ---------- Layout helpers ---------- */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.sidebar-card { background: var(--fog); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); margin-bottom: 20px; }
.sidebar-card h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: .03em; color: var(--slate); margin-bottom: 12px; }
.sidebar-card ul { margin: 0; padding-left: 0; list-style: none; }
.sidebar-card ul li { margin-bottom: 8px; }
.sidebar-card ul a { font-weight: 600; color: var(--ink); font-size: 0.92rem; }

/* ---------- Ad slots ---------- */
.ad-slot {
  background: repeating-linear-gradient(45deg, #f1f2f4, #f1f2f4 10px, #e9ebee 10px, #e9ebee 20px);
  border: 1px dashed #c4c9cf; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #9aa1a9; font-size: 0.78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  margin: 32px auto; min-height: 100px;
}
.ad-slot.banner { min-height: 90px; max-width: 728px; }
.ad-slot.rect { min-height: 250px; max-width: 300px; }
.ad-slot.infeed { min-height: 120px; }

/* ---------- Quiz ---------- */
.quiz-shell { background: var(--fog); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 26px; }
.quiz-progress span { flex: 1; height: 6px; border-radius: 4px; background: var(--line); }
.quiz-progress span.done { background: var(--red); }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.94rem; }
.field select, .field input[type="text"], .field input[type="number"], .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  font-size: 0.98rem; font-family: var(--font); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-group input { position: absolute; opacity: 0; }
.pill-group label {
  border: 1px solid var(--line); background: #fff; padding: 9px 16px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; cursor: pointer; margin: 0;
}
.pill-group input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 8px; }
.quiz-result { display: none; }
.quiz-result.active { display: block; animation: fade .3s ease; }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.big { font-size: 1.6rem; font-weight: 800; color: var(--red); }
.disclaimer-box { font-size: 0.85rem; color: var(--slate); background: #fff; border: 1px dashed var(--line); padding: 14px 16px; border-radius: var(--radius-sm); margin-top: 16px; }

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 999;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px 22px;
  display: none; align-items: center; gap: 18px; flex-wrap: wrap; max-width: 760px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
#cookie-banner.show { display: flex; }
#cookie-banner p { color: rgba(255,255,255,.82); margin: 0; font-size: 0.88rem; flex: 1 1 320px; }
#cookie-banner .actions { display: flex; gap: 10px; }
#cookie-banner a { color: #fff; text-decoration: underline; }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: rgba(255,255,255,.7); padding: 56px 0 28px; margin-top: 60px; }
footer.site .grid-4 { margin-bottom: 40px; }
footer.site h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
footer.site ul { list-style: none; padding: 0; }
footer.site a { color: rgba(255,255,255,.65); font-size: 0.92rem; }
footer.site a:hover { color: #fff; }
footer.site .brand { color: #fff; margin-bottom: 10px; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }
footer.site .disclaimer { font-size: 0.8rem; color: rgba(255,255,255,.5); max-width: 640px; }

/* ---------- Blog ---------- */
.post-meta { color: var(--slate); font-size: 0.86rem; margin-bottom: 18px; }
.post-header { margin-bottom: 30px; }
.blog-card img { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff;
  border-radius: 24px; padding: 48px; text-align: center; margin: 60px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-slate { color: var(--slate); }
.small { font-size: 0.85rem; }
