/* Climber Coach — "Basecamp" design */
/* Self-hosted variable fonts; the -ro files hold only ă ș ț (and Ș Ț Ă). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/inter-ro.woff2') format('woff2'); unicode-range: U+0102-0103, U+015E-015F, U+0162-0163, U+0218-021B; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700 800; font-display: swap; src: url('../fonts/bricolage-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700 800; font-display: swap; src: url('../fonts/bricolage-ro.woff2') format('woff2'); unicode-range: U+0102-0103, U+015E-015F, U+0162-0163, U+0218-021B; }

:root {
  --paper: #F4EFE6;
  --card: #FFFFFF;
  --ink: #1F2421;
  --muted: #4A5450;
  --soft: #6B6458;
  --line: #DDD5C6;
  --sand: #E6DFD2;
  --forest: #2F4A3A;
  --forest-dark: #1E3227;
  --sun: #F2B632;
  --navy: #13212E;
  --radius: 26px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--forest); }
a:hover { color: var(--forest-dark); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 40px 0 80px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--forest); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.h2 { font-weight: 800; font-size: clamp(34px, 4.5vw, 56px); }
.lead { font-size: 18px; color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.section-head .lead { max-width: 420px; font-size: 16px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--forest); color: var(--paper); }
.btn-primary:hover { background: var(--forest-dark); color: var(--paper); }
.btn-light { background: var(--card); color: var(--ink); }
.btn-light:hover { color: var(--forest); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { color: var(--ink); filter: brightness(0.95); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { color: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-block; background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; }

/* Top bar (from design C) */
.topbar { background: var(--navy); color: #C9D2DC; font-size: 13px; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: #FFFFFF; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #FFFFFF; }

/* Navigation */
.site-header { padding: 20px 0; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; background: var(--card); border-radius: 28px; padding: 10px 10px 10px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; font-weight: 500; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; padding: 6px 0; display: inline-block; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--forest); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav { border-radius: 24px; }
  .nav-toggle { display: inline-flex; background: var(--paper); border: 0; border-radius: 999px; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; }
  .nav-links { display: none; order: 3; width: 100%; flex-direction: column; padding: 8px 4px 12px; }
  .nav-links a { padding: 10px 0; }
  .nav.open .nav-links { display: flex; }
  .nav .btn-primary { display: none; }
  .nav.open .btn-primary { display: inline-flex; order: 4; width: 100%; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 48px 0 80px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero h1 { font-weight: 800; font-size: clamp(48px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--forest); }
.hero .lead { max-width: 560px; font-size: 19px; }
.stats { display: flex; flex-wrap: wrap; gap: 32px; }
.stat-value { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.1; }
.stat-label { font-size: 14px; color: var(--muted); }
.hero-media { flex: 1 1 400px; min-width: 0; position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.hero-badge { position: absolute; left: -20px; bottom: 32px; background: var(--card); border-radius: 18px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(31, 36, 33, 0.12); font-size: 14px; line-height: 1.4; max-width: calc(100% + 10px); }
.hero-badge .chip { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--sun); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; }
@media (max-width: 600px) { .hero-badge { left: 12px; right: 12px; bottom: 12px; } }

/* Panels & cards */
.panel { background: var(--card); border-radius: 32px; padding: clamp(24px, 4vw, 56px); }
.panel-split { display: flex; flex-wrap: wrap; gap: 48px; }
.panel-split > :first-child { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.panel-split > :last-child { flex: 999 1 520px; min-width: 0; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-posts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-sm { display: grid; gap: 16px; align-content: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-paper { background: var(--paper); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card-forest { background: var(--forest); color: var(--paper); }
.card-forest .muted, .card-forest .card-sub { color: #D3DDD6; }
.card h3 { font-weight: 700; font-size: 26px; }
.card-sub { font-size: 14px; color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; line-height: 1.8; font-size: 15px; }
.card .price { margin-top: auto; font-family: var(--display); font-weight: 800; font-size: 30px; }
.tag { align-self: flex-start; background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.tag-sun { background: var(--sun); color: var(--ink); }
.price-box { background: var(--paper); border-radius: 18px; padding: 18px 20px; }
.price-box strong { display: block; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.2; }
.price-box span { font-size: 14px; color: var(--muted); }

/* Calendar */
.calendar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.calendar-head h3 { font-weight: 700; font-size: 26px; }
.round-btn { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 20px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: 13px; font-weight: 600; color: var(--soft); text-align: center; margin-bottom: 6px; }
.cal-day { min-height: 60px; padding: 8px; border-radius: 10px; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; justify-content: space-between; border: 0; text-align: left; font-family: inherit; color: inherit; text-decoration: none; }
.cal-day small { font-size: 11px; font-weight: 500; }
.cal-out { visibility: hidden; }
.cal-none { background: var(--paper); color: var(--soft); }
.cal-free { background: var(--forest); color: var(--paper); }
a.cal-free:hover { background: var(--forest-dark); color: var(--paper); }
.cal-free.selected { box-shadow: 0 0 0 3px var(--sun); }
.cal-busy { background: var(--sand); color: var(--soft); }
.cal-course, .cal-camp { background: var(--sun); color: var(--ink); }
.cal-group { background: var(--card); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.cal-past { background: transparent; color: var(--soft); box-shadow: none; }
.legend { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.legend span { display: flex; gap: 10px; align-items: center; }
.legend i { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
@media (max-width: 600px) { .cal-day { min-height: 48px; padding: 6px; font-size: 13px; } .cal-day small { display: none; } }

/* Achievements */
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; color: #FFFFFF; display: block; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-card .caption { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--ink); border-radius: 18px; padding: 18px; }
.photo-card .caption small { color: var(--sun); font-weight: 600; font-size: 13px; }
.photo-card .caption strong { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chips span { background: var(--card); border-radius: 999px; padding: 10px 16px; font-size: 14px; }

/* Blog */
.post-card { background: var(--card); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.post-card:hover { color: var(--ink); box-shadow: 0 10px 30px rgba(31, 36, 33, 0.1); }
.post-card img, .post-card .placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .placeholder { background: var(--forest); }
.post-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.post-card .meta { font-size: 13px; color: var(--soft); }
.post-card h3 { font-weight: 700; font-size: 22px; line-height: 1.2; }
.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: 28px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 32px 0; }
.pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }

/* Rich text (markdown from the admin) */
.prose { font-size: 18px; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 800; margin-top: 1.6em; }
.prose h3 { font-size: 24px; font-weight: 700; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose img { border-radius: 18px; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--sun); color: var(--muted); }
/* Article boxes ([!FAPTE], [!SFAT], [!INFO], [!ATENTIE]) */
.callout { border-radius: 22px; padding: 22px 26px; margin: 1.6em 0; }
.prose > .callout + * { margin-top: 0; }
.callout > * + * { margin-top: 0.7em; }
.callout-title { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.callout ul, .callout ol { margin: 0; }
.callout-facts { background: var(--card); }
.callout-facts ul { list-style: none; padding: 0; display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); font-size: 16px; }
.callout-facts li + li { margin-top: 0; }
.callout-tip { background: var(--forest); color: var(--paper); }
.callout-tip a { color: var(--sun); }
.callout-info { background: var(--card); border: 1px solid var(--line); font-size: 16px; }
.callout-warning { background: #FCEBC0; color: #4A3A10; box-shadow: inset 5px 0 0 #B7791F; }
.prose picture img, .prose img { width: 100%; height: auto; margin: 0.4em 0; }
.reading-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.prose-card { background: var(--card); border-radius: 32px; padding: clamp(24px, 4vw, 56px); }

/* Gallery */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gallery-grid a { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: var(--sand); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { background: var(--card); color: var(--ink); border-radius: 999px; padding: 12px 16px; font-size: 14px; font-weight: 500; text-decoration: none; }
.filters a[aria-current="true"] { background: var(--forest); color: var(--paper); }
.lightbox { position: fixed; inset: 0; background: rgba(20, 24, 22, 0.92); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 50; flex-direction: column; gap: 12px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 12px; }
.lightbox p { color: #F4EFE6; text-align: center; max-width: 720px; }
.lightbox button { position: absolute; top: 16px; right: 16px; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); right: auto; }
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { left: auto; right: 16px; }

/* About band */
.about-band { background: var(--forest); color: var(--paper); border-radius: 32px; padding: clamp(24px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about-band img { flex: 1 1 260px; min-width: 0; max-width: 380px; aspect-ratio: 1; object-fit: cover; border-radius: 24px; }
.about-band > div { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-band p { color: #E3EAE5; font-size: 18px; }

/* Page header */
.page-hero { padding: 32px 0 48px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.page-hero h1 { font-weight: 800; font-size: clamp(40px, 6vw, 80px); max-width: 960px; }
.page-hero .lead { max-width: 720px; }
.breadcrumbs { font-size: 14px; color: var(--soft); }
.breadcrumbs a { color: var(--soft); }

/* Forms */
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); min-height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--soft); }
.field .error { font-size: 13px; color: #A12D1B; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--forest); }
.alert { border-radius: 18px; padding: 18px 20px; font-weight: 500; }
.alert-ok { background: #DDEBDF; color: var(--forest-dark); }
.alert-err { background: #F6DCD5; color: #7A2214; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { padding: 32px 0 40px; font-size: 14px; color: var(--soft); border-top: 1px solid var(--line); }
.site-footer .container { display: flex; border-top: 0; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--forest); text-decoration: underline; }
