/* Trucheck — static site styles (mirrors the original Divi look) */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-latin-wght.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #2a388e;
  --blue-deep: #032579;
  --teal: #37bcce;
  --teal-btn: #33c5d2;
  --grey-bg: #f4f4f4;
  --grey-bg-2: #f9f9f9;
  --text: #2a388e;
  --muted: #666;
  --white: #fff;
  --radius: 5px;
  --shadow: 0 10px 30px rgba(42, 56, 142, .12);
  --container: 1180px;
  --header-h: 80px;
  --font-head: "Montserrat", Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--blue); margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--blue); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: 80px 0; }
.section--grey { background: var(--grey-bg); }
.section--light { background: var(--grey-bg-2); }
.center { text-align: center; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Headings ---------- */
.display { font-size: clamp(2.1rem, 4.5vw, 3.45rem); font-weight: 700; }
.kicker { color: var(--teal); font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 500; margin-bottom: .6em; }
.lead { color: var(--teal); font-size: .95rem; max-width: 760px; margin-inline: auto; }
.divider { width: 160px; height: 2px; background: var(--teal); border: 0; margin: 24px auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.6;
  padding: 14px 38px;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.btn--white { background: #fff; color: var(--teal-btn); }
.btn--blue { background: var(--blue); color: #fff; text-transform: uppercase; }
.btn--upper { text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; }
.brand img { width: 64px; height: 64px; }
.nav ul { list-style: none; display: flex; gap: 6px; }
.nav a {
  display: block; padding: 8px 12px;
  font-weight: 600; font-size: 1rem; letter-spacing: 1px;
  color: var(--blue); text-decoration: none; border-radius: 4px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav-toggle { display: none; background: none; border: 0; color: var(--blue); font-size: 30px; padding: 6px; cursor: pointer; }

/* Transparent header over the home hero */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; box-shadow: none; }
.home .site-header .nav a { color: #fff; }
.home .site-header .nav a[aria-current="page"], .home .site-header .nav a:hover { color: var(--teal); }
.home .site-header .nav-toggle { color: #fff; }
.home .site-header.is-scrolled { background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.home .site-header.is-scrolled .nav a { color: var(--blue); }
.home .site-header.is-scrolled .nav a[aria-current="page"], .home .site-header.is-scrolled .nav a:hover { color: var(--teal); }
.home .site-header.is-scrolled .nav-toggle { color: var(--blue); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; box-shadow: var(--shadow);
    border-top: 3px solid var(--teal);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 10px 16px 18px; }
  .nav a, .home .site-header .nav a { color: var(--blue); padding: 12px 8px; border-bottom: 1px solid #eef; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--blue);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(42, 56, 142, .71) 1%, rgba(42, 56, 142, .6) 96%);
}
.hero__shape {
  position: absolute; inset: auto 0 0 0; height: 100%; z-index: -1;
  background: url("/assets/img/hero-shape.webp") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.hero__inner { padding: calc(var(--header-h) + 60px) 0 220px; max-width: 900px; margin-inline: auto; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.45rem); font-weight: 700; line-height: 1.1; }
.hero .kicker { font-family: var(--font-body); font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 600; }
.hero__text { font-size: clamp(1rem, 1.6vw, 1.35rem); line-height: 1.35; font-weight: 500; }
.hero__text strong { font-weight: 700; }
.hero__text .hl { color: var(--teal); font-weight: 600; }
.hero .btn { margin-top: 14px; }
@media (max-width: 767px) {
  .hero__inner { padding: calc(var(--header-h) + 30px) 0 120px; }
  .hero__shape { background-size: 140% 100%; background-position: 30% bottom; }
}

/* ---------- What is Trucheck ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 0 0 80px; margin-top: -170px; position: relative; z-index: 2; }
.about__img { width: 100%; max-width: 560px; }
.about__body h2 { font-size: clamp(2rem, 4vw, 3.45rem); text-align: center; margin-top: 140px; }
.about__body p { font-size: 1rem; line-height: 1.6; }
.about__body strong { font-weight: 700; }
.about__tag { text-align: center; }
.about__tag h3 { color: var(--teal); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; margin-bottom: .3em; }
.about__tag p { color: var(--teal); font-size: .95rem; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; margin-top: -60px; gap: 24px; }
  .about__img { margin-inline: auto; max-width: 420px; }
  .about__body h2 { margin-top: 0; }
}

/* ---------- Feature list (icon + text) ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 64px; margin-top: 40px; text-align: left; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .icon { font-size: 30px; color: var(--teal); margin-top: 2px; }
.feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: .97rem; line-height: 1.55; margin: 0; }
@media (max-width: 767px) { .features { grid-template-columns: 1fr; } }

/* ---------- CTA band (home) ---------- */
.cta {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(175deg, rgb(42, 56, 143) 0%, rgba(3, 37, 121, .85) 100%),
    url("/assets/img/inspection-cta-background.webp") center / cover no-repeat;
}
.cta__grid { display: grid; grid-template-columns: 2fr 3fr; align-items: stretch; min-height: 560px; }
.cta__text { padding: 90px 0; align-self: center; }
.cta__text h2 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.45rem); }
.cta__text p { font-size: 1.2rem; line-height: 1.3; }
.cta__visual {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  min-height: 420px; text-align: center; padding: 40px;
}
.cta__visual > img { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: none; object-fit: cover; z-index: 0; }
.cta__visual > *:not(img) { position: relative; z-index: 1; }
.cta__visual p { color: #fff; font-size: 1.35rem; font-weight: 500; line-height: 1.3; margin: 0; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
@media (max-width: 900px) {
  .cta__grid { grid-template-columns: 1fr; }
  .cta__text { padding: 60px 0 10px; }
  .cta__visual > img { left: 50%; transform: translateX(-50%); }
}

/* ---------- App store downloads ---------- */
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 900px; margin: 0 auto 36px; }
.store { display: flex; flex-direction: column; align-items: center; gap: 18px; color: var(--blue); font-size: 1.15rem; text-decoration: none; }
.store:hover { color: var(--teal); text-decoration: none; }
.store img { width: 64px; height: 64px; }
@media (max-width: 600px) { .downloads { grid-template-columns: 1fr; } }

/* ---------- Inner page banner ---------- */
.banner { position: relative; min-height: 420px; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.banner > picture, .banner > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.banner__title {
  background: rgba(42, 56, 142, .55);
  color: #fff; font-size: clamp(1.9rem, 3.5vw, 2.4rem); font-weight: 700;
  text-align: center; padding: 28px 24px; margin: 0;
  width: min(100% - 32px, 1000px);
}
.banner--photo .banner__title { background: transparent; font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.6rem); text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
@media (max-width: 767px) { .banner { min-height: 260px; } }

/* ---------- Features page: icon tiles ---------- */
.tiles-section { position: relative; isolation: isolate; padding: 50px 0; }
.tiles-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/img/features-background.webp") center / cover fixed; opacity: .9; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 24px; list-style: none; }
.tile { display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; text-align: center; }
.tile img { width: 120px; height: 120px; border-radius: 50%; }
.tile h3 { font-size: 1rem; font-weight: 500; margin: 0; }
@media (max-width: 767px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tiles-section::before { background-attachment: scroll; } }

/* ---------- Roles ---------- */
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; margin-top: 40px; text-align: left; }
.role { display: flex; gap: 18px; }
.role .icon { font-size: 32px; color: var(--teal); }
.role h3 { font-size: 1.05rem; font-weight: 700; }
.role h4 { font-size: .85rem; font-weight: 700; margin: 14px 0 6px; }
.role ul { list-style: disc; padding-left: 20px; font-size: .95rem; }
.role li { margin-bottom: 2px; }
@media (max-width: 767px) { .roles { grid-template-columns: 1fr; } }

/* ---------- CTA strip (inner pages) ---------- */
.cta-strip {
  position: relative; background: var(--grey-bg-2); padding: 80px 0; text-align: center; overflow: hidden; isolation: isolate;
}
.cta-strip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/img/trucheck-logo-watermark.webp") center / 380px repeat-x; opacity: .6; }
.cta-strip h2 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 800px; margin-inline: auto; }
.cta-strip .btn { margin-top: 20px; }

/* ---------- Workflow steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; margin-top: 50px; text-align: left; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--teal); color: var(--teal);
  font-weight: 700; font-size: 1.15rem; margin-bottom: 14px;
}
.step h2, .step h3 { font-size: 1rem; font-weight: 700; }
.step p { font-size: .97rem; line-height: 1.55; margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Use cases ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; text-align: left; }
.card { background: #fff; border-radius: 10px; padding: 30px; box-shadow: var(--shadow); }
.card .icon { font-size: 34px; color: var(--teal); margin-bottom: 14px; }
.card h3 { font-size: 1.1rem; font-weight: 700; }
.card p { font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tags li { background: rgba(55, 188, 206, .14); color: var(--blue); font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Technical advantages ---------- */
.advantages { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.advantages ul { list-style: none; display: grid; gap: 18px; }
.advantages li { display: flex; gap: 14px; align-items: flex-start; font-weight: 700; font-size: 1rem; }
.advantages li .icon { font-size: 26px; color: var(--teal); }
.advantages img { width: 100%; max-width: 380px; margin-inline: auto; }
@media (max-width: 900px) { .advantages { grid-template-columns: 1fr; } .advantages img { max-width: 220px; } }

/* ---------- Tech stack ---------- */
.stack { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin: 40px 0 50px; }
.stack li { text-align: center; }
.stack img { width: 96px; height: 96px; margin: 0 auto 12px; object-fit: contain; }
.stack h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 8px; }
.stack p { font-family: var(--font-body); color: #444; font-size: .85rem; line-height: 1.5; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; text-align: left; }
@media (max-width: 980px) { .stack { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .stack { grid-template-columns: repeat(2, 1fr); } .pillars { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 1000px; margin: 30px auto 0; text-align: left; display: grid; gap: 16px; }
.faq details { background: var(--blue); color: #fff; border-radius: 2px; }
.faq details[open] { background: #fff; color: var(--blue); outline: 1px solid #d9d9d9; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 700; font-size: .95rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2 { color: inherit; font-size: inherit; margin: 0; line-height: 1.4; }
.faq summary .icon { font-size: 20px; color: var(--teal); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { padding: 0 20px 18px; font-size: .95rem; }
.faq details > div p { margin: 0; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 900px; margin-inline: auto; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 40px 24px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); color: var(--blue); text-decoration: none;
  transition: transform .2s ease;
}
.contact-card:hover { transform: translateY(-3px); text-decoration: none; }
.contact-card .icon { font-size: 36px; color: var(--blue); }
.contact-card h2 { font-size: 1.4rem; font-weight: 500; margin: 6px 0 0; }
.contact-card span { font-size: 1.15rem; color: var(--blue); }
.contact-card .btn { margin-top: 10px; font-size: .95rem; padding: 10px 28px; }
.contact-note { max-width: 760px; margin: 40px auto 0; text-align: center; }
@media (max-width: 700px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- Legal / prose ---------- */
.prose { max-width: 1000px; margin-inline: auto; font-size: .97rem; }
.prose h2 { font-size: 1.05rem; font-weight: 700; margin: 1.8em 0 .5em; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: #fff; text-align: center; padding: 34px 0 30px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--teal); }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 14px; }
.footer-nav a { font-size: 1.05rem; }
.footer-contact { font-size: .95rem; margin-bottom: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-credit { font-size: .85rem; font-weight: 700; margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.actions { margin-top: 44px; }
.cta__text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.stack img.logo-on-dark { background: var(--blue); border-radius: 50%; padding: 14px; }
