/* ─── HelioEsfera · global stylesheet ────────────────────────────────────────
 * Design system + base + all components used outside the SolarQuote app.
 * SolarQuote-only styles live in /assets/solar-quote.css.
 * ─────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Design tokens ────────────────────────────────────────────────────────── */
:root {
  /* Colour */
  --bg:        #FBFAF7;
  --bg-2:      #F4F1EA;
  --surface:   #FFFFFF;
  --ink:       #1A1D21;
  --ink-2:     #3F4348;
  --muted:     #767B83;
  --line:      #E8E4DC;
  --line-2:    #D8D3C8;
  --accent:    #F59E0B;   /* solar amber */
  --accent-2:  #B45309;   /* darker amber for hover */
  --green:     #10B981;   /* savings / eco */
  --green-2:   #047857;

  /* Layout */
  --maxw:      1200px;
  --pad-x:     clamp(16px, 4vw, 32px);
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Type */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* Motion */
  --t-fast:    150ms ease;
  --t-base:    220ms ease;
}

/* ─── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }

a {
  color: var(--green-2);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--green); }

ul, ol { padding-left: 1.4em; }
ul[role="list"] { list-style: none; padding: 0; margin: 0; }

/* ─── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.2;
}
h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 1.6vw, 22px); }
h4 { font-size: 16px; }

p  { margin: 0 0 1em; color: var(--ink-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ─── Layout primitives ────────────────────────────────────────────────────── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section { padding: clamp(56px, 8vw, 96px) var(--pad-x); }
.section-tight { padding: clamp(40px, 5vw, 64px) var(--pad-x); }

#main-content { min-height: 60vh; }

/* ─── Navigation ───────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-nav.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-logo:hover { color: var(--ink); }
.nav-logo img { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-cta { display: flex; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ink);
  border: 1px solid var(--line);
}
.nav-toggle:hover { background: var(--bg-2); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--pad-x) 20px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.nav-mobile a {
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-of-type { border-bottom: 0; }
.nav-mobile a.active { color: var(--accent-2); font-weight: 500; }
.nav-mobile.open { display: flex; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: #000; color: var(--bg); }

.btn-accent {
  background: var(--accent);
  color: #1a1a1a;
}
.btn-accent:hover { background: var(--accent-2); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }

/* ─── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  transition: background var(--t-fast), color var(--t-fast);
  text-transform: lowercase;
}
.badge:hover { background: var(--line); color: var(--ink); }
.badge.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ─── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}

/* ─── Hero (home) ──────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(48px, 8vw, 96px) var(--pad-x) clamp(56px, 8vw, 80px);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 70%),
    var(--bg);
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero-title {
  font-size: clamp(36px, 6.5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat-cell { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── Services grid ────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.service-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  color: var(--ink);
  transition: border-color var(--t-base), transform var(--t-base);
}
.service-card:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent-2);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.service-card h3 { margin: 0 0 8px; font-size: 18px; }
.service-card p  { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ─── Section header (recent posts etc.) ──────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 24px;
  flex-wrap: wrap;
}
.recent-posts-section { padding: clamp(56px, 8vw, 96px) var(--pad-x); }

/* ─── Blog grid ────────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.post-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px -16px rgba(0,0,0,0.12);
}
.post-card-body { padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.post-card h3 { font-size: 17px; line-height: 1.35; margin: 4px 0; color: var(--ink); }
.post-card:hover h3 { color: var(--accent-2); }
.post-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }
.post-card-meta {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── Blog header + filters ────────────────────────────────────────────────── */
.blog-header {
  padding: clamp(48px, 6vw, 80px) var(--pad-x) clamp(32px, 4vw, 48px);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.blog-header-inner { max-width: var(--maxw); margin: 0 auto; }
.blog-header h1 { margin: 0; }
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.blog-body {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--pad-x);
}

/* ─── Pagination ───────────────────────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.blog-pagination a,
.blog-pagination .current,
.blog-pagination .pag-prev,
.blog-pagination .pag-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--surface);
}
.blog-pagination a:hover { border-color: var(--accent); color: var(--ink); }
.blog-pagination .current {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ─── Post page ────────────────────────────────────────────────────────────── */
.post-header {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--pad-x) 32px;
}
.post-header h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}
.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px var(--pad-x);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}
.post-content h2 {
  margin: 2em 0 0.6em;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--ink);
}
.post-content h3 { margin: 1.6em 0 0.5em; color: var(--ink); }
.post-content p, .post-content ul, .post-content ol { margin: 0 0 1.2em; }
.post-content a {
  color: var(--green-2);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--green) 40%, transparent);
  text-underline-offset: 3px;
}
.post-content a:hover { text-decoration-color: var(--green); }
.post-content img {
  margin: 1.5em auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.post-content blockquote {
  margin: 1.5em 0;
  padding: 8px 0 8px 20px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-style: italic;
}
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
}
.post-content pre {
  background: var(--ink);
  color: #f4f1ea;
  padding: 18px 22px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}
.post-content pre code { background: transparent; padding: 0; color: inherit; }
.post-content table,
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.post-content th, .post-content td,
.page-content th, .page-content td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.post-content tr:last-child td,
.page-content tr:last-child td { border-bottom: 0; }
.post-content th,
.page-content th {
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-2);
  font-family: var(--font-display);
  letter-spacing: -0.005em;
}
.post-content tbody tr:nth-child(even),
.page-content tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg-2) 50%, var(--surface)); }
.post-content hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }

/* Adjacent posts */
.post-adjacent {
  max-width: 720px;
  margin: 24px auto 64px;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.post-adjacent-item {
  display: block;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color var(--t-base);
}
.post-adjacent-item:hover { border-color: var(--accent); color: var(--ink); }
.post-adjacent-item.next { text-align: right; }
.post-adjacent-dir {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.post-adjacent-title { font-size: 15px; font-weight: 500; line-height: 1.4; }
@media (max-width: 640px) {
  .post-adjacent { grid-template-columns: 1fr; }
  .post-adjacent-item.next { text-align: left; }
}

/* ─── Page (generic) ───────────────────────────────────────────────────────── */
.page-header {
  padding: clamp(48px, 6vw, 80px) var(--pad-x) clamp(32px, 4vw, 48px);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.page-header-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.page-header h1 { margin: 0; }
.page-header .eyebrow { justify-content: center; display: inline-flex; }

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--pad-x);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
}
.page-content h2, .page-content h3 { color: var(--ink); margin-top: 1.8em; }
.page-content a { color: var(--green-2); text-decoration: underline; text-underline-offset: 3px; }
.page-content img { margin: 1.5em auto; border-radius: var(--radius); }

/* ─── Presupuesto page header ──────────────────────────────────────────────── */
.presupuesto-header {
  padding: clamp(48px, 6vw, 80px) var(--pad-x) clamp(24px, 3vw, 40px);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.presupuesto-header h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: -0.03em;
  margin: 0 auto;
  max-width: 760px;
  line-height: 1.1;
}
.presupuesto-header p { max-width: 580px; margin: 16px auto 0; color: var(--muted); }

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.highlight-box {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.highlight-box h4 {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--accent-2);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.highlight-box p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ─── Contact page ─────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 840px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
}
.contact-info-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.contact-info-card h3 { margin: 0 0 20px; font-size: 17px; }
.contact-info-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-info-row:last-child { border-bottom: 0; }
.contact-info-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-info-value { font-size: 14px; color: var(--ink); }

/* ─── Form fields (used by React + noscript fallback) ─────────────────────── */
.form-field { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-input {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.form-textarea { min-height: 140px; resize: vertical; line-height: 1.5; }

.form-input.error { border-color: #DC2626; }
.form-error {
  margin-top: 6px;
  font-size: 12px;
  color: #DC2626;
}
.form-success {
  padding: 20px 22px;
  background: color-mix(in srgb, var(--green) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
  border-radius: var(--radius);
  color: var(--green-2);
  font-size: 15px;
  line-height: 1.55;
}
.form-success strong { color: var(--ink); }
.form-alert {
  padding: 12px 16px;
  margin-bottom: 16px;
  background: color-mix(in srgb, #DC2626 8%, var(--surface));
  border: 1px solid color-mix(in srgb, #DC2626 35%, transparent);
  border-radius: var(--radius-sm);
  color: #B91C1C;
  font-size: 14px;
}

/* ─── 404 page ─────────────────────────────────────────────────────────────── */
.not-found {
  text-align: center;
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  max-width: 560px;
  margin: 0 auto;
}
.not-found-code {
  font-family: var(--font-display);
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.not-found h2 { margin: 0 0 12px; }
.not-found p { color: var(--muted); margin-bottom: 28px; }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--bg) 80%, transparent);
  padding: clamp(56px, 7vw, 88px) var(--pad-x) 24px;
  margin-top: 64px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 12%, transparent);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 14px;
}
.footer-logo:hover { color: var(--bg); }
.footer-desc {
  font-size: 14px;
  color: color-mix(in srgb, var(--bg) 60%, transparent);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 280px;
}
.footer-contact {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.footer-col h4 {
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: color-mix(in srgb, var(--bg) 70%, transparent);
  font-size: 14px;
}
.footer-col a:hover { color: var(--bg); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: color-mix(in srgb, var(--bg) 50%, transparent);
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a {
  color: color-mix(in srgb, var(--bg) 60%, transparent);
  font-size: 13px;
}
.footer-bottom-links a:hover { color: var(--bg); }

/* ─── Loading / spinner (used by React mount points) ──────────────────────── */
.app-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 14px;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Cookie consent banner (vanilla JS) ──────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.22);
  z-index: 200;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 300ms ease, transform 300ms ease;
}
.cookie-banner.show { opacity: 1; transform: translateY(0); }
.cookie-banner p {
  margin: 0;
  color: var(--ink-2);
  flex: 1 1 220px;
}
.cookie-banner a {
  color: var(--green-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner .cookie-actions { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

/* ─── Skill bars (Markdown-embedded progress bars, e.g. /about-us/) ───────── */
.skills { display: flex; flex-direction: column; gap: 18px; margin: 1.5em 0; max-width: 540px; }
.skill-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.skill-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.skill-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.skill-bar {
  height: 8px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 999px;
  animation: skill-fill-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
@keyframes skill-fill-in {
  to { width: var(--w, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .skill-fill { animation: none; width: var(--w, 0); }
}

/* ─── Focus visibility (accessibility) ────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
