@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap');

/* ============================================================
   OPTIMA — stylesheet
   ============================================================ */



   
:root {
    --bg:           #ffffff;
    --bg-surface:   #f7f8fc;
    --bg-card:      #ffffff;
    --border:       rgba(0, 0, 0, 0.08);
    --border-hover: rgba(102, 126, 234, 0.45);
    --text:         #111827;
    --text-muted:   rgba(17, 24, 39, 0.55);
    --accent:       #667eea;
    --accent-alt:   #764ba2;
    --radius:       10px;
    --radius-lg:    14px;
    --max-w:        1160px;
    --nav-h:        64px;
    --cursor-color: #667eea;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}

/* ------------------------------------------------------------
   Page transition (HTMX)
   ------------------------------------------------------------ */
#content {
    animation: pageFadeIn 0.22s ease both;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
    font-family: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.15rem; }

p { color: var(--text-muted); line-height: 1.7; }

a { color: inherit; text-decoration: none; }

.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

section { padding: 96px 0; }

.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p  { max-width: 520px; font-size: 1.05rem; }

/* ------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    z-index: 100;
}

nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    gap: 24px;
}

.logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    flex-shrink: 0;
}

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

.nav-links a {
    color: rgba(17, 24, 39, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 12px;
    border-radius: 0;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: transparent;
}

.nav-links a.active { color: var(--accent); }

.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.has-dropdown > a::after {
    content: '▾';
    font-size: 0.65rem;
    color: rgba(17, 24, 39, 0.6);
    transform: translateY(-1px);
}

.submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    list-style: none;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.submenu a:hover {
    background: #f4f6fc;
    color: var(--accent);
}

.has-dropdown:hover .submenu,
.has-dropdown:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lang-switch {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: color 0.2s, border-color 0.2s;
}

.lang-switch:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: #111827;
    border: 1px solid #111827;
    color: #fff;
    cursor: pointer;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: inherit;
    transition: border-color 0.2s, color 0.2s;
}

.menu-toggle:hover {
    border-color: #1f2937;
    color: #fff;
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 200;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 14px 40px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: -0.01em;
}

.mobile-nav a:hover {
    color: var(--text);
    background: rgba(0, 0, 0, 0.04);
}

.mobile-nav .mobile-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mobile-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
}

/* Custom cursor */
body.custom-cursor-enabled,
body.custom-cursor-enabled a,
body.custom-cursor-enabled button,
body.custom-cursor-enabled input,
body.custom-cursor-enabled textarea,
body.custom-cursor-enabled select,
body.custom-cursor-enabled [role="button"] {
    cursor: none;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--cursor-color);
    background: color-mix(in srgb, var(--cursor-color) 22%, transparent);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.12s ease, width 0.12s ease, height 0.12s ease, background 0.12s ease;
}

.custom-cursor.is-hover {
    width: 28px;
    height: 28px;
    background: color-mix(in srgb, var(--cursor-color) 32%, transparent);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

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

.btn-primary:hover {
    background: #7b91f0;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
}

/* ------------------------------------------------------------
   Hero (homepage)
   ------------------------------------------------------------ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    position: relative;
    overflow: hidden;

    /* PLACEHOLDER — substituir pelo URL da imagem final antes de publicar */
    background-image:
        linear-gradient(155deg, rgba(6, 6, 18, 0.90) 0%, rgba(14, 10, 38, 0.78) 60%, rgba(20, 14, 50, 0.65) 100%),
        url('https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1800&q=80');
    background-size: cover;
    background-position: center 30%;
}

.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 80px 32px;
    position: relative;
    z-index: 2;
}

/* Hero label — base (used across sections) */
.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(102, 126, 234, 0.28);
    border-radius: 4px;
    padding: 4px 10px;
    margin-bottom: 28px;
}

/* Hero text — white on dark image */
.hero .hero-label {
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.hero h1 {
    max-width: 680px;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.30);
}

.hero h1 .accent {
    background: linear-gradient(135deg, #a78bfa, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    max-width: 480px;
    margin-bottom: 44px;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

/* Outline button inverted for dark hero */
.hero .btn-outline {
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.48);
    color: #fff;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Cases hero — full-width gradient (purple accent)
   ------------------------------------------------------------ */
.cases-hero {
    padding-top: calc(var(--nav-h) + 88px);
    padding-bottom: 88px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

/* Three decorative static rings, echoing the homepage animation */
.cases-hero::before,
.cases-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    pointer-events: none;
}

.cases-hero::before {
    right: -4%;
    width: 68vh;
    height: 68vh;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.cases-hero::after {
    right: -14%;
    width: 100vh;
    height: 100vh;
    border: 1.5px solid rgba(255, 255, 255, 0.09);
}

.cases-hero-ring {
    position: absolute;
    top: 50%;
    right: -24%;
    transform: translateY(-50%);
    width: 130vh;
    height: 130vh;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.cases-hero-inner {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.cases-hero .hero-label {
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 24px;
}

.cases-hero h1 {
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 18px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.cases-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 500px;
    line-height: 1.72;
}

@media (max-width: 768px) {
    .cases-hero { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 56px; }
    .cases-hero::before,
    .cases-hero::after,
    .cases-hero-ring { display: none; }
}

/* ------------------------------------------------------------
   Page hero — light (interior pages, default)
   ------------------------------------------------------------ */
.page-hero {
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: 64px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 80px;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3.8rem);
    margin-bottom: 14px;
}

.page-hero p {
    font-size: 1.05rem;
    max-width: 500px;
}

/* ------------------------------------------------------------
   Dark page hero — full-width, shared by Services & Process
   Same visual language as homepage hero
   ------------------------------------------------------------ */
.dark-page-hero {
    padding-top: calc(var(--nav-h) + 88px);
    padding-bottom: 88px;
    background-size: cover;
    background-position: center 35%;
    margin-bottom: 0;
}

/* Services image — PLACEHOLDER */
.services-page .dark-page-hero {
    background-image:
        linear-gradient(155deg, rgba(6, 6, 18, 0.88) 0%, rgba(14, 10, 38, 0.75) 60%, rgba(20, 14, 50, 0.60) 100%),
        url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&w=1800&q=80');
}

/* Process image — PLACEHOLDER */
.process-page .dark-page-hero {
    background-image:
        linear-gradient(155deg, rgba(6, 6, 18, 0.88) 0%, rgba(14, 10, 38, 0.75) 60%, rgba(20, 14, 50, 0.60) 100%),
        url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=80');
}

.dark-page-hero-inner {
    max-width: 760px;
}

.dark-page-hero .hero-label {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.dark-page-hero h1 {
    color: #ffffff;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.28);
    margin-bottom: 18px;
}

.dark-page-hero h1 .accent {
    background: linear-gradient(135deg, #a78bfa, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dark-page-hero-sub {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.70);
    max-width: 520px;
    line-height: 1.65;
}

/* ------------------------------------------------------------
   Animated gradient border — shared utility
   Applied to: feature-card, service-card, team-card, faq-item,
               case-grid-card, service-detail-card
   ------------------------------------------------------------ */
@keyframes gradientBorderSpin {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

.feature-card,
.service-card,
.team-card,
.faq-item,
.case-grid-card,
.service-detail-card {
    position: relative;
    background: var(--bg-surface);
    border: 1.5px solid var(--border);
    transition: border-color 0.25s ease;
}

.feature-card::after,
.service-card::after,
.team-card::after,
.faq-item::after,
.case-grid-card::after,
.service-detail-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(270deg, #667eea, #764ba2, #a78bfa, #667eea);
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.feature-card:hover,
.service-card:hover,
.team-card:hover,
.faq-item:hover,
.case-grid-card:hover,
.service-detail-card:hover {
    border-color: transparent;
}

.feature-card:hover::after,
.service-card:hover::after,
.team-card:hover::after,
.faq-item:hover::after,
.case-grid-card:hover::after,
.service-detail-card:hover::after {
    opacity: 1;
    animation: gradientBorderSpin 3s linear infinite;
}

/* ------------------------------------------------------------
   Feature cards (What We Do)
   ------------------------------------------------------------ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.feature-card {
    border-radius: var(--radius-lg);
    padding: 36px 32px;
}

/* remove old hover rule — handled by shared gradient border */

.feature-card .num {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.feature-card p { font-size: 0.9rem; }

.tagline {
    margin-top: 48px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    border-left: 2px solid var(--accent);
    padding-left: 16px;
}

/* ------------------------------------------------------------
   Process steps
   ------------------------------------------------------------ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
}

.step-card:hover { border-color: var(--border-hover); }

.step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.step-card h3 { margin-bottom: 10px; font-size: 1rem; }
.step-card p  { font-size: 0.9rem; }

/* ------------------------------------------------------------
   Process — detailed phase sections
   ------------------------------------------------------------ */
.process-overview { padding-top: 72px; padding-bottom: 56px; }

.process-phase { padding: 72px 0; }

.phase-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.phase-layout--img-right {
    /* text on left, image on right — natural order */
}

.phase-layout--img-left {
    /* image on left, text on right — also natural order in HTML */
}

.phase-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.10);
    aspect-ratio: 4 / 3;
}

.phase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.phase-image:hover img {
    transform: scale(1.03);
}

.phase-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.phase-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.phase-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.phase-detail {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.phase-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phase-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.phase-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 7px;
}

.phase-deliverable {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(102,126,234,0.07);
    border: 1px solid rgba(102,126,234,0.18);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text);
}

.deliverable-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

@media (max-width: 860px) {
    .phase-layout,
    .phase-layout--img-left,
    .phase-layout--img-right {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* on mobile, image always comes after text */
    .phase-layout--img-left .phase-image {
        order: 2;
    }

    .phase-layout--img-left .phase-content {
        order: 1;
    }
}

/* ------------------------------------------------------------
   Services
   ------------------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.services-highlight {
    background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 70%);
}

.services-highlight .container {
    border-radius: 22px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.service-card {
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
}

.service-card h3 { font-size: 1.1rem; margin-bottom: 12px; }

.service-card p {
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 20px;
}

.service-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.service-includes {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.55;
}

/* ------------------------------------------------------------
   Team
   ------------------------------------------------------------ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.team-card {
    border-radius: var(--radius-lg);
    padding: 36px 32px;
}

.team-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }

.team-role {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
}

.team-bio { font-size: 0.88rem; line-height: 1.65; }

/* ------------------------------------------------------------
   Case studies
   ------------------------------------------------------------ */
.case-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 20px;
}

.case-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 4px;
    padding: 3px 9px;
    margin-bottom: 20px;
}

.case-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.case-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.case-meta-item label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.case-meta-item p {
    font-size: 0.9rem;
    color: var(--text);
}

.case-result {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: var(--radius);
    padding: 18px 22px;
}

.case-result label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #059669;
    margin-bottom: 6px;
}

.case-result p {
    color: #047857;
    font-weight: 600;
    font-size: 0.9rem;
}

.cases-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    padding: 12px 16px;
    border-left: 2px solid var(--border);
}

/* ------------------------------------------------------------
   CTA block
   ------------------------------------------------------------ */
.cta-block {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    margin-top: 64px;
}

.cta-block h2 { margin-bottom: 14px; }

.cta-block p {
    font-size: 1rem;
    max-width: 460px;
    margin: 0 auto 32px;
}

/* ------------------------------------------------------------
   Contact page
   ------------------------------------------------------------ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

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

.contact-info p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 28px;
}

.contact-info a {
    color: var(--accent);
    font-weight: 500;
    transition: opacity 0.2s;
}

.contact-info a:hover { opacity: 0.75; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 28px;
    background: var(--bg);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 1.05rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px 32px 0;
    margin-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ------------------------------------------------------------
   Hero rings animation
   ------------------------------------------------------------ */
.hero-rings {
    position: absolute;
    right: -8vw;
    top: 50%;
    transform: translateY(-50%);
    width: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.rings-core {
    position: absolute;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.42);
    animation: corePulse 3.2s ease-in-out infinite;
}

.rings-core svg {
    width: 46px;
    height: 46px;
}

.ring {
    position: absolute;
    width: 100vh;
    height: 100vh;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    animation: ringExpand 3.2s cubic-bezier(0.15, 0.5, 0.4, 1) infinite;
}

.ring-1 { animation-delay: 0s; }
.ring-2 { animation-delay: 0.8s; }
.ring-3 { animation-delay: 1.6s; }
.ring-4 { animation-delay: 2.4s; }

@keyframes ringExpand {
    0% {
        opacity: 0.85;
        transform: scale(0.1);
        border-color: rgba(102, 126, 234, 1);
        border-width: 2px;
    }
    40% {
        border-color: rgba(118, 75, 162, 0.45);
        border-width: 1.5px;
    }
    100% {
        opacity: 0;
        transform: scale(1);
        border-color: rgba(118, 75, 162, 0);
        border-width: 1px;
    }
}

@keyframes corePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 12px 40px rgba(102, 126, 234, 0.42);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 18px 56px rgba(102, 126, 234, 0.60);
    }
}

@media (max-width: 1024px) {
    .hero-rings { display: none; }
}

/* ------------------------------------------------------------
   30-min Call block
   ------------------------------------------------------------ */
.call-block {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px;
}

.call-block h2 { margin-bottom: 12px; }
.call-block > .call-content > p { max-width: 460px; margin-bottom: 0; }

.call-includes {
    list-style: none;
    margin: 22px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.call-includes li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 22px;
    position: relative;
}

.call-includes li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.call-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.call-badge {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.call-badge span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 2px;
}

.call-note {
    text-align: center;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------
   Stats bar
   ------------------------------------------------------------ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    box-shadow: 0 6px 32px rgba(102, 126, 234, 0.30);
}

.stat-item {
    padding: 28px 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    line-height: 1.4;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq-grid {
    display: grid;
    gap: 12px;
    max-width: 740px;
}

.faq-item {
    border-radius: var(--radius);
    padding: 24px 28px;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.faq-item p { font-size: 0.9rem; }

/* ------------------------------------------------------------
   Belief / Core insight section
   ------------------------------------------------------------ */
.belief-section { background: var(--bg-surface); }

.belief-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.belief-text .hero-label { margin-bottom: 18px; }
.belief-text h2 { margin-bottom: 18px; }
.belief-text p  { font-size: 1rem; max-width: 440px; }

.belief-quote-block {
    border-left: 3px solid var(--accent);
    padding-left: 32px;
}

blockquote {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
    font-style: italic;
    color: var(--text);
    line-height: 1.45;
    letter-spacing: -0.01em;
}

@media (max-width: 860px) {
    .belief-inner { grid-template-columns: 1fr; gap: 40px; }
    .belief-text p { max-width: 100%; }
}

/* ------------------------------------------------------------
   Partner section
   ------------------------------------------------------------ */
.partner-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
}

.section-desc {
    font-size: 1rem;
    max-width: 580px;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 600px) {
    .partner-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Service tag / link / note (homepage preview + services page)
   ------------------------------------------------------------ */
.service-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(102,126,234,0.08);
    border-radius: 4px;
    padding: 3px 9px;
    margin-bottom: 14px;
}

.service-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    transition: opacity 0.2s;
}

.service-link:hover { opacity: 0.75; }

.services-cta-note {
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 16px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-surface);
}

/* Services detail page — expanded cards */
.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 40px;
    align-items: start;
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-bottom: 20px;
}

.service-detail-header .service-tag { margin-bottom: 10px; }

.service-detail-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.service-detail-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-detail-includes {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-detail-includes li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.service-detail-includes li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.service-detail-cta {
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
    flex-shrink: 0;
}

.services-note-block {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
    margin-top: 48px;
}

.services-cta-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .service-detail-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 28px;
    }
}

/* ------------------------------------------------------------
   Cases layout — sidebar + main
   ------------------------------------------------------------ */
.cases-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 52px;
    align-items: start;
}

.cases-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
}

.cases-filters {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.filter-pills {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-pill {
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    width: 100%;
}

.filter-pill:hover {
    background: var(--bg-card);
    color: var(--accent);
}

.filter-pill.active {
    background: rgba(102,126,234,0.10);
    border-color: rgba(102,126,234,0.25);
    color: var(--accent);
    font-weight: 600;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
    overflow: visible;
}

.case-grid-card {
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.15s ease;
}

.case-grid-card:hover {
    transform: translateY(-2px);
}

.case-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.case-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.case-tag-pill {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(102,126,234,0.08);
    border-radius: 3px;
    padding: 3px 8px;
}

.case-grid-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    flex: 0 0 auto;
}

.case-grid-summary {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.case-grid-themes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.theme-chip {
    font-size: 0.7rem;
    font-weight: 600;
    color: #059669;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 3px;
    padding: 2px 8px;
}

.case-grid-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    transition: opacity 0.2s;
}

.case-grid-cta:hover { opacity: 0.75; }

/* Hover — all card text turns white */
.case-grid-card:hover .case-label,
.case-grid-card:hover .case-grid-title,
.case-grid-card:hover .case-grid-summary,
.case-grid-card:hover .case-grid-cta {
    color: #fff;
    opacity: 1;
}

.case-grid-card:hover .case-tag-pill {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.90);
}

.case-grid-card:hover .theme-chip {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.20);
    color: rgba(255,255,255,0.85);
}

.case-grid-card:hover .case-grid-cta {
    border-top-color: rgba(255,255,255,0.18);
}

.cases-no-results {
    text-align: center;
    padding: 64px 0;
    color: var(--text-muted);
}

/* ------------------------------------------------------------
   Case detail page
   ------------------------------------------------------------ */

/* ── Hero — dark gradient ─────────────────────────────────── */
.case-detail-page { overflow-x: hidden; }

.case-hero {
    padding: calc(var(--nav-h) + 48px) 0 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative rings — echoes cases listing hero */
.case-hero::before,
.case-hero::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: 100vh;
    border-radius: 50%;
    pointer-events: none;
}

.case-hero::before {
    right: -4%;
    width: 68vh;
    height: 68vh;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.case-hero::after {
    right: -14%;
    width: 100vh;
    border: 1.5px solid rgba(255, 255, 255, 0.09);
}

.case-back-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
    margin-bottom: 32px;
}

.case-back-link:hover { color: rgba(255,255,255,0.95); }

.case-hero-inner {
    max-width: 760px;
}

.case-hero-inner .case-label {
    margin-bottom: 16px;
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.28);
}

.case-hero-inner h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.case-hero-summary {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.80);
    max-width: 640px;
    margin-bottom: 24px;
    line-height: 1.75;
}

.case-meta-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.case-hero .case-tag-pill {
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.80);
}

.case-hero .theme-chip {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.70);
}

/* ── Outcome grid ─────────────────────────────────────────── */
.case-outcome-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 52px;
    padding-bottom: 72px;
}

.case-outcome-card {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    border-left: 3px solid rgba(255,255,255,0.70);
    border-radius: 10px;
    padding: 20px 22px;
    font-size: 0.93rem;
    font-weight: 500;
    color: rgba(255,255,255,0.88);
    line-height: 1.55;
    transition: background 0.2s, border-left-color 0.2s;
}

.case-outcome-card:hover {
    background: rgba(255,255,255,0.16);
    border-left-color: #ffffff;
}

/* ── Scroll story ─────────────────────────────────────────── */
.case-story {
    padding: 80px 0 80px;
}

.story-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 64px;
    align-items: start;
}

/* Accordion nav */
.story-nav {
    position: sticky;
    top: calc(var(--nav-h) + 36px);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.story-nav-item {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-radius: 10px;
    border-left: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, border-left-color 0.2s;
    user-select: none;
}

.story-nav-item:hover {
    background: var(--bg-surface);
}

.story-nav-item.is-active {
    background: rgba(102,126,234,0.07);
    border-left-color: var(--accent);
}

.snav-num {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 3px;
    transition: color 0.2s;
}

.snav-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
    line-height: 1.3;
}

.story-nav-item.is-active .snav-label {
    color: var(--text);
}

/* The "accordion" line — visible only on active item */
.snav-line {
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 1px;
    margin-top: 10px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.story-nav-item.is-active .snav-line {
    transform: scaleX(1);
}

/* Panels */
.story-panels {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.story-panel {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.story-panel.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.panel-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.panel-num {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.panel-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
}

.story-panel p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.85;
    max-width: 640px;
}

.case-nav {
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.case-nav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.case-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s, background 0.2s;
}

.case-nav-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface);
}

.case-nav-next { text-align: right; }

.case-nav-direction {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.case-nav-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

@media (max-width: 600px) {
    .case-nav-inner { grid-template-columns: 1fr; }
    .case-nav-next { text-align: left; }
}

/* Case detail — responsive */
@media (max-width: 860px) {
    .story-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .story-nav {
        position: static;
        flex-direction: row;
        gap: 4px;
        margin-bottom: 48px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .story-nav-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 8px 8px 0 0;
        flex-shrink: 0;
    }

    .story-nav-item.is-active {
        border-left-color: transparent;
        border-bottom-color: var(--accent);
    }

    .snav-line { display: none; }

    .case-outcome-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .story-panels { gap: 56px; }
    .story-panel p { font-size: 0.97rem; }
}

/* ------------------------------------------------------------
   Homepage two-column layout (main + sticky sidebar)
   ------------------------------------------------------------ */
.homepage-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0 72px;
    align-items: start;
}

.hp-section {
    padding: 96px 0;
}

.hp-section + .hp-section {
    border-top: 1px solid var(--border);
}

.homepage-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 28px);
    padding: 96px 0 96px;
}

/* Call widget — compact gradient card in sidebar */
.call-widget {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(102, 126, 234, 0.28);
}

/* Decorative ring inside widget */
.call-widget::after {
    content: '';
    position: absolute;
    right: -30%;
    top: -30%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.call-widget .hero-label {
    color: rgba(255, 255, 255, 0.90);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 16px;
}

.call-widget h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.call-widget > p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.call-widget .call-includes {
    margin: 18px 0 24px;
}

.call-widget .call-includes li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
}

.call-widget .call-includes li::before {
    color: rgba(255, 255, 255, 0.55);
}

/* Widget CTA button — white ghost */
.btn-widget {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
    text-decoration: none;
    gap: 6px;
    line-height: 1;
    white-space: nowrap;
}

.btn-widget:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

/* Divider between widget and a second widget block (if needed) */
.call-widget-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 24px 0;
}

@media (max-width: 1100px) {
    .homepage-layout {
        grid-template-columns: 1fr;
    }
    .homepage-sidebar {
        position: static;
        padding: 0 0 80px;
    }
    .call-widget {
        max-width: 540px;
    }
}

/* ------------------------------------------------------------
   Utilities
   ------------------------------------------------------------ */
.divider {
    border: none;
    border-top: 1px solid var(--border);
}

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
    .cases-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cases-sidebar {
        position: static;
    }

    .cases-filters {
        padding: 20px;
    }

    .filter-group {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .filter-label {
        min-width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .filter-pills {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .filter-pill {
        width: auto;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: var(--bg-card);
    }

    .filter-pill.active {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }
}

@media (max-width: 768px) {
    section { padding: 72px 0; }

    .nav-links,
    .nav-actions { display: none; }

    .menu-toggle { display: block; }

    .hero-inner    { padding: 56px 24px; }
    .container     { padding: 0 24px; }
    .page-hero     { padding-left: 24px; padding-right: 24px; }
    .services-page .page-hero {
        min-height: 34vh;
        padding: 28px 24px;
        margin-top: calc(var(--nav-h) + 20px);
        border-radius: 18px;
    }

    .cta-block { padding: 48px 24px; }
    .case-card { padding: 28px 24px; }

    .call-block { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
    .call-visual { display: none; }

    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.18); }
    .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.18); border-right: none; }

    .footer-inner  { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
