/* ==========================================================================
   TechHubsMedia
   Main stylesheet. Loaded after bootstrap.min.css.
   ========================================================================== */

/* ---------- Fonts (self-hosted Inter, variable weight) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --red: #e74a3e;          /* brand, accents and large elements */
  --red-strong: #d63d31;   /* buttons and small text on white (AA) */
  --red-deep: #c7362b;     /* hover */
  --red-wash: #fdeeec;
  --ink: #151821;
  --ink-2: #2a2f3b;
  --slate: #5a6172;
  --line: #e2e6ec;
  --mist: #f3f5f8;
  --paper: #ffffff;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Type scale, major third */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);
  --fs-3xl: clamp(2.6rem, 1.3rem + 4.6vw, 4.75rem);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --section: clamp(4rem, 3rem + 4vw, 7rem);
  --measure: 68ch;

  --bs-body-font-family: var(--font);
  --bs-body-color: var(--ink);
  --bs-link-color: var(--red-strong);
  --bs-link-color-rgb: 214, 61, 49;
  --bs-link-hover-color: var(--red-deep);
  --bs-link-hover-color-rgb: 199, 54, 43;
  --bs-border-color: var(--line);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
h1, .h1 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.035em; }
h2, .h2 { font-size: var(--fs-xl); }
h3, .h3 { font-size: var(--fs-md); letter-spacing: -0.015em; line-height: 1.3; }
p { margin-bottom: 1.1em; }

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  box-shadow: none;
}
::selection { background: var(--red); color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { --bs-gutter-x: 3rem; max-width: 1280px; }

.lead-text { font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: .72rem;
  --bs-btn-font-size: 1rem;
  --bs-btn-border-radius: var(--radius);
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-lg { --bs-btn-padding-x: 1.6rem; --bs-btn-padding-y: .95rem; --bs-btn-font-size: 1.0625rem; }
.btn-brand {
  --bs-btn-color: #fff; --bs-btn-bg: var(--red-strong); --bs-btn-border-color: var(--red-strong);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--red-deep); --bs-btn-hover-border-color: var(--red-deep);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--red-deep); --bs-btn-active-border-color: var(--red-deep);
}
.btn-outline-ink {
  --bs-btn-color: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-bg: transparent;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--ink);
}
.btn-ghost-light {
  --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.45); --bs-btn-bg: transparent;
  --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: var(--ink); --bs-btn-active-bg: #fff;
}
.text-link {
  font-weight: 600; color: var(--red-strong); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
}
.text-link .icon { transition: transform .2s ease; }
.text-link:hover { color: var(--red-deep); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
/* Blur only on desktop: backdrop-filter would trap the mobile offcanvas menu inside the header. */
@media (min-width: 992px) {
  .site-header {
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
  }
}
.site-header .navbar { padding: .85rem 0; }
.navbar-brand img { height: 40px; width: auto; }
.navbar-toggler { border: 1px solid var(--line); padding: .45rem .55rem; border-radius: var(--radius-sm); color: var(--ink); }
.navbar-toggler:focus { box-shadow: none; }
.navbar-nav .nav-link {
  font-weight: 550; font-size: .98rem; color: var(--ink);
  padding: .5rem .9rem !important; position: relative;
}
.navbar-nav .nav-link:hover { color: var(--red-strong); }
.navbar-nav .nav-link.active { color: var(--ink); }
@media (min-width: 992px) {
  .navbar-nav .nav-link.active::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -.95rem;
    height: 2px; background: var(--red);
  }
  .nav-cta { margin-left: .75rem; }
}
.dropdown-toggle::after { border-top-width: .3em; vertical-align: .15em; margin-left: .35rem; }

.mega-menu {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1rem; margin-top: .9rem !important;
  box-shadow: 0 24px 48px -24px rgba(21, 24, 33, .28);
}
@media (min-width: 992px) {
  .dropdown-mega { position: static; }
  .mega-menu { width: min(860px, 92vw); left: 50% !important; transform: translateX(-50%); }
}
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; }
.mega-link {
  display: flex; gap: .85rem; padding: .85rem; border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
}
.mega-link:hover { background: var(--mist); color: var(--ink); }
.mega-link strong { display: block; font-weight: 650; font-size: .98rem; }
.mega-link small { display: block; color: var(--slate); font-size: .875rem; line-height: 1.45; margin-top: .15rem; }
.mega-icon { color: var(--red); width: 22px; height: 22px; margin-top: .1rem; }
.mega-all { display: block; padding: .85rem; margin-top: .25rem; border-top: 1px solid var(--line); font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--red-strong); }

@media (max-width: 991.98px) {
  .offcanvas { --bs-offcanvas-width: min(360px, 88vw); }
  .navbar-nav .nav-link { font-size: 1.1rem; padding: .8rem 0 !important; border-bottom: 1px solid var(--line); }
  .mega-menu { border: 0; box-shadow: none; padding: 0; margin: 0 !important; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-link small { display: none; }
  .nav-cta { margin-top: 1.25rem; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: var(--fs-xs); color: var(--slate); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: #b4bac5; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--red-strong); text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #d9dde5; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head p { color: var(--slate); font-size: var(--fs-md); line-height: 1.55; margin: .9rem 0 0; }
.section-ink .section-head p { color: #aab1be; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3.5rem, 2rem + 5vw, 6.5rem); position: relative; overflow: hidden; }
.hero::before {
  /* faint search-results rule lines, the hero's quiet texture */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to bottom, transparent calc(100% - 1px), var(--line) 1px);
  background-size: 100% 3.25rem;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
  opacity: .55;
}
@media (max-width: 991.98px) { .hero::before { display: none; } }
.hero h1 { font-size: var(--fs-3xl); line-height: 1.02; letter-spacing: -0.045em; max-width: 13ch; margin-bottom: 1.5rem; }
.hero .lead-text { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--slate); font-size: var(--fs-sm); }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points .icon { color: var(--red); }

/* The answer panel: the signature element */
.answer-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(21, 24, 33, .35), 0 2px 0 rgba(21, 24, 33, .03);
  padding: 1.25rem; position: relative; max-width: 520px; margin-left: auto;
}
.ap-query {
  display: flex; align-items: center; gap: .65rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1rem;
  font-size: .95rem; color: var(--ink); background: var(--mist);
}
.ap-query .icon { color: var(--slate); width: 18px; height: 18px; }
.ap-typed { white-space: nowrap; overflow: hidden; }
.ap-caret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--ink); vertical-align: -0.15em; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ap-label { display: flex; align-items: center; gap: .5rem; margin: 1.25rem 0 .75rem; font-size: var(--fs-xs); font-weight: 600; color: var(--slate); }
.ap-label .icon { color: var(--red); width: 18px; height: 18px; }
.ap-answer p { font-size: .95rem; line-height: 1.6; color: var(--ink-2); margin-bottom: .6rem; }
.ap-answer mark { background: var(--red-wash); color: var(--ink); padding: 0 .15em; border-radius: 3px; }
.ap-line { height: .6rem; border-radius: 99px; background: var(--mist); margin-bottom: .55rem; }
.ap-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: 1rem; }
.ap-source { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .7rem; font-size: .78rem; line-height: 1.35; color: var(--slate); min-width: 0; }
.ap-source strong { display: block; color: var(--ink); font-weight: 600; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-source.is-cited { border-color: var(--red); background: var(--red-wash); color: var(--ink-2); }
.ap-source.is-cited strong { color: var(--red-deep); }
.ap-caption { font-size: var(--fs-xs); color: var(--slate); margin: 1rem 0 0; max-width: 520px; margin-left: auto; }

/* Load sequence for the panel. JS adds .is-playing; without JS everything is visible. */
.answer-panel.is-playing .ap-answer > *,
.answer-panel.is-playing .ap-sources,
.answer-panel.is-playing .ap-label { opacity: 0; transform: translateY(6px); }
.answer-panel.is-revealed .ap-answer > *,
.answer-panel.is-revealed .ap-sources,
.answer-panel.is-revealed .ap-label { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
.answer-panel.is-revealed .ap-answer > :nth-child(2) { transition-delay: .12s; }
.answer-panel.is-revealed .ap-answer > :nth-child(3) { transition-delay: .24s; }
.answer-panel.is-revealed .ap-answer > :nth-child(4) { transition-delay: .36s; }
.answer-panel.is-revealed .ap-sources { transition-delay: .5s; }
.answer-panel.is-cited-now .ap-source.is-cited { animation: cite 1.4s ease 1; }
@keyframes cite { 0% { box-shadow: 0 0 0 0 rgba(231,74,62,.45); } 100% { box-shadow: 0 0 0 12px rgba(231,74,62,0); } }
@media (prefers-reduced-motion: reduce) {
  .ap-caret { animation: none; }
  .answer-panel.is-cited-now .ap-source.is-cited { animation: none; }
}
@media (max-width: 991.98px) {
  .answer-panel, .ap-caption { margin: 2.5rem 0 0; max-width: none; }
}
@media (max-width: 480px) { .ap-sources { grid-template-columns: 1fr 1fr; } .ap-sources .ap-source:last-child { display: none; } }

/* ---------- Proof strip ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.proof-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; font-size: var(--fs-sm); color: var(--slate); }
.proof-inner strong { color: var(--ink); font-weight: 650; }
.proof-list { display: flex; flex-wrap: wrap; gap: .5rem 2rem; list-style: none; margin: 0; padding: 0; }
.proof-list a { color: var(--ink); font-weight: 650; text-decoration: none; font-size: 1.05rem; letter-spacing: -0.01em; }
.proof-list a:hover { color: var(--red-strong); }

/* ---------- Two front pages ---------- */
.split-compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.split-compare > div { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.split-compare > div + div { border-left: 1px solid var(--line); background: var(--mist); }
.split-compare h3 { margin-bottom: .75rem; }
.split-compare ul { padding-left: 1.1rem; margin: 0; color: var(--ink-2); }
.split-compare li { margin-bottom: .45rem; }
.split-compare li::marker { color: var(--red); }
@media (max-width: 767.98px) {
  .split-compare { grid-template-columns: 1fr; }
  .split-compare > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Service index (rows, not cards) ---------- */
.service-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-row { border-bottom: 1px solid var(--line); }
.service-row a {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1.1fr) minmax(0, 1.6fr) 1.5rem;
  gap: 1.25rem; align-items: center; padding: 1.5rem .25rem;
  color: var(--ink); text-decoration: none;
}
.service-row .icon { color: var(--red); width: 26px; height: 26px; }
.service-row h3 { margin: 0; font-size: var(--fs-md); }
.service-row p { margin: 0; color: var(--slate); font-size: var(--fs-sm); line-height: 1.5; }
.service-row .row-arrow { color: var(--slate); transition: transform .2s ease, color .2s ease; }
.service-row a:hover h3 { color: var(--red-strong); }
.service-row a:hover .row-arrow { color: var(--red-strong); transform: translateX(4px); }
@media (max-width: 767.98px) {
  .service-row a { grid-template-columns: 2rem minmax(0, 1fr) 1.25rem; row-gap: .35rem; }
  .service-row p { grid-column: 2 / 3; grid-row: 2; }
}

/* ---------- Process (a true sequence) ---------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.process-step { padding: 0 1.5rem 0 0; position: relative; }
.process-step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1.5px solid var(--red); color: var(--red); font-weight: 700; font-size: 1rem;
  background: var(--ink); position: relative; z-index: 1; margin-bottom: 1.25rem;
}
.process-step::after { content: ""; position: absolute; top: 1.25rem; left: 2.5rem; right: 0; height: 1px; background: #3a404e; }
.process-step:last-child::after { display: none; }
.process-step h3 { font-size: var(--fs-md); margin-bottom: .5rem; }
.process-step p { color: #aab1be; font-size: var(--fs-sm); margin: 0; }
.process-step .step-time { display: block; color: #fff; font-size: var(--fs-xs); font-weight: 600; margin-bottom: .5rem; opacity: .7; }
@media (max-width: 991.98px) {
  .process { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .process-step::after { display: none; }
}
@media (max-width: 575.98px) { .process { grid-template-columns: 1fr; } }

/* ---------- Case study feature ---------- */
.case-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.case-meta { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .6rem; font-size: var(--fs-sm); }
.case-meta li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.case-meta span { color: var(--slate); }
.approach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.approach-list li { display: grid; grid-template-columns: 1.75rem 1fr; gap: .9rem; }
.approach-list .icon { color: var(--red); margin-top: .25rem; }
.approach-list h3 { font-size: 1.0625rem; margin: 0 0 .3rem; }
.approach-list p { margin: 0; color: var(--slate); font-size: var(--fs-sm); }
@media (max-width: 991.98px) { .case-feature { grid-template-columns: 1fr; } }

/* ---------- Markets / time zones ---------- */
.tz-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tz-table th, .tz-table td { padding: 1rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tz-table thead th { font-size: var(--fs-xs); font-weight: 600; color: var(--slate); border-bottom-color: var(--ink); }
.tz-table tbody th { font-weight: 650; color: var(--ink); }
.tz-table td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.founder-photo, .founder-initials { width: 220px; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); object-fit: cover; }
.founder-initials {
  display: grid; place-items: center; background: var(--ink); color: #fff;
  font-size: 4rem; font-weight: 800; letter-spacing: -0.04em; position: relative; overflow: hidden;
}
.founder-initials::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--red); }
.founder h2 { margin-bottom: .35rem; }
.founder-role { color: var(--red-strong); font-weight: 600; margin-bottom: 1.25rem; }
.founder-facts { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 2rem; font-size: var(--fs-sm); }
.founder-facts li { display: flex; gap: .6rem; }
.founder-facts .icon { color: var(--red); margin-top: .2rem; }
@media (max-width: 767.98px) {
  .founder { grid-template-columns: 1fr; }
  .founder-photo, .founder-initials { width: 160px; }
  .founder-facts { grid-template-columns: 1fr; }
}

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.quote { margin: 0; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); display: flex; flex-direction: column; }
.quote blockquote { font-size: 1.0625rem; line-height: 1.6; color: var(--ink); margin: 0 0 1.5rem; flex: 1; }
.quote figcaption { font-size: var(--fs-sm); color: var(--slate); }
.quote figcaption strong { color: var(--ink); display: block; }
.quote .stars { color: var(--red); letter-spacing: .1em; margin-bottom: .75rem; }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
@media (max-width: 991.98px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; }
.post-card-media { display: block; aspect-ratio: 2 / 1; border-radius: var(--radius); overflow: hidden; background: var(--mist); margin-bottom: 1.1rem; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-fallback { display: grid; place-items: center; height: 100%; font-weight: 700; color: var(--slate); font-size: 1.1rem; background: linear-gradient(to bottom, transparent calc(100% - 1px), var(--line) 1px) 0 0 / 100% 1.6rem, var(--mist); }
.post-card-cat { font-size: var(--fs-xs); font-weight: 600; color: var(--red-strong); text-decoration: none; margin-bottom: .5rem; }
.post-card-title { font-size: 1.1875rem; line-height: 1.3; margin: 0 0 .6rem; letter-spacing: -0.015em; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--red-strong); }
.post-card-excerpt { color: var(--slate); font-size: var(--fs-sm); line-height: 1.55; margin-bottom: .75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { display: flex; gap: 1rem; font-size: var(--fs-xs); color: var(--slate); margin: auto 0 0; }

/* ---------- FAQ ---------- */
.faq h2 { margin-bottom: 1.5rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.0625rem; font-weight: 650; margin: 0; letter-spacing: -0.01em; }
.faq-item summary:hover h3 { color: var(--red-strong); }
.faq-toggle { flex: none; width: 1.25rem; height: 1.25rem; position: relative; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.75px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .25s ease; }
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 2.5rem 1.35rem 0; color: var(--ink-2); max-width: var(--measure); }
.faq-answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; padding: clamp(3rem, 2rem + 3vw, 5rem) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-inner h2 { color: #fff; margin-bottom: .6rem; }
.cta-inner p { color: #aab1be; margin: 0; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; margin-bottom: 1.25rem; }
.page-hero .lead-text { margin: 0; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Quick answer: the AEO block */
.quick-answer { border-left: 4px solid var(--red); background: var(--mist); padding: 1.35rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0; max-width: var(--measure); }
.quick-answer h2 { font-size: 1rem; margin: 0 0 .45rem; letter-spacing: -0.005em; }
.quick-answer p { margin: 0; color: var(--ink-2); }

/* Service page parts */
.fix-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; }
.fix-list li { display: flex; gap: .75rem; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.fix-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: .6rem; }
@media (max-width: 767.98px) { .fix-list { grid-template-columns: 1fr; gap: 0; } }

.deliverables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid #3a404e; border-left: 1px solid #3a404e; }
.deliverable { padding: 1.75rem; border-right: 1px solid #3a404e; border-bottom: 1px solid #3a404e; }
.deliverable h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.deliverable p { color: #aab1be; font-size: var(--fs-sm); margin: 0; }
@media (max-width: 991.98px) { .deliverables { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .deliverables { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .65rem; }
.check-list .icon { color: var(--red); margin-top: .2rem; }

.related-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-links a { display: block; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; }
.related-links a:hover { border-color: var(--ink); }
.related-links strong { display: block; margin-bottom: .3rem; }
.related-links span { color: var(--slate); font-size: var(--fs-sm); }
@media (max-width: 767.98px) { .related-links { grid-template-columns: 1fr; } }

/* ---------- Case study page ---------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--line); }
.metric { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.metric strong { display: block; font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric span { color: var(--slate); font-size: var(--fs-sm); }
.case-list { display: grid; gap: 1.5rem; }
.case-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 2rem; align-items: center; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.case-row h2 { font-size: var(--fs-lg); margin: 0 0 .35rem; }
.case-row p { margin: 0; color: var(--slate); }
@media (max-width: 767.98px) { .case-row { grid-template-columns: 1fr; gap: 1rem; } }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list a, .tag-list span { display: inline-block; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-xs); color: var(--ink-2); text-decoration: none; }
.tag-list a:hover { border-color: var(--red); color: var(--red-strong); }

/* ---------- Blog ---------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.cat-nav a { padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); font-weight: 550; text-decoration: none; color: var(--ink); }
.cat-nav a:hover { border-color: var(--ink); }
.cat-nav a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager { display: flex; justify-content: center; gap: .5rem; margin-top: 3.5rem; }
.pager a, .pager span { min-width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.pager span[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Article */
.article-head { padding: clamp(2rem, 1.5rem + 3vw, 4.5rem) 0 2rem; }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); max-width: 24ch; margin-bottom: 1.25rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; color: var(--slate); font-size: var(--fs-sm); }
.article-meta .byline { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 3rem; background: var(--mist); aspect-ratio: 2 / 1; }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 4rem; align-items: start; }
@media (max-width: 991.98px) { .article-layout { grid-template-columns: 1fr; gap: 2rem; } }
.toc { position: sticky; top: 100px; font-size: var(--fs-sm); max-height: calc(100vh - 130px); overflow: auto; padding-right: .5rem; }
.toc p { font-weight: 700; margin-bottom: .75rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--slate); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink); border-left-color: var(--red); font-weight: 600; }
@media (max-width: 991.98px) {
  .toc-wrap { order: -1; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
}

.prose { max-width: 72ch; font-size: 1.09rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.25em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); margin-top: 2.4em; margin-bottom: .2em; color: var(--ink); }
.prose h3 { font-size: 1.3rem; margin-top: 1.9em; margin-bottom: .1em; color: var(--ink); }
.prose h4 { font-size: 1.1rem; margin-top: 1.6em; }
.prose a { color: var(--red-strong); text-decoration: underline; }
.prose a:hover { color: var(--red-deep); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: var(--fs-sm); color: var(--slate); margin-top: .6rem; }
.prose blockquote { border-left: 3px solid var(--red); padding: .25rem 0 .25rem 1.25rem; color: var(--ink); font-size: 1.15rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .75rem .85rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--mist); color: var(--ink); font-weight: 650; }
.prose code { background: var(--mist); padding: .1em .35em; border-radius: 4px; font-size: .9em; color: var(--ink); }
.prose pre { background: var(--ink); color: #e6e8ee; padding: 1.25rem; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose .wp-block-image, .prose .aligncenter { text-align: center; }
.prose .rank-math-faq-item { border-top: 1px solid var(--line); padding-top: 1rem; }
.prose .rank-math-question { font-size: 1.15rem; margin-top: 1rem; }

.author-box { display: grid; grid-template-columns: 4rem 1fr; gap: 1.25rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-top: 3.5rem; max-width: 72ch; }
.author-box .avatar { width: 4rem; height: 4rem; font-size: 1.1rem; }
.author-box p { margin: 0; color: var(--slate); font-size: var(--fs-sm); }
.author-box strong { display: block; color: var(--ink); font-size: 1.05rem; }
.share-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 2.5rem; font-size: var(--fs-sm); color: var(--slate); }
.share-row a, .share-row button { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; background: none; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.share-row a:hover, .share-row button:hover { border-color: var(--ink); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 991.98px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.form-label { font-weight: 600; font-size: var(--fs-sm); margin-bottom: .4rem; }
.form-control, .form-select {
  border-radius: var(--radius); border-color: #cfd5de; padding: .75rem .9rem; font-size: 1rem; color: var(--ink);
}
.form-control:focus, .form-select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(231,74,62,.18); }
.form-text { color: var(--slate); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-weight: 500; }
.form-status.is-success { background: #e9f7ef; color: #135c32; border: 1px solid #b7e4c7; }
.form-status.is-error { background: var(--red-wash); color: #8f231a; border: 1px solid #f5c2bd; }
.contact-side h2 { font-size: var(--fs-lg); }
.contact-methods { list-style: none; padding: 0; margin: 1.5rem 0 2.5rem; display: grid; gap: 1rem; }
.contact-methods a { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.contact-methods a:hover { border-color: var(--ink); }
.contact-methods .icon { color: var(--red); width: 26px; height: 26px; }
.contact-methods small { display: block; color: var(--slate); font-size: var(--fs-xs); }
.contact-methods strong { font-weight: 650; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal p, .legal li { color: var(--ink-2); }

/* ---------- 404 ---------- */
.nf { padding: clamp(4rem, 3rem + 5vw, 8rem) 0; }
.nf-code { font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 800; letter-spacing: -0.06em; line-height: .9; color: var(--ink); margin-bottom: 1.5rem; }
.nf-code span { color: var(--red); }
.nf-links { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.nf-links a { display: block; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.nf-links a:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: #0f1218; color: #a4abb8; padding: clamp(3.5rem, 3rem + 3vw, 5.5rem) 0 2rem; font-size: var(--fs-sm); }
.footer-brand img { height: 38px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1.25rem; }
.footer-about { max-width: 36ch; line-height: 1.6; }
.footer-heading { color: #fff; font-weight: 650; margin-bottom: 1rem; font-size: 1rem; }
.footer-links, .footer-contact, .footer-social { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.site-footer a { color: #d3d8e0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; align-items: center; gap: .65rem; margin-bottom: .7rem; }
.footer-contact .icon { color: var(--red); width: 18px; height: 18px; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.footer-social a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid #2c323e; border-radius: var(--radius-sm); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid #242935; margin-top: 3.5rem; padding-top: 1.75rem; font-size: var(--fs-xs); }
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040;
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  padding: .7rem 1rem .7rem .85rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem;
  box-shadow: 0 12px 32px -12px rgba(21, 24, 33, .35);
}
.wa-float .icon { color: #1c9a50; width: 22px; height: 22px; }
.wa-float:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 575.98px) { .wa-float span { display: none; } .wa-float { padding: .8rem; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .wa-float, .cta-band, .toc-wrap, .share-row { display: none !important; }
  .prose { max-width: none; }
}
