/* Simich Digital — Light, warm, human. (Source of truth: CLAUDE.md brand brief) */
:root {
  --paper: #FFFFFF;
  --paper-soft: #F5F7F6;
  --ink: #1B1F1E;
  --ink-soft: #5A6360;
  --accent: #2E77C9;        /* Simich blue — links, CTAs, signature dot */
  --accent-dark: #2360A3;   /* hover */
  --accent-warm: #E8A33D;   /* amber — max one detail per viewport (used: focus ring) */
  --line: rgba(27, 31, 30, .10);
  --line-2: rgba(27, 31, 30, .16);
  --radius: 12px;
  --max: 1140px;
  --h: "Bricolage Grotesque", system-ui, sans-serif;
  --b: "Manrope", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--b);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2 { font-family: var(--h); line-height: 1.08; letter-spacing: -.01em; }

/* ---------- Header ---------- */
header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--h); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.logo .logo-mark { height: 30px; width: auto; }
.logo .dot { color: var(--accent); }
.foot .logo .logo-mark { height: 24px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.lang { display: flex; gap: 2px; }
.lang a { color: var(--ink-soft); font-size: .75rem; font-weight: 600; padding: 5px 8px; border-radius: 8px; letter-spacing: .04em; transition: .2s; }
.lang a:hover { color: var(--ink); }
.lang a.active { background: var(--paper-soft); color: var(--accent); }
.btn { display: inline-block; font-family: var(--b); font-weight: 600; font-size: .95rem; padding: 12px 24px;
  border-radius: 999px; background: var(--accent); color: #fff; border: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--paper-soft); }
.nav .btn { display: none; }
@media (min-width: 980px) { .nav .btn { display: inline-block; } }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background-color: var(--paper); padding: 84px 0 76px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='1.5' cy='1.5' r='1.5' fill='%231B1F1E' fill-opacity='0.045'/%3E%3C/svg%3E"); }
/* Optional hero background photo (drop assets/img/hero-bg.jpg) — white veil keeps text legible */
.hero.has-herobg { background-size: cover; background-position: center; }
.hero.has-herobg::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.80); z-index: 0; }
.hero > * { position: relative; z-index: 1; }
/* with a background photo, center the hero (reads more premium); reverts to left if no photo */
.hero.has-herobg .wrap.reveal { text-align: center; }
.hero.has-herobg .wrap.reveal h1,
.hero.has-herobg .wrap.reveal p { margin-left: auto; margin-right: auto; }
.hero.has-herobg .hero-cta { justify-content: center; }
.hero.has-herobg .hero-trust { text-align: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(2.7rem, 6.5vw, 5rem); line-height: 1.02; color: var(--ink); margin: 16px 0 22px; max-width: 16ch; }
.hero h1 .grad { position: relative; color: var(--accent); }   /* the one accent keyword */
.hero h1 .grad::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .08em;
  background: var(--accent-warm); border-radius: 3px; }   /* the one amber detail in the hero viewport */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero h1 .grad::after { transform: scaleX(0); transform-origin: left;
    animation: drawline .65s cubic-bezier(.2,.7,.2,1) .35s forwards; }
}
@keyframes drawline { to { transform: scaleX(1); } }
.hero p { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero { padding: 64px 0; } .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Hero figure (product mockup) */
.hero-figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
/* Hero service marquee (kinetic — shows the one-stop breadth) */
.marquee { margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee .track { display: inline-flex; white-space: nowrap; will-change: transform; }
.marquee .track span { font-family: var(--h); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.3rem); letter-spacing: -.01em; padding: 0 .35em; color: var(--ink); }
.marquee .track .s { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .marquee .track { animation: marquee 26s linear infinite; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hero trust strip (social proof) — floating stat card */
.hero-trust { margin-top: 44px; }
.hero-stats { display: inline-grid; grid-template-columns: repeat(3, auto); background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 8px; }
.hero-stats .hs { text-align: center; padding: 6px 36px; }
.hero-stats .hs + .hs { border-left: 1px solid var(--line); }
.hero-stats .hs b { font-family: var(--b); font-weight: 700; font-size: 2.3rem; color: var(--accent); display: block; line-height: 1; }
.hero-stats .hs small { color: var(--ink-soft); font-size: .85rem; }
@media (max-width: 560px) { .hero-stats .hs { padding: 6px 20px; } .hero-stats .hs b { font-size: 1.8rem; } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-soft { background: var(--paper-soft); }
@media (max-width: 860px) { section { padding: 64px 0; } }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.kicker { color: var(--accent); font-weight: 600; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; }
.section-head h2, .edge h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--ink); margin: 12px 0 14px; }
/* Signature teal square at the end of every section headline */
main h2::after { content: ""; display: inline-block; width: .4em; height: .4em; background: var(--accent);
  border-radius: 2px; margin-left: .2em; vertical-align: baseline; }
.section-head p { color: var(--ink-soft); font-size: 1.0625rem; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: border-color .2s; }
.card:hover { border-color: var(--line-2); }
.card .ico { font-size: 24px; margin-bottom: 16px; }
.card h3 { font-weight: 600; font-size: 1.15rem; color: var(--ink); margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Edge / "Why us" ---------- */
.edge { background: var(--paper); }
.edge .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.edge h2 { margin-bottom: 14px; }
.edge p { color: var(--ink-soft); font-size: 1.0625rem; }
.edge ul { list-style: none; margin-top: 22px; }
.edge li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; color: var(--ink); font-size: 1.0625rem; }
.edge li::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-top: .55em; background: var(--accent); border-radius: 2px; }
.edge-panel { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-soft); background-size: cover; background-position: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 40px 28px; }
.edge-panel.has-bg::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.78); z-index: 0; }
.edge-panel > * { position: relative; z-index: 1; }
.edge-langs { font-family: var(--h); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--ink); letter-spacing: -.01em; }
.edge-langs .dot { color: var(--accent); }
.edge-panel p { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 860px) { .edge .wrap { grid-template-columns: 1fr; } .edge-panel { order: -1; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 28px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.stat .num { font-family: var(--b); font-weight: 600; font-size: 2.2rem; color: var(--ink); line-height: 1.1; }
.stat .lbl { color: var(--ink-soft); font-size: .9rem; margin-top: 6px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Work ---------- */
.work-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); transition: border-color .2s; }
.work-card:hover { border-color: var(--line-2); }
.work-img { aspect-ratio: 16 / 9; background: var(--paper-soft); background-size: cover; background-position: center; }
.work-body { padding: 24px 26px; }
.work-body h3 { font-weight: 600; font-size: 1.2rem; color: var(--ink); margin-bottom: 8px; }
.work-body p { color: var(--ink-soft); font-size: .98rem; }
.work-card--text { background: var(--paper-soft); }
.work-card--text .work-body { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 44px 32px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--ink-soft); margin: 0; padding: 0 0 20px; max-width: 68ch; }

/* ---------- Contact ---------- */
.contact-box { background: var(--paper-soft); border: 1px solid var(--line); border-radius: 16px; padding: 56px 40px; }
.contact-box .section-head { text-align: center; margin: 0 auto 28px; }
form { max-width: 540px; margin: 0 auto; display: grid; gap: 14px; }
form input, form textarea { width: 100%; background: #fff; border: 1px solid var(--line-2); color: var(--ink);
  border-radius: 8px; padding: 13px 16px; font-size: 1rem; font-family: inherit; }
form input:focus, form textarea:focus { outline: 2px solid var(--accent-warm); outline-offset: 1px; border-color: var(--accent); }
form textarea { min-height: 120px; resize: vertical; }
form .btn { justify-self: center; padding: 13px 34px; }
.contact-meta { text-align: center; margin-top: 22px; color: var(--ink-soft); font-size: .95rem; }
.contact-meta a { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-status { text-align: center; margin-top: 4px; font-size: .95rem; }
.cf-status.ok { color: var(--accent); }
.cf-status.err { color: #c0392b; }

/* ---------- Footer ---------- */
footer { background: var(--paper); border-top: 1px solid var(--line); padding: 36px 0; color: var(--ink-soft); font-size: .9rem; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.foot .logo { font-size: 16px; }

/* ---------- Motion (one fade-up per section; opt-in, JS + motion allowed only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .26s ease, transform .26s ease; }
  html.js .reveal.in { opacity: 1; transform: none; }
}
