/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg:           #F5F0E8;
  --bg-card:      #FDFAF5;
  --bg-white:     #FFFFFF;
  --text:         #2C2C2C;
  --text-muted:   #6B6560;
  --accent:       #C4603A;
  --accent-hover: #A8502F;
  --olive:        #8B9E6E;
  --border:       #E5DDD0;
  --shadow:       0 2px 8px rgba(44, 44, 44, 0.07);
  --radius:       8px;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-heading: 'Lora', Georgia, serif;
  --max-w:        1100px;
  --gap:          24px;
}

[data-theme="dark"] {
  --bg:           #18150F;
  --bg-card:      #221E17;
  --bg-white:     #2A2520;
  --text:         #EDE8E0;
  --text-muted:   #9E978E;
  --accent:       #D97048;
  --accent-hover: #E88055;
  --border:       #3D3530;
  --shadow:       0 2px 12px rgba(0, 0, 0, 0.45);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Layout ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.main-content { flex: 1; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-image {
  display: block;
  height: 34px;
  width: auto;
}
.logo-image--dark {
  display: none;
}
[data-theme="dark"] .logo-image--light {
  display: none;
}
[data-theme="dark"] .logo-image--dark {
  display: block;
}
.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
}
.main-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.header-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  line-height: 1;
  white-space: nowrap;
}
.header-btn:hover { border-color: var(--accent); color: var(--accent); }

.lang-dropdown { position: relative; }

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 4px;
  min-width: 150px;
  z-index: 200;
}
.lang-dropdown.open .lang-menu { display: block; }

.lang-option {
  display: block;
  padding: 6px 10px;
  font-size: 0.83rem;
  color: var(--text);
  border-radius: 4px;
  white-space: nowrap;
}
.lang-option:hover { background: var(--bg); color: var(--accent); }
.lang-option--active { font-weight: 600; color: var(--accent); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 18px 0;
  margin-top: 60px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: var(--gap);
  flex-wrap: wrap;
}
.footer-brand-block { flex-shrink: 0; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.footer-brand .logo-image { height: 24px; }
.footer-nav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; align-items: center; }
.footer-nav a { font-size: 0.85rem; color: var(--text-muted); }
.footer-nav a:hover { color: var(--accent); }
.footer-contact-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.footer-email { font-size: 0.85rem; color: var(--accent); font-weight: 500; }
.footer-email:hover { color: var(--accent-hover); }
.footer-sep { font-size: 0.78rem; color: var(--text-muted); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}
.btn-large { padding: 14px 32px; font-size: 1rem; }

/* ── Forms shared ──────────────────────────────────────────────────────── */
.q-input, .q-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.q-input:focus, .q-select:focus {
  outline: none;
  border-color: var(--accent);
}
textarea.q-input { resize: vertical; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* ── Tags ──────────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 2px 8px;
  margin-right: 4px;
}

/* ── Alerts ────────────────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.alert-success { background: #EBF5E4; color: #3A6B1E; border: 1px solid #C1DFA8; }

/* ── Content pages (about, privacy, contact) ───────────────────────────── */
.content-page {
  max-width: 720px;
  padding-top: 48px;
  padding-bottom: 60px;
}
.content-page h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 20px;
}
.content-page h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 28px 0 10px;
}
.content-page p { margin-bottom: 14px; color: var(--text); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-visual { font-size: 5rem; opacity: 0.5; }

/* ── Features grid ─────────────────────────────────────────────────────── */
.features {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ── Journey cards ─────────────────────────────────────────────────────── */
.journeys { padding: 48px 0; }
.journeys h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.journeys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
}
.journey-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--text);
  text-decoration: none;
}
.journey-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  color: var(--text);
}
.journey-icon { font-size: 2rem; }
.journey-card strong { font-size: 0.95rem; }
.journey-card span { font-size: 0.82rem; color: var(--text-muted); }

/* ── Homepage ─────────────────────────────────────────────────────────── */
.home-hero {
  padding: 72px 0 56px;
  text-align: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.home-tagline {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(196, 96, 58, 0.1);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.home-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}
.home-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.home-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Journey section */
.home-journeys {
  padding: 56px 0 64px;
}
.home-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.journey-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  position: relative;
}
.journey-tile:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
  box-shadow: 0 4px 16px rgba(196, 96, 58, 0.12);
  transform: translateY(-2px);
  color: var(--text);
}
.journey-tile-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.journey-tile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.journey-tile strong {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
.journey-tile > .journey-tile-text > span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.journey-tile-arrow {
  font-size: 0.85rem;
  color: var(--border);
  flex-shrink: 0;
  transition: color 0.15s;
}
.journey-tile:hover .journey-tile-arrow { color: var(--accent); }

/* Homepage blog preview */
.home-blog {
  padding: 48px 0 72px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.home-blog-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.home-blog-header h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}
.home-blog-all {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.home-blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.home-blog-card:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.home-blog-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.home-blog-tags span {
  font-size: 0.7rem;
  background: var(--border);
  padding: 2px 8px;
  border-radius: 20px;
  color: var(--text-muted);
}
.home-blog-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.35;
}
.home-blog-card p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; }
.home-blog-date { font-size: 0.75rem; color: var(--text-muted); margin-top: auto; padding-top: 4px; }

/* ── Back link ─────────────────────────────────────────────────────────── */
.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.back-link:hover { color: var(--accent); }

/* ── Cookie banner ─────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 200;
  font-size: 0.85rem;
}
.cookie-banner p { flex: 1; margin: 0; color: var(--text-muted); }
.cookie-banner button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px 18px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Blog list ─────────────────────────────────────────────────────────── */
.article-list { display: flex; flex-direction: column; gap: 20px; padding: 32px 0; }
.article-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.article-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.article-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.article-date { color: var(--text-muted); }
.article-title { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 8px; }
.article-summary { font-size: 0.88rem; color: var(--text-muted); }
.article-lead { font-size: 1.05rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 24px; border-left: 3px solid var(--accent); padding-left: 14px; }
.empty-state { color: var(--text-muted); padding: 40px 0; }

/* ── Blog article ──────────────────────────────────────────────────────── */
.article-wrap { max-width: 740px; padding-top: 40px; padding-bottom: 60px; }
.article-header { margin-bottom: 28px; }
.article-header h1 { font-family: var(--font-heading); font-size: 2rem; margin-top: 8px; }
.prose { line-height: 1.8; }
.prose h2 { font-family: var(--font-heading); font-size: 1.3rem; margin: 28px 0 10px; }
.prose h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 14px 20px; }
.prose li { margin-bottom: 6px; }

/* ── Page sub-heading ──────────────────────────────────────────────────── */
.page-sub { color: var(--text-muted); margin-bottom: 32px; font-size: 0.95rem; }

/* ── Contact form ──────────────────────────────────────────────────────── */
.contact-form { max-width: 560px; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .header-inner { flex-wrap: nowrap; gap: 8px; padding-left: 12px; padding-right: 12px; padding-top: 10px; padding-bottom: 10px; }
  .header-actions { flex-shrink: 0; }
  .main-nav { flex: 1; gap: 8px; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
  .main-nav a { font-size: 0.7rem; white-space: nowrap; }
  .header-btn { height: 24px; padding: 0 5px; font-size: 0.72rem; }
  .logo-image { height: 26px; }
  .journey-grid { grid-template-columns: 1fr; }
  .home-hero { padding: 48px 0 36px; }
  .home-hero h1 { font-size: 1.8rem; }
  .home-blog-grid { grid-template-columns: 1fr; }
  .footer-brand .logo-image { height: 24px; }
}
