/* ==========================================================================
   Patil Web Solutions — Design System
   Premium minimal enterprise: #111418 ink on #FAFAF8 warm white,
   single deep-teal accent #0F5257. No gradients, no glassmorphism.
   ========================================================================== */

/* ---- Tokens ---------------------------------------------------------- */
:root {
  --ink: #111418;
  --ink-soft: #3A4048;
  --ink-mute: #6B7280;
  --bg: #FAFAF8;
  --bg-alt: #F3F1EC;
  --surface: #FFFFFF;
  --accent: #0F5257;
  --accent-dark: #0A3A3E;
  --accent-tint: #E4EFEF;
  --border: #E5E2DC;
  --border-strong: #D6D2C9;
  --error: #B3261E;
  --success: #1B6E3C;

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

  --container: 1200px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-hover: 0 10px 30px rgba(17, 20, 24, 0.08);
  --header-h: 72px;
  --section-y: clamp(64px, 9vw, 120px);

  --fs-hero: 4.25rem;
  --fs-h2: 2.6rem;
  --fs-h3: 1.45rem;
  --fs-lead: 1.2rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-width: 320px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 650; }
h4 { font-size: 1.05rem; font-weight: 650; }

p { margin: 0 0 1.1em; }
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: break-word;
}
a:hover { color: var(--accent-dark); }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

::selection { background: var(--accent); color: #fff; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Typography helpers ---------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--ink-mute); }
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.page-narrow { max-width: 860px; }
.content-narrow { max-width: 780px; margin-top: 3rem; }
.section-link { margin-top: 2rem; }
.section-spaced { margin-top: 2rem; }
.section-spaced-lg { margin-top: 2.5rem; }
.center-actions { justify-content: center; }
.compact-title { font-size: 2.2rem; }
.page-title-sm { font-size: 2.6rem; }
.article-title { font-size: 3rem; }
.inline-link-reset { color: inherit; text-decoration: none; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

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

.btn-outline { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-alt); color: var(--ink); }

.btn-ghost-light {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost-light:hover { border-color: #fff; color: #fff; }

.btn-lg { padding: 1.05rem 2.1rem; font-size: 1rem; }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(17, 20, 24, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark svg { display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0;
}
.brand-name em { font-style: normal; font-weight: 500; color: var(--ink-mute); }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-list a:hover { color: var(--ink); }
.nav-list a.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.nav-cta { padding: 0.7rem 1.35rem; }

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

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 110px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}
.hero-inner { position: relative; max-width: 840px; }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { max-width: 620px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-actions--spaced { margin-top: 1.6rem; }
.hero-note {
  margin-top: 2.4rem;
  font-size: 0.92rem;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-note::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--border-strong);
  display: inline-block;
}

/* ---- Sections ---------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--ink); color: var(--bg); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .lead, .section.dark p { color: rgba(250, 250, 248, 0.78); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }

/* ---- Trust strip ------------------------------------------------------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-item {
  background: var(--surface);
  padding: 1.8rem 1.6rem;
}
.trust-item .trust-label {
  font-size: 0.8rem; font-weight: 650; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.5rem;
}
.trust-item p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---- Numbered service cards -------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  list-style: none; margin: 0; padding: 0;
  counter-reset: svc;
}
.service-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.6rem;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
  counter-increment: svc;
}
.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  color: var(--ink);
}
.service-card .card-num {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 650;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1.1rem;
}
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--ink-mute); font-size: 0.95rem; margin-bottom: 1.2rem; flex: 1; }
.service-card .card-link {
  font-size: 0.9rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.service-card .card-link::after { content: "→"; transition: transform .18s ease; }
.service-card:hover .card-link::after { transform: translateX(4px); }

/* ---- Generic card grid -------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  list-style: none; margin: 0; padding: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
a.card { display: block; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-hover); }
a.card:hover { transform: translateY(-3px); color: var(--ink); }
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--ink-mute); font-size: 0.95rem; margin-bottom: 0; }
.card .card-meta {
  display: block; font-size: 0.8rem; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.8rem;
}

/* ---- Industry grid ------------------------------------------------------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none; margin: 0; padding: 0;
}
.industry-tile {
  display: flex; flex-direction: column; gap: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 0.98rem;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.industry-tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--ink);
}
.industry-tile .tile-icon { color: var(--accent); }
.industry-tile small { color: var(--ink-mute); font-weight: 500; }

/* ---- Rich fallback content -------------------------------------------------- */
.fallback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fallback-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.fallback-panel h3 { margin-bottom: 0.45rem; }
.fallback-panel p { color: var(--ink-mute); font-size: 0.95rem; margin: 0; }
.empty-state--rich {
  text-align: left;
  padding: clamp(1.7rem, 5vw, 2.6rem);
}
.empty-state--rich .fallback-grid { margin-top: 1.4rem; }

/* ---- Process steps -------------------------------------------------------- */
.process-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0;
  counter-reset: step;
}
.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.6rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  counter-increment: step;
}
.process-step:last-child { border-bottom: 1px solid var(--border); }
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0; line-height: 1.1;
}
.process-step h3 { margin-bottom: 0.35rem; }
.process-step p { color: var(--ink-soft); margin: 0; max-width: 640px; }
.process-step--wide { grid-template-columns: 110px 1fr; }
.process-title { font-size: 1.5rem; }
.two-column-list {
  columns: 2;
  max-width: 680px;
  margin-top: 1rem;
}
.two-column-list li { break-inside: avoid; }

/* ---- Split feature rows ---------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split-start { align-items: start; }

/* ---- FAQ accordion ------------------------------------------------------------ */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-heading { margin: 0; }
.faq-question {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 1.2rem;
  background: none; border: 0; cursor: pointer;
  padding: 1.35rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600; text-align: left;
  color: var(--ink);
}
.faq-question .faq-icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  position: relative;
  transition: background .18s ease, border-color .18s ease;
}
.faq-question .faq-icon::before,
.faq-question .faq-icon::after {
  content: ""; position: absolute; background: var(--ink);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  transition: transform .2s ease, background .18s ease;
}
.faq-question .faq-icon::before { width: 10px; height: 1.5px; }
.faq-question .faq-icon::after { width: 1.5px; height: 10px; }
.faq-question[aria-expanded="true"] .faq-icon { background: var(--accent); border-color: var(--accent); }
.faq-question[aria-expanded="true"] .faq-icon::before,
.faq-question[aria-expanded="true"] .faq-icon::after { background: #fff; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .28s ease;
}
.faq-answer-inner { padding: 0 0.2rem 1.5rem; color: var(--ink-soft); max-width: 720px; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

/* ---- CTA band ------------------------------------------------------------------ */
.cta-band {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.6rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0; max-width: 540px; }
.cta-band .cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---- Page hero (inner pages) ------------------------------------------------------- */
.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
}
.page-hero .lead { max-width: 680px; }

/* ---- Breadcrumbs --------------------------------------------------------------------- */
.breadcrumbs { padding: 1.1rem 0 0; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  list-style: none; margin: 0; padding: 0;
  font-size: 0.86rem; color: var(--ink-mute);
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumbs a { color: var(--ink-mute); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ---- Prose (CMS content) ---------------------------------------------------------------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.8rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose a { font-weight: 500; }
.prose blockquote {
  margin: 2em 0; padding: 0.2em 0 0.2em 1.4em;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft); font-size: 1.05rem;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.7rem 0.9rem; text-align: left; }
.prose th { background: var(--bg-alt); font-family: var(--font-display); }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }

/* ---- Forms ------------------------------------------------------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.lead-form { display: grid; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: 600; }
.form-field label .req { color: var(--error); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  width: 100%;
  min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 82, 87, 0.14);
}
.form-hint { font-size: 0.82rem; color: var(--ink-mute); margin: 0; }
.form-status { margin: 0.6rem 0 0; font-size: 0.92rem; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--success); }
.form-error-summary {
  border: 1px solid var(--error);
  border-left-width: 4px;
  background: #FDF3F2;
  color: var(--error);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
}
.form-error-summary ul { margin: 0.4rem 0 0; }
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---- Tabs (contact page) ------------------------------------------------------------------ */
.tab-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  list-style: none; margin: 0 0 1.8rem; padding: 0;
}
.tab-list button {
  font: inherit; font-weight: 600; font-size: 0.92rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 999px;
  cursor: pointer;
  transition: all .16s ease;
}
.tab-list button:hover { border-color: var(--ink); }
.tab-list button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel[hidden] { display: none; }
.blog-filter .btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
}

/* ---- Contact / search / article helpers ------------------------------------ */
.contact-heading { font-size: 1.4rem; }
.contact-list { font-size: 1rem; }
.search-form { max-width: 560px; margin-top: 1.4rem; }
.search-row { display: flex; gap: 0.6rem; }
.search-input {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.result-list { border-top: 0; }
.result-link {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
.result-meta { font-weight: 400; font-size: 0.82rem; }
.result-excerpt { font-weight: 400; font-size: 0.92rem; }
.featured-image {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
  max-width: 900px;
  width: 100%;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.media-grid img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.quote-card { margin-top: 2.5rem; }
.related-heading { margin-bottom: 2rem; }
.related-nav { max-width: 420px; margin: 3rem auto 0; text-align: left; }

/* ---- Blog / case study cards ---------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; }
.post-card .post-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  margin: -0.4rem -0.4rem 1.1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  overflow: hidden;
}
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-meta {
  font-size: 0.82rem; color: var(--ink-mute);
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

/* ---- Testimonials ---------------------------------------------------------------------------- */
.testimonial-card blockquote {
  margin: 0; padding: 0;
  font-size: 1.02rem; color: var(--ink-soft); line-height: 1.7;
}
.testimonial-card .testimonial-author {
  margin-top: 1.2rem; font-size: 0.92rem;
}
.testimonial-card .testimonial-author strong { display: block; font-weight: 650; }
.testimonial-card .testimonial-author span { color: var(--ink-mute); }

/* ---- Stats band -------------------------------------------------------------------------------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: left;
}
.stat .stat-value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700; letter-spacing: 0;
  color: var(--accent);
  display: block; margin-bottom: 0.3rem;
}
.stat .stat-label { color: var(--ink-mute); font-size: 0.95rem; margin: 0; }

/* ---- Pagination ---------------------------------------------------------------------------------- */
.pagination {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin-top: 2.6rem;
}
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 0.92rem;
  transition: all .15s ease;
}
.page-link:hover { border-color: var(--ink); color: var(--ink); }
.page-link.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---- Empty states --------------------------------------------------------------------------------- */
.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
  color: var(--ink-mute);
}
.empty-state h3 { color: var(--ink); }

/* ---- Footer ---------------------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
}
.brand-name--footer { font-size: 1.15rem; }
.footer-brand p { color: var(--ink-soft); max-width: 320px; margin-top: 1rem; }
.footer-contact { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; color: var(--ink-soft); }
.footer-contact a { overflow-wrap: anywhere; }
.footer-heading {
  font-size: 0.82rem; font-weight: 650;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: 0.94rem; }
.footer-col a:hover { color: var(--accent); }
.footer-newsletter p { font-size: 0.92rem; color: var(--ink-mute); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.newsletter-form input {
  flex: 1 1 180px;
  min-width: 0;
  font: inherit; padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.newsletter-form input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 82, 87, 0.14);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: 0.86rem; color: var(--ink-mute);
}
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; padding: 0; }
.footer-legal li { margin: 0; }
.footer-legal a { color: var(--ink-mute); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }

/* ---- Related links --------------------------------------------------------------------------------- */
.related-links {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0;
  border-top: 1px solid var(--border);
}
.related-links li { margin: 0; border-bottom: 1px solid var(--border); }
.related-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 0.2rem;
  text-decoration: none; color: var(--ink); font-weight: 600;
  transition: color .15s ease, padding-left .18s ease;
}
.related-links a::after { content: "→"; color: var(--accent); }
.related-links a:hover { color: var(--accent); padding-left: 0.6rem; }

/* ---- 404 -------------------------------------------------------------------------------------------- */
.error-page { text-align: center; padding-block: clamp(80px, 14vw, 160px); }
.error-page .error-code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700; letter-spacing: 0;
  color: var(--accent); line-height: 1; margin: 0 0 1rem;
}
.error-page p { color: var(--ink-mute); max-width: 460px; margin: 0 auto 2.2rem; }

/* ---- Reveal on scroll -------------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Sticky WhatsApp button (rendered only when number configured) -------------------------------------- */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 18px rgba(17, 20, 24, 0.22);
  transition: transform .18s ease, background .18s ease;
}
.whatsapp-float:hover { background: var(--accent-dark); transform: scale(1.06); color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --fs-hero: 3.5rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.35rem;
    --fs-lead: 1.15rem;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  :root {
    --fs-hero: 3rem;
    --fs-h2: 2rem;
    --fs-h3: 1.28rem;
    --fs-lead: 1.08rem;
  }

  .compact-title { font-size: 2rem; }
  .page-title-sm { font-size: 2.2rem; }
  .article-title { font-size: 2.4rem; }
  .prose h2 { font-size: 1.55rem; }
  .stat .stat-value { font-size: 2.2rem; }
  .error-page .error-code { font-size: 6rem; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem clamp(20px, 4vw, 40px) 1.6rem;
    box-shadow: 0 24px 40px rgba(17, 20, 24, 0.1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list li { margin: 0; border-bottom: 1px solid var(--border); }
  .nav-list a {
    display: block;
    padding: 0.95rem 0.2rem;
    font-size: 1.05rem;
    border-bottom: 0;
  }
  .nav-list a.is-active { color: var(--accent); }
  .nav-cta { margin-top: 1.1rem; width: 100%; }

  .cta-band { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 54px 1fr; gap: 1.1rem; }
  .process-step--wide { grid-template-columns: 64px 1fr; }
  .process-step .step-num { font-size: 1.5rem; }
  .two-column-list { columns: 1; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }

  .brand { min-width: 0; }
  .brand-name { font-size: 1rem; }
  .brand-name em { display: block; }

  .cta-band { padding: 2rem 1.4rem; }
  .cta-band .cta-actions,
  .cta-band .cta-actions .btn,
  .newsletter-form .btn,
  .lead-form > .btn {
    width: 100%;
  }

  .tab-list {
    display: grid;
    grid-template-columns: 1fr;
  }
  .tab-list button { width: 100%; }

  .search-row {
    flex-direction: column;
  }
  .search-row .btn { width: 100%; }
}

@media (max-width: 560px) {
  :root {
    --fs-hero: 2.35rem;
    --fs-h2: 1.75rem;
    --fs-h3: 1.18rem;
    --fs-lead: 1.02rem;
  }

  .compact-title { font-size: 1.7rem; }
  .page-title-sm { font-size: 1.9rem; }
  .article-title { font-size: 2rem; }
  .prose h2 { font-size: 1.4rem; }
  .stat .stat-value { font-size: 1.9rem; }
  .error-page .error-code { font-size: 4.5rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .trust-strip { grid-template-columns: 1fr; }
  .service-grid, .card-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-legal { gap: 0.7rem 1rem; }
}

@media (max-width: 420px) {
  :root {
    --fs-hero: 2.1rem;
    --fs-h2: 1.55rem;
  }

  .container { padding-inline: 16px; }
  .page-hero { padding-top: 40px; }
  .hero { padding-top: 56px; }
  .btn {
    width: 100%;
    padding-inline: 1rem;
    min-height: 44px;
  }
  .link-arrow { align-items: flex-start; }
  .process-step,
  .process-step--wide {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .faq-question {
    padding-block: 1rem;
    font-size: 1rem;
  }
  .empty-state { text-align: left; }
  .empty-state--rich { padding: 1.3rem; }
  .fallback-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .brand-name { font-size: 0.92rem; }
  .brand-mark svg { width: 26px; height: 26px; }
  .header-inner { gap: 0.75rem; }
  .nav-toggle { width: 40px; height: 40px; }
}

@media (min-width: 1440px) {
  :root { --container: 1280px; }
}

/* ==========================================================================
   Reduced motion — honor user preference everywhere
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header, .site-footer, .cta-band, .breadcrumbs { display: none; }
  body { background: #fff; }
}
