/* ═══════════════════════════════════════════════════════════
   123do Lab — Shared Stylesheet v5
   Palette: Ivory & Terracotta Red
   Type: Instrument Serif (display) + Inter (body)
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
:root {
  --bg:      #f9f7f3;
  --bg-alt:  #f1ede6;
  --bg-warm: #e9e4db;
  --ink:     #18120a;
  --ink2:    #3d352b;
  --ink3:    #7a7068;
  --acc:     #c8372a;
  --acc2:    #a82d22;
  --lime:    #7bc243;
  --white:   #ffffff;
  --dark:    #100d08;
  --dark2:   #1c1710;
  --dark3:   #2a221a;
  --border:  #e0d9ce;
  --serif:   'Instrument Serif', Georgia, serif;
  --sans:    'Inter', sans-serif;
  --max:     1160px;
  --pad:     clamp(20px, 4vw, 48px);
}
body {
  font-family: var(--sans); font-weight: 300;
  line-height: 1.75; background: var(--bg); color: var(--ink2);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--acc); color: #fff; }

/* ── Typography ── */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
h4 { font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--acc); }
p  { color: var(--ink2); line-height: 1.78; }
a  { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
em { font-family: var(--serif); font-style: italic; }
.label {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--acc);
  display: block; margin-bottom: 12px;
}
.divider { width: 36px; height: 2px; background: var(--acc); margin: 16px 0 24px; }

/* ── Layout ── */
.outer { width: 100%; }
.inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(64px, 9vw, 108px) 0; }
.s-border { border-top: 1px solid var(--border); }
.s-dark   { background: var(--dark); }
.s-alt    { background: var(--bg-alt); }
.grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.grid-3   { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.grid-4   { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
@media(max-width:860px){ .grid-2{grid-template-columns:1fr;gap:36px} .grid-3,.grid-4{grid-template-columns:1fr 1fr} }
@media(max-width:560px){ .grid-3,.grid-4{grid-template-columns:1fr} }

/* ── Buttons ── */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 12px;
  font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase;
  padding: 14px 28px; border: 1.5px solid currentColor;
  cursor: pointer; text-decoration: none; transition: all .18s ease;
}
.btn-dark  { background: var(--ink); color: var(--acc); border-color: var(--ink); }
.btn-dark:hover  { background: var(--acc); color: #fff; border-color: var(--acc); text-decoration: none; }
.btn-acc   { background: var(--acc); color: #fff; border-color: var(--acc); }
.btn-acc:hover   { background: var(--acc2); border-color: var(--acc2); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn-ghost-light { background: transparent; color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.3); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; text-decoration: none; }
.btn-outline-acc { background: transparent; color: var(--acc); border-color: var(--acc); }
.btn-outline-acc:hover { background: var(--acc); color: #fff; text-decoration: none; }

/* ── Nav ── */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 13px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a {
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink3); padding: 8px 14px; text-decoration: none; transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--acc); }
.nav-links .nav-cta {
  background: var(--ink); color: var(--acc); padding: 9px 18px; margin-left: 10px;
  border: 1.5px solid var(--ink); font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none;
  transition: all .15s ease;
}
.nav-links .nav-cta:hover { background: var(--acc); color: #fff; border-color: var(--acc); }
.nav-lang {
  font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink3); padding: 5px 10px; border: 1px solid var(--border);
  text-decoration: none; transition: color .15s;
}
.nav-lang:hover { color: var(--acc); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: all .2s; }
@media(max-width:820px){
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px var(--pad); gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links .nav-cta { margin: 14px 0 0; border: 1.5px solid var(--ink); padding: 11px 0; }
}

/* ── Footer ── */
.site-footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 32px var(--pad);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.2); letter-spacing: .3px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: .72rem; color: rgba(255,255,255,.3); text-decoration: none; letter-spacing: .5px; transition: color .15s; text-transform: uppercase; font-weight: 500; }
.footer-links a:hover { color: var(--acc); }
@media(max-width:600px){ .footer-inner { flex-direction: column; align-items: flex-start; } }

/* ── Cards ── */
.card  { background: var(--white); border: 1px solid var(--border); padding: 32px 28px; }
.card-dark { background: var(--dark2); border: 1px solid rgba(255,255,255,.05); padding: 32px 28px; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card-dark h3 { color: #fff; }
.card p, .card-dark p { font-size: .875rem; line-height: 1.7; color: var(--ink3); }
.card-dark p { color: rgba(255,255,255,.4); }

/* ── Forms ── */
.form-wrap { background: var(--white); border: 1px solid var(--border); padding: clamp(32px,5vw,52px); }
.form-wrap.dark { background: var(--dark2); border-color: rgba(255,255,255,.06); }
.form-grid { display: flex; flex-direction: column; gap: 22px; }
.fg { display: flex; flex-direction: column; gap: 7px; }
.fg label { font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--ink3); font-family: var(--sans); }
.form-wrap.dark .fg label { color: rgba(255,255,255,.3); }
.fg input, .fg textarea, .fg select {
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  background: transparent; border: none; border-bottom: 1.5px solid var(--border);
  padding: 9px 0; width: 100%; transition: border-color .15s; outline: none; appearance: none;
}
.form-wrap.dark .fg input,
.form-wrap.dark .fg textarea,
.form-wrap.dark .fg select { color: rgba(255,255,255,.8); border-bottom-color: rgba(255,255,255,.1); }
.fg input:focus, .fg textarea:focus, .fg select:focus { border-bottom-color: var(--acc); }
.fg textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: .78rem; color: var(--ink3); line-height: 1.55; margin-top: 10px; }
.form-wrap.dark .form-note { color: rgba(255,255,255,.25); }

/* ── Live badge ── */
.live-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--acc); font-family: var(--sans); font-weight: 500; margin-bottom: 18px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

/* ── Stat bar ── */
.stat-bar { display: grid; }
.stat-cell { padding: 32px 24px; text-align: center; border-right: 1px solid; }
.stat-cell:last-child { border-right: none; }
.stat-cell .n { font-family: var(--serif); font-size: clamp(2rem,4vw,3rem); color: var(--acc); display: block; line-height: 1; }
.stat-cell .d { font-size: .78rem; margin-top: 7px; display: block; letter-spacing: .3px; line-height: 1.4; }
.s-dark .stat-cell { border-color: rgba(255,255,255,.06); }
.s-dark .stat-cell .d { color: rgba(255,255,255,.3); }
.s-alt  .stat-cell { border-color: var(--border); }
.s-alt  .stat-cell .d { color: var(--ink3); }

/* ── Marquee ── */
.marquee-outer { background: var(--acc); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); overflow: hidden; padding: 12px 0; white-space: nowrap; }
.marquee-inner { display: inline-block; animation: marquee 26s linear infinite; }
.marquee-inner span { font-family: var(--sans); font-size: 13px; font-weight: 500; color: rgba(255,255,255,.9); padding: 0 28px; letter-spacing: .5px; }
.marquee-sep { color: rgba(255,255,255,.4); }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── FAQ ── */
details { background: var(--white); border: 1px solid var(--border); padding: 20px 24px; border-bottom: none; }
details:last-child { border-bottom: 1px solid var(--border); }
details[open] { border-color: var(--acc); border-bottom: 1px solid var(--acc); }
details[open]:not(:last-child) { margin-bottom: 1px; }
summary { font-family: var(--sans); font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--acc); font-size: 1.1rem; flex-shrink: 0; transition: transform .2s; font-weight: 300; }
details[open] .faq-icon { transform: rotate(45deg); }
details p { margin-top: 13px; font-size: .88rem; color: var(--ink3); line-height: 1.75; font-family: var(--sans); }

/* ── Testimonial ── */
.testi { background: var(--white); border: 1px solid var(--border); padding: 36px 32px; }
.testi-quote { font-family: var(--serif); font-size: 1.05rem; line-height: 1.75; color: var(--ink2); font-style: italic; margin-bottom: 22px; }
.testi-attr { font-size: .75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--acc); font-family: var(--sans); }

/* ── Section CTA strip ── */
.s-cta { background: var(--acc); }
.s-cta-inner { max-width: var(--max); margin: 0 auto; padding: clamp(40px,6vw,68px) var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.s-cta-inner h3 { font-family: var(--serif); color: #fff; font-size: clamp(1.3rem,2.8vw,2rem); max-width: 480px; line-height: 1.2; }

/* ── Anchor offset ── */
.anchor { scroll-margin-top: 76px; }

/* ── Misc ── */
.text-acc { color: var(--acc); }
.serif-em { font-family: var(--serif); font-style: italic; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* ── Nav macro ── */
.nav-html() { }
