/* ==========================================================================
   TECHSPEAK — DESIGN TOKENS v2
   White base. Navy text. Blue accents. Clean and light.
   ========================================================================== */

:root {

  /* Page base */
  --color-bg:             #FFFFFF;
  --color-bg-soft:        #F8FAFC;
  --color-bg-muted:       #F1F5F9;
  --color-surface:        #FFFFFF;
  --color-surface-alt:    #F8FAFC;

  /* Borders */
  --color-border:         #E2E8F0;
  --color-border-dark:    #CBD5E1;

  /* Navy — header, footer, text headings only */
  --color-navy:           #0A1628;
  --color-navy-mid:       #0F1F3D;
  --color-navy-light:     #1E3A5F;
  --color-navy-border:    #2A4A70;
  --color-navy-muted:     #94A3B8;
  --color-navy-subtle:    #4B8BDB;

  /* Primary text */
  --color-text:           #0F172A;
  --color-text-muted:     #475569;
  --color-text-subtle:    #94A3B8;
  --color-text-white:     #FFFFFF;

  /* Blue — CTAs, links, highlights */
  --color-blue:           #2563EB;
  --color-blue-hover:     #1D4ED8;
  --color-blue-light:     #EFF6FF;
  --color-blue-mid:       #DBEAFE;
  --color-blue-muted:     #93C5FD;
  --color-blue-dark:      #1E40AF;

  /* Green — metrics, results, success */
  --color-green:          #10B981;
  --color-green-light:    #ECFDF5;
  --color-green-dark:     #065F46;

  /* Amber — pain points, problems section */
  --color-amber:          #F59E0B;
  --color-amber-light:    #FFFBEB;
  --color-amber-mid:      #FEF3C7;
  --color-amber-dark:     #92400E;
  --color-amber-darker:   #78350F;
  --color-amber-border:   #FCD34D;

  /* Red — before states */
  --color-red:            #EF4444;
  --color-red-light:      #FEF2F2;

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'Inter Mono', 'Fira Code', monospace;

  --text-xs:      0.75rem;
  --text-sm:      0.875rem;
  --text-base:    1rem;
  --text-lg:      1.125rem;
  --text-xl:      1.25rem;
  --text-2xl:     1.5rem;
  --text-3xl:     1.875rem;
  --text-4xl:     2.25rem;
  --text-5xl:     3rem;
  --text-6xl:     3.75rem;

  --weight-normal:    400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  --leading-tight:    1.15;
  --leading-snug:     1.35;
  --leading-normal:   1.6;
  --leading-relaxed:  1.75;

  --tracking-tight:  -0.03em;
  --tracking-normal:  0em;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  --section-py:     6rem;
  --section-py-md:  4rem;
  --section-py-sm:  3rem;

  /* Layout */
  --container-max:    1200px;
  --container-wide:   1400px;
  --container-narrow: 760px;
  --container-px:     1.5rem;

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.10);
  --shadow-blue: 0 4px 20px rgba(37,99,235,0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index */
  --z-base:     0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
}

@media (max-width: 768px) {
  :root {
    --section-py:   var(--section-py-sm);
    --container-px: 1rem;
    --text-5xl:     2.5rem;
    --text-4xl:     2rem;
    --text-3xl:     1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --section-py:   var(--section-py-md);
    --container-px: 1.25rem;
  }
}
/* ==========================================================================
   TECHSPEAK — RESET & NORMALISATION
   Clean browser defaults before any theme styles are applied.
   ========================================================================== */

/* Box sizing — apply universally */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Root defaults */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Images and media */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  object-fit: cover;
}

/* Form elements inherit font */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove list styles on ul/ol with class (accessibility safe) */
ul[class],
ol[class] {
  list-style: none;
}

/* Default link reset */
a {
  color: inherit;
  text-decoration: none;
}

/* Buttons reset */
button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* Avoid text overflow */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Hidden utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* WordPress core image alignment classes */
.alignleft  { float: left; margin-right: var(--space-6); margin-bottom: var(--space-4); }
.alignright { float: right; margin-left: var(--space-6); margin-bottom: var(--space-4); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: var(--space-4); }
.alignnone  { margin-bottom: var(--space-4); }

/* WordPress admin bar offset */
.admin-bar .ts-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .ts-header {
    top: 46px;
  }
}
/* ==========================================================================
   TECHSPEAK — TYPOGRAPHY SYSTEM
   Inter for UI/body. Inter Mono for numbers and data.
   Google Fonts are loaded in functions.php via wp_enqueue_style.
   ========================================================================== */

/* --------------------------------------------------------------------------
   HEADINGS
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* Dark background headings — override color when inside dark sections */
.ts-section--dark h1,
.ts-section--dark h2,
.ts-section--dark h3,
.ts-section--dark h4,
.ts-section--dark h5,
.ts-section--dark h6 {
  color: var(--color-text-white);
}

/* --------------------------------------------------------------------------
   BODY TEXT
   -------------------------------------------------------------------------- */

p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.ts-section--dark p,
.ts-section--dark li {
  color: var(--color-navy-muted);
}

/* Large body text (subheadlines, intros) */
.ts-text-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

.ts-text-xl {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   LABELS & EYEBROWS
   Small uppercase label above headings
   -------------------------------------------------------------------------- */

.ts-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--space-3);
}

.ts-label--amber {
  color: var(--color-amber);
}

.ts-label--green {
  color: var(--color-green);
}

.ts-label--muted {
  color: var(--color-navy-muted);
}

/* --------------------------------------------------------------------------
   MONOSPACE — for numbers, metrics, data
   -------------------------------------------------------------------------- */

.ts-mono {
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
}

.ts-stat-number {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-green);
  line-height: 1;
}

.ts-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* --------------------------------------------------------------------------
   LINKS
   -------------------------------------------------------------------------- */

a {
  color: var(--color-blue);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blue-hover);
}

/* Body content links (blog posts, legal pages) */
.ts-content a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   LISTS (within content areas like blog)
   -------------------------------------------------------------------------- */

.ts-content ul,
.ts-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.ts-content ul { list-style: disc; }
.ts-content ol { list-style: decimal; }

.ts-content li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   BLOCKQUOTE
   -------------------------------------------------------------------------- */

.ts-content blockquote {
  border-left: 3px solid var(--color-blue);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background-color: var(--color-blue-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.ts-content blockquote p {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   SECTION HEADINGS — layout utility
   -------------------------------------------------------------------------- */

.ts-section-header {
  margin-bottom: var(--space-12);
}

.ts-section-header--center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}

.ts-section-header h2 {
  margin-bottom: var(--space-4);
}

.ts-section-header p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.ts-section--dark .ts-section-header p {
  color: var(--color-navy-muted);
}

/* --------------------------------------------------------------------------
   RESPONSIVE TYPOGRAPHY
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  h1 { font-size: clamp(2rem, 8vw, var(--text-5xl)); }
  h2 { font-size: clamp(1.75rem, 6vw, var(--text-4xl)); }
  h3 { font-size: clamp(1.375rem, 5vw, var(--text-3xl)); }

  .ts-stat-number {
    font-size: var(--text-3xl);
  }
}
/* ==========================================================================
   TECHSPEAK — COMPONENTS
   Reusable UI elements used across service pages, blog, and inner pages.
   Buttons are defined in header.css — not repeated here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   PAGE HERO — inner pages (service pages, about, results etc.)
   -------------------------------------------------------------------------- */

.ts-page-hero {
  background-color: var(--color-navy);
  padding: var(--space-16) 0 var(--space-12);
  overflow: hidden;
  position: relative;
}

.ts-page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-navy-border), transparent);
}

.ts-page-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.ts-page-hero__content { max-width: 560px; }

.ts-page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.ts-page-hero__breadcrumb a,
.ts-page-hero__breadcrumb span {
  font-size: var(--text-xs);
  color: var(--color-navy-muted);
  text-decoration: none;
}

.ts-page-hero__breadcrumb a:hover { color: var(--color-navy-subtle); }

.ts-page-hero__breadcrumb-sep {
  color: var(--color-navy-border);
  font-size: var(--text-xs);
}

.ts-page-hero__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-blue-muted);
  margin-bottom: var(--space-3);
}

.ts-page-hero__heading {
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  font-weight: var(--weight-extrabold);
  color: var(--color-text-white);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
}

.ts-page-hero__heading span { color: var(--color-blue-muted); }

.ts-page-hero__subheadline {
  font-size: var(--text-lg);
  color: var(--color-navy-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.ts-page-hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.ts-page-hero__trust {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.ts-page-hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-navy-muted);
}

.ts-page-hero__trust-item svg { color: var(--color-green); }

/* Hero image/screenshot slot */
.ts-page-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ts-page-hero__image-wrap {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-navy-border);
  box-shadow: var(--shadow-lg);
}

.ts-page-hero__image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.ts-page-hero__image-wrap--placeholder {
  height: 360px;
  background: linear-gradient(135deg, var(--color-navy-mid), var(--color-navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.ts-page-hero__image-wrap--placeholder::after {
  content: 'Add service screenshot here';
  font-size: var(--text-xs);
  color: var(--color-navy-muted);
}

/* --------------------------------------------------------------------------
   SECTION LABEL + HEADING — shared across all pages
   -------------------------------------------------------------------------- */

.ts-section-header { margin-bottom: var(--space-10); }

.ts-section-header--center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12);
}

.ts-section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, var(--text-4xl));
  font-weight: var(--weight-extrabold);
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
}

.ts-section-header p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* Dark section heading overrides */
.ts-section--dark .ts-section-header h2,
.ts-section--dark .ts-section-header--center h2 { color: var(--color-text-white); }

.ts-section--dark .ts-section-header p,
.ts-section--dark .ts-section-header--center p { color: var(--color-navy-muted); }

/* --------------------------------------------------------------------------
   BADGE / TAG PILL
   -------------------------------------------------------------------------- */

.ts-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

.ts-badge--blue   { background: var(--color-blue-light);  color: var(--color-blue-dark); }
.ts-badge--green  { background: var(--color-green-light); color: var(--color-green-dark); }
.ts-badge--amber  { background: var(--color-amber-mid);   color: var(--color-amber-dark); }
.ts-badge--red    { background: var(--color-red-light);   color: var(--color-red); }
.ts-badge--navy   { background: var(--color-navy);        color: var(--color-navy-muted); }

/* --------------------------------------------------------------------------
   FEATURE LIST — icon + title + description rows
   Used in "What's included" sections
   -------------------------------------------------------------------------- */

.ts-feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.ts-feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.ts-feature-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue);
}

.ts-feature-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-blue-light);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ts-feature-item__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.ts-feature-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* --------------------------------------------------------------------------
   PROCESS STEPS — horizontal numbered list (service pages)
   -------------------------------------------------------------------------- */

.ts-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ts-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.ts-step__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ts-step__content { flex: 1; }

.ts-step__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.ts-step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* --------------------------------------------------------------------------
   RESULT CARD — before/after proof block (service pages)
   -------------------------------------------------------------------------- */

.ts-result-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.ts-result-block--reverse { direction: rtl; }
.ts-result-block--reverse > * { direction: ltr; }

.ts-result-block__image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.ts-result-block__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.ts-result-block__image-wrap--placeholder {
  height: 280px;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ts-result-block__image-wrap--placeholder::after {
  content: 'Add result screenshot';
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.ts-result-block__content {}

.ts-result-block__business {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.ts-result-block__problem {
  font-size: var(--text-sm);
  color: var(--color-red);
  margin-bottom: var(--space-4);
  padding-left: var(--space-3);
  border-left: 3px solid var(--color-red);
}

.ts-result-block__metric {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-green);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.ts-result-block__result {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

/* --------------------------------------------------------------------------
   PRICING TEASER — 3 tiers, service pages
   -------------------------------------------------------------------------- */

.ts-pricing-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.ts-pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  text-align: center;
  position: relative;
  transition: box-shadow var(--transition-base);
}

.ts-pricing-card:hover { box-shadow: var(--shadow-md); }

.ts-pricing-card--featured {
  border: 2px solid var(--color-blue);
  box-shadow: var(--shadow-blue);
}

.ts-pricing-card__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-blue);
  color: #fff;
  font-size: 10px;
  font-weight: var(--weight-semibold);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ts-pricing-card__tier {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-subtle);
  margin-bottom: var(--space-3);
}

.ts-pricing-card__price {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.ts-pricing-card__price span {
  font-size: var(--text-sm);
  font-weight: var(--weight-normal);
  color: var(--color-text-subtle);
  font-family: var(--font-sans);
}

.ts-pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.ts-pricing-card__link {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-blue);
  transition: color var(--transition-fast);
}

.ts-pricing-card__link:hover { color: var(--color-blue-hover); }

/* --------------------------------------------------------------------------
   INLINE CTA STRIP — appears between sections
   -------------------------------------------------------------------------- */

.ts-inline-cta {
  background: var(--color-blue-light);
  border: 1px solid var(--color-blue-mid);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.ts-inline-cta__text h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.ts-inline-cta__text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: 0;
}

.ts-inline-cta__action { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   BLOG CARD — used on archive page and homepage blog section
   -------------------------------------------------------------------------- */

.ts-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.ts-blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.ts-blog-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue);
}

.ts-blog-card__image-wrap {
  height: 200px;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.ts-blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.ts-blog-card:hover .ts-blog-card__image { transform: scale(1.04); }

.ts-blog-card__image-wrap--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-muted);
}

.ts-blog-card__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ts-blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.ts-blog-card__category {
  font-size: 10px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-blue);
  background: var(--color-blue-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.ts-blog-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.ts-blog-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
  flex: 1;
}

.ts-blog-card__title a {
  color: inherit;
  transition: color var(--transition-fast);
}

.ts-blog-card__title a:hover { color: var(--color-blue); }

.ts-blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.ts-blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-blue);
  transition: gap var(--transition-fast);
  margin-top: auto;
}

.ts-blog-card__link:hover { gap: var(--space-2); }

/* --------------------------------------------------------------------------
   PAGINATION
   -------------------------------------------------------------------------- */

.ts-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
  flex-wrap: wrap;
}

.ts-pagination a,
.ts-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.ts-pagination a:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  background: var(--color-blue-light);
}

.ts-pagination .current {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
}

/* --------------------------------------------------------------------------
   DIVIDER
   -------------------------------------------------------------------------- */

.ts-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-16) 0;
}

.ts-divider--soft { border-color: var(--color-bg-muted); }

/* --------------------------------------------------------------------------
   ALERT BOX — used in blog posts
   -------------------------------------------------------------------------- */

.ts-alert {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-xl);
  margin: var(--space-6) 0;
}

.ts-alert--blue   { background: var(--color-blue-light);  border-left: 4px solid var(--color-blue); }
.ts-alert--green  { background: var(--color-green-light); border-left: 4px solid var(--color-green); }
.ts-alert--amber  { background: var(--color-amber-mid);   border-left: 4px solid var(--color-amber); }
.ts-alert--red    { background: var(--color-red-light);   border-left: 4px solid var(--color-red); }

.ts-alert__icon { flex-shrink: 0; margin-top: 2px; }
.ts-alert__title { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-text); margin-bottom: var(--space-1); }
.ts-alert__body  { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); margin: 0; }

/* --------------------------------------------------------------------------
   RESPONSIVE — COMPONENTS
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .ts-page-hero__inner   { grid-template-columns: 1fr; text-align: center; }
  .ts-page-hero__visual  { order: -1; }
  .ts-page-hero__ctas    { justify-content: center; }
  .ts-page-hero__trust   { justify-content: center; }
  .ts-page-hero__content { max-width: 100%; }
  .ts-feature-list       { grid-template-columns: repeat(2, 1fr); }
  .ts-pricing-teaser     { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .ts-result-block       { grid-template-columns: 1fr; }
  .ts-result-block--reverse { direction: ltr; }
  .ts-blog-grid          { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ts-page-hero { padding: var(--space-10) 0 var(--space-8); }
  .ts-page-hero__heading { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .ts-page-hero__ctas { flex-direction: column; align-items: stretch; }
  .ts-page-hero__ctas .ts-btn { width: 100%; justify-content: center; }
  .ts-feature-list { grid-template-columns: 1fr; }
  .ts-blog-grid    { grid-template-columns: 1fr; }
  .ts-inline-cta   { flex-direction: column; text-align: center; }
  .ts-inline-cta__action .ts-btn { width: 100%; justify-content: center; }
}
/* ==========================================================================
   TECHSPEAK — HEADER v2
   White background. Navy text. Blue CTA. Spacious and clean.
   ========================================================================== */

/* --------------------------------------------------------------------------
   SKIP LINK
   -------------------------------------------------------------------------- */
.ts-skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-blue);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  z-index: 9999;
  transition: top var(--transition-fast);
}
.ts-skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   TOP BAR
   -------------------------------------------------------------------------- */
.ts-topbar {
  background-color: var(--color-navy);
  border-bottom: 1px solid var(--color-navy-light);
}

.ts-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  gap: var(--space-4);
}

.ts-topbar__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-navy-muted);
}

.ts-topbar__item svg { flex-shrink: 0; }

.ts-topbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ts-topbar__flag {
  font-size: var(--text-xs);
  color: var(--color-navy-muted);
}

.ts-topbar__divider {
  color: var(--color-navy-border);
  font-size: var(--text-xs);
}

/* --------------------------------------------------------------------------
   MAIN HEADER
   -------------------------------------------------------------------------- */
.ts-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

.ts-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.ts-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  height: 76px;
}

/* --------------------------------------------------------------------------
   LOGO
   -------------------------------------------------------------------------- */
.ts-header__logo { flex-shrink: 0; }

/* Outer link wrapping logo image + text block */
.ts-header__logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

/* Logo image */
.ts-header__logo-img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Fallback letter mark when no logo uploaded */
.ts-header__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-blue);
  color: #fff;
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  font-style: normal;
}

/* Text column next to logo */
.ts-header__logo-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

/* Site name */
.ts-header__logo-name {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-navy);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.ts-header__logo-wrap:hover .ts-header__logo-name {
  color: var(--color-blue);
}

/* Tagline under site name */
.ts-header__logo-tagline {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-subtle);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

/* Backwards compat — old text-only logo */
.ts-header__logo-text {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-navy);
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
}
.ts-header__logo-text:hover { color: var(--color-blue); }

.ts-header__logo img {
  height: 44px;
  width: auto;
}

/* --------------------------------------------------------------------------
   PRIMARY NAV
   -------------------------------------------------------------------------- */
.ts-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.ts-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.ts-nav__list li a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.ts-nav__list li a:hover,
.ts-nav__list li.current-menu-item > a,
.ts-nav__list li.current-page-ancestor > a {
  color: var(--color-navy);
  background-color: var(--color-bg-soft);
}

/* --------------------------------------------------------------------------
   DROPDOWN MENU
   -------------------------------------------------------------------------- */

.ts-nav__list li { position: relative; }

.ts-nav__list .sub-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  min-width: 220px;
  padding: var(--space-2);
  z-index: var(--z-dropdown);
  box-shadow: var(--shadow-lg);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  list-style: none;
}

.ts-nav__list .sub-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}

.ts-nav__list li:hover > .sub-menu,
.ts-nav__list li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ts-nav__list .sub-menu li a {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  white-space: nowrap;
  width: 100%;
}

.ts-nav__list .sub-menu li a:hover {
  color: var(--color-blue);
  background-color: var(--color-blue-light);
}

/* Chevron on parent item that has children */
.ts-nav__list li:has(> .sub-menu) > a {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.ts-nav__list li:has(> .sub-menu) > a::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.ts-nav__list li:has(> .sub-menu):hover > a::after {
  transform: rotate(180deg);
}

/* Mobile — inline dropdown */
@media (max-width: 1024px) {
  .ts-nav__list .sub-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--color-border);
    border-radius: 0;
    padding: var(--space-1) 0 var(--space-1) var(--space-4);
    margin: var(--space-1) 0 var(--space-1) var(--space-4);
    min-width: unset;
    background: transparent;
    display: none;
  }

  .ts-nav__list .sub-menu::before { display: none; }
  .ts-nav__list li.is-open > .sub-menu { display: block; }

  .ts-nav__list li:has(> .sub-menu) > a::after {
    margin-left: auto;
  }
}

/* --------------------------------------------------------------------------
   HEADER ACTIONS
   -------------------------------------------------------------------------- */
.ts-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.ts-header__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.ts-header__link:hover { color: var(--color-navy); }

/* --------------------------------------------------------------------------
   BUTTON SYSTEM
   -------------------------------------------------------------------------- */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.ts-btn:active { transform: scale(0.98); }

.ts-btn--sm  { font-size: var(--text-sm);  padding: 0.5rem 1rem; }
.ts-btn--md  { font-size: var(--text-sm);  padding: 0.65rem 1.25rem; }
.ts-btn--lg  { font-size: var(--text-base); padding: 0.875rem 1.75rem; }
.ts-btn--xl  { font-size: var(--text-lg);  padding: 1rem 2.25rem; }

.ts-btn--primary {
  background-color: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
  box-shadow: var(--shadow-blue);
}
.ts-btn--primary:hover {
  background-color: var(--color-blue-hover);
  border-color: var(--color-blue-hover);
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,99,235,0.35);
}

.ts-btn--secondary {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-border-dark);
}
.ts-btn--secondary:hover {
  background-color: var(--color-bg-soft);
  border-color: var(--color-navy);
}

.ts-btn--ghost {
  background: transparent;
  color: var(--color-blue);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.ts-btn--ghost:hover { color: var(--color-blue-hover); }

.ts-btn--white {
  background-color: #fff;
  color: var(--color-navy);
  border-color: #fff;
}
.ts-btn--white:hover {
  background-color: var(--color-bg-soft);
  color: var(--color-blue);
}

/* --------------------------------------------------------------------------
   CONTAINER
   -------------------------------------------------------------------------- */
.ts-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}
.ts-container--wide   { max-width: var(--container-wide); }
.ts-container--narrow { max-width: var(--container-narrow); }

/* --------------------------------------------------------------------------
   MOBILE TOGGLE
   -------------------------------------------------------------------------- */
.ts-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  background: transparent;
  border: 1.5px solid var(--color-border-dark);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  flex-shrink: 0;
}
.ts-nav-toggle:hover { background-color: var(--color-bg-soft); }

.ts-nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.ts-nav-toggle.is-open .ts-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ts-nav-toggle.is-open .ts-nav-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ts-nav-toggle.is-open .ts-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   OVERLAY
   -------------------------------------------------------------------------- */
.ts-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: calc(var(--z-sticky) - 1);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.ts-nav-overlay.is-visible { display: block; opacity: 1; }

/* --------------------------------------------------------------------------
   RESPONSIVE HEADER
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ts-nav-toggle { display: flex; }
  .ts-header__actions { display: none; }
  .ts-topbar__links { display: none; }

  .ts-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 88vw);
    height: 100vh;
    height: 100dvh;
    background-color: #fff;
    border-left: 1px solid var(--color-border);
    padding: calc(76px + var(--space-6)) var(--space-6) var(--space-8);
    overflow-y: auto;
    z-index: var(--z-sticky);
    transition: right var(--transition-base);
    justify-content: flex-start;
    box-shadow: var(--shadow-lg);
  }

  .ts-nav.is-open { right: 0; }

  .ts-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    width: 100%;
  }

  .ts-nav__list li a {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
    color: var(--color-text);
    border-radius: var(--radius-lg);
  }

  /* Mobile CTA inside nav */
  .ts-nav::after {
    content: '';
    display: block;
    height: 1px;
    background: var(--color-border);
    margin: var(--space-4) 0;
  }
}

@media (max-width: 640px) {
  .ts-header__inner { height: 64px; }
  .ts-topbar { display: none; }
  .ts-header__logo-text { font-size: var(--text-xl); }
}
/* ==========================================================================
   TECHSPEAK — FOOTER
   ========================================================================== */

/* --------------------------------------------------------------------------
   FOOTER WRAPPER
   -------------------------------------------------------------------------- */

.ts-footer {
  background-color: var(--color-navy);
  color: var(--color-navy-muted);
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   TOP FOOTER — 4 column grid
   -------------------------------------------------------------------------- */

.ts-footer__top {
  padding: var(--space-16) 0 var(--space-12);
  border-bottom: 1px solid var(--color-navy-border);
}

.ts-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

/* --------------------------------------------------------------------------
   BRAND COLUMN
   -------------------------------------------------------------------------- */

.ts-footer__brand img {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-5);
}

.ts-footer__logo-text {
  display: block;
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-text-white);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
  text-decoration: none;
}

.ts-footer__tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-navy-muted);
  margin-bottom: var(--space-6);
  max-width: 280px;
}

/* Social links */
.ts-footer__social {
  display: flex;
  gap: var(--space-3);
}

.ts-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-navy-border);
  color: var(--color-navy-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.ts-footer__social-link:hover {
  color: var(--color-text-white);
  border-color: var(--color-navy-subtle);
  background-color: var(--color-navy-light);
}

/* --------------------------------------------------------------------------
   NAVIGATION COLUMNS
   -------------------------------------------------------------------------- */

.ts-footer__col-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-white);
  margin-bottom: var(--space-5);
}

.ts-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ts-footer__links li a {
  font-size: var(--text-sm);
  color: var(--color-navy-muted);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.ts-footer__links li a:hover {
  color: var(--color-text-white);
}

/* --------------------------------------------------------------------------
   TRUST BADGES (in legal column)
   -------------------------------------------------------------------------- */

.ts-footer__trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-navy-border);
}

.ts-footer__trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-navy-subtle);
}

/* --------------------------------------------------------------------------
   BOTTOM BAR
   -------------------------------------------------------------------------- */

.ts-footer__bottom {
  padding: var(--space-6) 0;
}

.ts-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.ts-footer__copy {
  font-size: var(--text-xs);
  color: var(--color-navy-subtle);
  margin: 0;
}

.ts-footer__made {
  font-size: var(--text-xs);
  color: var(--color-navy-subtle);
  margin: 0;
}

.ts-footer__made span {
  color: var(--color-navy-muted);
}

/* --------------------------------------------------------------------------
   RESPONSIVE — FOOTER
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .ts-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .ts-footer__brand {
    grid-column: 1 / -1;
  }

  .ts-footer__tagline {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .ts-footer__top {
    padding: var(--space-10) 0 var(--space-8);
  }

  .ts-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8) var(--space-6);
  }

  .ts-footer__brand {
    grid-column: 1 / -1;
  }

  .ts-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

@media (max-width: 480px) {
  .ts-footer__grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   TECHSPEAK — SERVICE PAGES + SINGLE POST STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   SERVICE PAGE — Problem section
   -------------------------------------------------------------------------- */

.ts-svc-problems {
  background: var(--color-amber-light);
  border-top: 3px solid var(--color-amber-border);
  border-bottom: 3px solid var(--color-amber-border);
  padding: var(--section-py) 0;
}

.ts-svc-problems .ts-section-header--center h2 { color: var(--color-amber-dark); }
.ts-svc-problems .ts-section-header--center p  { color: var(--color-amber-darker); }

.ts-svc-problems__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.ts-svc-problem-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border-left: 3px solid var(--color-amber);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.ts-svc-problem-item__icon {
  font-size: var(--text-lg);
  color: var(--color-amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.ts-svc-problem-item p {
  font-size: var(--text-base);
  color: var(--color-amber-darker);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* --------------------------------------------------------------------------
   BLOG FILTER BAR
   -------------------------------------------------------------------------- */

.ts-blog-filter {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
  position: sticky;
  top: 76px; /* matches header height */
  z-index: var(--z-raised);
}

.ts-blog-filter__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.ts-blog-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: #fff;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.ts-blog-filter__btn:hover {
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.ts-blog-filter__btn.is-active {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}

.ts-blog-filter__count {
  font-size: 10px;
  background: rgba(255,255,255,0.2);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.ts-blog-filter__btn.is-active .ts-blog-filter__count {
  background: rgba(255,255,255,0.2);
}

.ts-blog-filter__btn:not(.is-active) .ts-blog-filter__count {
  background: var(--color-bg-muted);
  color: var(--color-text-subtle);
}

/* Archive section */
.ts-blog-archive { padding: var(--space-12) 0 var(--space-16); }

/* --------------------------------------------------------------------------
   SINGLE POST — hero
   -------------------------------------------------------------------------- */

.ts-post-hero {
  padding: var(--space-12) 0;
}

.ts-post-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.ts-post-hero__breadcrumb a,
.ts-post-hero__breadcrumb span {
  font-size: var(--text-xs);
  color: var(--color-navy-muted);
  text-decoration: none;
}

.ts-post-hero__breadcrumb a:hover { color: #fff; }

.ts-post-hero__breadcrumb span[aria-hidden] { color: var(--color-navy-border); }

.ts-post-hero__title {
  font-size: clamp(1.75rem, 4vw, var(--text-4xl));
  font-weight: var(--weight-extrabold);
  color: #fff;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
}

.ts-post-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.ts-post-hero__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-navy-muted);
}

.ts-post-hero__avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
}

.ts-post-hero__sep { color: var(--color-navy-border); }

.ts-post-hero__date,
.ts-post-hero__read-time {
  font-size: var(--text-sm);
  color: var(--color-navy-muted);
}

/* Featured image */
.ts-post-featured-image {
  background: var(--color-navy);
  padding-bottom: var(--space-10);
}

.ts-post-featured-image__img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  display: block;
}

/* --------------------------------------------------------------------------
   SINGLE POST — layout (content + sidebar)
   -------------------------------------------------------------------------- */

.ts-post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-12);
  align-items: start;
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
}

/* --------------------------------------------------------------------------
   SINGLE POST — content area
   -------------------------------------------------------------------------- */

.ts-post-content.ts-content h2 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.ts-post-content.ts-content h3 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.ts-post-content.ts-content h4 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.ts-post-content.ts-content p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.ts-post-content.ts-content ul,
.ts-post-content.ts-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}

.ts-post-content.ts-content li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-2);
}

.ts-post-content.ts-content img {
  border-radius: var(--radius-xl);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-md);
}

.ts-post-content.ts-content blockquote {
  border-left: 4px solid var(--color-blue);
  background: var(--color-blue-light);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.ts-post-content.ts-content blockquote p {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-navy);
  margin: 0;
}

/* TOC */
.ts-toc {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
}

.ts-toc__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ts-toc__nav a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
}

.ts-toc__nav a:hover { color: var(--color-blue); }

/* Post tags */
.ts-post-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.ts-post-tag {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.ts-post-tag:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

/* --------------------------------------------------------------------------
   SIDEBAR
   -------------------------------------------------------------------------- */

.ts-post-sidebar { display: flex; flex-direction: column; gap: var(--space-6); }

/* CTA — position controlled by JS on desktop */
.ts-sidebar-cta {
  background: var(--color-navy);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
}

/* Recent posts widget */
.ts-sidebar-recent {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}

.ts-sidebar-recent a:hover { color: var(--color-blue) !important; }

.ts-sidebar-cta__icon {
  width: 48px;
  height: 48px;
  background: var(--color-blue);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: var(--space-4);
}

.ts-sidebar-cta__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: #fff;
  margin-bottom: var(--space-2);
}

.ts-sidebar-cta__desc {
  font-size: var(--text-sm);
  color: var(--color-navy-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.ts-sidebar-cta__list {
  list-style: none;
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ts-sidebar-cta__list li {
  font-size: var(--text-xs);
  color: var(--color-navy-muted);
}

/* Services mini list */
.ts-sidebar-services {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}

.ts-sidebar-services__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ts-sidebar-services__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.ts-sidebar-services__list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.ts-sidebar-services__list li a:hover {
  background: #fff;
  color: var(--color-blue);
}

/* Related posts */
.ts-related { padding: var(--section-py) 0; }

/* --------------------------------------------------------------------------
   FAQ — copied from homepage.css so service pages have full styles
   -------------------------------------------------------------------------- */

.ts-faq__list { display: flex; flex-direction: column; gap: var(--space-2); }

.ts-faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  transition: border-color var(--transition-fast);
}

.ts-faq-item:has(.ts-faq-item__trigger[aria-expanded="true"]) {
  border-color: var(--color-blue);
}

.ts-faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: #fff;
  cursor: pointer;
  border: none;
  text-align: left;
  transition: background-color var(--transition-fast);
}

.ts-faq-item__trigger:hover { background: var(--color-bg-soft); }
.ts-faq-item__trigger[aria-expanded="true"] { background: var(--color-bg-soft); }

.ts-faq-item__question {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  line-height: var(--leading-snug);
}

.ts-faq-item__icon {
  color: var(--color-blue);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.ts-faq-item__trigger[aria-expanded="true"] .ts-faq-item__icon {
  transform: rotate(180deg);
}

.ts-faq-item__answer {
  padding: 0 var(--space-6) var(--space-5);
  background: var(--color-bg-soft);
}

.ts-faq-item__answer p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* --------------------------------------------------------------------------
   FINAL CTA — service page version (inside .ts-section--dark)
   -------------------------------------------------------------------------- */

.ts-section--dark .ts-cta__heading {
  font-size: clamp(1.75rem, 3vw, var(--text-4xl));
  font-weight: var(--weight-extrabold);
  color: #fff;
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.ts-section--dark .ts-cta__subtext {
  font-size: var(--text-lg);
  color: var(--color-navy-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.ts-section--dark .ts-cta__reassurance {
  font-size: var(--text-sm);
  color: var(--color-navy-subtle);
  margin-top: var(--space-4);
  display: block;
}

/* --------------------------------------------------------------------------
   SECONDARY BUTTON ON DARK BACKGROUNDS
   Override the light-on-light problem
   -------------------------------------------------------------------------- */

.ts-section--dark .ts-btn--secondary,
.ts-page-hero .ts-btn--secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
}

.ts-section--dark .ts-btn--secondary:hover,
.ts-page-hero .ts-btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   RESPONSIVE — SERVICE + BLOG
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .ts-post-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .ts-sidebar-cta--sticky { position: static; }

  .ts-post-sidebar {
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .ts-svc-problems__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ts-post-sidebar { grid-template-columns: 1fr; }
  .ts-blog-filter { top: 64px; }
  .ts-post-hero__title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .ts-post-featured-image__img { border-radius: var(--radius-lg); max-height: 260px; }
}
/* ==========================================================================
   TECHSPEAK — RESPONSIVE v2
   Mobile → Tablet → Desktop. Tests all resolutions.
   ========================================================================== */

/* ==========================================================================
   TABLET — 641px to 1024px
   ========================================================================== */

@media (max-width: 1024px) {

  /* HERO */
  .ts-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    text-align: center;
    padding-bottom: var(--space-12);
  }

  .ts-hero__visual { order: -1; justify-content: center; }

  .ts-hero__photo-wrap,
  .ts-hero__photo-wrap--placeholder { max-width: 480px; height: 420px; margin: 0 auto; }
  .ts-hero__photo { height: 420px; }

  .ts-hero__subheadline { max-width: 100%; }
  .ts-hero__ctas { justify-content: center; }
  .ts-hero__wins { align-items: center; }
  .ts-hero__proof { justify-content: center; }

  .ts-hero__metric-card--views { left: 0; bottom: var(--space-4); }
  .ts-hero__metric-card--rank  { left: 0; top: var(--space-4); }

  /* STATS BAR */
  .ts-hero__stats-grid { grid-template-columns: repeat(3, 1fr); }
  .ts-hero__stat:nth-child(3) { border-right: none; }
  .ts-hero__stat:nth-child(4),
  .ts-hero__stat:nth-child(5) { border-top: 1px solid var(--color-navy-border); }

  /* PROBLEMS */
  .ts-problems__grid { grid-template-columns: repeat(2, 1fr); }
  .ts-problems__footer { flex-direction: column; align-items: center; text-align: center; }

  /* SERVICES */
  .ts-services__grid { grid-template-columns: repeat(2, 1fr); }

  /* PROOF STATS */
  .ts-proof__stats-row { grid-template-columns: repeat(3, 1fr); }
  .ts-proof__stat-block:nth-child(3) { border-right: none; }
  .ts-proof__stat-block:nth-child(4),
  .ts-proof__stat-block:nth-child(5) { border-top: 1px solid var(--color-navy-border); }

  /* PROOF CASES */
  .ts-cases-grid { grid-template-columns: 1fr 1fr; }

  /* PROCESS */
  .ts-process__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
  .ts-process-step__line { display: none; }

  /* TESTIMONIALS */
  .ts-testimonials__grid { grid-template-columns: repeat(2, 1fr); }

  /* CTA */
  .ts-cta__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .ts-cta__stats { grid-template-columns: repeat(4, 1fr); width: 100%; }

}

/* ==========================================================================
   MOBILE — max-width: 640px
   ========================================================================== */

@media (max-width: 640px) {

  /* HERO */
  .ts-hero { padding-top: var(--space-10); }

  .ts-hero__headline { font-size: clamp(1.75rem, 8vw, 2.5rem); }

  .ts-hero__photo-wrap,
  .ts-hero__photo-wrap--placeholder { height: 300px; }
  .ts-hero__photo { height: 300px; }

  .ts-hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .ts-hero__ctas .ts-btn { width: 100%; justify-content: center; }

  .ts-hero__wins { align-items: flex-start; text-align: left; }

  .ts-hero__metric-card { display: none; } /* hide floating cards on small screens */

  /* STATS BAR */
  .ts-hero__stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .ts-hero__stat { border-right: 1px solid var(--color-navy-border); border-bottom: 1px solid var(--color-navy-border); }
  .ts-hero__stat:nth-child(2n) { border-right: none; }
  .ts-hero__stat:nth-child(5)  { grid-column: 1 / -1; border-bottom: none; border-right: none; }

  /* PROBLEMS */
  .ts-problems__grid { grid-template-columns: 1fr; }

  /* SERVICES */
  .ts-services__grid { grid-template-columns: 1fr; }
  .ts-service-card__image-wrap { height: 180px; }

  /* PROOF STATS */
  .ts-proof__stats-row {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-xl);
  }

  .ts-proof__stat-block { border-bottom: 1px solid var(--color-navy-border); }
  .ts-proof__stat-block:nth-child(2n) { border-right: none; }
  .ts-proof__stat-block:nth-child(5) { grid-column: 1 / -1; border-bottom: none; border-right: none; }

  /* SCREENSHOTS */
  .ts-screenshots-grid { grid-template-columns: 1fr; }

  /* CASES */
  .ts-cases-grid { grid-template-columns: 1fr; }

  /* PROCESS */
  .ts-process__grid { grid-template-columns: 1fr; gap: var(--space-6); }

  .ts-process-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-4);
  }

  .ts-process-step__top { width: auto; margin-bottom: 0; flex-shrink: 0; }
  .ts-process-step__icon { display: none; }

  .ts-process__cta .ts-btn { width: 100%; justify-content: center; }

  /* TESTIMONIALS */
  .ts-testimonials__grid { grid-template-columns: 1fr; }

  /* FAQ */
  .ts-faq-item__trigger { padding: var(--space-4); }
  .ts-faq-item__question { font-size: var(--text-sm); }
  .ts-faq-item__answer { padding: 0 var(--space-4) var(--space-4); }

  /* CTA */
  .ts-cta__inner { grid-template-columns: 1fr; }
  .ts-cta__stats { grid-template-columns: repeat(2, 1fr); }
  .ts-cta__actions { flex-direction: column; align-items: stretch; }
  .ts-cta__actions .ts-btn { width: 100%; justify-content: center; }
  .ts-cta__reassurance { text-align: center; }

}

/* ==========================================================================
   EXTRA SMALL — max-width: 420px
   ========================================================================== */

@media (max-width: 420px) {

  .ts-hero__proof { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .ts-hero__stat-number { font-size: var(--text-xl); }
  .ts-cta__stats { grid-template-columns: 1fr 1fr; }
  .ts-proof__stat-number { font-size: var(--text-2xl); }

}

/* ==========================================================================
   LARGE DESKTOP — 1400px+
   ========================================================================== */

@media (min-width: 1400px) {

  .ts-hero__headline { font-size: 4rem; }
  .ts-testimonials__grid { grid-template-columns: repeat(4, 1fr); }
  .ts-services__grid { grid-template-columns: repeat(3, 1fr); }

}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .ts-header, .ts-topbar, .ts-footer,
  .ts-nav-toggle, .ts-nav-overlay,
  .ts-hero__ctas, .ts-cta,
  .ts-hero__metric-card { display: none !important; }

  body { font-size: 12pt; color: #000; background: #fff; }
  .ts-hero__headline, h2, h3 { color: #000; }
  .ts-hero__stats-bar { background: #f0f0f0; }
  .ts-hero__stat-number { color: #000; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

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


/* ==========================================================================
   MOBILE SAFETY — prevent horizontal overflow on all pages
   ========================================================================== */

@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Ensure all containers respect mobile width */
  .ts-container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    max-width: 100%;
  }

  /* Prevent any grid from overflowing */
  [class*="__grid"],
  [class*="-grid"] {
    min-width: 0;
  }

  /* Prevent absolute positioned elements from causing overflow */
  .ts-hero__visual {
    overflow: hidden;
  }

  /* Text overflow protection */
  p, h1, h2, h3, h4, h5, h6, li, span, a {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}
