/* =====================================================================
   ConVita design system — shared across all pages (EN + BS)
   Sections: tokens, base, typography, layout, nav, buttons, footer,
   shared page components, contact form, blog, animations, a11y
   ===================================================================== */

:root {
  --bg: #F4F1EB;
  --bg-alt: #ECE7DF;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-muted: #8A8580;
  --rule: #D9D3C8;
  --accent: #0B2A4A;
  --accent-deep: #061A30;
  --accent-mid: #163E66;
  --accent-warm: #C9B98C;
  --accent-tint: rgba(11, 42, 74, 0.08);
  --paper: #FBF9F4;
  --max: 1280px;
  --gutter: 32px;
  --radius: 2px;
  --shadow-soft: 0 12px 32px -16px rgba(11, 42, 74, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  cursor: default; /* arrow instead of the I-beam over text */
  font-family: 'Inter Tight', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--paper); }

img { max-width: 100%; height: auto; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.nav-cta:focus-visible, .btn:focus-visible, .cta-btn:focus-visible, .cta-mini-btn:focus-visible {
  outline-color: var(--accent-warm);
}

/* ---------- Typography ---------- */
.display {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.eyebrow {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.accent-word {
  color: var(--accent);
  font-weight: inherit; /* same weight as the surrounding heading — color is the only differentiator */
  font-style: normal;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.rule { height: 1px; background: var(--rule); border: 0; }
section { padding: 120px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
}
.section-head h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.02;
}
.section-head .intro {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 520px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s ease;
}
.nav.is-scrolled { box-shadow: 0 8px 24px -18px rgba(11, 42, 74, 0.35); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

/* Logo — inline horizontal (nav) */
.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
  flex-shrink: 0;
}
.logo-con { text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700; }
.logo-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 5px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.logo-vita { text-transform: lowercase; letter-spacing: 0; font-weight: 700; }

/* Logo — stacked (footer) */
.logo-stacked {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  line-height: 0.95;
}
.logo-stacked .lc-con { display: block; font-size: 38px; text-transform: uppercase; letter-spacing: 0.02em; }
.logo-stacked .lc-vita { display: block; font-size: 28px; text-transform: lowercase; letter-spacing: 0; margin-top: 2px; }
.logo-stacked .lc-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  top: -8px;
  margin: 0 1px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch a, .lang-switch span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  text-decoration: none;
  color: var(--ink-muted);
  transition: color 0.2s ease, background 0.2s ease;
  line-height: 1;
}
.lang-switch a:hover { color: var(--accent); background: var(--bg-alt); }
.lang-switch [aria-current="true"] {
  background: var(--accent);
  color: var(--paper);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
  line-height: 0;
  color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -24px rgba(11, 42, 74, 0.3);
    padding: 8px 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--rule); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a {
    display: block;
    padding: 16px var(--gutter);
    font-size: 15px;
  }
  .nav-links a.active::after { display: none; }
  .nav-cta { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-arrow { width: 14px; height: 14px; stroke-width: 1.5; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg);
  padding: 64px 0 40px;
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .logo { margin-bottom: 16px; }
.footer-tagline {
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.55;
  margin-top: 16px;
}
.footer-col h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-address { color: var(--ink-soft); font-size: 14px; font-style: normal; line-height: 1.55; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; }
.crumbs li:not(:last-child)::after { content: '/'; margin: 0 8px; color: var(--rule); }
.crumbs a { color: var(--ink-muted); text-decoration: none; transition: color 0.2s; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Sub-page hero ---------- */
.subhero { padding: 100px 0 80px; border-bottom: 1px solid var(--rule); }
.subhero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.subhero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
.subhero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  max-width: 900px;
  margin-bottom: 32px;
}
.subhero p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 640px; }

/* ---------- Overview (text + side stats) ---------- */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 860px) { .overview-grid { grid-template-columns: 1fr; gap: 48px; } }
.overview-text p { font-size: 17px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 20px; }
.overview-text p:last-child { margin-bottom: 0; }
.overview-stats { border-left: 1px solid var(--rule); padding-left: 40px; }
@media (max-width: 860px) {
  .overview-stats { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 32px; }
}
.os-row { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.os-row:first-child { padding-top: 0; }
.os-row:last-child { border-bottom: 0; }
.os-num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}
.os-num .suffix { font-size: 0.55em; color: var(--accent); margin-left: 4px; }
.os-num .currency { font-size: 0.6em; color: var(--accent); margin-left: 4px; }
.os-label { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.02em; }

/* ---------- Capability cards ---------- */
.caps { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 860px) { .caps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .caps-grid { grid-template-columns: 1fr; } }
.cap-card { background: var(--paper); padding: 40px 32px; transition: background 0.25s ease, box-shadow 0.25s ease; }
.cap-card:hover { background: var(--bg); }
.cap-card .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
  letter-spacing: 0.08em;
}
.cap-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cap-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Process steps ---------- */
.process-steps { border-top: 1px solid var(--rule); }
.step {
  display: grid;
  grid-template-columns: 100px 1fr 2fr;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
@media (max-width: 860px) { .step { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; } }
.step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.step-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.step-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* ---------- Dark card grids (audience / values / programs) ---------- */
.dark-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(251, 249, 244, 0.12);
  border: 1px solid rgba(251, 249, 244, 0.12);
}
.dark-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .dark-grid, .dark-grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dark-grid, .dark-grid.cols-4 { grid-template-columns: 1fr; } }
.dark-card {
  background: rgba(11, 42, 74, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 40px 32px;
  transition: background 0.25s ease;
}
.dark-card:hover { background: rgba(6, 26, 48, 0.75); }
.dark-card .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: rgba(251, 249, 244, 0.5);
  margin-bottom: 20px;
  display: block;
  letter-spacing: 0.06em;
}
.dark-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--paper);
  line-height: 1.2;
}
.dark-card h3.lg { font-size: 26px; font-weight: 700; }
.dark-card p { font-size: 14px; line-height: 1.55; color: rgba(251, 249, 244, 0.7); }

.on-dark { color: var(--paper); }
.on-dark h2 { color: var(--paper); }
.on-dark .section-head .intro { color: rgba(251, 249, 244, 0.75); }
.on-dark .eyebrow { color: rgba(251, 249, 244, 0.6); }
.on-dark .accent-word { color: var(--accent-warm); }

/* ---------- Approach cards (light) ---------- */
.approach { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 860px) { .approach-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .approach-grid { grid-template-columns: 1fr; } }
.approach-card { background: var(--paper); padding: 40px 32px; transition: background 0.25s ease; }
.approach-card:hover { background: var(--bg); }
.approach-card .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
  letter-spacing: 0.08em;
}
.approach-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.approach-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- CTA mini (dark band on sub-pages) ---------- */
.cta-mini { background: var(--ink); color: var(--paper); padding: 100px 0; }
.cta-mini-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 860px) { .cta-mini-grid { grid-template-columns: 1fr; gap: 40px; } }
.cta-mini h2 { color: var(--paper); font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.cta-mini h2 .accent-word { color: var(--accent-warm); }
.cta-mini .eyebrow { color: rgba(251, 249, 244, 0.6); }
.cta-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 18px 32px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}
.cta-mini-btn:hover { background: var(--accent-warm); }

/* ---------- Contact section + form ---------- */
.cta { background: var(--ink); color: var(--paper); padding: 140px 0; }
@media (max-width: 768px) { .cta { padding: 90px 0; } }
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 960px) { .cta-grid { grid-template-columns: 1fr; gap: 56px; } }
.cta h2 { color: var(--paper); font-size: clamp(36px, 5vw, 64px); line-height: 1; font-weight: 600; }
.cta h2 .accent-word { color: var(--accent-warm); }
.cta .eyebrow { color: rgba(251, 249, 244, 0.6); }
.cta-text { color: rgba(251, 249, 244, 0.7); font-size: 16px; line-height: 1.6; max-width: 460px; }
.cta-contact { margin-top: 48px; }
.cta-contact-row { margin-bottom: 24px; }
.cta-contact-row:last-child { margin-bottom: 0; }
.cta-contact-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 249, 244, 0.5);
  margin-bottom: 6px;
  font-weight: 500;
}
.cta-contact-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.4;
  display: block;
  font-style: normal;
}
a.cta-contact-value:hover { color: var(--accent-warm); }
.cta-contact-value.small {
  font-size: 14px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  color: rgba(251, 249, 244, 0.75);
}

.contact-form {
  background: rgba(251, 249, 244, 0.04);
  border: 1px solid rgba(251, 249, 244, 0.14);
  padding: 40px;
  border-radius: var(--radius);
}
@media (max-width: 520px) { .contact-form { padding: 28px 22px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 249, 244, 0.65);
  margin-bottom: 8px;
}
.form-field label .optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: rgba(251, 249, 244, 0.4); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: rgba(251, 249, 244, 0.06);
  border: 1px solid rgba(251, 249, 244, 0.2);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23FBF9F4' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-field select option { color: var(--ink); background: var(--paper); }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(251, 249, 244, 0.35); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent-warm);
  background: rgba(251, 249, 244, 0.1);
}
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: #D98A7B; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-error { display: none; font-size: 13px; color: #E8A798; margin-top: 6px; }
.form-field.has-error .form-error { display: block; }

.form-consent { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent-warm);
}
.form-consent label {
  font-size: 13px;
  color: rgba(251, 249, 244, 0.65);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0;
}
.form-consent.has-error label { color: #E8A798; }

/* honeypot — hidden from humans, present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 20px; font-size: 14px; line-height: 1.5; display: none; padding: 14px 16px; border-radius: var(--radius); }
.form-status.is-success { display: block; background: rgba(151, 190, 141, 0.15); border: 1px solid rgba(151, 190, 141, 0.4); color: #C9E0C0; }
.form-status.is-error { display: block; background: rgba(217, 138, 123, 0.12); border: 1px solid rgba(217, 138, 123, 0.4); color: #E8A798; }
.form-status a { color: var(--accent-warm); }

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
}
.form-submit-btn:hover { background: var(--accent-warm); }
.form-submit-btn[disabled] { opacity: 0.6; cursor: wait; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 18px 32px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 36px;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}
.cta-btn:hover { background: var(--accent-warm); }

/* ---------- Blog ---------- */
.posts { padding: 60px 0 120px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px; }
@media (max-width: 960px) { .posts-grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; gap: 48px; } }

.post-card { display: block; text-decoration: none; color: inherit; }
.post-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.post-card:hover .post-img { transform: translateY(-3px); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  padding: 3px 10px;
  background: var(--accent-tint);
  border-radius: 100px;
  margin-bottom: 14px;
}
.post-meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.post-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.post-card:hover .post-title { color: var(--accent); }
.post-excerpt { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

.posts-empty { padding: 40px 0 60px; text-align: center; }
.posts-empty-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 32px;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.posts-empty-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.posts-empty-text { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* Blog category chips */
.cat-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.cat-chip {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 8px 16px;
  border-radius: 100px;
  letter-spacing: 0.01em;
}

/* Blog article */
.article-header { padding: 100px 0 60px; border-bottom: 1px solid var(--rule); }
.article-header h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; max-width: 880px; margin-bottom: 28px; }
.article-byline { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); }
.article-byline strong { color: var(--ink-soft); font-weight: 600; }
.article-hero-img { margin: 0; }
.article-hero-img img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.article-hero-img figcaption { font-size: 12px; color: var(--ink-muted); margin-top: 10px; }
.article-body { max-width: 760px; margin: 0 auto; padding: 80px var(--gutter); }
.article-body p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 24px; }
.article-body h2 { font-size: clamp(26px, 3vw, 34px); margin: 48px 0 20px; line-height: 1.15; }
.article-body h3 { font-size: 21px; margin: 36px 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 24px 22px; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
}
.related { background: var(--paper); border-top: 1px solid var(--rule); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* hidden state applies only when JS is active (html.js set in script.js) */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
/* stagger children of a [data-stagger] group */
[data-stagger] > .reveal:nth-child(2) { transition-delay: 0.08s; }
[data-stagger] > .reveal:nth-child(3) { transition-delay: 0.16s; }
[data-stagger] > .reveal:nth-child(4) { transition-delay: 0.24s; }
[data-stagger] > .reveal:nth-child(5) { transition-delay: 0.32s; }
[data-stagger] > .reveal:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Dynamic dark background (dark accent sections) ---------- */
.has-dynamic-bg {
  position: relative;
  background: var(--accent);
  overflow: hidden;
  isolation: isolate;
}
.has-dynamic-bg::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 30%, var(--accent-mid) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, var(--accent-deep) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(201, 185, 140, 0.08) 0%, transparent 35%),
    var(--accent);
  animation: oceanDrift 28s ease-in-out infinite alternate;
  will-change: transform;
}
.has-dynamic-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}
@keyframes oceanDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-2%, 1%) scale(1.05); }
  100% { transform: translate(2%, -1%) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .has-dynamic-bg::before { animation: none; }
}

/* ---------- Visual band (full-width editorial image with parallax) ---------- */
.visual-band {
  padding: 0;
  height: clamp(320px, 60vh, 600px);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.visual-band img {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
  display: block;
}
.visual-band .vb-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding: 14px 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound-num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(90px, 16vw, 180px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 24px;
}

/* ---------- Homepage: hero ---------- */
.hero { padding: 120px 0 100px; position: relative; overflow: hidden; }
@media (max-width: 768px) { .hero { padding: 80px 0 70px; } }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: end;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--accent); flex-shrink: 0; }
.hero h1 {
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 0.98;
  margin-bottom: 36px;
  letter-spacing: -0.035em;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats { border-left: 1px solid var(--rule); padding-left: 48px; }
@media (max-width: 960px) {
  .hero-stats { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 40px; }
}
.stat-row { padding: 32px 0; border-bottom: 1px solid var(--rule); }
.stat-row:first-child { padding-top: 0; }
.stat-row:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
}
.stat-num .suffix { font-size: 0.5em; vertical-align: top; color: var(--accent); margin-left: 4px; font-weight: 400; }
.stat-num .currency { font-size: 0.55em; vertical-align: top; color: var(--accent); margin-left: 6px; font-weight: 400; }
.stat-label { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* hero entrance (once, on load) */
.hero h1, .hero-sub, .hero-ctas, .hero-eyebrow, .stat-row {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero-sub { animation-delay: 0.3s; }
.hero-ctas { animation-delay: 0.45s; }
.stat-row:nth-child(1) { animation-delay: 0.4s; }
.stat-row:nth-child(2) { animation-delay: 0.55s; }
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero-sub, .hero-ctas, .hero-eyebrow, .stat-row { opacity: 1; animation: none; }
}

/* ---------- Homepage: trust band ---------- */
.trust {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 36px 0;
}
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.trust-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.trust-statement {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  line-height: 1.5;
  max-width: 760px;
}

/* ---------- Homepage: positioning ---------- */
.positioning { background: var(--paper); border-bottom: 1px solid var(--rule); }
.positioning-statement {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 980px;
}
.positioning-statement strong { color: var(--accent); font-weight: 600; }
.positioning-meta {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 768px) { .positioning-meta { grid-template-columns: 1fr; gap: 32px; } }
.meta-block h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.meta-block p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.positioning-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.positioning-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Homepage: services list ---------- */
.services-grid { border-top: 1px solid var(--rule); }
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr auto;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: padding-left 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.service-row:hover { padding-left: 16px; }
.service-row:hover .service-arrow { transform: translateX(8px); color: var(--accent); }
.service-row:hover .service-title { color: var(--accent); }
@media (max-width: 860px) {
  .service-row { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .service-row:hover { padding-left: 0; }
}
.service-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.service-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  transition: color 0.25s ease;
}
.service-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.service-audience {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}
.service-audience strong { color: var(--ink-soft); font-weight: 600; }
.service-desc ul { list-style: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.service-desc li {
  font-size: 12px;
  color: var(--ink-muted);
  padding: 5px 11px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.service-arrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: var(--ink-muted);
  transition: all 0.3s ease;
  align-self: center;
}
