@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Slab:wght@500;700&display=swap");
@import "variables.css";

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}


img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--heading);
  margin: 0 0 16px;
  line-height: 1.3;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  perspective: 1000px;
}

.section {
  padding: 72px 0;
}

.section--surface {
  background: var(--surface);
}

.section-heading {
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-500);
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--brand-500);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-700);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: #fff;
  color: #fff;
}

.btn-teal {
  background: #fff;
  color: var(--accent-teal);
}

.btn-teal:hover {
  background: #f1f5f9;
  transform: translateY(-4px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(59, 140, 222, 0.28);
  transition: background-color 0.2s ease;
}

.site-header.is-stuck {
  background-color: var(--sticky-nav);
}

.site-header.is-stuck .nav-link {
  color: #fff;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.site-logo img {
  max-height: 64px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--nav-link);
  letter-spacing: 0.03em;
}

.nav-link:hover {
  color: var(--brand-500);
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--heading);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--offcanvas);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-nav__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header__bar {
    height: 70px;
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff;
}

.hero__content {
  max-width: 640px;
}

.hero__content h1 {
  color: #fff;
}

.hero__content p {
  font-size: 18px;
  opacity: 0.92;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

/* ---------- Grid helpers ---------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cards ---------- */
.card-section-surface {
  background: #fff;
  border: 40px solid #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 8px;
}

.card-section-surface__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--brand-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

img.card-section-surface__icon {
  background: var(--surface);
  object-fit: contain;
  padding: 10px;
}

.card-section-surface ul {
  padding-left: 20px;
  margin: 0;
}

.card-section-surface li {
  margin-bottom: 8px;
}


.card {
  width: 100%;
  max-width: auto; /* Control card width here */
  margin: 0 auto;

  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  border-radius: 8px;

  padding: 30px;
  box-sizing: border-box;

  text-align: left;
}

/* Image at top and centered */
.card__icon {
  width: 100px;
  height: 100px;

  display: block;
  margin: 0 auto 24px;

  object-fit: contain;
  padding: 10px;

  background: var(--surface);
  border-radius: 12px;
}

/* Heading remains left aligned */
.card h3 {
  text-align: left;
  margin: 0 0 16px;
}

/* List remains left aligned */
.card ul {
  padding-left: 20px;
  margin: 0;
  text-align: left;
}

.card li {
  margin-bottom: 8px;
}


/* ---------- Counters ---------- */
.counter-card {
  text-align: center;
  padding: 28px 16px;
  box-shadow: 0 0 10px rgba(191, 191, 191, 0.5);
  border-radius: var(--radius);
  background: #fff;
}

.counter-card__number {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 700;
  color: var(--brand-500);
}

.counter-card__label {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- Clients grid ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.client-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 16px;
  text-align: center;
}

.client-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 20%;
  margin: 0 auto 12px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand-500);
}

.client-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.client-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Industries carousel ---------- */
/* One static logo shown at a time (see the handler in home/index.php);
   every 5s the next one slides in from the right while the current one
   slides out to the left. Resting position (no class) is always
   off-screen right, so every slide always enters from the right. */
.logo-strip {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.logo-strip img {
  position: absolute;
  inset: 0;
  margin: auto;
  height: 300px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateX(120%);
  transition: transform 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
}

.logo-strip img.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.logo-strip img.is-leaving {
  opacity: 0;
  transform: translateX(-120%);
}

@media (prefers-reduced-motion: reduce) {
  .logo-strip img {
    transition: opacity 0.3s ease;
    transform: none;
  }
}

.logo-strip__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.logo-strip__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
}

.logo-strip__dot.is-active {
  background: var(--brand-500);
}

/* ---------- Scroll-reveal images ---------- */
/* Applied via JS (home page only) to fade+scale images in from the back as
   they enter the viewport. */
.img-reveal {
  opacity: 0;
  transform: scale(0.85) translateZ(-160px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.img-reveal.is-visible {
  opacity: 1;
  transform: scale(1) translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  .img-reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Form ---------- */
.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--heading);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(0, 127, 255, 0.15);
}

.toggle-group {
  display: flex;
  gap: 12px;
}

.toggle-option input {
  display: none;
}

.toggle-option span {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
}

.toggle-option input:checked+span {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
}

.field-error {
  color: #d92d20;
  font-size: 13px;
  margin-top: 4px;
}

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.alert-success {
  background: #e9f9ee;
  color: #1a7f37;
}

.alert-error {
  background: #fdecec;
  color: #c81e1e;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ---------- Product / Blog CTA (teal accent) ---------- */
.cta-panel {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-light));
  color: #fff;
  border-radius: 20px;
  padding: 64px 32px;
  text-align: center;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-teal);
}

.feature-card h3 {
  color: var(--accent-teal);
  font-size: 18px;
}

.how-step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.how-step > div:last-child {
  min-width: 0;
}

.how-step__number {
  flex: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(6, 78, 86, 0.25);
}

/* ---------- Body block content ---------- */
/* Rendered from the admin's block editor into body_html (see
   admin-body-editor.js) — styled here since body_html is echoed as-is on
   the public product/post page. */
.content-figure {
  margin: 28px 0;
}

.content-figure img,
.content-figure video {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--surface);
}

.content-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.content-video__frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
}

.content-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.content-carousel {
  position: relative;
  margin: 28px 0;
}

.content-carousel__stage {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.content-carousel__stage img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateX(120%);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.content-carousel__stage img.is-active {
  opacity: 1;
  transform: translateX(0);
}

.content-carousel__stage img.is-leaving {
  opacity: 0;
  transform: translateX(-120%);
}

.content-carousel__captions p {
  display: none;
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.content-carousel__captions p.is-active {
  display: block;
}

.content-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.content-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
}

.content-carousel__dot.is-active {
  background: var(--brand-500);
}

.content-error {
  color: #b91c1c;
  background: #fee2e2;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
}

.faq-accordion {
  margin: 28px 0;
}

.faq-accordion details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-accordion summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--heading);
  list-style: none;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--brand-500);
}

.faq-accordion details[open] summary::after {
  content: "\2212";
}

.faq-accordion details > div {
  margin-top: 12px;
  color: var(--text);
  line-height: 1.6;
}

.content-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.content-table th,
.content-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.content-table thead th {
  background: var(--surface);
  color: var(--heading);
  font-weight: 700;
}

/* ---------- Blog / listing cards ---------- */
.post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.post-card__image {
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.post-card__body {
  padding: 20px;
}

.post-card__meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.pagination .is-active {
  background: var(--brand-500);
  color: #fff;
  border-color: var(--brand-500);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h3 {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer a {
  opacity: 0.9;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-office {
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-office strong {
  display: block;
  margin-bottom: 4px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 32px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.back-to-top {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Legal pages ---------- */
.legal-page h2 {
  font-size: 22px;
  color: var(--brand-500);
  margin-top: 32px;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- Sidebar (product/post) ---------- */
.content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

/* Grid items default to min-width: auto, so a child with wide intrinsic
   content (a long word, an unbroken URL, ...) can force the whole grid
   wider than the viewport instead of wrapping — this lets each column
   shrink and wrap/scroll its own content instead. */
.content-layout > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar-widget {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

/* ---------- Table of contents ---------- */
.toc-widget {
  position: sticky;
  top: 106px;
}

@media (max-width: 900px) {
  .toc-widget {
    position: static;
  }
}

.toc-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc-widget__header h3 {
  margin: 0;
}

.toc-widget__toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  flex: none;
  cursor: pointer;
  color: var(--heading);
}

.toc-widget__toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.toc-widget.is-collapsed .toc-widget__toggle-icon {
  transform: rotate(180deg);
}

.toc-widget__list {
  margin-top: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.toc-widget.is-collapsed .toc-widget__list {
  display: none;
}

.toc-widget__list ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.toc-widget__list > ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-widget__list li {
  line-height: 1.4;
}

.toc-widget__list li > a {
  font-weight: 600;
  color: var(--heading);
}

.toc-widget__list li > a:hover {
  color: var(--brand-500);
}

.toc-widget__list li ul {
  margin-top: 6px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 2px solid var(--border);
}

.toc-widget__list li ul a {
  font-weight: 400;
  font-size: 14px;
  color: var(--text);
}

/* ---------- Company "provides" widget ---------- */
.company-widget h3 {
  margin: 0 0 12px;
}

.company-widget > p {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 16px;
}

.company-widget details {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

.company-widget details:last-of-type {
  border-bottom: 1px solid var(--border);
}

.company-widget summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--heading);
  list-style: none;
}

.company-widget summary::-webkit-details-marker {
  display: none;
}

.company-widget summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--brand-500);
}

.company-widget details[open] summary::after {
  content: "\2212";
}

.company-widget ul {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text);
}

.company-widget ul li {
  margin-bottom: 6px;
}

.company-widget__cta {
  display: block;
  text-align: center;
  margin-top: 20px;
}

/* ---------- Recent posts widget ---------- */
.recent-post {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.recent-posts-widget > .recent-post:first-of-type {
  margin-top: 16px;
  padding-top: 16px;
}

.recent-post__image {
  flex: none;
  width: 72px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--border);
}

.recent-post__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.recent-post__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}

.recent-post:hover .recent-post__title {
  color: var(--brand-500);
}

.recent-post__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.recent-post__excerpt {
  font-size: 13px;
  color: var(--text);
  margin-top: 6px;
  line-height: 1.4;
}

.recent-post__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-500);
  margin-top: 6px;
}

.recent-post:hover .recent-post__link {
  text-decoration: underline;
}

.toc-widget__list li ul a:hover {
  color: var(--brand-500);
}