/* ============================================================
   Forum Center — design tokens & base
   ============================================================ */

:root {
  /* color */
  --paper: #faf9f5;
  --paper-dim: #f1efe7;
  --ink: #12182b;
  --ink-soft: #4a5164;
  --ink-faint: #8b90a0;
  --navy-900: #0e1b3d;
  --navy-800: #16296b;
  --blue-600: #2f4fe0;
  --blue-500: #4c66ff;
  --blue-100: #e7ecff;
  --line: rgba(18, 24, 43, 0.12);
  --line-soft: rgba(18, 24, 43, 0.08);
  --line-on-dark: rgba(255, 255, 255, 0.16);
  --white: #ffffff;

  /* type */
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  /* layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose p, .prose li {
  max-width: 62ch;
  color: var(--ink-soft);
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
}

/* ============================================================
   Type scale
   ============================================================ */

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue-600);
  margin: 0 0 10px;
}

h1.display, .display {
  font-size: clamp(2.5rem, 4.4vw, 3.75rem);
}

h2.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 56ch;
}

.accent-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ============================================================
   Buttons / links
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-900); }

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

.btn-on-dark {
  background: var(--white);
  color: var(--navy-900);
}
.btn-on-dark:hover { background: var(--blue-100); }

.text-link {
  font-weight: 700;
  color: var(--blue-600);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}
.text-link:hover { color: var(--navy-900); }

/* ============================================================
   Header / nav (interior pages)
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-lockup {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.logo-lockup span { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--blue-600); margin-left: 2px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav ul { display: flex; gap: 28px; }

.main-nav ul a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: var(--ink); border-color: var(--blue-600); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 700;
}
.lang-switch a { padding: 7px 14px; color: var(--ink-faint); transition: background-color .15s ease, color .15s ease; }
.lang-switch a.active { background: var(--ink); color: var(--white); }
.lang-switch a:not(.active):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 880px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px); background: var(--paper); flex-direction: column; align-items: stretch; padding: 28px var(--gutter); gap: 24px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease; overflow-y: auto; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav ul a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .lang-switch { align-self: flex-start; }
}

/* ============================================================
   Page hero (interior)
   ============================================================ */

.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero .kicker { color: var(--blue-600); font-weight: 700; font-size: .875rem; margin-bottom: 14px; }

/* ============================================================
   Sections
   ============================================================ */

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
section.on-navy { background: var(--navy-900); color: var(--white); }
section.on-navy .lede { color: rgba(255,255,255,0.72); }
section.on-tint { background: var(--paper-dim); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

/* ============================================================
   Cards / grids
   ============================================================ */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.service-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .18s ease, transform .18s ease;
}
.service-card:hover { border-color: var(--blue-600); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); }
.service-card .card-link { display: inline-block; margin-top: 18px; font-weight: 700; font-size: .9rem; color: var(--blue-600); }

.feature-row {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
}
.feature-row:last-child { border-bottom: 1px solid var(--line-soft); }
.feature-row .num { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--blue-600); width: 44px; flex-shrink: 0; }
.feature-row h4 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-row p { color: var(--ink-soft); margin: 0; }

.stat { border-top: 2px solid var(--blue-600); padding-top: 14px; }
.stat .num { font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 800; display: block; }
.stat .label { color: var(--ink-soft); font-size: .9rem; }

.pair-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.pair-row { display: flex; flex-wrap: wrap; gap: 10px; }

blockquote.testimonial {
  border-left: 3px solid var(--blue-600);
  padding-left: 24px;
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
}
blockquote.testimonial cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  font-size: .875rem;
  color: var(--ink-soft);
}

.ref-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 880px) {
  .ref-groups { grid-template-columns: 1fr; gap: 36px; }
}
.ref-group h3 {
  font-size: 1rem;
  color: var(--blue-600);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.ref-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.5;
}
.ref-list li:last-child { border-bottom: none; }

.price-table {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.price-row span:first-child { color: var(--ink-soft); max-width: 68ch; }
.price-value {
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
}

.note-flag {
  display: inline-block;
  margin-top: 6px;
  font-size: .8125rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ============================================================
   CTA band
   ============================================================ */

.cta-band {
  background: var(--navy-900);
  color: var(--white);
  padding: 64px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); max-width: 32ch; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  padding: 64px 0 28px;
  font-size: .9375rem;
}
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-grid h4 { color: var(--white); font-size: .8125rem; letter-spacing: .02em; margin-bottom: 16px; font-weight: 700; }
.footer-grid li { margin-bottom: 10px; color: rgba(255,255,255,0.68); }
.footer-logo { font-size: 1.35rem; font-weight: 800; color: var(--white); }
.footer-logo span { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--blue-500); margin-left: 2px; }
.footer-legal { padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: rgba(255,255,255,0.5); font-size: .8125rem; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   Contact form
   ============================================================ */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { margin-top: 28px; }
.info-list li { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.info-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.info-list .label { display: block; font-size: .8125rem; color: var(--ink-faint); font-weight: 700; margin-bottom: 4px; }
.info-list .value { font-size: 1.05rem; }

form.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { margin-bottom: 20px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }

label { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 8px; }
label .opt { font-weight: 500; color: var(--ink-faint); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue-600); }
textarea { resize: vertical; min-height: 130px; }

.file-drop {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.file-drop:hover, .file-drop.drag { border-color: var(--blue-600); background: var(--blue-100); }
.file-drop input[type="file"] { display: none; }
.file-drop .hint { color: var(--ink-faint); font-size: .8125rem; margin-top: 4px; }
.file-name { margin-top: 10px; font-size: .875rem; font-weight: 700; color: var(--blue-600); }

.form-status { margin-top: 16px; font-size: .9rem; font-weight: 700; }
.form-status.ok { color: #1a7f4e; }
.form-status.err { color: #b3261e; }

.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: .8125rem; color: var(--ink-soft); }
.consent-row input { margin-top: 3px; width: auto; }

/* ============================================================
   WhatsApp floating button
   ============================================================ */

.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 10px 24px rgba(14, 27, 61, 0.28);
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.whatsapp-fab svg { width: 26px; height: 26px; fill: var(--white); }
.whatsapp-fab:hover { background: var(--navy-900); transform: translateY(-2px); }
.whatsapp-fab:focus-visible { outline: 2px solid var(--navy-900); outline-offset: 3px; }

.whatsapp-tip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translate(6px, -50%);
  white-space: nowrap;
  background: var(--navy-900);
  color: var(--white);
  font-size: .8125rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.whatsapp-fab:hover .whatsapp-tip,
.whatsapp-fab:focus-visible .whatsapp-tip {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (max-width: 560px) {
  .whatsapp-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  .whatsapp-fab svg { width: 24px; height: 24px; }
  .whatsapp-tip { display: none; }
}

/* ============================================================
   Utility
   ============================================================ */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
