/* ==========================================================================
   Tēls — sociālo mediju aģentūra
   Warm & editorial theme · moss-green accent on sage stone
   ========================================================================== */

:root {
  --bg:         #ECEEE2; /* soft sage stone */
  --bg-2:       #DFE3D1; /* deeper sage for alternating sections */
  --surface:    #FBFCF6; /* cards */
  --ink:        #21241B; /* dark moss-charcoal, near-black */
  --ink-2:      #525849; /* muted moss-gray body */
  --ink-3:      #888C7C; /* faint */
  --line:       #D6DAC5; /* sage hairline */
  --accent:     #5A6A3A; /* moss green */
  --accent-ink: #3F4A28; /* deep moss for text on stone */
  --accent-soft:#E0E6CF; /* moss tint */
  --amber:      #C9A06A; /* warm sand secondary — pairs with moss */
  --shadow-sm:  0 1px 2px rgba(40,45,25,.05);
  --shadow:     0 2px 6px rgba(40,45,25,.05), 0 18px 40px -22px rgba(45,55,25,.30);
  --radius:     20px;
  --radius-sm:  12px;
  --maxw:       1120px;
  --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .5em;
  font-optical-sizing: auto;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.9rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
p  { margin: 0 0 1rem; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--alt { background: var(--bg-2); }
.section--accent { background: var(--ink); color: #EBEEF1; }
.section--accent h2, .section--accent h3 { color: #FFF; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: .9rem;
}
.section--accent .eyebrow { color: var(--amber); }

.section-head { max-width: 64ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(90,106,58,.7); }
.btn--primary:hover { background: #44502B; color:#fff; box-shadow: 0 14px 26px -10px rgba(90,106,58,.8); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn--light { background:#fff; color: var(--ink); }
.btn--light:hover { background:#fff; color: var(--accent-ink); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241,239,233,.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; color: var(--ink); letter-spacing: .06em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 40px; height: 40px; flex: 0 0 auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: .84rem; padding: .45rem .48rem; border-radius: 8px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: rgba(90,106,58,.08); text-decoration: none; }
.nav-links a.active { color: var(--accent); font-weight: 500; }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1020px) {
  .nav-links {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.1rem,4vw,2rem) 1.4rem;
    box-shadow: var(--shadow);
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    transition: transform .28s ease, opacity .28s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .8rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn--ghost { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100dvh - var(--header-h, 64px)); display: flex; align-items: center; padding-block: clamp(1.5rem, 4vh, 3.5rem); overflow: hidden; }
.hero .wrap { width: 100%; position: relative; z-index: 1; }
.hero h1 { max-width: none; letter-spacing: .02em; text-wrap: balance; }
.hero h1 br { display: none; }            /* mobile: wrap naturally */
@media (min-width: 680px) { .hero h1 br { display: inline; } }  /* desktop: honor the authored line breaks */
.hero .lead { margin-top: 1.4rem; max-width: 58ch; }
.hero .btn-row { margin-top: 2rem; }
.hero-note { margin-top: 1rem; font-size: .95rem; color: var(--ink-3); display: flex; align-items: center; gap: .5rem; }
.hero-note svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }

/* ---------- problem / solution band ---------- */
.band { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px){ .band { grid-template-columns: 1fr; } }
.band .card { padding: clamp(1.5rem, 3vw, 2.3rem); border-radius: var(--radius); }
.card-problem { background: var(--surface); border: 1px solid var(--line); }
.card-solution { background: var(--accent-soft); border: 1px solid #C8D5AC; }
.card .tag { font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: .6rem; }
.card-problem .quote { font-family: var(--font-display); font-size: clamp(1.2rem,1.05rem+.8vw,1.7rem); line-height: 1.3; color: var(--ink); }

/* ---------- generic card grid ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){ .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.4rem,2.5vw,1.9rem);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d8c8ad; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 1rem;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--ink-2); margin-bottom: 0; font-size: 1rem; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px){ .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.step .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--accent); line-height: 1; display: block; margin-bottom: .6rem; }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--ink-2); margin: 0; font-size: 1rem; }

/* ---------- pricing ---------- */
.pricing { display: grid; gap: 1.3rem; grid-template-columns: repeat(3,1fr); align-items: stretch; }
@media (max-width: 900px){ .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem,3vw,2.2rem); display: flex; flex-direction: column;
}
.plan--featured { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .05em; padding: .35rem .9rem; border-radius: 999px; white-space: nowrap; }
.plan h3 { margin-bottom: .25rem; }
.plan .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--ink); line-height: 1; margin: .6rem 0 .2rem; }
.plan .price span { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--ink-3); }
.plan .plan-desc { color: var(--ink-2); font-size: .98rem; min-height: 2.6em; }
.plan ul { list-style: none; margin: 1.1rem 0 1.6rem; padding: 0; display: grid; gap: .6rem; }
.plan li { display: flex; gap: .6rem; align-items: flex-start; font-size: 1rem; color: var(--ink); }
.plan li svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; margin-top: .15rem; }
.plan .btn { margin-top: auto; justify-content: center; }

/* ---------- portfolio ---------- */
.work { display: grid; gap: 1.3rem; grid-template-columns: repeat(3,1fr); }
@media (max-width: 900px){ .work { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .work { grid-template-columns: 1fr; } }
.work-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, box-shadow .2s ease; }
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.work-thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--accent-soft), #C8D5AC); display: grid; place-items: center; color: var(--accent-ink); }
.work-thumb svg { width: 46px; height: 46px; opacity: .7; }
.work-body { padding: 1.3rem; }
.work-body .meta { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.work-body h3 { margin: .35rem 0 .5rem; }
.work-body p { color: var(--ink-2); font-size: .98rem; margin-bottom: .6rem; }
.work-body .result { font-weight: 600; color: var(--ink); font-size: .95rem; }

/* ---------- work videos (short + long, side by side) ---------- */
.work-videos { display: flex; gap: 1rem; justify-content: center; align-items: stretch; height: min(400px, 36vw, 60vh); }
.work-video { flex: 0 0 auto; height: 100%; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.work-video--short { aspect-ratio: 9 / 16; }
.work-video--long  { aspect-ratio: 16 / 9; }
.work-video iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) {
  .work-videos { flex-direction: column; align-items: center; height: auto; gap: 1.2rem; }
  .work-video { width: 100%; height: auto; }
  .work-video--short { max-width: 300px; }
}

/* ---------- about / team ---------- */
.about-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px){ .about-grid { grid-template-columns: 1fr; } }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem,3vw,2rem); }
.person .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin-bottom: 1rem; }
.person h3 { margin-bottom: .15rem; }
.person .role { color: var(--accent-ink); font-weight: 600; font-size: .92rem; margin-bottom: .8rem; }
.person p { color: var(--ink-2); font-size: 1rem; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.3rem; transition: border-color .2s ease; }
.faq details[open] { border-color: #d8c8ad; }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 0; font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: 0 0 auto; transition: transform .2s ease; color: var(--accent); }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.2rem; color: var(--ink-2); }
.faq .answer p { margin: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr 1.1fr; align-items: start; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: 0 0 auto; }
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list .label { font-size: .82rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.contact-list a, .contact-list span { font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--accent-ink); }
.region-note { margin-top: 1.6rem; padding: 1rem 1.2rem; background: var(--bg-2); border-radius: var(--radius-sm); font-size: .96rem; color: var(--ink-2); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem,3vw,2.2rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem .9rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(90,106,58,.15); }
.field textarea { resize: vertical; min-height: 110px; }
.form .btn-row { margin-top: 1.3rem; }
.form-hint { font-size: .88rem; color: var(--ink-3); margin-top: .9rem; }
.form-status { margin-top: 1rem; font-size: .95rem; font-weight: 600; color: var(--accent-ink); display: none; }
.form-status.show { display: block; }

/* ---------- final CTA ---------- */
.cta-band { background: var(--ink); color: #EBEEF1; border-radius: var(--radius); padding: clamp(2.2rem,5vw,3.6rem); text-align: center; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: #C8CDD3; max-width: 56ch; margin: 1rem auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: 1.8rem; }

/* ---------- footer ---------- */
.site-footer { background: #1E2218; color: #C3C9C0; padding-block: clamp(2.5rem,5vw,3.5rem) 1.6rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #7F858D; margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #C3C9D0; font-size: .96rem; }
.site-footer a:hover { color: #fff; }
.footer-about { font-size: .95rem; color: #8C939B; max-width: 38ch; margin-top: 1rem; }
.socials { display: flex; gap: .7rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #C3C9D0; }
.socials a:hover { background: var(--accent); color: #fff; }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .85rem; color: #7F858D; }
.footer-bottom .reqs { max-width: 60ch; }

/* ---------- page hero (subpages) ---------- */
.page-hero { padding-block: clamp(2.8rem,5vw,4.5rem) clamp(1rem,2vw,2rem); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 1rem; }
.breadcrumb { font-size: .9rem; color: var(--ink-3); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--accent-ink); }

/* service detail rows */
.svc { display: grid; gap: 1.6rem; grid-template-columns: 56px 1fr; padding: clamp(1.4rem,3vw,2rem) 0; border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.svc .ico { width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.svc .ico svg { width: 28px; height: 28px; }
.svc h3 { margin-bottom: .4rem; }
.svc p { color: var(--ink-2); margin: 0; }
@media (max-width: 560px){ .svc { grid-template-columns: 1fr; gap: .9rem; } }

/* utilities */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .feature:hover, .work-card:hover { transform: none; }
}
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ---------- web-agency carousel — 3D coverflow ---------- */
.wa-block { margin-top: clamp(2.6rem, 5vw, 4.2rem); padding-top: clamp(2.4rem, 4vw, 3.2rem); border-top: 1px solid var(--line); }
.wa-intro { text-align: center; max-width: 60ch; margin: 0 auto clamp(1.6rem, 3vw, 2.4rem); }
.wa-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--accent); border-radius: 999px; padding: .42rem .95rem; margin-bottom: 1rem; }
.wa-title { margin: 0 0 .6rem; }
.wa-sub { color: var(--ink-2); margin: 0; }

.wa-carousel { position: relative; margin-top: 1.6rem; }

/* 3D stage — cards positioned by JS (front + angled side cards). Height is set
   by JS to the card's natural height; overflow stays visible so card bottoms +
   shadows are never clipped. Off-screen cards are invisible and the page body
   already has overflow-x:hidden, so nothing leaks a horizontal scrollbar. */
.wa-track { --wa-cardw: clamp(250px, 56vw, 600px); position: relative; min-height: calc(var(--wa-cardw) * .625 + 46px); perspective: 1600px; overflow: visible; display: block; cursor: grab; user-select: none; touch-action: pan-y; }
.wa-track:active { cursor: grabbing; }
.wa-slide { position: absolute; top: 0; left: 50%; width: var(--wa-cardw); display: block; cursor: pointer; transform: translateX(-50%); transform-origin: center center; transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .45s ease; will-change: transform, opacity; }
.wa-slide > .wa-info { display: none; }  /* per-slide info read into the panel below */
.wa-card { position: relative; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(30,35,41,.05), 0 34px 60px -32px rgba(20,30,50,.6); }
.wa-card img { pointer-events: none; }
.wa-chrome { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: linear-gradient(#fcfbf8, #f2eee6); border-bottom: 1px solid var(--line); }
.wa-chrome i { width: 9px; height: 9px; border-radius: 50%; }
.wa-chrome i:nth-child(1) { background: #E0857A; } .wa-chrome i:nth-child(2) { background: #E6BE6E; } .wa-chrome i:nth-child(3) { background: #BCC6B4; }
.wa-url { display: flex; align-items: center; gap: 6px; margin-left: 10px; font-size: .76rem; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-url::before { content: ""; flex: 0 0 auto; width: 11px; height: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C8273' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.wa-shot { display: block; aspect-ratio: 16 / 10; background: var(--bg-2); }
.wa-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* info panel under the stage — arrows are absolutely pinned so they never shift */
.wa-panel { position: relative; text-align: center; max-width: 56ch; margin: clamp(2.2rem, 3.5vw, 3rem) auto 0; transition: opacity .25s ease; }
.wa-panel.swap { opacity: 0; }
.wa-titlebar { position: relative; max-width: 30rem; min-height: 2.75rem; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.wa-name { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.85rem); font-weight: 600; color: var(--ink); }
.wa-name:hover { color: var(--accent-ink); text-decoration: none; }
.wa-logo { height: 26px; max-width: 110px; width: auto; object-fit: contain; border-radius: 5px; }
.wa-desc { color: var(--ink-2); margin: .8rem auto 0; display: flex; align-items: center; justify-content: center; }
.wa-dots { display: flex; gap: .4rem; align-items: center; justify-content: center; margin-top: 1.3rem; }
.wa-dot-btn { width: 8px; height: 8px; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: width .28s ease, background .28s ease; }
.wa-dot-btn.active { width: 26px; background: var(--accent); }
.wa-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; z-index: 2; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.wa-prev { left: 0; } .wa-next { right: 0; }
.wa-nav:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.wa-nav svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .wa-track { --wa-cardw: min(80vw, 440px); }
  .wa-titlebar { max-width: 100%; }
}

/* ---------- problem → solution journey ---------- */
.journey { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
.j-card { border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.3rem); }
.j-problem { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.j-solution { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.j-solution::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--accent); }
.j-tag { display: inline-block; font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1.1rem; }
.j-tag--muted { color: var(--ink-3); }

.j-quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 1.02rem + .8vw, 1.6rem); line-height: 1.34; letter-spacing: .01em; color: var(--ink); margin: 0 0 1rem; }
.j-note { color: var(--ink-2); margin: 0; }

.j-lead { color: var(--ink-2); margin: 0 0 1.3rem; }
.j-sorted { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.j-sorted li { display: flex; align-items: flex-start; gap: .65rem; font-weight: 500; color: var(--ink); }
.j-sorted svg { width: 22px; height: 22px; color: #fff; background: var(--accent); border-radius: 50%; padding: 4px; flex: 0 0 auto; margin-top: 2px; }
.j-foot { margin: 1.2rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }

.j-connector { display: flex; flex-direction: column; align-items: center; gap: .65rem; color: var(--accent); }
.j-badge { font-family: var(--font-display); font-weight: 600; color: #fff; background: var(--accent); border-radius: 999px; padding: .35rem 1rem; font-size: .98rem; box-shadow: 0 10px 22px -10px rgba(90,106,58,.8); }
.j-arrow { width: 46px; height: 24px; }

@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .j-connector { padding: 1.1rem 0; }
  .j-arrow { transform: rotate(90deg); }
}

/* ---------- highlights: borderless 3-up (no cards) ---------- */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.highlights .hl { position: relative; text-align: center; padding: 0 .5rem; }
.highlights .hl:not(:last-child)::after { content: ""; position: absolute; top: 6%; right: calc(-1 * clamp(.75rem, 2vw, 1.5rem)); height: 88%; width: 1px; background: var(--line); }
.hl-ico { width: 56px; height: 56px; margin: 0 auto 1.1rem; display: grid; place-items: center; color: var(--accent); }
.hl-ico svg { width: 44px; height: 44px; }
.hl h3 { margin-bottom: .5rem; }
.hl p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) {
  .highlights { grid-template-columns: 1fr; gap: 0; }
  .highlights .hl { padding: 1.6rem 0; }
  .highlights .hl:not(:last-child)::after { display: none; }
  .highlights .hl:not(:last-child) { border-bottom: 1px solid var(--line); }
}

/* ---------- services as a ruled list (rows, not cards) ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 4rem); }
.svc-item { display: grid; grid-template-columns: 46px 1fr; gap: 1.1rem; align-items: start; padding: 1.5rem .9rem; margin-inline: -.9rem; border-top: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; transition: background .15s ease; }
a.svc-item:hover, a.svc-item:focus-visible { background: rgba(90,106,58,.05); text-decoration: none; outline: none; }
a.svc-item:hover h3, a.svc-item:focus-visible h3 { color: var(--accent-ink); }
.si-ico { width: 46px; height: 46px; color: var(--accent); display: grid; place-items: center; }
.si-ico svg { width: 28px; height: 28px; }
.svc-item h3 { font-size: 1.18rem; margin-bottom: .3rem; display: inline-flex; align-items: center; gap: .4rem; transition: color .15s ease; }
a.svc-item h3::after { content: "→"; font-size: .9em; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
a.svc-item:hover h3::after, a.svc-item:focus-visible h3::after { opacity: 1; transform: none; }
.svc-item p { color: var(--ink-2); margin: 0; font-size: 1rem; }
@media (max-width: 720px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- process as a connected timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); position: relative; }
.timeline::before { content: ""; position: absolute; top: 23px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 7px, transparent 7px 15px); opacity: .55; }
.tl-step { text-align: center; position: relative; }
.tl-num { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; display: grid; place-items: center; margin: 0 auto 1.1rem; position: relative; z-index: 1; box-shadow: 0 8px 18px -8px rgba(90,106,58,.7); }
.tl-step h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.tl-step p { color: var(--ink-2); margin: 0; font-size: 1rem; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 0; bottom: 0; left: 22px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 7px, transparent 7px 15px); }
  .tl-step { display: grid; grid-template-columns: 46px 1fr; gap: 0 1.1rem; text-align: left; align-items: start; padding: .7rem 0; }
  .tl-num { margin: 0; grid-row: span 2; }
  .tl-step h3 { margin-top: .5rem; }
}
