/* =========================================================================
   Digi117 — styles.css
   Plain hand-coded CSS. Light theme. Open Sans. Draftr-style minimal SaaS.
   ========================================================================= */

/* ----- Fonts (Open Sans, self-referenced via Google Fonts in <head>) ----- */

/* ----- Design Tokens -------------------------------------------------- */
:root {
  /* Brand palette */
  --red: #fe4251;          /* primary CTAs, links, accents, final CTA band */
  --red-dark: #e23644;     /* hover state for red */
  --bg: #f5f5f5;           /* page background */
  --surface: #ffffff;      /* cards on the bg */
  --grey-light: #abb8c3;   /* borders, dividers, muted UI */
  --grey: #7f7f7f;         /* secondary / muted text */
  --ink: #1f2933;          /* primary body text + headings */

  /* Derived */
  --border: rgba(171, 184, 195, 0.55);
  --border-strong: var(--grey-light);
  --red-soft: rgba(254, 66, 81, 0.10);
  --shadow-sm: 0 1px 2px rgba(31, 41, 51, 0.04), 0 1px 3px rgba(31, 41, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 41, 51, 0.08);
  --shadow-lg: 0 18px 50px rgba(31, 41, 51, 0.12);

  /* Typography */
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radii */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Layout */
  --maxw: 1160px;
  --nav-h: 72px;

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw + 1rem, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3vw + 0.6rem, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 var(--space-4); }

ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ----- Layout helpers ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.section--alt { background: var(--bg); }
.section--surface { background: var(--surface); }

.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-head p {
  color: var(--grey);
  font-size: 1.08rem;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-4);
}

.muted { color: var(--grey); }

/* ----- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(254, 66, 81, 0.28);
}
.btn--primary:hover {
  background: var(--red-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(254, 66, 81, 0.36);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--grey-light);
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(31, 41, 51, 0.03);
}

.btn--on-red {
  background: #fff;
  color: var(--red);
}
.btn--on-red:hover { background: #fff; color: var(--red-dark); }

.btn--ghost-on-red {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost-on-red:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.95rem; }
.btn--block { width: 100%; }

/* ----- Header / Nav --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 245, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--nav-h);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.nav__brand img { height: 26px; width: auto; }
.nav__brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav__links a {
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 600;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
.nav__links a:hover { color: var(--red); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: var(--space-3); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Hero ----------------------------------------------------------- */
.hero {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle texture / radial accent — no dark fill */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(254, 66, 81, 0.06), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(171, 184, 195, 0.18), transparent 55%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  /* Media column ~25% larger than the copy column on desktop. */
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero__title {
  margin-bottom: var(--space-5);
}
.hero__subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--grey);
  max-width: 34ch;
  margin-bottom: var(--space-6);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hero__media {
  position: relative;
}
.hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1536 / 1024;
  object-fit: cover;
}

/* ----- Generic card --------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  line-height: 1;
  box-shadow: 0 6px 16px rgba(254, 66, 81, 0.28);
}
.icon-circle .ico {
  width: 26px;
  height: 26px;
  display: block;
  color: #fff;
}

/* ----- Grids ---------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-5);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ----- Value cards (section 2) --------------------------------------- */
.value-card h3 { margin-bottom: var(--space-2); }
.value-card p { color: var(--grey); margin-bottom: 0; }
.value-card--featured {
  border: 2px solid var(--red);
  box-shadow: var(--shadow-md);
}

.trust-bar {
  margin-top: var(--space-6);
  text-align: center;
  font-style: italic;
  color: var(--grey);
  background: rgba(171, 184, 195, 0.15);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
}
.trust-bar--ink {
  color: var(--ink);
  font-weight: 600;
}

/* Section subheadline forced to ink for stronger contrast */
.lead-ink { color: var(--ink) !important; }

/* ----- Client logo bar ------------------------------------------------ */
.logos {
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  text-align: center;
}
.logos__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-5);
}
.logos__row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}
.client-logo {
  height: 38px;
  width: auto;
  /* Render every client mark in solid brand ink for a uniform, high-contrast strip */
  filter: brightness(0);
  opacity: 0.85;
  transition: opacity var(--transition);
}
.client-logo:hover { opacity: 1; }

/* ----- Service cards -------------------------------------------------- */
.service-card h3 { margin-bottom: var(--space-2); }
.service-card p { color: var(--grey); margin-bottom: 0; font-size: 0.98rem; }

/* ----- Process steps -------------------------------------------------- */
.steps { counter-reset: step; }
.step__num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-4);
}
.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--grey); margin-bottom: 0; }

/* ----- Stats band ----------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  text-align: center;
  margin-bottom: var(--space-6);
}
.stat__num {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__label {
  color: var(--grey);
  font-size: 0.98rem;
  margin-top: var(--space-2);
}
.stats-body {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  color: var(--grey);
  margin-bottom: 0;
}

/* ----- Testimonials --------------------------------------------------- */
.quote {
  display: flex;
  flex-direction: column;
}
.quote__text {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: var(--space-5);
}
.quote__text::before { content: "“"; color: var(--red); font-weight: 800; }
.quote__text::after  { content: "”"; color: var(--red); font-weight: 800; }
.quote__author {
  margin-top: auto;
  font-size: 0.95rem;
  color: var(--grey);
  font-weight: 600;
}
.quote__author strong { color: var(--ink); display: block; font-weight: 700; }

/* ----- Pricing -------------------------------------------------------- */
.price-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
}
.price-card--popular {
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow-md);
}
.price-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.price-card h3 { margin-bottom: var(--space-2); }
.price-card__desc { color: var(--grey); font-size: 0.95rem; min-height: 2.6em; }
.price-card__price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: var(--space-3) 0 0;
}
.price-card__unit { color: var(--grey); font-size: 0.95rem; margin-bottom: var(--space-5); }
.price-card .btn { margin-top: auto; }

.pricing-note {
  text-align: center;
  color: var(--grey);
  font-size: 0.95rem;
  margin: var(--space-6) auto 0;
  max-width: 760px;
}

/* ----- Portfolio ------------------------------------------------------ */
.portfolio-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.portfolio-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e9edf1, #d6dde3);
  overflow: hidden;
}
.portfolio-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.portfolio-card:hover .portfolio-card__thumb img { transform: scale(1.04); }
.portfolio-card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.portfolio-card h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.portfolio-card p { color: var(--grey); font-size: 0.95rem; }
.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}
.portfolio-card__link {
  margin-top: var(--space-4);
  font-weight: 700;
  font-size: 0.95rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--grey);
  background: rgba(171, 184, 195, 0.18);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.7rem;
}

/* ----- FAQ accordion -------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq__item:hover { box-shadow: var(--shadow-sm); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: var(--space-5);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.faq__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--red);
  border-radius: 2px;
  transition: transform var(--transition);
}
.faq__icon::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq__icon::after  { left: 10px; top: 0; width: 2px; height: 22px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}
.faq__a-inner {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--grey);
}
.faq__a-inner p { margin: 0; }

/* ----- Final CTA band ------------------------------------------------- */
.final-cta {
  background: var(--red);
  color: #fff;
  text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255, 255, 255, 0.92); }
.final-cta__sub {
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto var(--space-6);
}
.final-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}
.final-cta__micro {
  margin-top: var(--space-5);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* ----- Section CTA (centered link/button under a grid) --------------- */
.section-cta { text-align: center; margin-top: var(--space-7); }

/* ----- Footer --------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(3rem, 6vw, 4.5rem) var(--space-6);
  font-size: 0.95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-7);
  align-items: start;
  margin-bottom: var(--space-7);
}
.footer__brand-name {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: var(--space-4);
}
.footer__brand-name img { height: 24px; width: auto; }
.footer__tagline { color: #fff; font-weight: 700; margin-bottom: var(--space-3); }
.footer__desc { max-width: 46ch; margin-bottom: var(--space-4); }
.footer__address { color: rgba(255, 255, 255, 0.72); margin-bottom: 0; }
.footer__address a { color: rgba(255, 255, 255, 0.92); }
.footer__address a:hover { color: #fff; }

.footer__nav h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer__nav ul { list-style: none; }
.footer__nav li { margin-bottom: var(--space-3); }
.footer__nav a { color: rgba(255, 255, 255, 0.78); font-weight: 600; }
.footer__nav a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}
.footer__legal a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}
.footer__legal a:hover { color: #fff; }

/* ----- Responsive ----------------------------------------------------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__subtitle { max-width: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-5); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

@media (max-width: 820px) {
  .nav__links,
  .nav__actions .btn { /* collapse desktop nav */ }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: var(--space-3) var(--space-5) var(--space-5);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav[data-open="true"] .nav__links { max-height: 60vh; }
  .nav__links li { border-bottom: 1px solid var(--border); }
  .nav__links li:last-child { border-bottom: 0; }
  .nav__links a { display: block; padding: var(--space-4) 0; }
  .nav__links a::after { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid--3,
  .grid--2,
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__cta .btn,
  .final-cta__btns .btn { flex: 1 1 100%; }
  .container { padding-inline: var(--space-4); }
}

/* =========================================================================
   Inner-page components (services, portfolio, why, about, contact)
   ========================================================================= */

/* ----- Page hero (text-only, for inner pages) ------------------------ */
.page-hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 460px at 0% -10%, rgba(254, 66, 81, 0.06), transparent 60%),
    radial-gradient(700px 460px at 100% 0%, rgba(171, 184, 195, 0.18), transparent 55%);
  pointer-events: none;
}
.page-hero__inner { position: relative; max-width: 760px; }
.page-hero h1 { margin-bottom: var(--space-4); }
.page-hero__subhead {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.page-hero__body {
  font-size: 1.1rem;
  color: var(--grey);
  margin-bottom: var(--space-5);
}
.page-hero--center .page-hero__inner { max-width: 720px; margin-inline: auto; text-align: center; }
.page-hero--center .eyebrow { justify-content: center; }

/* ----- Two-column service detail block ------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split h2 { margin-bottom: var(--space-2); }
.split .eyebrow { margin-bottom: var(--space-3); }
.split__subhead { color: var(--grey); font-weight: 700; margin-bottom: var(--space-4); }

/* ----- Check / arrow lists ------------------------------------------- */
.check-list { list-style: none; display: grid; gap: var(--space-3); margin: var(--space-5) 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 13px;
  height: 8px;
  border-left: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: rotate(-45deg);
}
.num-list { list-style: none; counter-reset: n; display: grid; gap: var(--space-4); margin: var(--space-5) 0; }
.num-list li { position: relative; padding-left: 3rem; color: var(--ink); }
.num-list li::before {
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.1em;
  font-weight: 800;
  color: var(--red);
  font-size: 1.2rem;
}

/* ----- Case-study callout -------------------------------------------- */
.case-callout {
  border-left: 4px solid var(--red);
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.case-callout .eyebrow { margin-bottom: var(--space-2); }
.case-callout p { color: var(--grey); margin-bottom: var(--space-4); }
.case-callout a { font-weight: 700; }

/* ----- Cross-link block (Intersog) ----------------------------------- */
.crosslink {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: rgba(171, 184, 195, 0.15);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-6);
}
.crosslink p { margin: 0; color: var(--ink); font-weight: 600; }
.crosslink p span { display: block; color: var(--grey); font-weight: 400; font-size: 0.95rem; margin-top: 2px; }

/* ----- Generic prose lead ------------------------------------------- */
.lead {
  font-size: 1.15rem;
  color: var(--grey);
  max-width: 70ch;
}
.lead--ink { color: var(--ink); }

/* ----- Value detail cards (icon-less, numbered/plain) ---------------- */
.feature-card h3 { margin-bottom: var(--space-2); }
.feature-card p { color: var(--grey); margin-bottom: 0; }

/* ----- Team grid (about) --------------------------------------------- */
.team-card { text-align: center; }
.team-card__avatar {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-pill);
  margin: 0 auto var(--space-4);
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
}
.team-card h3 { font-size: 1.1rem; margin-bottom: var(--space-1); }
.team-card__role { color: var(--red); font-weight: 700; font-size: 0.9rem; margin-bottom: var(--space-2); }
.team-card p { color: var(--grey); font-size: 0.95rem; margin-bottom: 0; }

/* ----- Contact layout + form ----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info h2 { margin-bottom: var(--space-4); }
.contact-info__item { margin-bottom: var(--space-5); }
.contact-info__item h3 { font-size: 1rem; margin-bottom: var(--space-1); }
.contact-info__item p, .contact-info__item a { color: var(--grey); margin: 0; }
.contact-info__item a { color: var(--red); font-weight: 600; }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.form__row { margin-bottom: var(--space-4); }
.form__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.form label .req { color: var(--red); }
.form input,
.form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.form textarea { resize: vertical; min-height: 140px; }
.form__note { font-size: 0.88rem; color: var(--grey); margin: var(--space-3) 0 0; }

@media (max-width: 860px) {
  .split,
  .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: -1; }
}
@media (max-width: 680px) {
  .form__row--split { grid-template-columns: 1fr; }
  .crosslink { flex-direction: column; align-items: flex-start; }
}

/* ----- Inner-page hero with SVG illustration ------------------------- */
.hero--page .hero__inner { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero__copy .page-hero__subhead { margin-bottom: var(--space-3); }
.hero__media--illus {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__media--illus img {
  width: 100%;
  height: auto;
  max-width: 560px;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Inner-page hero: keep copy first, illustration below, on tablet/mobile */
@media (max-width: 960px) {
  .hero--page .hero__media { order: 0; }
  .hero--page .hero__media--illus img { max-width: 460px; margin-inline: auto; }
}

/* ----- Contact page: info + form + photo ----------------------------- */
.contact-info h1 { margin-bottom: var(--space-3); }
.contact-info h2.contact-info__h {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-1);
}
.contact-top .lead { margin-bottom: var(--space-6); }
.contact-photo { margin-top: var(--space-6); }
.contact-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 1536 / 1024;
  object-fit: cover;
}

/* =========================================================================
   Body/reading text → ink for stronger contrast & visibility.
   (Small captions like attribution, price units, form fine-print, tags,
   and footer text intentionally stay muted to preserve hierarchy.)
   ========================================================================= */
.section-head p,
.hero__subtitle,
.value-card p,
.service-card p,
.feature-card p,
.step p,
.portfolio-card p,
.team-card p,
.price-card__desc,
.pricing-note,
.stats-body,
.stat__label,
.faq__a-inner,
.muted,
.lead,
.page-hero__body,
.split__subhead,
.contact-info__item p,
.crosslink p span {
  color: var(--ink);
}

/* ----- Case study pages ---------------------------------------------- */
.hero__media--case img { aspect-ratio: 16 / 9; object-fit: cover; }
.case-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.case-prose { max-width: 820px; margin-inline: auto; }
.case-prose h2 { margin-top: var(--space-8); margin-bottom: var(--space-4); }
.case-prose h2:first-child { margin-top: 0; }
.case-prose p { margin-bottom: var(--space-4); color: var(--ink); }
.case-prose .check-list { margin: var(--space-4) 0 var(--space-6); }

/* =========================================================================
   Blog
   ========================================================================= */
/* ----- Blog index cards ---------------------------------------------- */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
  overflow: hidden;
}
.post-card__cover .ico-bg {
  position: absolute;
  right: -16px;
  top: -16px;
  width: 132px;
  height: 132px;
  color: #fff;
  opacity: 0.16;
}
.post-card__cat {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-pill);
}
.post-card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 0.85rem; color: var(--grey); margin-bottom: var(--space-2); }
.post-card h3 { font-size: 1.2rem; margin-bottom: var(--space-2); }
.post-card__excerpt { color: var(--ink); font-size: 0.97rem; margin-bottom: var(--space-4); }
.post-card__link { margin-top: auto; font-weight: 700; font-size: 0.95rem; }

/* ----- Single post --------------------------------------------------- */
.post-hero__inner { max-width: 820px; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  color: var(--grey);
  font-size: 0.95rem;
  margin-top: var(--space-4);
}
.post-meta .post-cat {
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}
.post-meta .dot { color: var(--grey-light); }
.post-body { max-width: 820px; margin-inline: auto; }
.post-body h2 { margin-top: var(--space-8); margin-bottom: var(--space-4); }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { margin-top: var(--space-6); }
.post-body p { margin-bottom: var(--space-4); color: var(--ink); }
.post-body .check-list { margin: var(--space-4) 0 var(--space-6); }
.post-share {
  max-width: 820px;
  margin: var(--space-7) auto 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.post-share .muted { margin: 0; }

/* ----- Legal pages (privacy, terms) ---------------------------------- */
.legal-prose { max-width: 820px; margin-inline: auto; }
.legal-prose h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); font-size: 1.5rem; }
.legal-prose h2:first-of-type { margin-top: 0; }
.legal-prose p { margin-bottom: var(--space-4); color: var(--ink); }
.legal-prose ul.bullets { list-style: disc; padding-left: 1.4rem; margin: 0 0 var(--space-4); }
.legal-prose ul.bullets li { margin-bottom: var(--space-2); color: var(--ink); }
.legal-prose a { font-weight: 600; }
.legal-updated { color: var(--grey); font-weight: 600; margin-top: var(--space-3); }

/* =========================================================================
   v2 corrections: footer 3-col, social, featured testimonial, Services diagrams
   ========================================================================= */

/* ----- Footer: 3 columns + social + contact -------------------------- */
.footer__grid { grid-template-columns: 1.7fr 1fr 1.2fr; gap: var(--space-7); align-items: start; }
.footer__nav ul { list-style: none; }
.footer__nav li { margin-bottom: var(--space-3); }
.footer__nav li:last-child { margin-bottom: 0; }
.footer__contact h4,
.footer__nav h4 { display: none; }            /* drop "Company"/heading offsets so columns top-align */
.footer__contact .footer__address { margin-bottom: var(--space-3); color: rgba(255,255,255,0.72); }
.footer__contact p { margin: 0 0 var(--space-2); color: rgba(255,255,255,0.78); }
.footer__contact a { color: rgba(255,255,255,0.92); font-weight: 600; }
.footer__contact a:hover { color: #fff; }

.footer__social {
  list-style: none;
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.footer__social a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.soc-ico { width: 18px; height: 18px; fill: currentColor; display: block; }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ----- Featured single testimonial ----------------------------------- */
.testimonial-feature {
  max-width: 880px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}
.testimonial-feature__mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: 0.4;
  color: var(--red);
  height: 0.5em;
  user-select: none;
}
.testimonial-feature__text {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin: var(--space-4) 0 var(--space-5);
}
.testimonial-feature__rating { color: var(--red); letter-spacing: 3px; font-size: 1.1rem; margin-bottom: var(--space-4); }
.testimonial-feature__name { display: block; font-weight: 800; color: var(--ink); }
.testimonial-feature__role { display: block; color: var(--grey); font-size: 0.95rem; margin-top: 2px; }

/* ----- MVP process: horizontal stepper diagram ----------------------- */
.flow { list-style: none; display: flex; gap: var(--space-2); }
.flow__step {
  flex: 1 1 0;
  position: relative;
  padding-top: 70px;
  text-align: center;
}
.flow__step::before {            /* connector line */
  content: "";
  position: absolute;
  top: 27px;
  right: 50%;
  width: 100%;
  height: 3px;
  background: var(--grey-light);
  opacity: 0.5;
  z-index: 0;
}
.flow__step:first-child::before { display: none; }
.flow__num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--grey-light);
  color: var(--ink);
  font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.flow__label { display: block; color: var(--ink); font-size: 0.92rem; font-weight: 600; padding-inline: var(--space-2); }
.flow__step:hover .flow__num,
.flow__step:focus-within .flow__num {
  background: var(--red); border-color: var(--red); color: #fff;
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 8px 18px rgba(254, 66, 81, 0.32);
}
@media (max-width: 820px) {
  .flow { flex-direction: column; gap: 0; }
  .flow__step { padding: var(--space-3) 0 var(--space-3) 74px; text-align: left; min-height: 78px; display: flex; flex-direction: column; justify-content: center; }
  .flow__step::before { top: 0; right: auto; left: 26px; width: 3px; height: 100%; }
  .flow__num { left: 0; top: 50%; transform: translateY(-50%); }
  .flow__step:hover .flow__num, .flow__step:focus-within .flow__num { transform: translateY(-50%) scale(1.06); }
  .flow__label { padding-inline: 0; }
}

/* ----- AI "what we build": interactive tab explorer ------------------ */
.explorer { display: grid; grid-template-columns: 0.95fr 1.15fr; gap: var(--space-5); }
.explorer__tabs { display: flex; flex-direction: column; gap: var(--space-2); }
.explorer__tab {
  display: flex; align-items: center; gap: var(--space-3);
  text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-4);
  font-family: var(--font); font-size: 0.98rem; font-weight: 700; color: var(--ink);
  cursor: pointer; transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}
.explorer__tab .ico { width: 22px; height: 22px; color: var(--red); flex: none; }
.explorer__tab:hover { border-color: var(--red); }
.explorer__tab.is-active { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 8px 20px rgba(254,66,81,0.28); }
.explorer__tab.is-active .ico { color: #fff; }
.explorer__panels { position: relative; }
.explorer__panel {
  display: none; height: 100%;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  flex-direction: column; justify-content: center;
}
.explorer__panel.is-active { display: flex; animation: fadeIn var(--transition); }
.explorer__panel h3 { margin-bottom: var(--space-2); }
.explorer__panel p { color: var(--ink); margin: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) { .explorer { grid-template-columns: 1fr; } }

/* ----- Methodology: interactive icon tiles --------------------------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-6);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--red); }
.tile h3 { font-size: 1.3rem; margin-bottom: var(--space-2); }
.tile p { color: var(--ink); font-size: 0.95rem; margin: 0; }
@media (max-width: 820px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* ----- Trust strip (founders) — replaces client logos ---------------- */
.trust-strip { padding-block: clamp(2.5rem, 5vw, 4rem); }
.trust-strip__title {
  text-align: center;
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto var(--space-7);
}
.trust-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.trust-point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-left: var(--space-5);
  border-left: 1px solid var(--border);
}
.trust-point:first-child { border-left: 0; padding-left: 0; }
.trust-point__icon { flex: none; color: var(--red); line-height: 0; }
.trust-point__icon .ico { width: 30px; height: 30px; color: var(--red); }
.trust-point h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 var(--space-1); color: var(--ink); }
.trust-point p { color: var(--grey); font-size: 0.92rem; margin: 0; }
@media (max-width: 860px) {
  .trust-points { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-5); }
  .trust-point:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust-point:nth-child(even) { border-left: 1px solid var(--border); padding-left: var(--space-5); }
}
@media (max-width: 520px) {
  .trust-points { grid-template-columns: 1fr; }
  .trust-point { border-left: 0; padding-left: 0; }
}

/* ----- Blog: in-post featured figure + image card covers ------------- */
.post-figure {
  max-width: 820px;
  margin: 0 auto var(--space-6);
}
.post-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.post-figure figcaption {
  margin-top: var(--space-3);
  text-align: center;
  font-size: 0.88rem;
  color: var(--grey);
}
/* Card cover that uses a real image instead of the gradient */
.post-card__cover--img { background: var(--ink); }
.post-card__cover--img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.post-card__cover--img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,41,51,0) 45%, rgba(31,41,51,0.45));
  z-index: 1;
}
.post-card__cover--img .post-card__cat { position: relative; z-index: 2; }

/* ----- About page: hero banner + office photo ------------------------ */
.about-banner-section { padding-block: 0 clamp(2.5rem, 5vw, 4rem); }
.about-banner {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1625 / 968;
  object-fit: cover;
}
.about-office {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: var(--space-5);
}

/* Contact: photo moved above the heading */
.contact-info .contact-photo:first-child { margin-top: 0; margin-bottom: var(--space-6); }

/* Contact: large centered photo below the form */
.contact-photo-wide {
  max-width: 940px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}
.contact-photo-wide img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* =========================================================================
   WCAG 2.1 AA accessibility pass
   - secondary text & borders darkened to meet contrast
   - #fe4251 kept ONLY for decorative / large / icon use (>=3:1)
   - accessible red (#d11f3a) for text & button fills (white text passes 4.5:1)
   ========================================================================= */
:root {
  --grey: #5f6772;          /* was #7f7f7f (failed 4.5:1 on light bg) */
  --red-700: #d11f3a;       /* accessible red for text/buttons (5.29:1 vs #fff) */
  --red-800: #ab1730;       /* darker red for hover */
  --border-input: #6b727c;  /* visible form/control boundary (>=3:1, 1.4.11) */
}

/* Red as TEXT or as a fill behind white text -> accessible red */
a { color: var(--red-700); }
a:hover { color: var(--red-800); }
.eyebrow { color: var(--red-700); }
/* Buttons keep the original Digi brand red (#fe4251) per branding — note this
   puts white-on-red button text at 3.44:1 (below the AA 4.5:1 text threshold),
   an accepted brand trade-off. */
.btn--primary { background: var(--red); box-shadow: 0 6px 18px rgba(254,66,81,0.28); }
.btn--primary:hover { background: var(--red-dark); box-shadow: 0 10px 24px rgba(254,66,81,0.36); }
.btn--on-red { color: var(--red); }
.btn--on-red:hover { color: var(--red-dark); }
/* Red SURFACES use the brand red #fe4251 to match the buttons (per branding).
   Red TEXT below keeps the deeper #d11f3a — visually near-identical, AA-safe. */
.final-cta { background: var(--red); }
.final-cta__micro { color: rgba(255,255,255,0.92); }
.price-card__badge { background: var(--red); }
.explorer__tab.is-active { background: var(--red); border-color: var(--red); }
.flow__step:hover .flow__num,
.flow__step:focus-within .flow__num { background: var(--red); border-color: var(--red); }
.post-card__cat { color: var(--red-700); }
.post-cat { color: var(--red-700); }
.testimonial-feature__rating,
.testimonial-feature__mark { color: var(--red-700); }

/* Visible boundaries on inputs & ghost buttons (>=3:1) */
.form input, .form textarea { border-color: var(--border-input); }
.btn--ghost { border-color: var(--border-input); }

/* Keyboard focus: visible everywhere; light ring on dark/red surfaces */
:focus-visible { outline: 3px solid var(--red-700); outline-offset: 2px; border-radius: 4px; }
.site-footer :focus-visible,
.final-cta :focus-visible { outline-color: #fff; }

/* Tap targets ~44px */
.btn { min-height: 44px; }
.footer__social a { width: 44px; height: 44px; }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visually-hidden but screen-reader-available (section headings for hierarchy) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* =========================================================================
   HubSpot embedded contact form (portal 46322943) — match the site styling.
   The snippet is HubSpot's NEW embed, which renders with .hsfc-* markup (not
   the legacy .hs-*). These rules target the raw ELEMENTS (robust to class
   renames) plus BOTH the .hs-* and .hsfc-* classes, so the form is styled
   whichever markup HubSpot serves. !important beats HubSpot's injected styles.
   NOTE: if the form renders inside a shadow root / iframe, external CSS can't
   reach it — in that case style it in HubSpot's form editor "Style" panel.
   ========================================================================= */
/* Inherited props cascade even across a shadow boundary */
.hs-contact-form,
.hs-contact-form .hs-form-frame {
  font-family: var(--font);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}
.hs-contact-form form,
.hs-contact-form .hsfc-Form { width: 100% !important; max-width: 100% !important; }

/* Field group spacing */
.hs-contact-form .hs-form-field,
.hs-contact-form .hsfc-Field,
.hs-contact-form .hsfc-FieldGroup { margin-bottom: var(--space-4) !important; }

/* Labels */
.hs-contact-form label,
.hs-contact-form .hsfc-Label {
  display: block !important;
  font-family: var(--font) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  color: var(--ink) !important;
  margin: 0 0 var(--space-2) !important;
  line-height: 1.4;
}
.hs-contact-form .hs-form-required,
.hs-contact-form .hsfc-Label__Required { color: var(--red-700) !important; margin-left: 2px; }

/* Text inputs / textarea / select — by element AND class */
.hs-contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.hs-contact-form textarea,
.hs-contact-form select,
.hs-contact-form .hs-input,
.hs-contact-form .hsfc-TextInput,
.hs-contact-form .hsfc-DropdownInput {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  font-family: var(--font) !important;
  font-size: 1rem !important;
  color: var(--ink) !important;
  background: var(--surface) !important;
  border: 1.5px solid var(--red) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.8rem 1rem !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.hs-contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):focus,
.hs-contact-form textarea:focus,
.hs-contact-form select:focus,
.hs-contact-form .hs-input:focus,
.hs-contact-form .hsfc-TextInput:focus {
  outline: none !important;
  border-color: var(--red-700) !important;
  box-shadow: 0 0 0 3px var(--red-soft) !important;
}
.hs-contact-form textarea { resize: vertical; min-height: 140px; }
.hs-contact-form input::placeholder,
.hs-contact-form textarea::placeholder { color: var(--grey) !important; opacity: 1; }

/* Checkboxes / radios stay native size */
.hs-contact-form input[type="checkbox"],
.hs-contact-form input[type="radio"] { width: auto !important; margin-right: 0.5rem; accent-color: var(--red); }

/* Submit button -> brand-red pill, matches .btn--primary */
.hs-contact-form button[type="submit"],
.hs-contact-form input[type="submit"],
.hs-contact-form .hs-button,
.hs-contact-form .hsfc-Button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 44px;
  cursor: pointer;
  font-family: var(--font) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  color: #fff !important;
  background: var(--red) !important;
  border: 2px solid transparent !important;
  border-radius: var(--radius-pill) !important;
  padding: 0.9rem 1.5rem !important;
  box-shadow: 0 6px 18px rgba(254, 66, 81, 0.28) !important;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.hs-contact-form button[type="submit"]:hover,
.hs-contact-form input[type="submit"]:hover,
.hs-contact-form .hs-button:hover,
.hs-contact-form .hsfc-Button:hover {
  background: var(--red-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(254, 66, 81, 0.36) !important;
}
.hs-contact-form button[type="submit"]:focus-visible,
.hs-contact-form input[type="submit"]:focus-visible,
.hs-contact-form .hsfc-Button:focus-visible { outline: 3px solid var(--red-700); outline-offset: 2px; }
.hs-contact-form .hs-submit .actions,
.hs-contact-form .hsfc-NavigationRow { margin: var(--space-2) 0 0 !important; padding: 0 !important; }

/* Helper / legal / rich text */
.hs-contact-form .hs-field-desc,
.hs-contact-form .hsfc-Description,
.hs-contact-form .legal-consent-container,
.hs-contact-form .hsfc-RichText p { font-size: 0.88rem !important; color: var(--grey) !important; }
.hs-contact-form .hsfc-RichText :is(h1, h2, h3, h4) { color: var(--ink) !important; font-family: var(--font) !important; }

/* Validation errors */
.hs-contact-form ul.hs-error-msgs { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.hs-contact-form .hs-error-msg,
.hs-contact-form label.hs-error-msg,
.hs-contact-form .hsfc-ErrorLabel,
.hs-contact-form .hsfc-FieldError { color: var(--red-800) !important; font-size: 0.85rem !important; font-weight: 600 !important; }

/* Success message */
.hs-contact-form .submitted-message,
.hs-contact-form .hsfc-Form__SubmissionMessage { color: var(--ink) !important; font-size: 1rem !important; }

/* Branded red frame on the contact-form card */
.hs-contact-form.form { border: 1.5px solid var(--red); }
