/*
Theme Name: Tasweqa
Theme URI: https://tasweqa.com/
Author: Adham Gamal (n3k4a)
Author URI: https://tasweqa.com/
Description: Custom WordPress theme designed and developed exclusively for tasweqa.com by Adham Gamal (n3k4a). Built to power a high-converting digital marketing landing page with Elementor Pro and supporting plugins.
Version: 1.0.0
License: Proprietary — Exclusive to tasweqa.com
License URI: https://tasweqa.com/
Text Domain: tasweqa
Tags: business, custom, landing-page, elementor
*/

/* ========================================================================
   Tasweqa — global styles for HTML widgets injected by Elementor sections
   ======================================================================== */

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

:root {
    --tw-primary: #3D4BC2;
    --tw-primary-dark: #2937A0;
    --tw-accent: #030213;
    --tw-text: #475569;
    --tw-heading: #0F172A;
    --tw-muted: #64748B;
    --tw-bg-light: #F8FAFC;
    --tw-border: #E5E7EB;
    --tw-success: #16A34A;
    --tw-success-bg: #DCFCE7;
    --tw-warning: #EAB308;
    --tw-warning-bg: #FEF9C3;
    --tw-danger-bg: #FEE2E2;
    --tw-danger: #DC2626;
}

body { font-family: 'Inter', system-ui, sans-serif; color: #1E293B; }
h1, h2, h3, h4, h5, h6 { font-family: 'Inter', system-ui, sans-serif; color: var(--tw-heading); }

/* ============ Force white text inside dark/gradient sections ============ */
.tw-hero h1, .tw-hero h2, .tw-hero h3, .tw-hero h4, .tw-hero p, .tw-hero .elementor-heading-title,
.tw-solution h1, .tw-solution h2, .tw-solution h3, .tw-solution .elementor-heading-title,
.tw-offer h1, .tw-offer h2, .tw-offer .elementor-heading-title,
.tw-final-cta h1, .tw-final-cta h2, .tw-final-cta .elementor-heading-title,
.tw-inner-hero h1, .tw-inner-hero h2, .tw-inner-hero .elementor-heading-title { color: #fff !important; }

.tw-hero .elementor-widget-heading[data-id] .elementor-heading-title { color: #fff !important; }
.tw-inner-hero .elementor-widget-heading .elementor-heading-title { color: #fff !important; }
.tw-solution .elementor-widget-heading .elementor-heading-title { color: #fff !important; }
.tw-offer .elementor-widget-heading .elementor-heading-title { color: #fff !important; }
.tw-final-cta .elementor-widget-heading .elementor-heading-title { color: #fff !important; }

/* Make sub-headings inside dark sections light blue */
.tw-hero .elementor-widget-heading:nth-of-type(2) .elementor-heading-title,
.tw-solution .elementor-widget-heading:nth-of-type(2) .elementor-heading-title,
.tw-offer .elementor-widget-heading:nth-of-type(2) .elementor-heading-title,
.tw-final-cta .elementor-widget-heading:nth-of-type(2) .elementor-heading-title,
.tw-inner-hero .elementor-widget-heading:nth-of-type(2) .elementor-heading-title { color: #DBE7FF !important; }

/* Hero CTA button: white background, primary text */
.tw-hero .elementor-button { background-color: #FFFFFF !important; color: #3D4BC2 !important; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25) !important; }
.tw-hero .elementor-button:hover { background-color: #F8FAFC !important; color: #3D4BC2 !important; }
.tw-inner-hero .elementor-button { background-color: #FFFFFF !important; color: #3D4BC2 !important; }
.tw-inner-hero .elementor-button:hover { background-color: #F8FAFC !important; color: #3D4BC2 !important; }
.tw-final-cta .elementor-button { background-color: #FFFFFF !important; color: #3D4BC2 !important; }
.tw-final-cta .elementor-button:hover { background-color: #F8FAFC !important; color: #3D4BC2 !important; }

/* Hero stat icon widgets — make them translucent white boxes with white icons */
.tw-hero .elementor-widget-icon .elementor-icon { background-color: rgba(255,255,255,0.10) !important; border-color: transparent !important; color: #fff !important; }
.tw-hero .elementor-widget-icon .elementor-icon i { color: #fff !important; }

/* Hero stat headings */
.tw-hero .elementor-widget-heading h1.elementor-heading-title,
.tw-hero .elementor-widget-heading h2.elementor-heading-title,
.tw-hero .elementor-widget-heading h3.elementor-heading-title,
.tw-hero .elementor-widget-heading h4.elementor-heading-title,
.tw-hero .elementor-widget-heading h5.elementor-heading-title,
.tw-hero .elementor-widget-heading h6.elementor-heading-title,
.tw-hero .elementor-widget-heading div.elementor-heading-title { color: #fff !important; }

/* ============ Hero dashboard card ============ */
.tw-hero-dashboard {
    background: rgba(255,255,255,0.10) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.20) !important;
    border-radius: 24px !important;
    padding: 32px !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25) !important;
    color: #fff !important;
}
.tw-hero-dashboard *, .tw-hero-dashboard h1, .tw-hero-dashboard h2, .tw-hero-dashboard h3, .tw-hero-dashboard p, .tw-hero-dashboard span, .tw-hero-dashboard div { color: #fff !important; }
.tw-hero-dashboard .tw-metric-card {
    background: rgba(255,255,255,0.10) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
    color: #fff !important;
    transition: transform .3s ease;
}
.tw-hero-dashboard .tw-metric-card:last-child { margin-bottom: 0; }
.tw-hero-dashboard .tw-metric-card:hover { transform: translateY(-4px) scale(1.02); }
.tw-hero-dashboard .tw-metric-head {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
    font-size: 14px; font-weight: 500;
}
.tw-hero-dashboard .tw-metric-head i { color: #6EE7B7; }
.tw-hero-dashboard .tw-metric-value { font-size: 36px; font-weight: 700; line-height: 1.1; margin-bottom: 4px; }
.tw-hero-dashboard .tw-metric-positive { color: #6EE7B7; }
.tw-hero-dashboard .tw-metric-sub { font-size: 14px; color: #DBE7FF; }
.tw-hero-dashboard .tw-metric-bar {
    margin-top: 16px; height: 8px; background: rgba(255,255,255,0.10); border-radius: 999px; overflow: hidden;
}
.tw-hero-dashboard .tw-metric-bar span {
    display: block; height: 100%;
    background: linear-gradient(to right, #6EE7B7, #22D3EE);
    border-radius: 999px;
}
.tw-hero-dashboard .tw-metric-bars {
    margin-top: 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; height: 80px;
}
.tw-hero-dashboard .tw-metric-bars span {
    background: linear-gradient(to top, rgba(110,231,183,0.6), rgba(34,211,238,0.4));
    border-radius: 4px;
}

/* ============ Footer template — force dark background + white text ============ */
.elementor-location-footer,
.elementor-location-footer > div,
.elementor-location-footer .elementor-section,
.elementor-location-footer .elementor-section-stretched {
    background-color: #0F172A !important;
}
.elementor-location-footer * { color: inherit; }
.elementor-location-footer .elementor-widget-heading .elementor-heading-title,
.elementor-location-footer h1,
.elementor-location-footer h2,
.elementor-location-footer h3,
.elementor-location-footer h4 { color: #FFFFFF !important; }
.elementor-location-footer .elementor-widget-text-editor,
.elementor-location-footer .elementor-widget-text-editor p { color: #9CA3AF !important; }
.elementor-location-footer .elementor-icon-list-text { color: #9CA3AF !important; }
.elementor-location-footer .elementor-icon-list-item:hover .elementor-icon-list-text { color: #FFFFFF !important; }
.elementor-location-footer a:not(.elementor-button) { color: inherit !important; }
.elementor-location-footer .elementor-icon-list-icon i { color: #3D4BC2 !important; }

/* Brand logo in footer */
.elementor-location-footer .elementor-widget-heading:first-of-type .elementor-heading-title { color: #FFFFFF !important; }

/* Social icons */
.elementor-location-footer .elementor-widget-social-icons .elementor-grid-item .elementor-icon {
    background-color: #1F2937 !important; color: #FFFFFF !important;
}
.elementor-location-footer .elementor-widget-social-icons .elementor-grid-item .elementor-icon:hover {
    background-color: #3D4BC2 !important;
}

/* Divider in footer */
.elementor-location-footer .elementor-widget-divider .elementor-divider-separator { border-top-color: #1F2937 !important; }

/* Contact info — phone/email/location label */
.elementor-location-footer .elementor-icon-list-text strong { color: #9CA3AF !important; font-weight: 400; font-size: 13px; display: block; }

/* === Footer sizing — match Figma proportions (larger headings + comfortable spacing) === */
/* Section padding */
.elementor-location-footer .elementor-top-section { padding-top: 80px !important; padding-bottom: 32px !important; }

/* Container max-width */
.elementor-location-footer .elementor-container { max-width: 1280px !important; }

/* Brand logo "Tasweqa." */
.elementor-location-footer .elementor-widget-heading:first-of-type .elementor-heading-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.5px !important;
}

/* Column headings (Quick Links / Services / Contact Info) */
.elementor-location-footer h4,
.elementor-location-footer .elementor-widget-heading:not(:first-of-type) .elementor-heading-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    letter-spacing: 0.01em !important;
}

/* Tagline text */
.elementor-location-footer .elementor-widget-text-editor p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #9CA3AF !important;
    margin: 0 0 24px !important;
}

/* Quick Links + Services link items */
.elementor-location-footer .elementor-icon-list-items .elementor-icon-list-item { margin-bottom: 14px !important; }
.elementor-location-footer .elementor-icon-list-text {
    font-size: 15px !important;
    line-height: 1.5 !important;
    transition: color .2s ease;
}

/* Contact info icons (phone/email/location) */
.elementor-location-footer .elementor-icon-list-icon i { font-size: 18px !important; }

/* Social icons */
.elementor-location-footer .elementor-widget-social-icons .elementor-grid-item .elementor-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
}

/* Column gap */
.elementor-location-footer .elementor-container > .elementor-column { padding: 0 12px !important; }
.elementor-location-footer .elementor-container { gap: 8px !important; }

/* Bottom row (copyright + Privacy/Terms) */
.elementor-location-footer .elementor-widget-heading:last-of-type .elementor-heading-title,
.elementor-location-footer .elementor-widget-text-editor:last-of-type p {
    font-size: 14px !important;
}

@media (max-width: 768px) {
    .elementor-location-footer .elementor-top-section { padding-top: 56px !important; padding-bottom: 24px !important; }
    .elementor-location-footer .elementor-widget-heading:first-of-type .elementor-heading-title { font-size: 28px !important; }
    .elementor-location-footer h4,
    .elementor-location-footer .elementor-widget-heading:not(:first-of-type) .elementor-heading-title { font-size: 17px !important; margin-bottom: 18px !important; }
}

/* ============ Cards grid utility classes (used by HTML widgets) ============ */
.tw-cards-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tw-cards-grid.tw-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tw-cards-grid.tw-grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .tw-cards-grid.tw-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .tw-cards-grid.tw-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

/* Hero stats row (3 columns) — matches Figma reference */
.tw-hero-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 16px; }
.tw-hero-stat-col {
    text-align: center;
    transition: transform .25s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: tw-fade-up .6s ease forwards;
}
.tw-hero-stat-col:nth-child(1) { animation-delay: .2s; }
.tw-hero-stat-col:nth-child(2) { animation-delay: .3s; }
.tw-hero-stat-col:nth-child(3) { animation-delay: .4s; }
.tw-hero-stat-col:hover { transform: translateY(-4px) scale(1.05); }
.tw-hero-stat-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: rgba(255,255,255,0.10);
    border-radius: 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: #fff; font-size: 20px; margin-bottom: 12px;
}
.tw-hero-stat-num { font-size: 30px; font-weight: 500; color: #fff; line-height: 1.1; margin-bottom: 4px; letter-spacing: -0.5px; }
.tw-hero-stat-lbl { font-size: 14px; color: #DBE7FF; font-weight: 400; }

/* Hero CTA button — Framer Motion spring physics (matches Figma whileHover/whileTap exactly).
   Selectors include .elementor to beat Elementor frontend.min.css's `.elementor a { box-shadow: none }` reset. */
.tw-hero-cta-btn,
.elementor a.tw-hero-cta-btn {
    display: inline-block;
    background: #fff !important;
    color: #3D4BC2 !important;
    padding: 20px 40px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15), 0 8px 10px -6px rgba(0,0,0,0.10) !important;
    margin-bottom: 48px;
    cursor: pointer;
    /* cubic-bezier(0.34, 1.56, 0.64, 1) = ease-out-back, overshoots 1.0 then settles → "pop" feel */
    transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow .25s ease,
                background-color .2s ease !important;
    will-change: transform, box-shadow;
    transform: translateZ(0); /* GPU layer — smoother animation */
}
.tw-hero-cta-btn:hover,
.elementor a.tw-hero-cta-btn:hover {
    background: #F9FAFB !important;
    color: #3D4BC2 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.30), 0 12px 16px -6px rgba(0,0,0,0.18) !important;
}
.tw-hero-cta-btn:active,
.elementor a.tw-hero-cta-btn:active {
    transform: scale(0.98) !important;
    transition: transform .12s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Generic fade-up for hero title + CTA (staggered with stats) */
@keyframes tw-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.tw-fade-up { opacity: 0; transform: translateY(20px); animation: tw-fade-up .6s ease forwards; }
.tw-fade-up.tw-d1 { animation-delay: .05s; }
.tw-fade-up.tw-d2 { animation-delay: .15s; }

/* Trust stats row (1200+, 3.5X, 40%) - 3 cards */
.tw-stats-row { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 64px; }
@media (min-width: 640px) { .tw-stats-row { grid-template-columns: repeat(3, 1fr); } }
.tw-stat-card {
    background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
    padding: 32px 24px; text-align: center;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05);
}
.tw-stat-num { font-size: 56px; font-weight: 700; color: #3D4BC2; line-height: 1.1; margin-bottom: 8px; }
.tw-stat-lbl { font-size: 16px; color: #64748B; }

/* Testimonials row (3 cards) */
.tw-testi-row { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .tw-testi-row { grid-template-columns: repeat(3, 1fr); } }

/* Service blocks (Services page) — alternating 2-col layout */
.tw-svc-detail-wrap { display: flex; flex-direction: column; gap: 64px; }
.tw-svc-block { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .tw-svc-block { grid-template-columns: 1fr 1fr; } }
.tw-svc-block.tw-reverse > .tw-svc-info { order: 1; }
.tw-svc-block.tw-reverse > .tw-svc-features { order: 0; }
@media (max-width: 1023px) { .tw-svc-block.tw-reverse > .tw-svc-info, .tw-svc-block.tw-reverse > .tw-svc-features { order: initial; } }

.tw-svc-info { padding: 16px 0; }
.tw-svc-detail-icon { width: 64px; height: 64px; background: #3D4BC2; color: #fff; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 24px; }

/* Service icon with character video inside — replaces FA icon entirely.
   Light gradient background lets the dark-blue 3D character read clearly. */
.tw-svc-detail-icon--char {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #EEF2FF 0%, #DBEAFE 100%);
    border: 1px solid rgba(61, 75, 194, 0.12);
    overflow: hidden;
    padding: 4px;
    box-shadow: 0 4px 14px rgba(61, 75, 194, 0.18);
}
.tw-svc-detail-icon--char .tw-svc-icon-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill the square, crop the transparent padding */
    object-position: center 35%; /* focus on face + upper body */
    background: transparent;
    pointer-events: none;
    transform: scale(2.0); /* zoom in past the transparent video padding */
    transform-origin: center 35%;
}
@media (max-width: 768px) {
    .tw-svc-detail-icon--char {
        width: 72px;
        height: 72px;
        border-radius: 12px;
        margin-bottom: 18px;
    }
}
/* On services page, hide the auto-injected above-heading character — the
   character is now INSIDE the icon box, so showing it twice is noise. */
html body .tw-svc-block .tw-character-autoinjected { display: none !important; }
.tw-svc-info h2 { font-size: 36px; font-weight: 700; color: #0F172A; margin: 0 0 16px; line-height: 1.2; }
.tw-svc-detail-outcome { color: #3D4BC2; font-size: 20px; margin: 0 0 16px; font-weight: 500; }
.tw-svc-detail-desc { color: #475569; font-size: 17px; line-height: 1.6; margin: 0 0 24px; }
.tw-svc-detail-proof { display: inline-flex; align-items: center; gap: 8px; background: #DCFCE7; color: #16A34A; padding: 8px 16px; border-radius: 8px; font-size: 15px; font-weight: 500; }

.tw-svc-features { background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 16px; padding: 32px; }
.tw-svc-features h3 { font-size: 20px; font-weight: 600; color: #0F172A; margin: 0 0 24px; }
.tw-svc-features ul { list-style: none; padding: 0; margin: 0; }
.tw-svc-features li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; color: #475569; font-size: 16px; }
.tw-svc-features li i { color: #3D4BC2; font-size: 22px; flex-shrink: 0; margin-top: 2px; }

/* About page — story + stats row */
.tw-about-row { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .tw-about-row { grid-template-columns: 1fr 1fr; } }
.tw-about-story h2 { font-size: 36px; font-weight: 700; color: #0F172A; margin: 0 0 24px; }
.tw-about-story p { color: #475569; font-size: 17px; line-height: 1.7; margin: 0 0 16px; }
.tw-about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* About — Mission/Vision (2 cards) */
.tw-mv-grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .tw-mv-grid { grid-template-columns: 1fr 1fr; } }
.tw-mv-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; padding: 32px; }
.tw-mv-icon { width: 48px; height: 48px; background: #3D4BC2; color: #fff; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.tw-mv-card h3 { font-size: 28px; font-weight: 700; margin: 0 0 16px; color: #0F172A; }
.tw-mv-card p { color: #475569; font-size: 17px; line-height: 1.6; margin: 0; }

/* Why Choose Tasweqa */
.tw-why-choose-grid { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 48px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .tw-why-choose-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.tw-why-choose-item { display: flex; align-items: flex-start; gap: 12px; }
.tw-why-choose-item i { color: #3D4BC2; font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.tw-why-choose-item span { color: #475569; font-size: 16px; line-height: 1.5; }

/* ============ Generic section padding (match React py-16 sm:py-20 = 64-80px) ============ */
.tw-section { position: relative; }
.tw-section, .tw-social, .tw-problem, .tw-services, .tw-cases, .tw-trust, .tw-faq, .tw-contact { padding-top: 96px !important; padding-bottom: 96px !important; }
.tw-solution, .tw-offer, .tw-final-cta { padding-top: 96px !important; padding-bottom: 96px !important; }
.tw-offer .elementor-container { max-width: 1120px !important; }

/* ============ Elementor button — Figma motion spring animation on all CTAs ============ */
.elementor-button,
.elementor a.elementor-button,
.elementor-widget-button .elementor-button-link {
    transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow .25s ease,
                background-color .2s ease !important;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}
.elementor-button:hover,
.elementor a.elementor-button:hover,
.elementor-widget-button .elementor-button-link:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 20px 35px -10px rgba(61, 75, 194, 0.45), 0 8px 12px -4px rgba(0,0,0,0.12) !important;
}
.elementor-button:active,
.elementor a.elementor-button:active,
.elementor-widget-button .elementor-button-link:active {
    transform: scale(0.98) !important;
    transition: transform .12s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.tw-hero { padding-top: 144px !important; padding-bottom: 128px !important; }
.tw-inner-hero { padding-top: 144px !important; padding-bottom: 112px !important; }

/* Section content max-width to match React's max-w-7xl (1280px) */
.tw-section .elementor-container, .tw-hero .elementor-container, .tw-inner-hero .elementor-container { max-width: 1280px; }

/* Improve heading heirarchy spacing inside sections */
.tw-section .elementor-widget-heading h2.elementor-heading-title { margin-bottom: 16px !important; }

@media (max-width: 768px) {
    .tw-section, .tw-social, .tw-problem, .tw-services, .tw-cases, .tw-trust, .tw-faq, .tw-contact,
    .tw-solution, .tw-offer, .tw-final-cta { padding-top: 64px !important; padding-bottom: 64px !important; }
    .tw-hero { padding-top: 112px !important; padding-bottom: 80px !important; }
    .tw-inner-hero { padding-top: 112px !important; padding-bottom: 80px !important; }
}

/* ============ Problem cards ============ */
.tw-problem-card {
    background: var(--tw-bg-light);
    border: 1px solid var(--tw-border);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    transition: all .3s ease;
}
.tw-problem-card:hover { border-color: var(--tw-primary); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08); }
.tw-problem-card .tw-problem-icon {
    width: 48px; height: 48px;
    background: var(--tw-danger-bg);
    color: var(--tw-danger);
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 16px;
}
.tw-problem-card h3 { font-size: 18px; font-weight: 600; color: var(--tw-heading); margin: 0 0 8px; }
.tw-problem-card p { color: var(--tw-muted); font-size: 14px; line-height: 1.5; margin: 0; }

/* ============ Solution steps ============ */
.tw-step {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    color: #fff;
    transition: background .3s ease;
}
.tw-step:hover { background: rgba(255,255,255,0.20); }
.tw-step .tw-step-num { font-size: 36px; font-weight: 700; color: rgba(255,255,255,0.40); margin-bottom: 16px; line-height: 1; }
.tw-step .tw-step-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.20); color: #fff;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 16px;
}
.tw-step h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; color: #fff; }
.tw-step p { color: #DBE7FF; font-size: 14px; line-height: 1.6; margin: 0; }
.tw-solution-pill {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 32px auto 0; padding: 12px 24px;
    background: rgba(255,255,255,0.20); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: 12px; color: #fff; font-size: 18px;
    width: fit-content;
}

/* ============ Services cards ============ */
.tw-service-card {
    background: var(--tw-bg-light);
    border: 1px solid var(--tw-border);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    transition: all .3s ease;
}
.tw-service-card:hover { border-color: var(--tw-primary); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08); }
.tw-service-card .tw-service-icon {
    width: 48px; height: 48px; background: var(--tw-primary); color: #fff;
    border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 16px;
    transition: transform .3s ease;
}
.tw-service-card:hover .tw-service-icon { transform: scale(1.10); }
.tw-service-card h3 { font-size: 18px; font-weight: 600; color: var(--tw-heading); margin: 0 0 8px; }
.tw-service-card .tw-service-outcome { color: var(--tw-primary); margin: 0 0 12px; font-size: 14px; font-weight: 500; }
.tw-service-card .tw-service-desc { color: var(--tw-muted); font-size: 13px; line-height: 1.5; margin: 0; }

/* ============ Case studies ============ */
.tw-case {
    background: #fff;
    border: 1px solid var(--tw-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: box-shadow .3s ease, transform .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.tw-case:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); transform: translateY(-4px); }

/* Case study image (above the header) — clickable to open lightbox */
.tw-case-img-link {
    display: block;
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #F3F4F6;
    cursor: zoom-in;
    text-decoration: none;
}
.tw-case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease, filter .25s ease;
}
.tw-case-img-link:hover .tw-case-img { transform: scale(1.06); filter: brightness(.92); }
.tw-case-img-zoom {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.7);
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: #3D4BC2;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity .25s ease, transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 18px;
    pointer-events: none;
}
.tw-case-img-link:hover .tw-case-img-zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ============ Lightbox (native <dialog>) ============ */
.tw-lightbox {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}
.tw-lightbox::backdrop { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px); }
.tw-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tw-lb-fade-in .25s ease;
}
@keyframes tw-lb-fade-in { from { opacity: 0; } to { opacity: 1; } }
.tw-lightbox.is-fallback {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    display: flex; align-items: center; justify-content: center;
}
.tw-lightbox-stage {
    max-width: 92vw;
    max-height: 88vh;
    display: flex; align-items: center; justify-content: center;
    overflow: auto;
}
.tw-lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
    transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}
.tw-lightbox-img.is-zoomed { transform: scale(1.75); cursor: zoom-out; }
.tw-lightbox-close,
.tw-lightbox .tw-lightbox-close {
    position: fixed !important;
    top: 16px;
    right: 24px;
    width: 44px !important;
    height: 44px !important;
    min-width: 0 !important;
    max-width: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.10) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-size: 22px !important;
    font-family: Arial, sans-serif !important;
    line-height: 1 !important;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .2s ease, transform .2s ease !important;
    z-index: 2;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    text-align: center;
    box-shadow: none !important;
}
.tw-lightbox-close:hover,
.tw-lightbox .tw-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    transform: scale(1.08) !important;
}
.tw-lightbox-hint {
    position: fixed;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
    pointer-events: none;
}
body.tw-lightbox-lock { overflow: hidden; }

@media (max-width: 640px) {
    .tw-case-img-link { height: 160px; }
}
.tw-case-head {
    background: linear-gradient(to right, var(--tw-primary), var(--tw-primary-dark));
    color: #fff; padding: 16px 24px;
}
.tw-case-head .tw-case-industry { font-size: 13px; color: #DBE7FF; margin-bottom: 4px; }
.tw-case-head h3 { font-size: 18px; font-weight: 600; margin: 0; color: #fff; }
.tw-case-body { padding: 24px; }
.tw-case-body .tw-ba {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--tw-bg-light); border-radius: 10px; padding: 16px; margin-bottom: 24px;
}
.tw-case-body .tw-ba-col { text-align: center; }
.tw-case-body .tw-ba-label { font-size: 11px; color: #94A3B8; margin-bottom: 4px; letter-spacing: .5px; }
.tw-case-body .tw-ba-metric { font-size: 13px; color: var(--tw-muted); }
.tw-case-body .tw-ba-value { font-size: 22px; font-weight: 700; color: var(--tw-heading); }
.tw-case-body .tw-ba-value.tw-after { color: var(--tw-primary); }
.tw-case-body .tw-ba-arrow { color: var(--tw-primary); font-size: 22px; }
.tw-case-body .tw-improvement {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--tw-success-bg); color: var(--tw-success);
    padding: 6px 12px; border-radius: 999px; font-size: 13px; margin-bottom: 16px;
}
.tw-case-body .tw-case-desc { color: var(--tw-text); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.tw-case-body .tw-case-results { border-top: 1px solid var(--tw-border); padding-top: 16px; }
.tw-case-body .tw-case-key { font-size: 13px; color: var(--tw-muted); margin-bottom: 8px; }
.tw-case-body .tw-case-results ul { list-style: none; margin: 0; padding: 0; }
.tw-case-body .tw-case-results li {
    font-size: 14px; color: var(--tw-text);
    padding-left: 20px; position: relative; margin-bottom: 6px;
}
.tw-case-body .tw-case-results li::before {
    content: '✓'; color: var(--tw-primary); position: absolute; left: 0; font-weight: 700;
}

/* ============ Testimonial cards ============ */
.tw-testimonial {
    background: #fff; border: 1px solid #f1f5f9; border-radius: 12px;
    padding: 24px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); height: 100%;
}
.tw-testimonial .tw-stars { color: #FBBF24; font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; }
.tw-testimonial .tw-quote { color: var(--tw-text); line-height: 1.7; margin: 0 0 24px; font-size: 15px; }
.tw-testimonial .tw-testi-divider { border-top: 1px solid var(--tw-border); margin-bottom: 16px; }
.tw-testimonial .tw-testi-name { color: var(--tw-heading); font-weight: 500; margin-bottom: 4px; }
.tw-testimonial .tw-testi-role { color: #94A3B8; font-size: 13px; margin-bottom: 12px; }
.tw-testimonial .tw-testi-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--tw-success-bg); color: var(--tw-success);
    padding: 4px 12px; border-radius: 999px; font-size: 13px;
}

/* ============ Offer card — pushed beyond Figma's max-w-4xl for more visual prominence ============ */
.tw-offer-card {
    background: #fff; color: #0F172A;
    padding: 64px 72px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.30);
    max-width: 1040px; margin: 0 auto;
}
.tw-offer-card h3 { font-size: 32px; font-weight: 600; text-align: center; margin: 0 0 36px; color: var(--tw-heading); line-height: 1.25; }
.tw-offer-card .tw-offer-list { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.tw-offer-card .tw-offer-list li {
    display: flex; align-items: flex-start; gap: 16px;
    font-size: 19px; line-height: 1.55; color: var(--tw-heading); margin-bottom: 0;
}
.tw-offer-card .tw-offer-list li i { color: var(--tw-primary); font-size: 26px; flex-shrink: 0; margin-top: 1px; }
.tw-offer-card .tw-offer-warn {
    background: var(--tw-warning-bg); border: 1px solid #FDE68A; border-radius: 12px;
    padding: 20px 22px; display: flex; align-items: center; gap: 16px; margin-bottom: 36px;
}
.tw-offer-card .tw-offer-warn i { color: #CA8A04; font-size: 26px; flex-shrink: 0; }
.tw-offer-card .tw-warn-title { color: #854D0E; font-size: 16px; font-weight: 500; }
.tw-offer-card .tw-warn-sub { color: #A16207; font-size: 14px; line-height: 1.4; margin-top: 2px; }
.tw-offer-card .tw-offer-cta {
    display: block; width: 100%; padding: 24px 40px;
    background: var(--tw-primary); color: #fff;
    border-radius: 12px; text-align: center; font-weight: 600; font-size: 19px;
    text-decoration: none;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.10);
    transition: background .25s ease, transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease;
}
.tw-offer-card .tw-offer-cta:hover {
    background: var(--tw-primary-dark);
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.30), 0 12px 16px -6px rgba(0,0,0,0.15);
    color: #fff;
}
.tw-offer-card .tw-offer-fineprint { text-align: center; color: #94A3B8; font-size: 14px; margin: 18px 0 0; }
.tw-offer-trust { color: #DBE7FF; text-align: center; font-size: 15px; margin: 36px 0 0; }

@media (max-width: 768px) {
    .tw-offer-card { padding: 40px 28px; max-width: 100%; }
    .tw-offer-card h3 { font-size: 26px; margin-bottom: 28px; }
    .tw-offer-card .tw-offer-list li { font-size: 17px; gap: 12px; }
    .tw-offer-card .tw-offer-list li i { font-size: 22px; }
    .tw-offer-card .tw-offer-cta { padding: 20px 24px; font-size: 17px; }
}

/* ============ Contact page — 2-column layout matching Figma ============ */
.tw-contact-body .elementor-container,
.elementor-section.tw-contact-body .elementor-container { max-width: 1280px !important; }

/* Warning box (Limited Slots Available) — Figma yellow */
.tw-contact-body .tw-warn-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 0 0 28px;
}
.tw-contact-body .tw-warn-box i {
    color: #CA8A04;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.tw-contact-body .tw-warn-title { color: #854D0E; font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.tw-contact-body .tw-warn-sub { color: #A16207; font-size: 13px; line-height: 1.45; }

/* "Other Ways to Reach Us" sidebar — stacked vertical cards */
.tw-contact-body .tw-contact-side-h {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 20px;
}
.tw-contact-body .tw-contact-method {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tw-contact-body .tw-contact-method:hover {
    border-color: #C7D2FE;
    box-shadow: 0 8px 20px -4px rgba(61, 75, 194, 0.12);
    transform: translateY(-2px);
}
.tw-contact-body .tw-contact-method-icon {
    width: 44px; height: 44px;
    background: #3D4BC2;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.tw-contact-body .tw-contact-method-title { font-size: 13px; color: #9CA3AF; font-weight: 500; margin-bottom: 2px; }
.tw-contact-body .tw-contact-method-value { font-size: 16px; color: #0F172A; font-weight: 600; line-height: 1.3; margin-bottom: 4px; word-break: break-word; }
.tw-contact-body .tw-contact-method-desc { font-size: 12px; color: #6B7280; }

/* "What Happens Next?" gradient card — stacked vertical steps */
.tw-contact-body .tw-next-card {
    background: linear-gradient(135deg, #3D4BC2 0%, #2937A0 100%);
    color: #fff;
    border-radius: 16px;
    padding: 28px 26px;
    margin-top: 18px;
}
.tw-contact-body .tw-next-card h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
}
.tw-contact-body .tw-next-card .tw-next-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0;
    margin-bottom: 18px;
}
.tw-contact-body .tw-next-card .tw-next-step:last-child { margin-bottom: 0; }
.tw-contact-body .tw-next-card .tw-next-num {
    width: 32px; height: 32px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}
.tw-contact-body .tw-next-card .tw-next-title { color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.tw-contact-body .tw-next-card .tw-next-desc { color: #DBE7FF; font-size: 13px; line-height: 1.5; }

/* Mobile: stack columns */
@media (max-width: 900px) {
    .tw-contact-body .elementor-column { width: 100% !important; }
}

/* ============ Audit Modal — popup form (opens on "Start Now") ============ */
.tw-audit-modal {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 100%;
    max-height: 100vh;
    width: 100%;
    height: 100vh;
    margin: 0;
    overflow: auto;
    box-sizing: border-box;
}
.tw-audit-modal::backdrop { background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(6px); }
.tw-audit-modal[open] {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px;
    animation: tw-audit-fade .25s ease;
}
@keyframes tw-audit-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.tw-audit-modal.is-fallback {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(15, 23, 42, 0.65);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 48px 16px;
    overflow: auto;
}
.tw-audit-modal-close {
    position: fixed;
    top: 18px; right: 22px;
    width: 44px; height: 44px;
    min-width: 0 !important;
    max-width: 44px !important;
    padding: 0 !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    z-index: 10;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    transition: background .2s ease, transform .2s ease;
}
.tw-audit-modal-close:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.06); }

.tw-audit-modal-card {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}
.tw-audit-modal-head {
    text-align: center;
    margin-bottom: 28px;
    color: #FFFFFF;
}
.tw-audit-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #3D4BC2;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}
.tw-audit-pill i { font-size: 12px; }
.tw-audit-modal-head h2 {
    color: #FFFFFF;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.tw-audit-modal-head p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    margin: 0;
    line-height: 1.5;
}
.tw-audit-modal-body {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.30);
}
.tw-audit-modal-body .wpcf7 form { margin: 0; }
.tw-audit-secure {
    text-align: center;
    margin: 18px 0 0;
    color: #15803D;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tw-audit-secure i { color: #16A34A; font-size: 16px; }
.tw-audit-secure .tw-secure { color: #3D4BC2; font-weight: 600; }

body.tw-audit-lock { overflow: hidden; }

/* ---- Audit Modal — UNIFIED CARD on mobile + tablet (≤900px) ----
   Pattern: heading + form merged in one rounded white card with a gradient
   "header strip" at the top instead of separate dark-blue heading area.
   This creates a single cohesive modal that scrolls naturally on phones. */
@media (max-width: 900px) {
    /* Force the <dialog> itself to fit inside the viewport — not 100vw,
       which includes the scrollbar and pushes the right edge off-screen. */
    .tw-audit-modal {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box;
    }
    .tw-audit-modal[open],
    .tw-audit-modal.is-fallback {
        padding: 24px 20px;
        align-items: flex-start;
        justify-content: center;
        box-sizing: border-box;
    }
    .tw-audit-modal-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding-top: 0;
        background: #FFFFFF;
        border-radius: 18px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.40);
        overflow: hidden;
        position: relative;
    }
    /* Header strip — gradient on top of white card, not separated */
    .tw-audit-modal-head {
        background: linear-gradient(135deg, #3D4BC2 0%, #5A6BD8 100%);
        margin: 0;
        padding: 28px 20px 22px;
        text-align: center;
        border-radius: 18px 18px 0 0;
    }
    .tw-audit-modal-head h2 {
        font-size: clamp(20px, 5.5vw, 26px) !important;
        margin: 0 0 6px;
        padding: 0 36px;
        color: #FFFFFF;
        line-height: 1.25;
    }
    .tw-audit-modal-head p {
        font-size: clamp(13px, 3.5vw, 14px);
        padding: 0 8px;
        color: rgba(255, 255, 255, 0.88);
        line-height: 1.45;
    }
    .tw-audit-pill {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 10px;
    }
    /* Form body inside card — flush with the heading above */
    .tw-audit-modal-body {
        padding: 22px 18px 22px;
        border-radius: 0;
        box-shadow: none;
        background: #FFFFFF;
    }
    /* Close button — sits on the gradient header */
    .tw-audit-modal-close {
        position: absolute;
        top: 12px; right: 12px;
        width: 36px; height: 36px;
        max-width: 36px !important;
        font-size: 18px;
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.35);
        backdrop-filter: blur(4px);
    }
    .tw-audit-secure {
        font-size: 12px;
        flex-wrap: wrap;
        text-align: center;
        line-height: 1.4;
        margin-top: 12px;
    }
}

/* ---- Very small phones (≤380px) — extra-compact ---- */
@media (max-width: 380px) {
    .tw-audit-modal[open],
    .tw-audit-modal.is-fallback { padding: 16px 14px; }
    .tw-audit-modal-card { border-radius: 14px; max-width: 100%; }
    .tw-audit-modal-head { padding: 22px 16px 18px; border-radius: 14px 14px 0 0; }
    .tw-audit-modal-head h2 {
        font-size: 18px !important;
        padding: 0 32px;
    }
    .tw-audit-modal-head p { font-size: 12px; padding: 0 4px; }
    .tw-audit-modal-body { padding: 18px 14px 18px; }
    .tw-audit-modal-close {
        top: 10px; right: 10px;
        width: 32px; height: 32px;
        max-width: 32px !important;
        font-size: 16px;
    }
}

/* ---- Landscape phones (short screens) — collapse heading ---- */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
    .tw-audit-modal[open],
    .tw-audit-modal.is-fallback { padding: 8px 12px; }
    .tw-audit-modal-head { padding: 16px 16px 14px; }
    .tw-audit-modal-head h2 { font-size: 18px !important; padding: 0 36px; }
    .tw-audit-modal-head p { display: none; }
    .tw-audit-pill { margin-bottom: 6px; }
}

/* ---- CF7 form fields inside modal — touch-friendly + readable ---- */
@media (max-width: 900px) {
    .tw-audit-modal-body .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]) {
        min-height: 48px;
        font-size: 16px !important;
        padding: 12px 14px;
        border-radius: 10px;
    }
    .tw-audit-modal-body textarea.wpcf7-form-control { min-height: 96px; }
    .tw-audit-modal-body .wpcf7-form label,
    .tw-audit-modal-body .wpcf7 label { font-size: 14px; margin-bottom: 6px; }
    .tw-audit-modal-body .wpcf7-submit {
        width: 100%;
        min-height: 52px;
        font-size: 16px !important;
        padding: 14px 18px;
        border-radius: 12px;
    }
    .tw-audit-modal-body .wpcf7 p,
    .tw-audit-modal-body .wpcf7 .wpcf7-form > p { margin-bottom: 14px; }
}

/* ============ Contact Form 7 — clean styling, matches Figma 1:1 ============ */
.wpcf7 form {
    margin: 0;
}
.wpcf7-form label {
    display: block;
    color: #0F172A;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 18px;
    line-height: 1.5;
}
.wpcf7-form label .tw-req { color: #3D4BC2; font-weight: 600; margin-left: 2px; }
.wpcf7-form .tw-row {
    display: flex;
    gap: 18px;
    margin: 0 0 0;
}
.wpcf7-form .tw-row .tw-half {
    flex: 1 1 50%;
    min-width: 0;
}
.wpcf7-form .tw-row .tw-half label { margin-bottom: 0; }
.wpcf7-form .tw-row + .tw-row,
.wpcf7-form .tw-row + label,
.wpcf7-form label + label,
.wpcf7-form label + .tw-row,
.wpcf7-form label + .tw-submit-wrap {
    margin-top: 18px;
}

.wpcf7-form .tw-input,
.wpcf7-form input.tw-input,
.wpcf7-form select.tw-input,
.wpcf7-form textarea.tw-input {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 13px 16px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #0F172A;
    font-size: 15px;
    line-height: 1.5;
    font-family: inherit;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}
.wpcf7-form .tw-input:focus,
.wpcf7-form input.tw-input:focus,
.wpcf7-form select.tw-input:focus,
.wpcf7-form textarea.tw-input:focus {
    border-color: #3D4BC2;
    box-shadow: 0 0 0 3px rgba(61, 75, 194, 0.12);
    outline: none;
}
.wpcf7-form .tw-input::placeholder,
.wpcf7-form input.tw-input::placeholder,
.wpcf7-form textarea.tw-input::placeholder {
    color: #9CA3AF;
    opacity: 1;
}
.wpcf7-form select.tw-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-right: 44px;
    cursor: pointer;
}
.wpcf7-form select.tw-input option { color: #0F172A; background: #FFFFFF; }
.wpcf7-form select.tw-input:has(option:first-child:checked),
.wpcf7-form select.tw-input:required:invalid { color: #6B7280; }
.wpcf7-form textarea.tw-input {
    min-height: 110px;
    resize: vertical;
}

/* Submit button — gradient blue with spring motion */
.wpcf7-form .tw-submit-wrap { margin-top: 24px; }
.wpcf7-form input.tw-submit,
.wpcf7-form button.tw-submit,
.wpcf7 .wpcf7-form input[type="submit"].tw-submit {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #4F5EFF 0%, #3D4BC2 100%);
    color: #FFFFFF;
    border: 0;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none !important;
    box-shadow: 0 10px 25px -5px rgba(61, 75, 194, 0.40), 0 4px 6px -2px rgba(61, 75, 194, 0.10);
    cursor: pointer;
    transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease, filter .2s ease;
    font-family: inherit;
}
.wpcf7-form input.tw-submit:hover,
.wpcf7-form button.tw-submit:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 35px -5px rgba(61, 75, 194, 0.50), 0 8px 12px -4px rgba(61, 75, 194, 0.15);
    filter: brightness(1.04);
}
.wpcf7-form input.tw-submit:active,
.wpcf7-form button.tw-submit:active { transform: translateY(0) scale(0.99); }

/* Validation errors */
.wpcf7-form .wpcf7-not-valid-tip {
    color: #DC2626;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}
.wpcf7-form .wpcf7-not-valid {
    border-color: #DC2626;
}
.wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 14px 18px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    border-width: 1px !important;
    border-style: solid !important;
}
.wpcf7 form.sent .wpcf7-response-output {
    color: #065F46;
    background: #D1FAE5;
    border-color: #6EE7B7 !important;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
    color: #991B1B;
    background: #FEE2E2;
    border-color: #FCA5A5 !important;
}

/* Mobile */
@media (max-width: 600px) {
    .wpcf7-form .tw-row { flex-direction: column; gap: 18px; }
    .wpcf7-form .tw-row + .tw-row, .wpcf7-form .tw-row + label { margin-top: 18px; }
}

/* ============ WPForms styling — match Figma exactly ============ */
/* Field labels — dark navy, bold-ish, comfortable spacing */
.wpforms-container .wpforms-field-label,
.wpforms-container label.wpforms-field-label {
    color: #0F172A !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    display: block !important;
}
/* Required asterisk — blue primary (matches Figma) */
.wpforms-container .wpforms-required-label,
.wpforms-container label .wpforms-required-label {
    color: #3D4BC2 !important;
    font-weight: 600 !important;
    margin-left: 4px;
}
/* All inputs/selects/textareas — clean light borders, rounded, comfortable padding */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="number"],
.wpforms-container input[type="url"],
.wpforms-container select,
.wpforms-container textarea {
    width: 100% !important;
    padding: 13px 16px !important;
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    color: #0F172A !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
    border-color: #3D4BC2 !important;
    box-shadow: 0 0 0 3px rgba(61, 75, 194, 0.12) !important;
    outline: none !important;
}
.wpforms-container input::placeholder,
.wpforms-container textarea::placeholder {
    color: #9CA3AF !important;
    opacity: 1;
}
/* Select dropdown — add custom chevron + force visible option text */
.wpforms-container select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 14px center !important;
    background-repeat: no-repeat !important;
    background-size: 20px 20px !important;
    padding-right: 44px !important;
    color: #0F172A !important;
}
/* Options inside the dropdown popup — force dark text on white */
.wpforms-container select option {
    color: #0F172A !important;
    background: #FFFFFF !important;
}
/* Placeholder state (first option with empty value) — show as readable gray when no selection made */
.wpforms-container select:has(option[value=""]:checked) {
    color: #6B7280 !important;
}
/* Fallback for browsers without :has() — use :invalid for required selects with no value */
.wpforms-container select:required:invalid {
    color: #6B7280 !important;
}
/* Textarea — taller default */
.wpforms-container textarea { min-height: 110px !important; resize: vertical; }
/* Field row spacing */
.wpforms-container .wpforms-field { padding: 0 0 18px !important; }
/* 2-column layout — Figma uses small horizontal gap */
.wpforms-container form .wpforms-field-container { display: flex; flex-wrap: wrap; gap: 0 20px; }
.wpforms-container .wpforms-one-half,
.wpforms-container form .wpforms-one-half {
    width: calc(50% - 10px) !important;
    float: none !important;
    margin: 0 !important;
    display: inline-block !important;
    vertical-align: top !important;
}
.wpforms-container .wpforms-one-half.wpforms-first,
.wpforms-container form .wpforms-one-half.wpforms-first {
    margin-right: 0 !important;
}
.wpforms-container form .wpforms-field:not(.wpforms-one-half):not(.wpforms-one-third):not(.wpforms-one-fourth) {
    width: 100% !important;
}
@media (max-width: 600px) {
    .wpforms-container form .wpforms-field-container { gap: 0; }
    .wpforms-container .wpforms-one-half,
    .wpforms-container form .wpforms-one-half,
    .wpforms-container .wpforms-one-half.wpforms-first { width: 100% !important; margin-right: 0 !important; }
}

/* Submit button — gradient blue, prominent, with motion */
.wpforms-container .wpforms-submit-container { padding: 8px 0 0 !important; }
.wpforms-container button.wpforms-submit,
.wpforms-container input[type="submit"].wpforms-submit {
    width: 100% !important;
    padding: 18px 24px !important;
    background: linear-gradient(135deg, #4F5EFF 0%, #3D4BC2 100%) !important;
    color: #FFFFFF !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 10px 25px -5px rgba(61, 75, 194, 0.40), 0 4px 6px -2px rgba(61, 75, 194, 0.10) !important;
    cursor: pointer !important;
    transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease, filter .2s ease !important;
    margin-top: 0 !important;
}
.wpforms-container button.wpforms-submit:hover,
.wpforms-container input[type="submit"].wpforms-submit:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 20px 35px -5px rgba(61, 75, 194, 0.50), 0 8px 12px -4px rgba(61, 75, 194, 0.15) !important;
    filter: brightness(1.04);
}
.wpforms-container button.wpforms-submit:active { transform: translateY(0) scale(0.99) !important; }

/* Error states */
.wpforms-container .wpforms-error {
    color: #DC2626 !important;
    font-size: 13px !important;
    margin-top: 6px !important;
}
.wpforms-container input.wpforms-error,
.wpforms-container select.wpforms-error,
.wpforms-container textarea.wpforms-error {
    border-color: #DC2626 !important;
}

/* Privacy footnote (custom shortcode below form) */
.tw-form-footnote {
    text-align: center;
    color: #6B7280;
    font-size: 14px;
    margin: 16px 0 0;
    line-height: 1.5;
}
.tw-form-footnote strong,
.tw-form-footnote .tw-secure {
    color: #3D4BC2;
    font-weight: 600;
}

/* ============ Our Clients section (static grid, controllable from Customizer) ============ */
.tw-clients {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
}
.tw-clients-head {
    text-align: center;
    margin-bottom: 48px;
}
.tw-clients-pill {
    display: inline-block;
    background: #EEF2FF;
    color: #3D4BC2;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}
.tw-clients-title {
    font-size: 40px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 12px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.tw-clients-sub {
    color: #6B7280;
    font-size: 17px;
    margin: 0;
}
.tw-clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
@media (max-width: 1024px) {
    .tw-clients-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .tw-clients-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .tw-clients-title { font-size: 30px; }
    .tw-clients { padding: 56px 16px; }
}
.tw-client-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 28px 16px 22px;
    text-align: center;
    transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.tw-client-card:hover {
    border-color: #C7D2FE;
    box-shadow: 0 10px 25px -5px rgba(61, 75, 194, 0.10);
    transform: translateY(-2px);
}
.tw-client-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
}
.tw-client-logo img {
    max-height: 64px;
    max-width: 80%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.05));
}
.tw-client-placeholder {
    font-size: 32px;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: -0.5px;
}
.tw-client-name {
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
}
.tw-clients-tagline {
    text-align: center;
    color: #6B7280;
    font-size: 15px;
    margin: 0;
}

/* Widen Elementor container for the Clients section if hosted in Elementor */
.tw-clients-wrapper .elementor-container,
.elementor-section.tw-clients-wrapper .elementor-container { max-width: 1320px !important; }

/* ============ FAQ — match Figma design (separated cards, gray chevron) ============ */
.elementor-widget-toggle .elementor-toggle {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.elementor-widget-toggle .elementor-toggle-item {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.elementor-widget-toggle .elementor-toggle-item:hover {
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
    border-color: #D1D5DB !important;
}
.elementor-widget-toggle .elementor-tab-title {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px !important;
    background: transparent !important;
    border: 0 !important;
    color: #0F172A !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    cursor: pointer;
    transition: background-color .2s ease;
    text-align: left;
    gap: 16px;
}
.elementor-widget-toggle .elementor-tab-title:hover {
    background: #F9FAFB !important;
}
.elementor-widget-toggle .elementor-tab-title.elementor-active {
    background: transparent !important;
    color: #0F172A !important;
    border-bottom: 0 !important;
}
/* Hide Elementor's default icon, render our own chevron via CSS */
.elementor-widget-toggle .elementor-toggle-icon { display: none !important; }
.elementor-widget-toggle .elementor-tab-title::after {
    content: '';
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    border-right: 2px solid #9CA3AF;
    border-bottom: 2px solid #9CA3AF;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .25s ease, border-color .25s ease;
    margin-right: 4px;
}
.elementor-widget-toggle .elementor-tab-title.elementor-active::after {
    transform: rotate(-135deg) translateY(2px);
    border-color: #3D4BC2;
}
.elementor-widget-toggle .elementor-tab-content {
    padding: 4px 24px 20px !important;
    background: transparent !important;
    border: 0 !important;
    color: #4B5563 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}
.elementor-widget-toggle .elementor-tab-content p { margin: 0 !important; color: inherit !important; }
@media (max-width: 640px) {
    .elementor-widget-toggle .elementor-tab-title { padding: 18px 18px !important; font-size: 16px !important; }
    .elementor-widget-toggle .elementor-tab-content { padding: 4px 18px 18px !important; font-size: 14px !important; }
}

/* ============ Trust credentials + platforms (sized to match/exceed Figma for prominence) ============ */
.tw-cred { text-align: center; transition: transform .25s ease; }
.tw-cred:hover { transform: translateY(-4px); }
.tw-cred .tw-cred-icon {
    width: 76px; height: 76px; background: var(--tw-primary); color: #fff;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 32px; margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(61, 75, 194, 0.35);
    transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease;
}
.tw-cred:hover .tw-cred-icon { transform: scale(1.08); box-shadow: 0 15px 30px -5px rgba(61, 75, 194, 0.45); }
.tw-cred h3 { font-size: 20px; font-weight: 600; color: var(--tw-heading); margin: 0 0 10px; }
.tw-cred p { color: var(--tw-muted); font-size: 15px; line-height: 1.55; margin: 0; max-width: 240px; margin-left: auto; margin-right: auto; }

.tw-platforms {
    background: var(--tw-bg-light); border-radius: 20px; padding: 56px 48px; margin-top: 72px;
}
.tw-platforms .tw-platforms-head { text-align: center; margin-bottom: 40px; }
.tw-platforms .tw-platforms-head h3 { font-size: 28px; font-weight: 600; margin: 0 0 10px; color: var(--tw-heading); letter-spacing: -0.3px; }
.tw-platforms .tw-platforms-head p { color: var(--tw-muted); margin: 0; font-size: 16px; }
.tw-platforms .tw-platforms-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
}
.tw-platforms .tw-platforms-grid.tw-platforms-grid-8 {
    grid-template-columns: repeat(8, 1fr);
    gap: 24px;
    background: transparent;
}
@media (max-width: 1024px) {
    .tw-platforms .tw-platforms-grid.tw-platforms-grid-8 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
    .tw-platforms .tw-platforms-grid.tw-platforms-grid-8 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
.tw-platforms .tw-platform {
    background: transparent;
    border: 0;
    padding: 12px 8px 18px;
    text-align: center;
    box-shadow: none;
    transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    animation: tw-fade-up .6s ease forwards;
}
.tw-platforms .tw-platform:hover {
    transform: translateY(-6px);
    box-shadow: none;
}
.tw-platforms .tw-platform-logo {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.tw-platforms .tw-platform-logo img {
    max-height: 56px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), filter .25s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}
.tw-platforms .tw-platform:hover .tw-platform-logo img {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.16));
}
.tw-platforms .tw-platform-name { font-size: 17px; font-weight: 700; color: var(--tw-heading); margin-bottom: 4px; letter-spacing: -0.2px; }
.tw-platforms .tw-platform-sub { font-size: 13px; color: #94A3B8; letter-spacing: 0.02em; font-weight: 500; }

/* Widen the Trust section's Elementor container so the grid spreads more */
.tw-trust .elementor-container,
.elementor-section.tw-trust .elementor-container { max-width: 1280px !important; }

@media (max-width: 768px) {
    .tw-cred .tw-cred-icon { width: 64px; height: 64px; font-size: 28px; }
    .tw-platforms { padding: 40px 24px; }
    .tw-platforms .tw-platform { padding: 24px 16px; }
    .tw-platforms .tw-platform-name { font-size: 22px; }
}

/* ============ Final CTA ============ */
.tw-cta-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 40px; }
.tw-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 18px 40px; border-radius: 10px; font-size: 18px; font-weight: 600;
    text-decoration: none; transition: all .3s ease;
}
.tw-btn-white { background: #fff; color: var(--tw-primary); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.tw-btn-white:hover { background: #F8FAFC; transform: scale(1.05); color: var(--tw-primary); }
.tw-btn-outline { border: 2px solid #fff; color: #fff; }
.tw-btn-outline:hover { background: #fff; color: var(--tw-primary); }
.tw-signals {
    display: flex; flex-wrap: wrap; gap: 32px; justify-content: center;
    color: #DBE7FF; font-size: 15px;
}
.tw-signals span { display: inline-flex; align-items: center; gap: 8px; }

/* ============ Contact form (placeholder) ============ */
.tw-contact-form {
    background: var(--tw-bg-light); border: 1px solid var(--tw-border);
    border-radius: 12px; padding: 32px;
}
.tw-contact-form .tw-field { margin-bottom: 24px; }
.tw-contact-form label { display: block; font-size: 13px; color: var(--tw-muted); margin-bottom: 8px; }
.tw-contact-form input {
    width: 100%; padding: 14px 16px;
    border: 1px solid #CBD5E1; border-radius: 10px;
    font-size: 16px; outline: none; transition: all .2s;
}
.tw-contact-form input:focus { border-color: var(--tw-primary); box-shadow: 0 0 0 4px rgba(61,75,194,0.15); }
.tw-contact-form .tw-form-submit {
    width: 100%; padding: 16px; background: var(--tw-primary); color: #fff;
    border: 0; border-radius: 10px; font-size: 18px; font-weight: 600;
    cursor: pointer; transition: all .3s ease;
}
.tw-contact-form .tw-form-submit:hover { background: var(--tw-primary-dark); transform: scale(1.02); }
.tw-contact-form .tw-form-fineprint { text-align: center; color: #94A3B8; font-size: 13px; margin: 16px 0 0; }

/* ============ Inner pages — Hero stats (scoped to .tw-inner-hero only) ============ */
.tw-inner-hero .tw-hero-stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; margin-top: 32px; }
.tw-inner-hero .tw-hero-stat-col { text-align: center; }
.tw-inner-hero .tw-hero-stat-num { font-size: 48px; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.1; }
.tw-inner-hero .tw-hero-stat-lbl { color: #DBE7FF; font-size: 16px; }
.tw-cs-hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 64px; }
.tw-cs-hero-stats > div { text-align: center; }
.tw-cs-num { font-size: 56px; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.1; }
.tw-cs-lbl { color: #DBE7FF; font-size: 16px; }

/* ============ Services page — detailed service blocks ============ */
.tw-service-detail { padding: 16px 0; }
.tw-service-detail-icon { width: 64px; height: 64px; background: var(--tw-primary); color: #fff; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 24px; }
.tw-service-detail h2 { font-size: 36px; font-weight: 700; margin: 0 0 16px; color: var(--tw-heading); line-height: 1.2; }
.tw-service-detail-outcome { color: var(--tw-primary); font-size: 20px; margin: 0 0 16px; font-weight: 500; }
.tw-service-detail-desc { color: var(--tw-text); font-size: 17px; line-height: 1.6; margin: 0 0 24px; }
.tw-service-detail-proof { display: inline-flex; align-items: center; gap: 8px; background: var(--tw-success-bg); color: var(--tw-success); padding: 8px 16px; border-radius: 8px; font-size: 15px; font-weight: 500; }
.tw-service-features { background: var(--tw-bg-light); border: 1px solid var(--tw-border); border-radius: 16px; padding: 32px; }
.tw-service-features h3 { font-size: 20px; font-weight: 600; margin: 0 0 24px; color: var(--tw-heading); }
.tw-service-features ul { list-style: none; padding: 0; margin: 0; }
.tw-service-features li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; color: var(--tw-text); font-size: 16px; }
.tw-service-features li i { color: var(--tw-primary); font-size: 22px; flex-shrink: 0; margin-top: 2px; }

/* ============ Process cards (Services page) ============ */
.tw-process-card { background: #fff; border: 1px solid var(--tw-border); border-radius: 14px; padding: 24px; height: 100%; position: relative; }
.tw-process-num { font-size: 36px; font-weight: 700; color: rgba(61,75,194,0.20); margin-bottom: 16px; line-height: 1; }
.tw-process-card h3 { font-size: 20px; font-weight: 600; color: var(--tw-heading); margin: 0 0 8px; }
.tw-process-card p { color: var(--tw-muted); font-size: 14px; line-height: 1.5; margin: 0; }

/* ============ Case Studies — detailed cards ============ */
.tw-case-detail { background: #fff; border: 1px solid var(--tw-border); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); height: 100%; }
.tw-case-detail-head { background: linear-gradient(to right, var(--tw-primary), var(--tw-primary-dark)); color: #fff; padding: 16px 24px; }
.tw-case-detail-industry { font-size: 13px; color: #DBE7FF; margin-bottom: 4px; }
.tw-case-detail-head h3 { font-size: 18px; font-weight: 600; margin: 0; color: #fff; }
.tw-case-detail-body { padding: 24px; }
.tw-case-detail-client { font-size: 13px; color: #94A3B8; margin-bottom: 16px; }
.tw-case-block { margin-bottom: 16px; }
.tw-case-block h4 { font-size: 13px; color: var(--tw-muted); margin: 0 0 6px; font-weight: 500; }
.tw-case-block p { font-size: 14px; color: var(--tw-text); line-height: 1.5; margin: 0; }
.tw-case-detail-body .tw-ba { display: flex; align-items: center; justify-content: space-between; background: var(--tw-bg-light); border-radius: 10px; padding: 16px; margin: 16px 0; }
.tw-case-detail-body .tw-ba-col { text-align: center; }
.tw-case-detail-body .tw-ba-label { font-size: 11px; color: #94A3B8; margin-bottom: 4px; letter-spacing: .5px; }
.tw-case-detail-body .tw-ba-metric { font-size: 11px; color: var(--tw-muted); }
.tw-case-detail-body .tw-ba-value { font-size: 20px; font-weight: 700; color: var(--tw-heading); }
.tw-case-detail-body .tw-ba-value.tw-after { color: var(--tw-primary); }
.tw-case-detail-body .tw-ba-arrow { color: var(--tw-primary); font-size: 22px; }
.tw-case-detail-body .tw-improvement { display: inline-flex; align-items: center; gap: 6px; background: var(--tw-success-bg); color: var(--tw-success); padding: 6px 12px; border-radius: 999px; font-size: 13px; margin-bottom: 16px; }
.tw-case-detail-body .tw-case-results { border-top: 1px solid var(--tw-border); padding-top: 16px; margin-top: 16px; }
.tw-case-detail-body .tw-case-key { font-size: 13px; color: var(--tw-muted); margin-bottom: 8px; }
.tw-case-detail-body .tw-case-results ul { list-style: none; margin: 0; padding: 0; }
.tw-case-detail-body .tw-case-results li { font-size: 14px; color: var(--tw-text); padding-left: 20px; position: relative; margin-bottom: 6px; }
.tw-case-detail-body .tw-case-results li::before { content: '✓'; color: var(--tw-primary); position: absolute; left: 0; font-weight: 700; }
.tw-case-timeline { font-size: 12px; color: #94A3B8; margin-top: 16px; }

/* ============ About page ============ */
.tw-about-story h2 { font-size: 36px; font-weight: 700; color: var(--tw-heading); margin: 0 0 24px; }
.tw-about-story p { color: var(--tw-text); font-size: 17px; line-height: 1.7; margin: 0 0 16px; }
.tw-about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tw-about-stat { background: var(--tw-bg-light); border: 1px solid var(--tw-border); border-radius: 14px; padding: 32px; text-align: center; }
.tw-about-stat-num { font-size: 40px; font-weight: 700; color: var(--tw-primary); margin-bottom: 4px; }
.tw-about-stat-lbl { color: var(--tw-muted); }
.tw-mv-grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .tw-mv-grid { grid-template-columns: 1fr 1fr; } }
.tw-mv-card { background: #fff; border: 1px solid var(--tw-border); border-radius: 14px; padding: 32px; }
.tw-mv-icon { width: 48px; height: 48px; background: var(--tw-primary); color: #fff; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.tw-mv-card h3 { font-size: 28px; font-weight: 700; margin: 0 0 16px; color: var(--tw-heading); }
.tw-mv-card p { color: var(--tw-text); font-size: 17px; line-height: 1.6; margin: 0; }
.tw-why-choose-grid { background: #fff; border: 1px solid var(--tw-border); border-radius: 16px; padding: 48px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .tw-why-choose-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.tw-why-choose-item { display: flex; align-items: flex-start; gap: 12px; }
.tw-why-choose-item i { color: var(--tw-primary); font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.tw-why-choose-item span { color: var(--tw-text); font-size: 16px; line-height: 1.5; }

/* ============ Contact page ============ */
.tw-contact-form-full { display: flex; flex-direction: column; gap: 20px; }
.tw-contact-form-full .tw-field-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .tw-contact-form-full .tw-field-row { grid-template-columns: 1fr 1fr; } }
.tw-contact-form-full .tw-field { display: flex; flex-direction: column; }
.tw-contact-form-full label { display: block; font-size: 13px; color: var(--tw-muted); margin-bottom: 8px; }
.tw-contact-form-full input, .tw-contact-form-full textarea { width: 100%; padding: 14px 16px; border: 1px solid #CBD5E1; border-radius: 10px; font-size: 16px; outline: none; transition: all .2s; font-family: inherit; }
.tw-contact-form-full textarea { resize: vertical; min-height: 120px; }
.tw-contact-form-full input:focus, .tw-contact-form-full textarea:focus { border-color: var(--tw-primary); box-shadow: 0 0 0 4px rgba(61,75,194,0.15); }
.tw-contact-form-full .tw-form-submit { padding: 18px; background: var(--tw-primary); color: #fff; border: 0; border-radius: 10px; font-size: 18px; font-weight: 600; cursor: pointer; transition: all .3s ease; }
.tw-contact-form-full .tw-form-submit:hover { background: var(--tw-primary-dark); transform: scale(1.02); }
.tw-contact-form-full .tw-form-fineprint { text-align: center; color: #94A3B8; font-size: 13px; margin: 0; }
.tw-warn-box { background: var(--tw-warning-bg); border: 1px solid #FDE68A; border-radius: 10px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
.tw-warn-box i { color: #CA8A04; font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.tw-warn-title { color: #854D0E; font-weight: 500; margin-bottom: 2px; }
.tw-warn-sub { color: #A16207; font-size: 13px; }
.tw-contact-side-h { font-size: 24px; font-weight: 600; color: var(--tw-heading); margin: 0 0 24px; }
.tw-contact-method { display: flex; align-items: flex-start; gap: 16px; padding: 24px; background: var(--tw-bg-light); border: 1px solid var(--tw-border); border-radius: 14px; margin-bottom: 16px; text-decoration: none; transition: all .3s ease; }
.tw-contact-method:hover { border-color: var(--tw-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.tw-contact-method-icon { width: 48px; height: 48px; background: var(--tw-primary); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.tw-contact-method-title { font-size: 13px; color: var(--tw-muted); margin-bottom: 2px; }
.tw-contact-method-value { font-size: 17px; color: var(--tw-heading); margin-bottom: 4px; }
.tw-contact-method-desc { font-size: 13px; color: var(--tw-muted); }
.tw-next-card { background: linear-gradient(to bottom right, var(--tw-primary), var(--tw-primary-dark)); color: #fff; border-radius: 16px; padding: 32px; margin-top: 24px; }
.tw-next-card h3 { font-size: 24px; font-weight: 600; margin: 0 0 24px; color: #fff; }
.tw-next-step { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.tw-next-num { width: 32px; height: 32px; background: rgba(255,255,255,0.20); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.tw-next-title { color: #fff; margin-bottom: 2px; }
.tw-next-desc { color: #DBE7FF; font-size: 14px; }

/* ============ Blog page ============ */
.tw-blog-search { position: relative; max-width: 540px; margin: 0 auto; }
.tw-blog-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.7); font-size: 16px; }
.tw-blog-search input { width: 100%; padding: 16px 16px 16px 48px; background: rgba(255,255,255,0.10); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.20); border-radius: 10px; color: #fff; font-size: 16px; outline: none; }
.tw-blog-search input::placeholder { color: #DBE7FF; }
.tw-blog-search input:focus { background: rgba(255,255,255,0.20); }
.tw-blog-cats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 48px; }
.tw-blog-cat { padding: 8px 24px; border-radius: 999px; background: #F1F5F9; color: var(--tw-text); border: 0; font-size: 14px; cursor: pointer; transition: all .2s; }
.tw-blog-cat.is-active { background: var(--tw-primary); color: #fff; }
.tw-blog-cat:hover:not(.is-active) { background: #E2E8F0; }
.tw-blog-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .tw-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tw-blog-grid { grid-template-columns: 1fr 1fr 1fr; } }
.tw-blog-card { background: #fff; border: 1px solid var(--tw-border); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: box-shadow .3s ease; }
.tw-blog-card:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); }
.tw-blog-thumb { background: linear-gradient(to bottom right, var(--tw-primary), var(--tw-primary-dark)); height: 180px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 48px; font-weight: 700; }
.tw-blog-body { padding: 24px; }
.tw-blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tw-blog-cat-pill { background: rgba(61,75,194,0.10); color: var(--tw-primary); padding: 4px 12px; border-radius: 999px; font-size: 12px; }
.tw-blog-date { color: var(--tw-muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.tw-blog-card h3 { font-size: 18px; font-weight: 600; color: var(--tw-heading); margin: 0 0 12px; line-height: 1.3; }
.tw-blog-card p { color: var(--tw-muted); font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.tw-blog-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid #F1F5F9; }
.tw-blog-time { color: var(--tw-muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.tw-blog-footer a { color: var(--tw-primary); text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.tw-blog-footer a:hover { text-decoration: underline; }

/* ============ Legal pages ============ */
.tw-legal { color: var(--tw-text); }
.tw-legal-updated { font-size: 18px; color: var(--tw-muted); margin: 0 0 32px; }
.tw-legal section { margin-bottom: 32px; }
.tw-legal h2 { font-size: 24px; font-weight: 600; color: var(--tw-heading); margin: 0 0 16px; }
.tw-legal p { font-size: 17px; line-height: 1.7; margin: 0 0 16px; color: var(--tw-text); }
.tw-legal ul { list-style: disc; padding-left: 24px; margin: 0 0 16px; }
.tw-legal ul li { font-size: 17px; line-height: 1.7; color: var(--tw-text); margin-bottom: 8px; }

/* ============ Inner hero — gradient background (override missing per-post CSS) ============ */
.tw-inner-hero {
    padding-top: 120px !important;
    background: linear-gradient(135deg, #3D4BC2 0%, #2937A0 100%) !important;
}
.tw-hero {
    background: linear-gradient(135deg, #3D4BC2 0%, #2937A0 100%) !important;
}
.tw-solution {
    background: linear-gradient(135deg, #3D4BC2 0%, #2937A0 100%) !important;
}
.tw-offer {
    background: linear-gradient(135deg, #3D4BC2 0%, #2937A0 100%) !important;
}
.tw-final-cta {
    background: linear-gradient(135deg, #3D4BC2 0%, #2937A0 100%) !important;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .tw-cta-buttons { flex-direction: column; align-items: center; }
    .tw-btn { width: 100%; max-width: 320px; justify-content: center; }
    .tw-platforms { padding: 32px 24px; }
    .tw-offer-card { padding: 32px 24px; }
    .tw-signals { flex-direction: column; gap: 12px; }
    .tw-hero-stats-row { gap: 24px; }
    .tw-hero-stat-num, .tw-cs-num { font-size: 36px; }
    .tw-service-features { padding: 24px; }
    .tw-about-stats { grid-template-columns: 1fr; }
}

/* =============================================================================
   Single post template (single.php) — two-column layout with sticky sidebar
   ============================================================================= */

.tw-single-post { background: #F9FAFB; }

/* --- Hero (background image + overlay) --- */
.tw-post-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}
.tw-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.85) 100%);
}
.tw-post-hero.no-image .tw-post-hero-overlay {
    background: linear-gradient(135deg, #3D4BC2 0%, #2937A0 100%);
}
.tw-post-hero .tw-post-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 60px 20px;
}
.tw-post-cat-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.40);
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}
.tw-post-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin: 8px 0 14px;
    line-height: 1.15;
    color: #FFFFFF !important;
    letter-spacing: -0.5px;
}
.tw-post-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.tw-post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tw-post-meta i { color: #4F5EFF; }

/* --- Main two-column layout --- */
.tw-post-main {
    background: #F9FAFB;
    padding: 80px 20px;
}
.tw-post-main .tw-post-container {
    max-width: 1200px;
    margin: 0 auto;
}
.tw-post-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* --- Article card --- */
.tw-post-article {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.04);
}
.tw-post-article .tw-post-featured {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.tw-post-article .tw-post-featured-fallback {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 96px;
    background: linear-gradient(135deg, var(--tw-card-from, #3D4BC2) 0%, var(--tw-card-to, #2937A0) 100%);
    position: relative;
    overflow: hidden;
}
.tw-post-article .tw-post-featured-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 50%);
}
.tw-post-article .tw-post-featured-fallback i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.25));
}
.tw-post-article .tw-post-body {
    padding: 40px;
    color: #374151;
    font-size: 16px;
    line-height: 1.85;
}
.tw-post-article .tw-post-body > *:first-child { margin-top: 0; }
.tw-post-article .tw-post-body > *:last-child { margin-bottom: 0; }
.tw-post-article .tw-post-body p {
    font-size: 16px;
    line-height: 1.85;
    color: #374151;
    margin: 0 0 18px;
}
.tw-post-article .tw-post-body h2,
.tw-post-article .tw-post-body h3,
.tw-post-article .tw-post-body h4 {
    color: #0F172A;
    margin: 28px 0 12px;
    font-weight: 700;
    line-height: 1.3;
}
.tw-post-article .tw-post-body h2 { font-size: 26px; }
.tw-post-article .tw-post-body h3 { font-size: 20px; font-weight: 600; }
.tw-post-article .tw-post-body h4 { font-size: 17px; font-weight: 600; }
.tw-post-article .tw-post-body ul,
.tw-post-article .tw-post-body ol {
    color: #374151;
    padding-left: 24px;
    line-height: 1.85;
    margin: 0 0 18px;
}
.tw-post-article .tw-post-body li { margin-bottom: 6px; }
.tw-post-article .tw-post-body li::marker { color: #3D4BC2; }
.tw-post-article .tw-post-body strong { color: #0F172A; font-weight: 600; }
.tw-post-article .tw-post-body em { font-style: italic; color: #4B5563; }
.tw-post-article .tw-post-body a {
    color: #3D4BC2;
    text-decoration: underline;
    text-decoration-color: rgba(61, 75, 194, 0.30);
    text-underline-offset: 3px;
}
.tw-post-article .tw-post-body a:hover { color: #2937A0; text-decoration-color: #3D4BC2; }
.tw-post-article .tw-post-body code {
    background: #F3F4F6;
    color: #BE185D;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.9em;
}
.tw-post-article .tw-post-body blockquote {
    border-left: 4px solid #4F5EFF;
    padding: 12px 20px;
    margin: 20px 0;
    background: #F9FAFB;
    font-style: italic;
    color: #4B5563;
    border-radius: 0 6px 6px 0;
}
.tw-post-article .tw-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

/* --- Share row --- */
.tw-post-article .tw-post-share {
    padding: 24px 40px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.tw-post-article .tw-post-share-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9CA3AF;
}
.tw-post-article .tw-post-share-icons { display: inline-flex; gap: 8px; }
.tw-post-article .tw-post-share-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F3F4F6;
    color: #3D4BC2;
    text-decoration: none;
    transition: all .2s;
    font-size: 14px;
}
.tw-post-article .tw-post-share-icons a:hover {
    background: #3D4BC2;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* --- Sidebar --- */
.tw-post-sidebar { position: sticky; top: 100px; }
.tw-post-sidebar-block {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 28px;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.04);
    margin-bottom: 20px;
}
.tw-post-sidebar-block h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3D4BC2;
}
.tw-post-latest-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    text-decoration: none;
    color: inherit;
    transition: opacity .2s;
}
.tw-post-latest-item:last-of-type { border-bottom: none; }
.tw-post-latest-item:hover { opacity: 0.78; }
.tw-post-latest-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #F3F4F6;
}
.tw-post-latest-thumb-fallback {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 22px;
    background: linear-gradient(135deg, var(--tw-card-from, #3D4BC2) 0%, var(--tw-card-to, #2937A0) 100%);
}
.tw-post-latest-meta { flex: 1; min-width: 0; }
.tw-post-latest-meta h5 {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tw-post-latest-meta .date {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #9CA3AF;
    text-transform: uppercase;
}
.tw-post-cta-btn {
    display: block;
    text-align: center;
    background: #3D4BC2;
    color: #FFFFFF;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 16px;
    transition: all .25s;
}
.tw-post-cta-btn:hover {
    background: #2937A0;
    transform: translateY(-1px);
    color: #FFFFFF;
}

/* --- Related stories --- */
.tw-post-related {
    background: #F3F4F6;
    padding: 64px 20px;
}
.tw-post-related .tw-post-container { max-width: 1200px; margin: 0 auto; }
.tw-post-related .tw-post-sec-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #3D4BC2;
    text-align: center;
    margin-bottom: 8px;
}
.tw-post-related h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0F172A;
    text-align: center;
    margin: 0 0 36px;
    letter-spacing: -0.3px;
}
.tw-post-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.tw-post-related-card {
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: all .3s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.tw-post-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    color: inherit;
    text-decoration: none;
}
.tw-post-related-card .img-wrap {
    height: 200px;
    overflow: hidden;
    background: #F3F4F6;
}
.tw-post-related-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.tw-post-related-card:hover .img-wrap img { transform: scale(1.05); }
.tw-post-related-card .img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 56px;
    background: linear-gradient(135deg, var(--tw-card-from, #3D4BC2) 0%, var(--tw-card-to, #2937A0) 100%);
}
.tw-post-related-card-body { padding: 20px; }
.tw-post-related-card-body .cat {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4F5EFF;
    margin-bottom: 6px;
}
.tw-post-related-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 10px;
    line-height: 1.4;
}
.tw-post-related-card-body .excerpt {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.7;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tw-post-related-card-body .read {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3D4BC2;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .tw-post-layout { grid-template-columns: 1fr; }
    .tw-post-sidebar { position: static; }
    .tw-post-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .tw-post-main { padding: 48px 16px; }
    .tw-post-article .tw-post-featured,
    .tw-post-article .tw-post-featured-fallback { height: 240px; }
    .tw-post-article .tw-post-featured-fallback { font-size: 64px; }
    .tw-post-article .tw-post-body { padding: 28px 22px; font-size: 15px; }
    .tw-post-article .tw-post-body h2 { font-size: 22px; }
    .tw-post-article .tw-post-body h3 { font-size: 18px; }
    .tw-post-article .tw-post-share { padding: 20px 22px; }
    .tw-post-related { padding: 48px 16px; }
    .tw-post-related h2 { font-size: 24px; }
    .tw-post-related-grid { grid-template-columns: 1fr; }
    .tw-post-meta { gap: 12px; font-size: 13px; }
}

/* =============================================================================
   Improved blog card placeholders (used when post has no featured image)
   ============================================================================= */

.tw-blog-thumb-fallback {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, var(--tw-card-from, #3D4BC2) 0%, var(--tw-card-to, #2937A0) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 56px;
    position: relative;
    overflow: hidden;
}
.tw-blog-thumb-fallback::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}
.tw-blog-thumb-fallback::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 12px);
    pointer-events: none;
}
.tw-blog-thumb-fallback i { position: relative; z-index: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.20)); }

/* ============================================================================
   Mobile responsive overrides — match Figma mobile layout
   ============================================================================ */
@media (max-width: 768px) {
    /* Hero — shrink huge title, reduce padding, hide desktop dashboard */
    .tw-hero h1,
    .tw-hero .elementor-widget-html h1 {
        font-size: 36px !important;
        line-height: 1.15 !important;
        margin-bottom: 24px !important;
    }
    .tw-hero .elementor-widget-html .tw-fade-up h1,
    .tw-hero h1.tw-fade-up {
        font-size: 36px !important;
    }
    .tw-hero { padding: 40px 0 56px !important; }

    /* Hide right-column dashboard cards on mobile (matches Figma — only desktop shows them) */
    .tw-hero-dashboard,
    .tw-hero .elementor-column:last-child:not(:first-child) { display: none !important; }
    .tw-hero .elementor-row { flex-wrap: wrap !important; }

    /* Hero CTA button — full-ish width on mobile */
    .tw-hero-cta-btn {
        padding: 16px 28px !important;
        font-size: 16px !important;
        margin-bottom: 32px !important;
        display: inline-block !important;
    }

    /* Hero stats — 3 columns, smaller */
    .tw-hero-stats-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
        margin-top: 8px !important;
    }
    .tw-hero-stat-icon {
        width: 40px !important; height: 40px !important;
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    .tw-hero-stat-num { font-size: 22px !important; }
    .tw-hero-stat-lbl { font-size: 12px !important; line-height: 1.3 !important; }

    /* Sections — tighter padding on mobile */
    .tw-section,
    .tw-clients-wrapper,
    .tw-social,
    .tw-problem,
    .tw-solution,
    .tw-services,
    .tw-cases,
    .tw-offer,
    .tw-trust,
    .tw-faq,
    .tw-final-cta { padding-top: 48px !important; padding-bottom: 48px !important; }

    /* Section headings — slightly smaller on mobile */
    .tw-section h2,
    .tw-section .elementor-heading-title,
    .elementor-section h2.elementor-heading-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    /* Inner page hero (Services, About, Case Studies, Contact) — tighten */
    .tw-inner-hero { padding: 80px 16px 56px !important; }
    .tw-inner-hero h1,
    .tw-inner-hero .elementor-heading-title { font-size: 32px !important; }

    /* Cards grids — single column on mobile */
    .tw-cards-grid.tw-grid-4,
    .tw-cards-grid.tw-grid-3 { grid-template-columns: 1fr !important; gap: 16px !important; }

    /* Trust credentials — keep readable */
    .tw-cred h3 { font-size: 18px !important; }
    .tw-cred p { font-size: 14px !important; max-width: none !important; }

    /* Platforms — 2 columns on mobile, smaller padding */
    .tw-platforms-grid.tw-platforms-grid-8 { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .tw-platforms { padding: 32px 16px !important; }
    .tw-platforms-head h3 { font-size: 22px !important; }

    /* Clients grid — 2 columns mobile */
    .tw-clients-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .tw-clients-title { font-size: 26px !important; }
    .tw-clients-sub { font-size: 15px !important; }

    /* Offer card */
    .tw-offer-card { padding: 32px 24px !important; }
    .tw-offer-card h3 { font-size: 22px !important; }
    .tw-offer-card .tw-offer-list li { font-size: 16px !important; }
    .tw-offer .elementor-container { max-width: 100% !important; }
    .tw-offer-card .tw-offer-cta { font-size: 16px !important; padding: 16px !important; }

    /* Trust section container */
    .tw-trust .elementor-container { max-width: 100% !important; }

    /* Case study cards body padding */
    .tw-case-body { padding: 16px !important; }

    /* Contact page — stack columns */
    .tw-contact-body .elementor-column { width: 100% !important; }
    .tw-contact-body .elementor-row { flex-wrap: wrap !important; }

    /* FAQ */
    .elementor-widget-toggle .elementor-tab-title { font-size: 15px !important; padding: 16px !important; }

    /* Footer mobile redesign — compact, scannable, properly hierarchical.
       Brand block stacked full-width, then Quick Links + Services side-by-side
       (2-col grid saves a lot of vertical space), then Contact Info full-width. */
    .elementor-location-footer .elementor-top-section { padding: 36px 20px 24px !important; }
    .elementor-location-footer .elementor-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        column-gap: 16px !important;
        row-gap: 24px !important;
        max-width: 100% !important;
    }
    .elementor-location-footer .elementor-column { width: 100% !important; max-width: 100% !important; flex: none !important; }
    /* Brand block (first col) takes full width — has heading + description + socials */
    .elementor-location-footer .elementor-top-column:nth-child(1) { grid-column: 1 / -1 !important; text-align: center !important; }
    /* Quick Links + Services — side by side */
    .elementor-location-footer .elementor-top-column:nth-child(2),
    .elementor-location-footer .elementor-top-column:nth-child(3) { text-align: left !important; }
    /* Contact Info — full width */
    .elementor-location-footer .elementor-top-column:nth-child(4) { grid-column: 1 / -1 !important; text-align: center !important; }

    /* Brand heading (first heading widget) */
    .elementor-location-footer .elementor-widget-heading:first-of-type .elementor-heading-title { font-size: 24px !important; margin-bottom: 6px !important; }
    .elementor-location-footer .elementor-widget-text-editor p { font-size: 13px !important; line-height: 1.5 !important; max-width: 320px; margin: 0 auto !important; text-align: center !important; }

    /* Section headings — tighter */
    .elementor-location-footer h4,
    .elementor-location-footer .elementor-widget-heading:not(:first-of-type) .elementor-heading-title { font-size: 14px !important; margin-bottom: 10px !important; letter-spacing: .4px !important; text-transform: uppercase !important; opacity: .85 !important; }

    /* Icon-list rows — compact list spacing */
    .elementor-location-footer .elementor-icon-list-items .elementor-icon-list-item { margin-bottom: 6px !important; }
    .elementor-location-footer .elementor-icon-list-text { font-size: 13px !important; }
    .elementor-location-footer .elementor-icon-list-icon i { font-size: 14px !important; }

    /* Contact Info icons centered with text */
    .elementor-location-footer .elementor-top-column:nth-child(4) .elementor-icon-list-items {
        display: inline-flex !important;
        flex-direction: column;
        gap: 8px;
        text-align: left;
    }

    /* Social icons — compact, centered under brand */
    .elementor-location-footer .elementor-widget-social-icons .elementor-social-icons-wrapper,
    .elementor-location-footer .elementor-widget-social-icons .elementor-grid { justify-content: center !important; }
    .elementor-location-footer .elementor-widget-social-icons .elementor-grid-item .elementor-icon { width: 34px !important; height: 34px !important; font-size: 14px !important; }

    /* Bottom bar — stack copyright + privacy/terms */
    .elementor-location-footer .elementor-col-100,
    .elementor-location-footer .elementor-col-50 { width: 100% !important; grid-column: 1 / -1 !important; text-align: center !important; }
    .elementor-location-footer .elementor-col-50 .elementor-icon-list-items {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 6px 18px;
    }
    .elementor-location-footer .elementor-col-50 .elementor-icon-list-items .elementor-icon-list-item { margin-bottom: 0 !important; }

    /* Divider — slim */
    .elementor-location-footer .elementor-widget-divider { margin-top: 12px !important; margin-bottom: 12px !important; }
    .elementor-location-footer .elementor-widget-divider .elementor-divider-separator { opacity: .15; }

    /* Hide partner badges row on mobile — the Elementor inline icon-list
       (Meta Business Partner / Google Partner / TikTok Marketing Partner)
       wraps awkwardly on narrow screens. Cleaner to drop it on mobile. */
    .elementor-location-footer .elementor-element-b1686ff,
    .elementor-location-footer .elementor-icon-list--layout-inline { display: none !important; }

    /* === Mobile footer cleanup — keep ONLY Contact Info (+ brand heading) === */
    /* Switch to single-column flow */
    .elementor-location-footer .elementor-container {
        grid-template-columns: 1fr !important;
        row-gap: 14px !important;
    }
    /* Hide Quick Links (col 2) + Services (col 3) entirely */
    .elementor-location-footer .elementor-top-column:nth-child(2),
    .elementor-location-footer .elementor-top-column:nth-child(3) { display: none !important; }
    /* Brand column: keep heading + socials, hide long description */
    .elementor-location-footer .elementor-top-column:nth-child(1) .elementor-widget-text-editor { display: none !important; }
    /* Brand heading tighter */
    .elementor-location-footer .elementor-top-column:nth-child(1) .elementor-widget-heading:first-of-type .elementor-heading-title {
        font-size: 22px !important; margin-bottom: 14px !important;
    }
    /* Contact column — clearer hierarchy + a small section heading */
    .elementor-location-footer .elementor-top-column:nth-child(4) {
        text-align: center !important;
        padding-top: 6px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .elementor-location-footer .elementor-top-column:nth-child(4) .elementor-widget-heading:not(:first-of-type) .elementor-heading-title,
    .elementor-location-footer .elementor-top-column:nth-child(4) h4 {
        font-size: 13px !important;
        opacity: .7 !important;
        margin-top: 10px !important;
    }
    .elementor-location-footer .elementor-top-column:nth-child(4) .elementor-icon-list-text { font-size: 14px !important; }
    .elementor-location-footer .elementor-top-column:nth-child(4) .elementor-icon-list-icon i { font-size: 16px !important; }
}

@media (max-width: 480px) {
    /* Extra tight on small phones */
    .tw-hero h1,
    .tw-hero .elementor-widget-html h1 { font-size: 30px !important; }
    .tw-hero-stat-num { font-size: 20px !important; }
    .tw-hero-stat-lbl { font-size: 11px !important; }
    .tw-clients-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .tw-platforms-grid.tw-platforms-grid-8 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================================================================
   Responsive Polish (v2.12)
   Comprehensive consistency pass for tablet (≤1100px) and mobile (≤768px)
   ============================================================================ */

/* ---- Tablet (≤1100px) ---- */
@media (max-width: 1100px) {
    /* Tighter section padding so cards have more horizontal room */
    .elementor-top-section { padding-left: 20px !important; padding-right: 20px !important; }
    /* Slightly smaller headings */
    h1 { font-size: 42px !important; line-height: 1.15 !important; }
    h2 { font-size: 32px !important; line-height: 1.2 !important; }
    /* Grid gap tighter on tablet */
    .tw-cards-grid { gap: 16px !important; }
    /* Padding inside cards smaller */
    .tw-cards-grid > *,
    .tw-results-card,
    .tw-trust-card { padding: 18px !important; }
}

/* ---- Mobile (≤768px) — full polish pass ---- */
@media (max-width: 768px) {
    /* Section vertical breathing room — consistent on mobile */
    .elementor-section.elementor-top-section { padding-top: 48px !important; padding-bottom: 48px !important; }

    /* Headings — readable on small screens */
    h1, .elementor-widget-html h1 { font-size: 32px !important; line-height: 1.18 !important; letter-spacing: -0.5px !important; }
    h2, .elementor-widget-heading h2.elementor-heading-title { font-size: 26px !important; line-height: 1.25 !important; }
    h3 { font-size: 20px !important; line-height: 1.3 !important; }

    /* Subheadings + body */
    .tw-section-subhead,
    .elementor-widget-text-editor p { font-size: 15px !important; line-height: 1.55 !important; }

    /* Buttons — proper tap targets (Apple HIG min 44px) */
    .elementor-button,
    .tw-cta-btn,
    .tw-hero-cta-btn,
    a.elementor-button-link,
    button:not(.tw-mobile-toggle):not(.tw-mobile-close) {
        min-height: 48px !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
        font-size: 15px !important;
    }

    /* Card grids — tighter and uniform gap */
    .tw-cards-grid { gap: 14px !important; }
    .tw-cards-grid > * { padding: 20px !important; }
    .tw-cards-grid h3, .tw-cards-grid h4 { font-size: 17px !important; }

    /* Hero stats row — give numbers more weight */
    .tw-hero-stats-row { gap: 12px !important; }
    .tw-hero-stat-num { font-size: 24px !important; }
    .tw-hero-stat-lbl { font-size: 12px !important; }

    /* Results section large numbers */
    .tw-results-card .tw-results-value { font-size: 36px !important; }

    /* Service blocks already vertical — clean up spacing */
    .tw-svc-block { padding: 24px 16px !important; gap: 20px !important; }
    .tw-svc-info h2 { font-size: 24px !important; }
    .tw-svc-info .tw-svc-subhead { font-size: 14px !important; }
    .tw-svc-included-card { padding: 18px !important; }

    /* FAQ items */
    .elementor-widget-toggle .elementor-tab-title { font-size: 15px !important; padding: 14px 16px !important; }
    .elementor-widget-toggle .elementor-tab-content { padding: 14px 16px !important; font-size: 14px !important; line-height: 1.55 !important; }

    /* Trusted Platforms cards */
    .tw-platforms-grid { gap: 12px !important; }

    /* Reduce hero floating decorations on small screens */
    .tw-hero-stat-icon { width: 36px !important; height: 36px !important; font-size: 16px !important; }

    /* Character section signatures — slightly tighter spacing */
    .tw-character-autoinjected { margin: 20px auto !important; }
}

/* ---- Small phones (≤420px) ---- */
@media (max-width: 420px) {
    .elementor-section.elementor-top-section { padding-top: 36px !important; padding-bottom: 36px !important; padding-left: 16px !important; padding-right: 16px !important; }
    h1, .elementor-widget-html h1 { font-size: 28px !important; }
    h2, .elementor-widget-heading h2.elementor-heading-title { font-size: 22px !important; }
    .tw-cards-grid > * { padding: 16px !important; }
}

/* ============================================================================
   Sticky header on mobile + tablet
   Stays pinned to the top while scrolling so the brand + menu trigger are
   always one tap away. Adds a backdrop blur to keep content underneath legible.
   ============================================================================ */
@media (max-width: 1024px) {
    /* Force solid white header on mobile/tablet regardless of scroll state.
       html body prefix beats the inline Elementor rule's specificity (which
       uses .tw-header-wrap.is-home:not(.is-scrolled)). */
    html body .tw-header-wrap,
    html body .tw-header-wrap.is-home,
    html body .tw-header-wrap.is-home:not(.is-scrolled),
    html body .tw-header-wrap.is-home.is-scrolled {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: rgba(255, 255, 255, 0.96) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        backdrop-filter: blur(12px) !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    }
    html body.admin-bar .tw-header-wrap,
    html body.admin-bar .tw-header-wrap.is-home,
    html body.admin-bar .tw-header-wrap.is-home:not(.is-scrolled) { top: 46px !important; }

    /* Logo + menu trigger — navy on white header */
    html body .tw-header-wrap.is-home .tw-header-logo,
    html body .tw-header-wrap.is-home:not(.is-scrolled) .tw-header-logo,
    html body .tw-header-wrap.is-home:not(.is-scrolled) .tw-header-logo *,
    html body .tw-header-wrap.is-home:not(.is-scrolled) .tw-logo,
    html body .tw-header-wrap.is-home:not(.is-scrolled) .tw-logo * { color: #3D4BC2 !important; }
    /* Hamburger toggle — blue tint */
    html body .tw-header-wrap.is-home .tw-mobile-toggle,
    html body .tw-header-wrap.is-home:not(.is-scrolled) .tw-mobile-toggle {
        background: rgba(61, 75, 194, 0.10) !important;
        color: #3D4BC2 !important;
        border-color: rgba(61, 75, 194, 0.20) !important;
    }
    html body .tw-header-wrap.is-home .tw-mobile-toggle *,
    html body .tw-header-wrap.is-home:not(.is-scrolled) .tw-mobile-toggle * { color: #3D4BC2 !important; }
    /* Hamburger bars (typically spans) need explicit color */
    html body .tw-header-wrap.is-home .tw-mobile-toggle span,
    html body .tw-header-wrap.is-home:not(.is-scrolled) .tw-mobile-toggle span { background-color: #3D4BC2 !important; }

    /* Compact header height on mobile */
    .tw-header-inner { padding: 12px 16px !important; min-height: 60px; }

    /* Page content starts right under the fixed header — small offset only. */
    body > .elementor:not(.elementor-location-header),
    body.admin-bar > .elementor:not(.elementor-location-header) { padding-top: 0px; }
    /* Cancel any transparent override that "is-home" class might apply */
    .tw-header-wrap.is-home,
    header.elementor-location-header .tw-header-wrap.is-home {
        background: transparent !important; /* let header wrapper backdrop show through */
    }
    /* Tight inner padding on mobile so the bar is compact */
    .tw-header-inner { padding: 12px 16px !important; }
    /* Remove any empty top spacing above the header */
    body > .tw-mobile-toggle,
    .elementor-location-header { margin-top: 0 !important; }
}

/* ============================================================================
   FLUID RESPONSIVE LAYER v3.1 — SCOPED TO MOBILE/TABLET ONLY (≤1024px)
   Desktop (≥1025px) keeps Elementor's original design untouched. n3k4a tr4 el tar4
   ============================================================================ */

/* --- Universal safety (all screens) — minimal, no design impact --- */
html, body { max-width: 100%; overflow-x: clip; }
img, video, iframe, svg, picture { max-width: 100%; height: auto; }
input, select, textarea { font-size: max(16px, 1rem); } /* prevents iOS auto-zoom */

@supports (padding: env(safe-area-inset-left)) {
    body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* --- Mobile + Tablet ONLY (≤1024px): fluid layer kicks in here --- */
@media (max-width: 1024px) {

    /* Fluid Typography */
    html body h1, html body .elementor-widget-heading h1.elementor-heading-title {
        font-size: clamp(1.75rem, 1.2rem + 2.8vw, 2.75rem) !important;
        line-height: 1.15 !important;
    }
    html body h2, html body .elementor-widget-heading h2.elementor-heading-title {
        font-size: clamp(1.4rem, 1rem + 2vw, 2.25rem) !important; line-height: 1.2 !important;
    }
    html body h3, html body .elementor-widget-heading h3.elementor-heading-title {
        font-size: clamp(1.15rem, 0.9rem + 1.2vw, 1.6rem) !important; line-height: 1.3 !important;
    }
    html body p, html body .elementor-widget-text-editor p {
        font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.05rem) !important; line-height: 1.65 !important;
    }

    /* Fluid Section Padding */
    html body .elementor-section, html body .elementor-top-section {
        padding-block: clamp(2rem, 5vw, 4rem) !important;
    }

    /* Touch targets */
    a, button, .elementor-button, .tw-btn, .menu-item a {
        min-height: 44px;
    }

    /* Stack single-column ≤640px */
    @media (max-width: 640px) {
        html body .elementor-column:not(.elementor-col-100) {
            width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important;
        }
        table { display: block; overflow-x: auto; width: 100%; }
    }

    /* Tablet 2-col for 3/4-col grids */
    @media (min-width: 641px) and (max-width: 900px) {
        html body .elementor-column.elementor-col-33,
        html body .elementor-column.elementor-col-25 {
            width: 50% !important; flex: 0 0 50% !important; max-width: 50% !important;
        }
    }

    /* Foldable + ultra-narrow */
    @media (max-width: 360px) {
        html body h1 { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
    }

    /* Mobile menu dynamic viewport */
    html body .tw-mobile-menu, html body .tw-mobile-nav {
        max-height: calc(100dvh - 60px); max-height: calc(100svh - 60px);
        overflow-y: auto; -webkit-overflow-scrolling: touch;
        padding-bottom: max(env(safe-area-inset-bottom), 16px);
    }

    /* Header compact */
    html body .tw-header-inner {
        padding: clamp(8px, 2vw, 14px) clamp(12px, 3vw, 20px) !important;
        min-height: clamp(54px, 8vh, 64px);
    }

    /* Footer gap */
    html body .elementor-location-footer .elementor-row,
    html body .elementor-location-footer .elementor-widget-wrap {
        gap: clamp(0.75rem, 2vw, 1.5rem);
    }

    /* Buttons */
    html body .elementor-button-wrapper {
        display: flex; flex-wrap: wrap;
        gap: clamp(0.5rem, 1.5vw, 1rem); justify-content: center;
    }

    /* Word-break long text */
    html body h1, html body h2, html body h3 {
        overflow-wrap: break-word; word-wrap: break-word;
    }

    /* Landscape short phones */
    @media (orientation: landscape) and (max-height: 500px) {
        html body .elementor-section, html body .elementor-top-section {
            padding-block: clamp(1rem, 3vh, 2rem) !important;
        }
    }
}

/* --- Services page: character per block, all screens --- */
html body .tw-svc-block { position: relative; }
html body .tw-svc-block .tw-character-autoinjected {
    margin: 0 auto 16px !important;
}

/* --- Accessibility: reduced motion (all screens) --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html body .tw-character-autoinjected { animation: none !important; }
}

/* ============================================================================
   END FLUID RESPONSIVE LAYER v3.1
   ============================================================================ */
