/* ==========================================================================
   TechWorksLab - global stylesheet
   ========================================================================== */

:root {
    --navy: #0a2540;
    --navy-2: #0f2f55;
    --ink: #16263a;
    --body: #46566b;
    --muted: #6b7a90;
    --accent: #15589f;
    --accent-dark: #0f4179;
    --accent-soft: #e8f0fa;
    --line: #e3e8ef;
    --bg: #ffffff;
    --bg-alt: #f5f8fc;
    --radius: 8px;
    --maxw: 1180px;
    --shadow-sm: 0 1px 2px rgba(16, 38, 64, 0.06);
    --shadow-md: 0 12px 30px rgba(16, 38, 64, 0.08);
    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--sans);
    line-height: 1.65;
    color: var(--body);
    background: var(--bg);
    font-size: 17px;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-dark);
}

h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-light {
    background: #fff;
    color: var(--navy);
}

.btn-light:hover {
    background: var(--accent-soft);
    color: var(--navy);
}

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

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

/* Header / Navigation ----------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand img {
    height: 34px;
    width: auto;
}

.brand span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
}

.nav-links a {
    color: var(--body);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-cta {
    display: inline-flex;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: 0.3s;
}

/* Hero -------------------------------------------------------------------- */
.hero {
    background: linear-gradient(180deg, #fbfdff 0%, #eef3fa 100%);
    border-bottom: 1px solid var(--line);
    padding: 5.5rem 0 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.1rem;
}

.hero h1 {
    font-size: 3.1rem;
    line-height: 1.08;
    margin-bottom: 1.3rem;
    color: var(--navy);
}

.hero-lede {
    font-size: 1.18rem;
    color: var(--body);
    margin-bottom: 2rem;
    max-width: 36ch;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 1.75rem;
}

.hero-panel h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.hero-panel ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-panel li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.hero-panel li i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    width: 22px;
    text-align: center;
}

.hero-panel li strong {
    display: block;
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 600;
}

.hero-panel li span {
    font-size: 0.88rem;
    color: var(--muted);
}

/* Page header (interior pages) -------------------------------------------- */
.page-header {
    background: var(--navy);
    color: #fff;
    padding: 4rem 0 3.5rem;
}

.page-header .eyebrow {
    color: #7eb0e8;
}

.page-header h1 {
    color: #fff;
    font-size: 2.6rem;
    margin-bottom: 1rem;
    max-width: 22ch;
}

.page-header p {
    color: #c4d2e3;
    font-size: 1.12rem;
    max-width: 60ch;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #8fa6c2;
    margin-bottom: 1.25rem;
}

.breadcrumb a {
    color: #8fa6c2;
}

.breadcrumb a:hover {
    color: #fff;
}

/* Sections ---------------------------------------------------------------- */
section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-navy {
    background: var(--navy);
    color: #c4d2e3;
}

.section-head {
    max-width: 64ch;
    margin-bottom: 3rem;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head h2 {
    font-size: 2.1rem;
    margin-bottom: 1rem;
}

.section-head p {
    font-size: 1.1rem;
    color: var(--body);
}

.section-navy .section-head h2 {
    color: #fff;
}

.section-navy .section-head p {
    color: #c4d2e3;
}

/* Card grids -------------------------------------------------------------- */
.grid {
    display: grid;
    gap: 1.75rem;
}

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

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card .card-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.card p {
    color: var(--body);
    font-size: 0.97rem;
}

.card ul {
    list-style: none;
    margin-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.93rem;
    color: var(--body);
}

.card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.25rem;
}

.card-tags span {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
}

/* Facts / metrics strip --------------------------------------------------- */
.facts {
    background: var(--navy);
    padding: 3.5rem 0;
}

.facts .trusted {
    text-align: center;
    color: #8fa6c2;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 2.5rem;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.fact h3 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.fact p {
    color: #9fb3cc;
    font-size: 0.92rem;
}

.standards {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(143, 166, 194, 0.25);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.25rem;
}

.standards span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #c4d2e3;
    font-size: 0.9rem;
    font-weight: 600;
}

.standards i {
    color: #7eb0e8;
}

/* Split content block ----------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.split h2 {
    font-size: 1.9rem;
    margin-bottom: 1.1rem;
}

.split p {
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.feature-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.feature-list i {
    color: var(--accent);
    margin-top: 0.25rem;
}

.feature-list strong {
    display: block;
    color: var(--ink);
}

.feature-list span {
    font-size: 0.95rem;
    color: var(--body);
}

.panel-list {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2rem;
}

.panel-list h4 {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

/* Package grid ------------------------------------------------------------ */
.pkg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.pkg {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 1.25rem 1.4rem;
}

.pkg-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.pkg-top code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.pkg p {
    font-size: 0.88rem;
    color: var(--muted);
}

.tag {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.6rem;
    border-radius: 11px;
    white-space: nowrap;
}

.tag.adam { background: #e3edfb; color: #1e40af; }
.tag.sdtm { background: #e2f5e9; color: #166534; }
.tag.tlg  { background: #fbf0d8; color: #92400e; }
.tag.app  { background: #eee9fb; color: #6d28d9; }
.tag.sub  { background: #fbe4e4; color: #b91c1c; }
.tag.meta { background: #d9f4f7; color: #155e75; }

.note {
    margin-top: 2.5rem;
    color: var(--body);
    font-size: 0.95rem;
    background: var(--accent-soft);
    border: 1px solid #cfe0f3;
    padding: 1.1rem 1.4rem;
    border-radius: 10px;
}

/* Steps ------------------------------------------------------------------- */
.steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.step {
    position: relative;
}

.step .num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--body);
}

/* Insights / blog --------------------------------------------------------- */
.posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.post-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.post-thumb {
    height: 7px;
    background: linear-gradient(90deg, var(--accent), #4a8fd6);
}

.post-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.post-card h3 {
    font-size: 1.18rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.post-card h3 a {
    color: var(--ink);
}

.post-card h3 a:hover {
    color: var(--accent);
}

.post-card p {
    font-size: 0.95rem;
    color: var(--body);
    flex-grow: 1;
}

.post-card .read {
    margin-top: 1.1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Article ----------------------------------------------------------------- */
.article {
    padding: 3.5rem 0 4.5rem;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article h1 {
    font-size: 2.4rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.article-prose {
    font-family: var(--serif);
    font-size: 1.16rem;
    line-height: 1.75;
    color: #2b3a4c;
}

.article-prose h2 {
    font-family: var(--sans);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.article-prose h3 {
    font-family: var(--sans);
    font-size: 1.2rem;
    margin: 2rem 0 0.75rem;
}

.article-prose p {
    margin-bottom: 1.3rem;
}

.article-prose ul,
.article-prose ol {
    margin: 0 0 1.3rem 1.3rem;
}

.article-prose li {
    margin-bottom: 0.5rem;
}

.article-prose code {
    font-family: Consolas, monospace;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    font-size: 0.9em;
}

.article-prose blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.25rem;
    margin: 1.75rem 0;
    color: var(--body);
    font-style: italic;
}

.author-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.post-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

/* CTA band ---------------------------------------------------------------- */
.cta-band {
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 4.5rem 0;
}

.cta-band h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-band p {
    color: #c4d2e3;
    max-width: 52ch;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* Contact ----------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-methods {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-method i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 0.3rem;
    width: 22px;
    text-align: center;
}

.contact-method h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.contact-method p,
.contact-method a {
    color: var(--body);
    font-size: 0.95rem;
}

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(21, 88, 159, 0.12);
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
    background: #07182c;
    color: #9fb3cc;
    padding: 4rem 0 1.5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(159, 179, 204, 0.18);
}

.footer-brand img {
    height: 32px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.92rem;
    max-width: 32ch;
    line-height: 1.6;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: #9fb3cc;
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6f86a3;
}

/* Results band ------------------------------------------------------------ */
.results-band {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.result {
    text-align: center;
}

.result .big {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.result p {
    color: var(--body);
    font-size: 0.95rem;
}

/* Logos / trust row (text wordmarks) -------------------------------------- */
.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 2.5rem;
    margin-top: 2rem;
}

.trust-row span {
    color: var(--muted);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    opacity: 0.75;
}

/* Case study cards -------------------------------------------------------- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.case-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.case-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.case-banner {
    height: 90px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.6rem;
}

.case-banner.alt { background: linear-gradient(135deg, #0f4179 0%, #2f8fd0 100%); }
.case-banner.alt2 { background: linear-gradient(135deg, #123a5e 0%, #1e7a6b 100%); }

.case-card .case-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-cat {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.case-card h3 {
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.case-card h3 a { color: var(--ink); }
.case-card h3 a:hover { color: var(--accent); }

.case-client {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.case-metric {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--body);
}

.case-metric strong {
    color: var(--accent);
    font-weight: 700;
}

/* Featured case ----------------------------------------------------------- */
.featured-case {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.featured-visual {
    background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
    color: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-visual .fc-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9fc4ec;
    margin-bottom: 1rem;
}

.featured-visual .fc-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.featured-visual .fc-stats div span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.featured-visual .fc-stats div small {
    font-size: 0.82rem;
    color: #c4d2e3;
}

.featured-body {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.featured-body p {
    margin-bottom: 1rem;
}

/* Case study detail ------------------------------------------------------- */
.case-hero {
    background: var(--navy);
    color: #fff;
    padding: 4rem 0 3.5rem;
}

.case-hero .case-cat { color: #7eb0e8; }

.case-hero h1 {
    color: #fff;
    font-size: 2.4rem;
    max-width: 24ch;
    margin-bottom: 1rem;
}

.case-hero .lead {
    color: #c4d2e3;
    font-size: 1.12rem;
    max-width: 60ch;
}

.case-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(143, 166, 194, 0.3);
}

.case-stats div span {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.case-stats div small {
    font-size: 0.85rem;
    color: #9fb3cc;
}

.case-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3.5rem;
    align-items: start;
}

.case-main h2 {
    font-size: 1.5rem;
    margin: 2.25rem 0 0.9rem;
}

.case-main h2:first-child { margin-top: 0; }

.case-main p { margin-bottom: 1.1rem; }

.case-main ul {
    margin: 0 0 1.2rem 1.2rem;
}

.case-main li { margin-bottom: 0.5rem; }

.case-aside {
    position: sticky;
    top: 96px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.75rem;
}

.case-aside h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 1rem;
}

.case-aside dl { font-size: 0.92rem; }

.case-aside dt {
    font-weight: 700;
    color: var(--ink);
    margin-top: 0.9rem;
}

.case-aside dt:first-child { margin-top: 0; }

.case-aside dd { color: var(--body); }

/* Quote / testimonial ----------------------------------------------------- */
.quote-card {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
}

.quote-card p {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--ink);
    margin-bottom: 1rem;
}

.quote-card .attr {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
    font-style: normal;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.testimonial {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.75rem;
}

.testimonial .stars {
    color: #e0a106;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
}

.testimonial p {
    color: var(--ink);
    font-size: 0.98rem;
    margin-bottom: 1.1rem;
}

.testimonial .attr {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

/* Utilities --------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1000px) {
    .nav-links {
        position: fixed;
        inset: 72px 0 auto 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 24px 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a {
        width: 100%;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--line);
    }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }
}

@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero h1 { font-size: 2.5rem; }
    .grid-3, .grid-4, .pkg-grid, .posts, .case-grid, .testimonials { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .split, .contact-grid, .featured-case, .case-layout { grid-template-columns: 1fr; gap: 2rem; }
    .facts-grid, .results-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .case-aside { position: static; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }

    .nav-links {
        position: fixed;
        inset: 72px 0 auto 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 24px 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-md);
    }

    .nav-links.open { transform: translateY(0); }

    .nav-links a {
        width: 100%;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--line);
    }

    .nav-cta { display: none; }
    .nav-toggle { display: flex; }

    .grid-2, .grid-3, .grid-4, .pkg-grid, .posts, .facts-grid, .steps,
    .case-grid, .testimonials, .results-grid {
        grid-template-columns: 1fr;
    }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
    .hero h1 { font-size: 2.1rem; }
    .page-header h1 { font-size: 2rem; }
    .case-hero h1 { font-size: 1.9rem; }
    .featured-visual, .featured-body { padding: 2rem; }
    .case-stats div span { font-size: 1.8rem; }
    section { padding: 3.5rem 0; }
    .article h1 { font-size: 1.9rem; }
    .article-prose { font-size: 1.08rem; }
}

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

/* Honeypot: unreachable for people, still submitted by bots. Off-screen rather
   than display:none, which some bots skip. Without this the field is visible. */
.contact-form .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cf-turnstile {
    margin-bottom: 16px;
}
