/* Technoforges Insurance Advisory — design overrides */

:root {
    --tf-dark: #0f172a;
    --tf-dark-soft: #1e293b;
    --tf-teal: #14b8a6;
    --tf-teal-light: #2dd4bf;
    --tf-teal-pale: #ccfbf1;
    --tf-pastel: #e0f2fe;
    --tf-pastel-soft: #f0f9ff;
    --tf-white: #ffffff;
    --tf-text: #0f172a;
    --tf-text-muted: #475569;
    --tf-section-min-h: 100vh;
    /* Typography scale — larger base for readability, responsive via clamp */
    --tf-text-xs: clamp(0.875rem, 2vw, 0.9375rem);
    --tf-text-sm: clamp(0.9375rem, 2.2vw, 1rem);
    --tf-text-base: clamp(1rem, 2.5vw, 1.125rem);
    --tf-text-lg: clamp(1.0625rem, 2.5vw, 1.1875rem);
    --tf-text-xl: clamp(1.1875rem, 2.8vw, 1.3125rem);
    --tf-text-2xl: clamp(1.375rem, 3.5vw, 1.75rem);
    --tf-text-3xl: clamp(1.75rem, 4.5vw, 2.25rem);
    --tf-leading-tight: 1.25;
    --tf-leading-snug: 1.375;
    --tf-leading-normal: 1.5;
    --tf-leading-relaxed: 1.625;
    --tf-space-section: 1.5rem;   /* 24px between title and content */
    --tf-space-block: 1rem;      /* 16px between blocks */
    --tf-space-inline: 0.5rem;   /* 8px between inline elements */
    /* Breakpoints (for reference; use in media queries) */
    --tf-bp-sm: 480px;
    --tf-bp-md: 600px;
    --tf-bp-lg: 768px;
    --tf-bp-xl: 900px;
    /* Animation */
    --tf-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --tf-ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --tf-duration-fast: 0.25s;
    --tf-duration-normal: 0.45s;
    --tf-duration-slow: 0.7s;
}

/* Base: prevent overflow and ensure box-sizing */
.tf-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1rem, 2vw + 0.5rem, 1.125rem);
    line-height: var(--tf-leading-relaxed);
    letter-spacing: -0.01em;
    color: var(--tf-text);
    background: var(--tf-white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Skip link: visible on focus for accessibility and SEO */
.tf-skip-link {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--tf-teal);
    color: var(--tf-dark);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}
.tf-skip-link:focus {
    left: 0;
    top: 0;
}

.tf-body *,
.tf-body *::before,
.tf-body *::after {
    box-sizing: border-box;
}

.tf-body img {
    max-width: 100%;
    height: auto;
}

.tf-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-left: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left));
    padding-right: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right));
}

/* Header */
.tf-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--tf-dark);
    padding: 16px 0;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.tf-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tf-logo {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 700;
    color: var(--tf-white);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.tf-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.tf-nav-link {
    color: var(--tf-white);
    text-decoration: none;
    font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
    font-weight: 500;
    opacity: 0.95;
}

.tf-nav-link:hover {
    opacity: 1;
}

.tf-btn-header {
    padding: 10px 20px;
    background: var(--tf-teal);
    color: var(--tf-dark);
    font-weight: 600;
    font-size: clamp(0.9375rem, 1.5vw, 1rem);
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.tf-btn-header:hover {
    background: var(--tf-teal-light);
}

.tf-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.tf-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--tf-white);
}

/* Tablet and below: show hamburger, hide nav + CTA */
@media (max-width: 768px) {
    .tf-header {
        padding: 12px 0;
    }
    .tf-header-inner {
        gap: 16px;
    }
    .tf-logo {
        font-size: 1.125rem;
    }
    .tf-nav,
    .tf-btn-header { display: none; }
    .tf-hamburger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
}

.tf-mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--tf-dark);
    z-index: 9999;
    padding: 80px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.3s ease;
}

.tf-mobile-nav.active {
    right: 0;
}

.tf-mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--tf-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.tf-mobile-nav-link {
    color: var(--tf-white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Hero — full viewport (100dvh for mobile when supported) */
.tf-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: clamp(32px, 6vw, 80px) 0;
    background: var(--tf-dark);
    overflow-x: hidden;
    overflow-y: visible;
}

.tf-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 80%, rgba(45, 212, 191, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.tf-hero-inner {
    position: relative;
    width: 100%;
    max-width: min(960px, 92vw);
}

.tf-pill {
    display: inline-block;
    padding: 6px 14px;
    background: var(--tf-teal);
    color: var(--tf-dark);
    font-size: clamp(0.8125rem, 1.5vw + 0.25rem, 0.9375rem);
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 12px;
}

.tf-hero-byline {
    font-size: clamp(0.875rem, 1.5vw + 0.35rem, 1.0625rem);
    line-height: var(--tf-leading-normal);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px;
}

.tf-hero-byline strong {
    color: var(--tf-white);
    font-weight: 600;
}

.tf-hero-title {
    font-size: clamp(1.5rem, 4vw + 1rem, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--tf-white);
    margin: 0 0 var(--tf-space-block);
    padding-top: 0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tf-hero-desc {
    font-size: clamp(1rem, 1.8vw + 0.5rem, 1.25rem);
    line-height: var(--tf-leading-relaxed);
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 var(--tf-space-section);
    max-width: 100%;
    text-align: left;
}

.tf-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: center;
}

.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 1.5vw, 14px) clamp(20px, 2.5vw, 28px);
    min-height: 48px; /* touch target */
    font-size: clamp(0.875rem, 1.5vw + 0.35rem, 1.0625rem);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.tf-btn-primary {
    background: var(--tf-teal);
    color: var(--tf-dark);
}

.tf-btn-primary:hover {
    background: var(--tf-teal-light);
}

.tf-btn-outline {
    background: transparent;
    color: var(--tf-teal);
    border-color: var(--tf-teal);
}

.tf-btn-outline:hover {
    background: rgba(45, 212, 191, 0.15);
}

/* Metrics — not full screen, screen-size responsive */
.tf-metrics {
    display: flex;
    align-items: center;
    background: var(--tf-pastel);
    padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 48px);
}

.tf-metrics-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 4vw, 40px);
    text-align: center;
}

.tf-metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tf-metric-value {
    font-size: clamp(1.125rem, 2.2vw + 0.5rem, 1.5rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--tf-teal);
    letter-spacing: -0.01em;
}

.tf-metric-label {
    font-size: clamp(0.8125rem, 1.4vw + 0.3rem, 0.9375rem);
    line-height: var(--tf-leading-normal);
    color: var(--tf-text-muted);
    font-weight: 500;
}

@media (max-width: 900px) {
    .tf-metrics-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(20px, 3vw, 28px);
    }
    .tf-metric-value {
        font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    }
}

@media (max-width: 600px) {
    .tf-metrics-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .tf-metric-value {
        font-size: 1.25rem;
    }
    .tf-metric-label {
        font-size: 0.875rem;
    }
}

@media (min-width: 901px) {
    .tf-metric-value {
        font-size: clamp(1.25rem, 1.2vw + 0.4rem, 1.5rem);
    }
}

/* Sections — full viewport each */
.tf-section {
    min-height: var(--tf-section-min-h);
    display: flex;
    align-items: center;
    padding: clamp(48px, 8vw, 80px) 0;
}

.tf-section .tf-container {
    width: 100%;
}

.tf-section-white {
    background: var(--tf-white);
}

.tf-section-teal {
    background: var(--tf-teal);
}

.tf-section-pastel {
    background: var(--tf-pastel-soft);
    position: relative;
}

.tf-section-title {
    font-size: clamp(1.5rem, 3.5vw + 0.5rem, 2.5rem);
    font-weight: 700;
    line-height: var(--tf-leading-tight);
    letter-spacing: -0.025em;
    color: var(--tf-text);
    text-align: center;
    margin: 0 0 var(--tf-space-section);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tf-section-title-light {
    color: var(--tf-white);
}

.tf-section-title-left {
    text-align: left;
}

.tf-section-subtitle {
    text-align: center;
    font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
    line-height: var(--tf-leading-relaxed);
    letter-spacing: -0.01em;
    color: var(--tf-text-muted);
    max-width: 680px;
    margin: 0 auto var(--tf-space-section);
}

.tf-section-subtitle + .tf-challenge-grid,
.tf-section-subtitle + .tf-services-grid,
.tf-section-subtitle + .tf-engagement-steps,
.tf-section-subtitle + .tf-global-grid,
.tf-section-subtitle + .tf-values-grid {
    margin-top: 0;
}

/* Challenge cards */
.tf-challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tf-space-section);
    text-align: left;
}

.tf-challenge-card {
    background: var(--tf-white);
    padding: var(--tf-space-section) 28px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.tf-challenge-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--tf-teal-pale);
    color: var(--tf-dark-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--tf-space-block);
}

.tf-challenge-card-title {
    font-size: clamp(1.125rem, 2.5vw, 1.3125rem);
    font-weight: 700;
    line-height: var(--tf-leading-snug);
    letter-spacing: -0.01em;
    color: var(--tf-text);
    margin: 0 0 var(--tf-space-inline);
}

.tf-challenge-card-desc {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    line-height: var(--tf-leading-relaxed);
    color: var(--tf-text-muted);
    margin: 0;
    text-align: left;
}

@media (max-width: 900px) {
    .tf-challenge-grid {
        grid-template-columns: 1fr;
    }
}

/* Service cards */
.tf-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tf-space-section);
    text-align: left;
}

.tf-service-card {
    position: relative;
    background: var(--tf-white);
    padding: 28px 32px 28px 28px;
    border-radius: 12px;
    border-left: 4px solid var(--tf-teal);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

.tf-service-num {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--tf-teal-pale);
}

.tf-service-title {
    font-size: clamp(1.125rem, 2.5vw, 1.3125rem);
    font-weight: 700;
    line-height: var(--tf-leading-snug);
    letter-spacing: -0.01em;
    color: var(--tf-text);
    margin: 0 0 var(--tf-space-inline);
    padding-right: 2.5rem;
}

.tf-service-desc {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    line-height: var(--tf-leading-relaxed);
    color: var(--tf-text-muted);
    margin: 0 0 var(--tf-space-block);
    text-align: left;
}

.tf-service-link {
    font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--tf-teal);
    text-decoration: none;
}

.tf-service-link:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .tf-services-grid {
        grid-template-columns: 1fr;
    }
}

/* Engagement steps */
.tf-engagement-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--tf-space-block);
    flex-wrap: wrap;
    width: 100%;
    text-align: left;
}

.tf-step {
    flex: 1;
    min-width: 240px;
    max-width: 320px;
    display: flex;
    gap: var(--tf-space-block);
    align-items: flex-start;
}

.tf-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tf-teal-pale);
    color: var(--tf-teal);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-step-content {
    padding-top: 2px;
    min-width: 0;
}

.tf-step-head {
    display: flex;
    align-items: center;
    gap: var(--tf-space-inline);
    flex-wrap: wrap;
    margin-bottom: var(--tf-space-inline);
}

.tf-step-title {
    font-size: clamp(1.125rem, 2.5vw, 1.3125rem);
    font-weight: 700;
    line-height: var(--tf-leading-snug);
    letter-spacing: -0.01em;
    color: var(--tf-text);
    margin: 0;
}

.tf-step-pill {
    padding: 4px 12px;
    background: var(--tf-teal);
    color: var(--tf-dark);
    font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
}

.tf-step-desc {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    line-height: var(--tf-leading-relaxed);
    color: var(--tf-text-muted);
    margin: 0;
    text-align: left;
}

.tf-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tf-teal);
    flex-shrink: 0;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .tf-engagement-steps {
        flex-direction: column;
        align-items: center;
    }
    .tf-step-dot { display: none; }
}

/* FAQ */
.tf-faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.tf-faq-item {
    border-bottom: 1px solid var(--tf-pastel);
    font-size: var(--tf-text-base);
}
.tf-faq-item:first-of-type {
    border-top: 1px solid var(--tf-pastel);
}
.tf-faq-q {
    font-weight: 600;
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
    display: block;
}
.tf-faq-q::-webkit-details-marker { display: none; }
.tf-faq-q::marker { content: none; }
.tf-faq-q::before {
    content: '+ ';
    color: var(--tf-teal);
    font-weight: 700;
}
.tf-faq-item[open] .tf-faq-q::before {
    content: '− ';
}
.tf-faq-a {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
    line-height: var(--tf-leading-relaxed);
    color: var(--tf-text-muted);
}
@media (max-width: 600px) {
    .tf-faq-a { padding-left: 0; }
}

/* Global presence */
.tf-global-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--tf-space-section);
    text-align: left;
}

.tf-global-card {
    padding: 0 8px;
}

.tf-global-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: var(--tf-space-inline);
    color: var(--tf-teal);
}

.tf-global-icon svg {
    width: 100%;
    height: 100%;
}

.tf-global-title {
    font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
    font-weight: 700;
    line-height: var(--tf-leading-snug);
    letter-spacing: -0.01em;
    color: var(--tf-text);
    margin: 0 0 var(--tf-space-inline);
}

.tf-global-desc {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    line-height: var(--tf-leading-relaxed);
    color: var(--tf-text-muted);
    margin: 0;
}

@media (max-width: 900px) {
    .tf-global-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .tf-global-grid {
        grid-template-columns: 1fr;
    }
}

/* Values */
.tf-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tf-space-section);
    text-align: left;
}

.tf-value-card {
    background: var(--tf-white);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
    display: flex;
    flex-direction: column;
    gap: var(--tf-space-block);
}

.tf-value-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tf-dark);
    color: var(--tf-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tf-value-title {
    font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
    font-weight: 700;
    line-height: var(--tf-leading-snug);
    letter-spacing: -0.01em;
    color: var(--tf-text);
    margin: 0;
}

.tf-value-desc {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    line-height: var(--tf-leading-relaxed);
    color: var(--tf-text-muted);
    margin: 0;
}

@media (max-width: 700px) {
    .tf-values-grid {
        grid-template-columns: 1fr;
    }
}

/* About */
.tf-about-text {
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    line-height: var(--tf-leading-relaxed);
    letter-spacing: -0.01em;
    color: var(--tf-text-muted);
    max-width: 720px;
    margin: 0 0 var(--tf-space-block);
    text-align: left;
}

@media (max-width: 600px) {
    .tf-about-text {
        max-width: none;
    }
}

/* CTA section — full viewport */
.tf-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    position: relative;
    width: 100%;
}

.tf-cta-content {
    padding: 0;
    text-align: left;
}

.tf-cta-content .tf-section-title {
    text-align: left;
    margin-bottom: var(--tf-space-block);
}

.tf-cta-desc {
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    line-height: var(--tf-leading-relaxed);
    color: var(--tf-text-muted);
    margin: 0 0 var(--tf-space-section);
    max-width: 420px;
    text-align: left;
}

.tf-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: var(--tf-space-inline);
}

.tf-cta-bullets {
    list-style: none;
    padding: 0;
    margin: var(--tf-space-block) 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--tf-space-block) var(--tf-space-section);
}

.tf-cta-bullets li {
    display: flex;
    align-items: center;
    gap: var(--tf-space-inline);
    font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
    font-weight: 500;
    color: var(--tf-text);
    text-align: left;
}

.tf-cta-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--tf-teal);
}

.tf-cta-check svg {
    width: 16px;
    height: 16px;
}

.tf-link-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
    transition: transform var(--tf-duration-fast) var(--tf-ease-out-quart);
}

.tf-service-link:hover .tf-link-arrow {
    transform: translateX(4px);
}

.tf-cta-form-wrap {
    background: var(--tf-white);
    padding: 32px;
    border-radius: 12px;
    transition: box-shadow 0.4s ease, outline 0.3s ease;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    text-align: left;
}

/* Override styles.css * { box-shadow: none !important } so form highlight is visible */
.tf-body .tf-cta-form-wrap.tf-form-highlight {
    -webkit-box-shadow: 0 0 0 4px var(--tf-teal), 0 16px 48px rgba(20, 184, 166, 0.25) !important;
    -moz-box-shadow: 0 0 0 4px var(--tf-teal), 0 16px 48px rgba(20, 184, 166, 0.25) !important;
    box-shadow: 0 0 0 4px var(--tf-teal), 0 16px 48px rgba(20, 184, 166, 0.25) !important;
    animation: tf-form-highlight-pulse 2.5s ease-in-out forwards;
}

@keyframes tf-form-highlight-pulse {
    0% {
        -webkit-box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
        box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
    }
    20% {
        -webkit-box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.5), 0 20px 56px rgba(20, 184, 166, 0.35) !important;
        box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.5), 0 20px 56px rgba(20, 184, 166, 0.35) !important;
    }
    35% {
        -webkit-box-shadow: 0 0 0 4px var(--tf-teal), 0 16px 48px rgba(20, 184, 166, 0.25) !important;
        box-shadow: 0 0 0 4px var(--tf-teal), 0 16px 48px rgba(20, 184, 166, 0.25) !important;
    }
    50%, 65% {
        -webkit-box-shadow: 0 0 0 5px var(--tf-teal), 0 18px 52px rgba(20, 184, 166, 0.28) !important;
        box-shadow: 0 0 0 5px var(--tf-teal), 0 18px 52px rgba(20, 184, 166, 0.28) !important;
    }
    80% {
        -webkit-box-shadow: 0 0 0 4px var(--tf-teal), 0 16px 48px rgba(20, 184, 166, 0.25) !important;
        box-shadow: 0 0 0 4px var(--tf-teal), 0 16px 48px rgba(20, 184, 166, 0.25) !important;
    }
    100% {
        -webkit-box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
        box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
    }
}

.tf-cta-circle {
    position: absolute;
    right: 5%;
    bottom: 20%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 900px) {
    .tf-cta-inner {
        grid-template-columns: 1fr;
    }
    .tf-cta-circle {
        display: none;
    }
}

/* Form */
.tf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tf-space-block);
}

.tf-form-group {
    margin-bottom: var(--tf-space-block);
}

.tf-form-group:last-of-type {
    margin-bottom: var(--tf-space-section);
}

.tf-form-group label {
    display: block;
    font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--tf-text);
    margin-bottom: var(--tf-space-inline);
}

.tf-form-group input,
.tf-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: clamp(1rem, 2vw, 1.0625rem);
    line-height: 1.4;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: var(--tf-white);
    color: var(--tf-text);
}

.tf-form-group input:focus,
.tf-form-group textarea:focus {
    outline: none;
    border-color: var(--tf-teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.tf-btn-full {
    width: 100%;
    margin-top: var(--tf-space-inline);
}

/* Footer — full viewport for consistency */
.tf-footer {
    min-height: var(--tf-section-min-h);
    display: flex;
    align-items: center;
    background: var(--tf-dark);
    padding: clamp(32px, 6vw, 48px) 0 clamp(24px, 4vw, 32px);
    color: var(--tf-white);
}

.tf-footer-inner {
    width: 100%;
}

.tf-footer .tf-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(32px, 6vw, 64px);
    flex-wrap: wrap;
}

.tf-footer-left,
.tf-footer-right {
    flex: 0 1 auto;
}

.tf-footer-logo {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    display: block;
    margin: 0 0 var(--tf-space-inline);
}

.tf-footer-tagline {
    font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
    line-height: var(--tf-leading-normal);
    opacity: 0.9;
    margin: 0 0 var(--tf-space-block);
    max-width: 280px;
    text-align: left;
}

.tf-footer-keywords {
    font-size: clamp(0.75rem, 1.2vw, 0.8125rem);
    line-height: 1.45;
    opacity: 0.7;
    margin: 0 0 var(--tf-space-block);
    max-width: 420px;
    text-align: left;
}

.tf-footer-copy {
    font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
    line-height: 1.4;
    opacity: 0.75;
    margin: 0;
    text-align: left;
}

.tf-footer-right {
    text-align: right;
}

.tf-footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--tf-space-inline);
    margin-bottom: var(--tf-space-block);
}

.tf-footer-nav a {
    color: var(--tf-white);
    text-decoration: none;
    font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
    opacity: 0.95;
}

.tf-footer-nav a:hover {
    opacity: 1;
}

.tf-footer-email {
    display: block;
    color: var(--tf-teal-light);
    text-decoration: none;
    font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
    margin-bottom: var(--tf-space-inline);
    text-align: right;
}

.tf-footer-email:hover {
    text-decoration: underline;
}

.tf-footer-locations {
    font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
    line-height: 1.4;
    opacity: 0.85;
    margin: 0 0 var(--tf-space-block);
    text-align: right;
}

.tf-footer-dots {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.tf-footer-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tf-teal);
}

@media (max-width: 600px) {
    .tf-footer-inner {
        flex-direction: column;
    }
    .tf-footer-right {
        text-align: left;
    }
    .tf-footer-dots {
        justify-content: flex-start;
    }
}

/* ========== Hero responsive: content width & typography ========== */

@media (min-width: 381px) and (max-width: 600px) {
    .tf-hero-title { font-size: clamp(1.625rem, 6vw, 2rem); }
    .tf-hero-desc { font-size: clamp(1rem, 2.5vw, 1.0625rem); }
    .tf-pill { font-size: 0.875rem; }
    .tf-hero-byline { font-size: 0.9375rem; }
}

@media (min-width: 601px) and (max-width: 900px) {
    .tf-hero-inner { max-width: min(800px, 90vw); }
    .tf-hero-title { font-size: clamp(1.875rem, 3.5vw + 0.5rem, 2.5rem); }
    .tf-hero-desc { font-size: clamp(1.0625rem, 1.5vw + 0.4rem, 1.1875rem); }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .tf-hero-inner { max-width: min(920px, 88vw); }
    .tf-hero-title { font-size: clamp(2.25rem, 2.5vw + 0.75rem, 3rem); }
    .tf-hero-desc { font-size: clamp(1.0625rem, 1.2vw + 0.5rem, 1.25rem); }
}

@media (min-width: 1201px) {
    .tf-hero-inner { max-width: 960px; }
    .tf-hero-title { font-size: clamp(2.75rem, 2vw + 1rem, 3.5rem); }
    .tf-hero-desc { font-size: 1.25rem; }
    .tf-pill { font-size: 0.9375rem; }
    .tf-hero-byline { font-size: 1.0625rem; }
    .tf-btn { font-size: 1.0625rem; }
}

/* Very small screens (e.g. small phones) — after 480 so it wins */
@media (max-width: 380px) {
    .tf-hero-inner { max-width: 100%; }
    .tf-hero-title { font-size: 1.5rem; }
    .tf-hero-desc { font-size: 1rem; }
    .tf-pill { font-size: 0.8125rem; }
    .tf-hero-byline { font-size: 0.875rem; }
    .tf-btn { font-size: 0.875rem; padding: 12px 20px; }
}

/* ========== Mobile & small screen responsive ========== */

/* Extra small (phones portrait) */
@media (max-width: 480px) {
    .tf-container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    .tf-hero-inner {
        padding-top: 0;
        padding-bottom: 0;
        max-width: 100%;
    }
    .tf-pill {
        margin-bottom: 16px;
        font-size: 0.8125rem;
    }
    .tf-hero-title {
        font-size: 1.625rem;
        margin-bottom: 12px;
    }
    .tf-hero-desc {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    .tf-hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .tf-hero-ctas .tf-btn {
        width: 100%;
        justify-content: center;
    }
    .tf-section {
        min-height: auto;
        align-items: flex-start;
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .tf-section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    .tf-section-subtitle {
        font-size: 1.0625rem;
        margin-bottom: 24px;
    }
    .tf-challenge-card,
    .tf-service-card,
    .tf-value-card {
        padding: 20px 16px;
    }
    .tf-service-card {
        padding-left: 20px;
    }
    .tf-service-num {
        font-size: 1.5rem;
        top: 16px;
        right: 16px;
    }
    .tf-service-title {
        padding-right: 2rem;
    }
    .tf-step {
        min-width: 0;
        max-width: none;
    }
    .tf-cta-form-wrap {
        padding: 20px 16px;
    }
    .tf-footer {
        min-height: auto;
        padding: 32px 0 24px;
    }
    .tf-footer-tagline {
        max-width: none;
    }
}

/* Small (phones landscape / large phones) */
@media (max-width: 600px) {
    .tf-form-row {
        grid-template-columns: 1fr;
    }
    .tf-cta-inner {
        gap: 32px;
    }
    .tf-cta-content .tf-section-title {
        font-size: 1.5rem;
    }
    .tf-cta-desc {
        max-width: none;
    }
}

/* Medium (tablets portrait) */
@media (max-width: 768px) {
    .tf-section {
        padding: 48px 0;
    }
    .tf-metrics {
        padding: 40px 0;
    }
    .tf-challenge-grid,
    .tf-services-grid,
    .tf-values-grid {
        gap: 20px;
    }
    .tf-engagement-steps {
        gap: 24px;
    }
    .tf-step {
        max-width: none;
    }
}

/* Large (tablets landscape / small desktop) */
@media (max-width: 900px) {
    .tf-section-title {
        font-size: 1.625rem;
    }
    .tf-global-grid {
        gap: 20px;
    }
    .tf-global-card {
        padding: 0;
    }
}

/* Touch-friendly: ensure tap targets on mobile nav links */
@media (max-width: 768px) {
    .tf-mobile-nav-link {
        display: flex;
        align-items: center;
        padding: 12px 0;
        min-height: 44px;
    }
}

/* Responsive typography: enforce readable minimums and scale up on large screens */
@media (max-width: 479px) {
    .tf-body { font-size: 1rem; }
    .tf-challenge-card-desc,
    .tf-service-desc,
    .tf-step-desc,
    .tf-global-desc,
    .tf-value-desc,
    .tf-cta-desc,
    .tf-about-text {
        font-size: 1rem;
    }
    .tf-form-group label,
    .tf-cta-bullets li { font-size: 1rem; }
    .tf-form-group input,
    .tf-form-group textarea { font-size: 16px; }
}

@media (min-width: 1024px) {
    .tf-body { font-size: 1.0625rem; }
}

@media (min-width: 1400px) {
    .tf-body { font-size: 1.125rem; }
    .tf-challenge-card-desc,
    .tf-service-desc,
    .tf-step-desc,
    .tf-global-desc,
    .tf-value-desc {
        font-size: 1.125rem;
    }
}

/* Reduce section min-height on small viewports to avoid double scroll */
@media (max-height: 700px) and (max-width: 900px) {
    .tf-hero,
    .tf-metrics,
    .tf-section,
    .tf-footer {
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

/* ========== Professional animations ========== */

@keyframes tf-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tf-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tf-scale-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes tf-hero-bg-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Hero: entrance animations (run on load) */
.tf-anim {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-timing-function: var(--tf-ease-out-expo);
}

.tf-anim-hero-pill {
    animation-name: tf-fade-in-up;
    animation-duration: var(--tf-duration-normal);
    animation-delay: 0.15s;
}

.tf-anim-hero-title {
    animation-name: tf-fade-in-up;
    animation-duration: var(--tf-duration-slow);
    animation-delay: 0.3s;
}

.tf-anim-hero-desc {
    animation-name: tf-fade-in-up;
    animation-duration: var(--tf-duration-normal);
    animation-delay: 0.5s;
}

.tf-anim-hero-ctas {
    animation-name: tf-fade-in-up;
    animation-duration: var(--tf-duration-normal);
    animation-delay: 0.65s;
}

.tf-hero-bg {
    animation: tf-hero-bg-pulse 8s ease-in-out infinite;
}

/* Scroll-triggered: when element enters visible viewport */
.tf-scroll-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--tf-duration-slow) var(--tf-ease-out-expo),
                transform var(--tf-duration-slow) var(--tf-ease-out-expo);
}

.tf-scroll-item.tf-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay from data-delay (0–4) */
.tf-scroll-item[data-delay="0"] { transition-delay: 0ms; }
.tf-scroll-item[data-delay="1"] { transition-delay: 100ms; }
.tf-scroll-item[data-delay="2"] { transition-delay: 200ms; }
.tf-scroll-item[data-delay="3"] { transition-delay: 300ms; }
.tf-scroll-item[data-delay="4"] { transition-delay: 400ms; }

/* Text reveal: animate when parent scroll-item is in visible area */
.tf-anim-text {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s var(--tf-ease-out-expo),
                transform 0.55s var(--tf-ease-out-expo);
}

.tf-scroll-item.tf-in-view .tf-anim-text {
    opacity: 1;
    transform: translateY(0);
}

.tf-scroll-item.tf-in-view[data-delay="0"] .tf-anim-text { transition-delay: 120ms; }
.tf-scroll-item.tf-in-view[data-delay="1"] .tf-anim-text { transition-delay: 220ms; }
.tf-scroll-item.tf-in-view[data-delay="2"] .tf-anim-text { transition-delay: 320ms; }
.tf-scroll-item.tf-in-view[data-delay="3"] .tf-anim-text { transition-delay: 420ms; }
.tf-scroll-item.tf-in-view[data-delay="4"] .tf-anim-text { transition-delay: 520ms; }

/* Card hover: subtle lift and shadow */
.tf-challenge-card,
.tf-service-card,
.tf-value-card {
    transition: transform var(--tf-duration-normal) var(--tf-ease-out-quart),
                box-shadow var(--tf-duration-normal) var(--tf-ease-out-quart);
}

.tf-challenge-card:hover,
.tf-service-card:hover,
.tf-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
}

.tf-global-card {
    transition: transform var(--tf-duration-normal) var(--tf-ease-out-quart);
}

.tf-global-card:hover {
    transform: translateY(-2px);
}

/* Button hover: subtle scale */
.tf-btn {
    transition: transform var(--tf-duration-fast) var(--tf-ease-out-quart),
                background var(--tf-duration-fast),
                border-color var(--tf-duration-fast),
                color var(--tf-duration-fast);
}

.tf-btn:hover {
    transform: scale(1.02);
}

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

/* Nav link underline animation */
.tf-nav-link {
    position: relative;
}

.tf-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--tf-teal);
    transition: width var(--tf-duration-normal) var(--tf-ease-out-quart);
}

.tf-nav-link:hover::after {
    width: 100%;
}

/* Step number subtle pulse on hover */
.tf-step:hover .tf-step-num {
    transform: scale(1.08);
}

.tf-step-num {
    transition: transform var(--tf-duration-normal) var(--tf-ease-out-quart);
}

/* Metric value: subtle scale on hover */
.tf-metric:hover .tf-metric-value {
    transform: scale(1.05);
}

.tf-metric-value {
    transition: transform var(--tf-duration-normal) var(--tf-ease-out-quart);
}

/* Form focus animation */
.tf-form-group input:focus,
.tf-form-group textarea:focus {
    transition: border-color var(--tf-duration-fast), box-shadow var(--tf-duration-fast);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tf-anim,
    .tf-scroll-item,
    .tf-anim-text,
    .tf-hero-bg {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
    .tf-anim {
        opacity: 1;
    }
    .tf-scroll-item,
    .tf-anim-text {
        opacity: 1;
        transform: none;
    }
    .tf-scroll-item.tf-in-view,
    .tf-scroll-item.tf-in-view .tf-anim-text {
        opacity: 1;
        transform: none;
    }
    .tf-challenge-card:hover,
    .tf-service-card:hover,
    .tf-value-card:hover,
    .tf-global-card:hover {
        transform: none;
    }
    .tf-btn:hover,
    .tf-btn:active {
        transform: none;
    }
    .tf-step:hover .tf-step-num,
    .tf-metric:hover .tf-metric-value {
        transform: none;
    }
}

/* Modal (reuse from main styles if present; ensure visibility) */
.tf-body .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.tf-body .modal-overlay.active,
.tf-body .modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.tf-body .modal-overlay.show .modal-container {
    animation: tf-scale-in 0.35s var(--tf-ease-out-expo) forwards;
}

.tf-body .modal-container {
    background: var(--tf-white);
    padding: 32px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.tf-body .modal-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--tf-text);
    margin: 16px 0 8px;
}

.tf-body .modal-message {
    font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
    color: var(--tf-text-muted);
    margin: 0 0 20px;
}

.tf-body .modal-button {
    padding: 10px 24px;
    background: var(--tf-teal);
    color: var(--tf-dark);
    font-weight: 600;
    font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.tf-body .modal-button:hover {
    background: var(--tf-teal-light);
}

/* Service detail modals (Learn more) */
.tf-body .tf-service-modal-overlay .tf-service-modal-container {
    max-width: 560px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
    padding: 28px 32px 32px;
    position: relative;
}

.tf-body .tf-service-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--tf-text-muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}

.tf-body .tf-service-modal-close:hover {
    color: var(--tf-text);
    background: var(--tf-pastel);
}

.tf-body .tf-service-modal-body {
    display: block;
}

.tf-body .tf-service-modal-body[hidden] {
    display: none !important;
}

.tf-body .tf-service-modal-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--tf-text);
    margin: 0 32px 0 0;
    padding-right: 24px;
}

.tf-body .tf-service-modal-body p {
    font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
    line-height: var(--tf-leading-relaxed);
    color: var(--tf-text);
    margin: 0 0 1rem;
}

.tf-body .tf-service-modal-cta {
    margin-top: 1.25rem;
    display: inline-block;
}
