/* ===== Tokens ===== */
:root {
  --bg: #faf7f1;
  --ink: #2b2720;
  --muted: #6b6555;
  --label: #8a8272;
  --label-lt: #a89f8a;
  --footer-ink: #4d493f;
  --brand: oklch(0.48 0.05 74);
  --brand-hover: oklch(0.4 0.06 74);
  --accent: oklch(0.5 0.09 62);
  --accent-lt: oklch(0.55 0.08 62);
  --whatsapp: #1f8a4c;
  --border: #ece5d7;
  --border-strong: #e7e0d3;
  --border-photo: #e0d8c8;
  --border-input: #ddd3bf;
  --pill-bg: #f2ece0;
  --footer-bg: #f2ece0;
  --scrim: rgba(43, 39, 32, .55);
  --cream: #faf7f1;
  --pad-x: clamp(20px, 5vw, 56px);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Libre Franklin', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

img { max-width: 100%; }

[id] { scroll-margin-top: 80px; }

/* ===== Shared components ===== */
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  flex-shrink: 0;
}
.logo-mark--sm { width: 34px; height: 34px; font-size: 17px; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}
.btn--brand {
  background: var(--brand);
  color: var(--cream);
  padding: 16px 28px;
}
.btn--brand:hover { background: var(--brand-hover); color: var(--cream); }
.btn--cta { padding: 16px 32px; }

.pill {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--label);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 999px;
}
.pill--card { padding: 6px 12px; margin-bottom: 10px; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 8px;
  text-align: center;
}
.section-title--sm { font-size: 30px; }

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 auto 36px;
  max-width: 560px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card-grid--services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid--why { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}
.card h3 { font-size: 21px; font-weight: 700; margin: 0 0 10px; }
.card p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.card p.card__body-linked { margin-bottom: 14px; }

.card__logo {
  display: block;
  height: 34px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}
.card__logo--partner { height: 28px; margin-bottom: 14px; }

.card__eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--accent-lt);
  margin: 0 0 8px;
}

.card__link { font-weight: 700; font-size: 14px; }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--accent);
  margin: 0 0 20px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-strong);
  flex-wrap: wrap;
}
.nav__brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.nav__wordmark { font-family: var(--serif); font-weight: 500; font-size: 19px; white-space: nowrap; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  font-size: 14px;
  flex-wrap: wrap;
}
.nav__links a { color: var(--muted); white-space: nowrap; }
.nav__links a:hover { color: var(--brand-hover); }
.nav__links a.nav__phone { color: var(--brand); font-weight: 700; }
.nav__links a.nav__phone:hover { color: var(--brand-hover); }

/* ===== Hero ===== */
.hero {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  padding: 88px var(--pad-x) 72px;
  align-items: center;
}
.hero__copy { flex: 1 1 460px; min-width: 0; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 24px;
}
.hero__lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 34px;
  max-width: 490px;
}
.hero__ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero__explore {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 2px solid var(--accent-lt);
  padding-bottom: 3px;
  white-space: nowrap;
}
.hero__stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.stat__value { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.stat__label { font-size: 13.5px; color: var(--label); font-weight: 600; }
.hero__photo {
  flex: 1 1 380px;
  min-width: 280px;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-photo);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #efe9dd;
}

/* ===== Industries strip ===== */
.industries {
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.industries__label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--label-lt);
  letter-spacing: .05em;
}
.industries__chips { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.chip {
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
}

/* ===== About ===== */
.about { max-width: 1320px; margin: 0 auto; padding: 72px var(--pad-x); }
.about__card {
  background: var(--brand);
  color: #f5f1e8;
  border-radius: 22px;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.about__card h2 {
  flex: 1 1 320px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  margin: 0;
}
.about__card p {
  flex: 1.6 1 420px;
  font-size: 16.5px;
  line-height: 1.75;
  color: #e4ddcd;
  margin: 0;
}

/* ===== Products ===== */
.products { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad-x) 72px; }
.products__swil-logo {
  display: block;
  margin: 0 auto 16px;
  height: 32px;
  width: auto;
  object-fit: contain;
}
.products__sub {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin: 0 auto 12px;
  max-width: 540px;
}
.products__badge-row { text-align: center; margin: 0 auto 40px; }
.card--unisolve {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}
.card__logo--unisolve { margin-bottom: 0; }
.card--unisolve h3 { margin: 0 0 8px; }
.products__footnote {
  text-align: center;
  font-size: 13.5px;
  color: var(--label-lt);
  margin: 28px 0 0;
}
.products__footnote a { font-weight: 600; }

/* ===== In-house services / Partners ===== */
.services, .partners { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad-x) 72px; }

/* ===== Why us ===== */
.why { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad-x) 72px; }
.why .section-title { margin-bottom: 32px; }
.card--why { padding: 30px; }
.card--why p { line-height: 1.6; }
.card__title-sm { font-weight: 800; font-size: 16px; margin-bottom: 10px; }

/* ===== Customers ===== */
.customers {
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  padding: 64px var(--pad-x);
}
.customers .section-title { margin-bottom: 12px; }
.customers__label {
  text-align: center;
  color: var(--label-lt);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0 0 32px;
}
.customers__logos {
  max-width: 1100px;
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.customers__logos img { height: 38px; width: auto; object-fit: contain; }
.customers__logos img.customers__logo--tall { height: 58px; }
.testimonials {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.testimonial { margin: 0; text-align: center; }
.testimonial p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.testimonial__name { font-weight: 700; font-size: 14.5px; }
.testimonial__role { font-size: 13px; color: var(--label-lt); }

/* ===== Bottom CTA ===== */
.cta { padding: 72px var(--pad-x); text-align: center; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: 38px; margin: 0 0 14px; }
.cta p { font-size: 16px; color: var(--muted); margin: 0 auto 30px; max-width: 460px; }

/* ===== Footer ===== */
.footer { background: var(--footer-bg); border-top: 1px solid var(--border-strong); }
.footer__main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px var(--pad-x) 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.footer__brand { flex: 1.3 1 280px; }
.footer__brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__wordmark { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--ink); }
.footer__brand p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; max-width: 320px; }
.footer__col { flex: 1 1 220px; }
.footer__label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--label-lt);
  margin-bottom: 16px;
}
.footer__address { font-style: normal; font-size: 14.5px; line-height: 1.7; color: var(--footer-ink); }
.footer__map { margin-top: 8px; }
.footer__map a { color: var(--footer-ink); font-weight: 600; font-size: 14px; }
.footer__phones { margin-top: 16px; font-size: 14.5px; line-height: 1.9; }
.footer__phones a { color: var(--footer-ink); font-weight: 600; }
.footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.footer__links a { color: var(--footer-ink); }
.footer__links a:hover, .footer__map a:hover, .footer__phones a:hover, .footer__faq-btn:hover { color: var(--brand-hover); }
.footer__faq-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--footer-ink);
  cursor: pointer;
  text-align: left;
}
.footer__bottom { border-top: 1px solid var(--border-strong); }
.footer__bottom-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px var(--pad-x);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--label-lt);
}
.footer__trademark { text-align: right; }
.footer__trademark a { color: var(--label); }

/* ===== Floating WhatsApp ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  background: var(--whatsapp);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(31, 138, 76, .4);
}

/* ===== Mobile CTA bar ===== */
.mobile-cta { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 64px; }
  .whatsapp-fab { bottom: 82px; }
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--border-strong);
  }
  .mobile-cta__call,
  .mobile-cta__btn {
    flex: 1;
    text-align: center;
    font-family: inherit;
    font-weight: 700;
    font-size: 14.5px;
    padding: 12px 10px;
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
  }
  .mobile-cta__call { background: #fff; border: 1px solid var(--border-input); color: var(--brand); }
  .mobile-cta__call:hover { color: var(--brand-hover); }
  .mobile-cta__btn { background: var(--brand); border: none; color: var(--cream); }
  .mobile-cta__btn:hover { background: var(--brand-hover); }
}

/* ===== Modals ===== */
.modal {
  border: none;
  border-radius: 20px;
  background: var(--bg);
  color: var(--ink);
  padding: 40px;
  width: min(440px, calc(100vw - 48px));
}
.modal--faq {
  width: min(600px, calc(100vw - 48px));
  max-height: 80vh;
  overflow-y: auto;
}
.modal::backdrop { background: var(--scrim); }
body:has(dialog[open]) { overflow: hidden; }

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--label);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.modal__eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--accent);
  margin: 0 0 10px;
}
.modal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 20px;
}
.modal__title--faq { font-size: 28px; line-height: 1.2; margin-bottom: 24px; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-input);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form__actions { display: flex; gap: 10px; }
.contact-form__actions .btn {
  flex: 1;
  text-align: center;
  font-size: 15px;
  padding: 14px;
}
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #187840; color: #fff; }
.modal__later { text-align: center; margin-top: 14px; }
.modal__later button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--label);
  cursor: pointer;
}
.modal__later button:hover { color: var(--brand-hover); }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
}
.faq-list summary { cursor: pointer; font-weight: 700; font-size: 15.5px; }
.faq-list details p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0 0;
}
