﻿/* Inversionsys — Corporate Website Styles */

:root {
    --ep-ink: #1a2432;
    --ep-ink-soft: #4a5c6e;
    --ep-dark: #1a2432;
    --ep-primary: #2d5a87;
    --ep-primary-hover: #234a6f;
    --ep-primary-soft: #e6eef5;
    --ep-primary-rgb: 45, 90, 135;
    --ep-accent: #c4693a;
    --ep-accent-hover: #a8562e;
    --ep-accent-soft: #fdf4ec;
    --ep-accent-muted: #e8d4c2;
    --ep-accent-rgb: 196, 105, 58;
    --ep-sage: #eef2ee;
    --ep-cream: #faf7f2;
    --ep-warm-gray: #6b7280;
    --ep-border: #e4ddd3;
    --ep-gradient: linear-gradient(128deg, #1a2432 0%, #2d4a62 48%, #3d6b8a 100%);
    --ep-gradient-warm: linear-gradient(135deg, #1a2432 0%, #2d5a87 55%, #8b5e3c 100%);
    --ep-shadow: 0 2px 14px rgba(26, 36, 50, 0.07);
    --ep-shadow-hover: 0 14px 32px rgba(26, 36, 50, 0.11);
    --ep-radius: 10px;
    --ep-radius-lg: 18px;
    --ep-font-display: Georgia, 'Palatino Linotype', 'Book Antiqua', serif;
    --ep-font-body: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --bs-primary: var(--ep-primary);
    --bs-primary-rgb: var(--ep-primary-rgb);
    --bs-body-font-family: var(--ep-font-body);
    --bs-body-color: #2a3340;
    --bs-body-bg: var(--ep-cream);
    --bs-link-color: var(--ep-primary);
    --bs-link-hover-color: var(--ep-primary-hover);
}

body {
    font-family: var(--ep-font-body);
    color: var(--bs-body-color);
    background-color: var(--ep-cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-4, .display-5, .display-6, .section-title {
    font-family: var(--ep-font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ep-ink);
}

.text-primary {
    color: var(--ep-primary) !important;
}

.bg-primary {
    background-color: var(--ep-primary) !important;
}

.bg-light {
    background-color: var(--ep-sage) !important;
}

.ep-bg-cream {
    background-color: var(--ep-cream);
}

.ep-bg-sage {
    background-color: var(--ep-sage);
}

.btn-primary {
    --bs-btn-bg: var(--ep-accent);
    --bs-btn-border-color: var(--ep-accent);
    --bs-btn-hover-bg: var(--ep-accent-hover);
    --bs-btn-hover-border-color: var(--ep-accent-hover);
    --bs-btn-active-bg: var(--ep-accent-hover);
    --bs-btn-active-border-color: var(--ep-accent-hover);
    --bs-btn-focus-shadow-rgb: var(--ep-accent-rgb);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.55rem 1.25rem;
}

.btn-outline-primary {
    --bs-btn-color: var(--ep-primary);
    --bs-btn-border-color: var(--ep-border);
    --bs-btn-hover-bg: var(--ep-primary-soft);
    --bs-btn-hover-border-color: var(--ep-primary);
    --bs-btn-hover-color: var(--ep-primary);
    --bs-btn-active-bg: var(--ep-primary-soft);
    --bs-btn-active-border-color: var(--ep-primary);
    --bs-btn-focus-shadow-rgb: var(--ep-primary-rgb);
    border-radius: 8px;
    font-weight: 600;
}

.btn-light {
    color: var(--ep-ink);
    font-weight: 600;
    border-radius: 8px;
}

.badge.bg-primary.bg-opacity-10 {
    background-color: var(--ep-primary-soft) !important;
    color: var(--ep-primary) !important;
    border: 1px solid rgba(var(--ep-primary-rgb), 0.12);
    font-weight: 600;
}

.section-title {
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 2.75rem;
    height: 3px;
    margin-top: 0.65rem;
    background: linear-gradient(90deg, var(--ep-accent), var(--ep-accent-muted));
    border-radius: 2px;
}

/* Light-background page titles (privacy, blog post, terms, etc.) */
section.py-5 > .container > h1.display-6,
article.py-5 .container > header h1,
article.py-5 .container > h1.display-6 {
    position: relative;
    padding-bottom: 0.15rem;
}

section.py-5 > .container > h1.display-6::after,
article.py-5 .container > header h1::after,
article.py-5 .container > h1.display-6::after {
    content: '';
    display: block;
    width: 2.75rem;
    height: 3px;
    margin-top: 0.65rem;
    background: linear-gradient(90deg, var(--ep-accent), var(--ep-primary));
    border-radius: 2px;
}

.text-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--ep-ink-soft);
    max-width: 640px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

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

.card {
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    box-shadow: var(--ep-shadow);
}

.navbar-ep {
    background-color: var(--ep-ink) !important;
    border-bottom: 3px solid var(--ep-accent);
}

.navbar-ep .navbar-brand {
    font-family: var(--ep-font-display);
    letter-spacing: -0.02em;
}

.footer-ep {
    background-color: var(--ep-ink) !important;
    border-top: 4px solid var(--ep-accent);
}

.footer-ep h5,
.footer-ep h6 {
    font-family: var(--ep-font-display);
    color: #f5f0ea;
}

.website-hero {
    background: var(--ep-gradient);
    min-height: 520px;
    position: relative;
    overflow: hidden;
}

.website-hero.has-image {
    background-size: cover;
    background-position: center;
}

.website-hero.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, rgba(26, 36, 50, 0.93) 0%, rgba(26, 36, 50, 0.78) 38%, rgba(45, 90, 135, 0.58) 72%, rgba(139, 94, 60, 0.32) 100%);
}

.website-hero h1,
.website-hero .display-4,
.website-hero .display-5,
.website-hero .display-6 {
    color: #f7f3ed !important;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    text-shadow:
        0 1px 2px rgba(10, 16, 26, 0.55),
        0 6px 28px rgba(10, 16, 26, 0.38);
}

.website-hero h1:not(.d-flex)::after {
    content: '';
    display: block;
    width: 3.25rem;
    height: 4px;
    margin-top: 1rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ep-accent) 0%, rgba(247, 243, 237, 0.35) 100%);
}

.website-hero h1.d-flex::after {
    content: '';
    flex-basis: 100%;
    width: 3.25rem;
    height: 4px;
    margin-top: 0.85rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ep-accent) 0%, rgba(247, 243, 237, 0.35) 100%);
}

.website-hero .lead {
    color: rgba(247, 243, 237, 0.9) !important;
    text-shadow: 0 1px 14px rgba(10, 16, 26, 0.3);
}

.website-hero .container {
    position: relative;
    z-index: 1;
}

.stat-card {
    border: none;
    border-radius: 12px;
    transition: transform .2s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.testimonial-card {
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    box-shadow: var(--ep-shadow);
    background: #fff;
}

.testimonial-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
}

.team-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.industry-card {
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    overflow: hidden;
    box-shadow: var(--ep-shadow);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    height: 100%;
    background: #fff;
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ep-shadow-hover);
    border-color: var(--ep-accent-muted);
}

.industry-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.blog-card img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.lead-form-section {
    background: #fff;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    padding: 2rem;
    box-shadow: var(--ep-shadow);
}

.lead-form--compact {
    background: #fff;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    padding: 1.25rem;
    box-shadow: var(--ep-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.06));
}

.lead-form--compact .lead-form-grid {
    --bs-gutter-y: 0.75rem;
}

.lead-form-field {
    scroll-margin-top: 6rem;
    scroll-margin-bottom: 1rem;
}

.lead-form .phone-field {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.lead-form .phone-field legend {
    float: none;
    width: auto;
    padding: 0;
    font-size: inherit;
}

.lead-form-submit {
    min-height: 3rem;
    touch-action: manipulation;
}

.lead-form-submit:disabled {
    opacity: 0.85;
    cursor: wait;
}

.lead-form-legal a {
    text-underline-offset: 2px;
}

.section-title {
    font-weight: 700;
    margin-bottom: .5rem;
}

.section-subtitle {
    color: var(--ep-ink-soft);
    max-width: 640px;
    margin: 0 auto 2rem;
}

.breadcrumb-nav {
    background: transparent;
    padding: 1rem 0 0;
    margin-bottom: 0;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--ep-accent-soft);
    color: var(--ep-ink);
}

.faq-category-nav {
    position: sticky;
    top: 4.5rem;
    z-index: 10;
    background: var(--ep-surface, #fff);
    padding-top: 0.25rem;
}

.faq-category-nav .btn {
    font-size: 0.8125rem;
}

.faq-category-block:last-child {
    margin-bottom: 0 !important;
}

.cta-banner {
    background: var(--ep-gradient-warm);
    border-radius: var(--ep-radius-lg);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--ep-shadow-hover);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner > * {
    position: relative;
    z-index: 1;
}

.pre-reviews-cta-section {
    background: var(--ep-cream);
    border-top: 1px solid var(--ep-border);
}

.cta-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

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

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article-content h3,
.industry-overview-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.article-content ul,
.industry-overview-body ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.article-content ul li,
.industry-overview-body ul li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

.job-card {
    border-left: 4px solid var(--ep-primary);
    border-radius: 8px;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.pillar-nav .nav-link {
    border-radius: 8px;
    padding: .5rem 1.25rem;
    border: 1px solid var(--ep-border);
    color: var(--ep-ink-soft);
    font-weight: 600;
}

.pillar-nav .nav-link.active {
    background: var(--ep-ink);
    border-color: var(--ep-ink);
    color: #fff;
}

.case-study-chip {
    border-color: var(--ep-border) !important;
    transition: border-color .2s, box-shadow .2s;
}

.case-study-chip:hover {
    border-color: var(--ep-accent) !important;
    box-shadow: 0 4px 12px rgba(var(--ep-accent-rgb), 0.15);
}

.case-study-card {
    transition: transform .2s, box-shadow .2s, border-color .2s;
    background: #fff;
}

.case-study-card:hover {
    transform: translateY(-4px);
    border-color: var(--ep-accent-muted);
    box-shadow: var(--ep-shadow-hover);
}

.integration-badge {
    transition: transform .15s;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    background: #fff;
}

.integration-badge:hover {
    transform: scale(1.03);
    border-color: var(--ep-accent-muted);
}

.industry-card-link:hover {
    background: var(--ep-accent-soft);
    border-color: var(--ep-accent) !important;
}

.case-study-strip::-webkit-scrollbar {
    height: 4px;
}

.team-stat-card:hover {
    border-color: var(--ep-accent) !important;
    box-shadow: 0 4px 16px rgba(var(--ep-accent-rgb), 0.12);
}

.pricing-card {
    border-radius: 16px;
    transition: transform .2s, box-shadow .2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1) !important;
}

.pricing-card-featured {
    border: 2px solid var(--ep-primary) !important;
    transform: scale(1.02);
}

.pricing-table th,
.pricing-table td {
    vertical-align: middle;
    padding: .75rem 1rem;
}

.travel-seo-link:hover {
    background: var(--ep-primary-soft);
    border-color: var(--ep-primary) !important;
    box-shadow: 0 2px 12px rgba(var(--ep-primary-rgb),.1);
}

.industry-seo-link {
    transition: background .2s, border-color .2s, box-shadow .2s, transform .15s;
}

.industry-seo-link:hover {
    background: var(--ep-primary-soft);
    border-color: var(--ep-primary) !important;
    box-shadow: 0 4px 16px rgba(var(--ep-primary-rgb),.12);
    transform: translateY(-2px);
}

.industry-seo-link:hover .bi-arrow-right-circle {
    transform: translateX(2px);
}

.industry-category-icon {
    width: 48px;
    height: 48px;
}

.industry-services-nav-sticky {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    padding-right: .5rem;
}

.industry-services-nav-link:hover {
    background: var(--ep-primary-soft);
}

.industry-services-nav-link:focus-visible {
    outline: 2px solid var(--ep-primary);
    outline-offset: 2px;
}

.industry-feature-card {
    transition: box-shadow .2s;
}

.industry-feature-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
}

.industry-service-toolbar a:hover {
    color: var(--ep-primary) !important;
}

.service-hub-badge {
    font-size: .7rem;
    vertical-align: middle;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ep-accent-soft);
    color: var(--ep-accent);
    flex-shrink: 0;
}

.icon-circle-sm {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
}

.icon-circle-md {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
}

.icon-circle-lg {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
}

.section-icon-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.feature-card-icon {
    transition: transform 0.2s, background 0.2s;
}

.card:hover .feature-card-icon {
    transform: scale(1.05);
    background: var(--ep-accent-muted);
}

.label-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.trust-stat-icon {
    font-size: 1.5rem;
    color: var(--ep-accent);
    margin-bottom: 0.35rem;
}

.hero-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.integration-badge i {
    font-size: 1.25rem;
    color: var(--ep-accent);
    display: block;
    margin-bottom: 0.25rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-info-item .icon-circle {
    margin-top: 0.1rem;
}

.icon-circle-hero {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.lead-form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.lead-form .is-valid {
    border-color: var(--bs-success);
}

.lead-form .form-text {
    font-size: 0.8rem;
    line-height: 1.45;
}

.lead-form .form-label {
    margin-bottom: 0.4rem;
}

.lead-form .phone-input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.65rem;
}

.lead-form .phone-country-wrap,
.lead-form .phone-national-wrap {
    min-width: 0;
}

.lead-form .phone-country-wrap {
    flex: 0 0 7.25rem;
}

.lead-form .phone-national-wrap {
    flex: 1 1 auto;
}

.lead-form .phone-country-label,
.lead-form .phone-national-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ep-ink-soft);
    margin-bottom: 0.35rem;
}

.lead-form .phone-national-label {
    display: none;
}

.lead-form .phone-input-group .phone-country-select {
    flex: 0 0 7.25rem;
    width: 7.25rem;
    min-width: 7.25rem;
    max-width: 7.25rem;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 1.5rem 0.375rem 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: left;
    -webkit-appearance: menulist;
    appearance: auto;
    background-image: none;
    touch-action: manipulation;
}

.lead-form .phone-input-group .phone-national-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.lead-form .phone-input-group .form-select.is-invalid,
.lead-form .phone-input-group .form-control.is-invalid {
    z-index: 1;
}

@media (max-width: 767.98px) {
    .lead-form .lead-form-control,
    .lead-form textarea.lead-form-control {
        min-height: 48px;
        font-size: 16px;
        line-height: 1.25;
        touch-action: manipulation;
    }

    .lead-form textarea.lead-form-control {
        min-height: 6rem;
    }

    .lead-form .phone-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .lead-form .phone-country-wrap,
    .lead-form .phone-national-wrap {
        width: 100%;
        flex: none;
    }

    .lead-form .phone-national-label {
        display: block;
    }

    .lead-form .phone-input-group .phone-country-select,
    .lead-form .phone-input-group .phone-national-input {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 48px;
        font-size: 16px !important;
        line-height: 1.25;
        padding: 0.7rem 2.25rem 0.7rem 0.85rem;
        -webkit-appearance: menulist;
        appearance: auto;
        background-image: none !important;
        touch-action: manipulation;
    }

    .lead-form .phone-input-group .phone-country-select {
        position: relative;
        z-index: 2;
    }

    .lead-form-section,
    .lead-form .phone-field {
        overflow: visible;
    }

    .lead-form-submit {
        min-height: 48px;
        font-size: 1.05rem;
    }

    .lead-form-actions {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .lead-form .phone-input-group {
        flex-direction: row;
        align-items: flex-end;
    }

    .lead-form .phone-national-label {
        display: none;
    }

    .lead-form .phone-input-group .phone-country-select {
        flex: 0 0 8.5rem;
        width: 8.5rem;
        min-width: 8.5rem;
        max-width: 8.5rem;
        min-height: calc(1.5em + 0.75rem + 2px);
        font-size: 0.875rem;
        -webkit-appearance: menulist;
        appearance: auto;
        background-image: none;
    }
}

.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    font-size: 1.65rem;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-float:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* CloudTalk-style mega menu */
.mega-menu {
    border-radius: 0 0 12px 12px;
    background: #fff;
}

/* Main navbar — prevent cramped / overlapping links */
.main-navbar .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.45rem 0.55rem;
    white-space: nowrap;
}

.main-navbar .navbar-brand {
    font-size: 1.05rem;
    max-width: 11rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-navbar-actions {
    gap: 0.35rem;
}

.site-topbar {
    background: #121a24;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-topbar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    padding: 0.45rem 0;
}

.company-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    font-family: var(--ep-font-body);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
}

.phone-flag-icon {
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.company-phone-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.company-phone-region {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    line-height: 1;
}

.company-phone-number {
    font-size: 0.875rem;
    letter-spacing: 0.015em;
    white-space: nowrap;
}

.company-phone-link--topbar {
    color: rgba(255, 255, 255, 0.94);
}

.company-phone-link--topbar:hover,
.company-phone-link--topbar:focus-visible {
    color: #fff;
}

.company-phone-link--topbar .company-phone-region {
    color: var(--ep-accent-muted);
}

.company-phone-link--navbar {
    color: rgba(255, 255, 255, 0.95);
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
}

.company-phone-link--navbar:hover,
.company-phone-link--navbar:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.company-phone-link--navbar .company-phone-region {
    color: var(--ep-accent-muted);
}

.company-phone-link--footer {
    color: #f5f0ea;
    margin-bottom: 0.4rem;
}

.company-phone-link--footer:hover,
.company-phone-link--footer:focus-visible {
    color: #fff;
}

.company-phone-link--footer .company-phone-region {
    color: var(--ep-accent-muted);
}

.company-phone-link--contact {
    color: var(--ep-primary);
}

.company-phone-link--contact:hover,
.company-phone-link--contact:focus-visible {
    color: var(--ep-primary-hover);
}

.company-phone-link--contact .company-phone-region {
    color: var(--ep-ink-soft);
}

.navbar-phones-wrap {
    width: 100%;
    margin-bottom: 0.35rem;
}

.navbar-phones {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.main-navbar .nav-cta {
    font-size: 0.8rem;
    padding: 0.3rem 0.65rem;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .main-navbar .navbar-nav .nav-link {
        padding: 0.5rem 0.7rem;
    }

    .main-navbar .navbar-brand {
        max-width: 14rem;
    }

    /* One mega menu at a time — click to open (no hover stack) */
    .main-navbar .dropdown-menu.mega-menu {
        display: none;
    }

    .main-navbar .dropdown-menu.mega-menu.show,
    .main-navbar .dropdown.show > .dropdown-menu.mega-menu {
        display: block;
    }
}

.mega-menu-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ep-accent);
    margin-bottom: .75rem;
}

.mega-menu-item:hover {
    background: var(--ep-accent-soft);
}

.solution-card {
    transition: transform .2s, box-shadow .2s, border-color .2s;
    border: 1px solid var(--ep-border);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ep-shadow-hover) !important;
    border-color: var(--ep-accent-muted);
}

.industry-pill:hover {
    background: var(--ep-accent-soft);
    border-color: var(--ep-accent) !important;
}

.hero-eyebrow {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #e8d4c2;
    opacity: 1;
    text-shadow: 0 1px 8px rgba(10, 16, 26, 0.25);
}

.trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--ep-border);
}

.trust-item strong {
    font-size: 1.5rem;
    color: var(--ep-ink);
    font-family: var(--ep-font-display);
}

@media (min-width: 992px) {
    .main-navbar .dropdown-menu.mega-menu.show,
    .main-navbar .dropdown.show > .dropdown-menu.mega-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .website-hero {
        min-height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .website-hero h1,
    .website-hero .display-4,
    .website-hero .display-5,
    .website-hero .display-6 {
        font-size: clamp(1.65rem, 5.5vw, 2.35rem);
        line-height: 1.2;
    }

    .website-hero .lead {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .website-hero .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .website-hero .d-flex.flex-wrap.gap-3 .btn-lg {
        flex: 1 1 100%;
    }

    .hero-tags {
        gap: 0.35rem !important;
    }

    .hero-tag-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem !important;
    }

    .mega-menu {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        padding: 1rem !important;
        max-height: 70vh;
        overflow-y: auto;
    }

    .navbar-brand {
        font-size: 1rem;
        max-width: 65%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lead-form-section {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .lead-form .btn-lg,
    .lead-form-submit {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .lead-form-intro {
        gap: 0.75rem !important;
    }

    .lead-form-intro .h4 {
        font-size: 1.15rem;
    }

    .whatsapp-float {
        right: max(1rem, env(safe-area-inset-right, 0));
        bottom: max(1rem, env(safe-area-inset-bottom, 0));
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1.5rem;
    }

    .pricing-card-featured {
        transform: none;
        border-width: 2px !important;
    }

    .pricing-table {
        font-size: 0.8rem;
    }

    .pricing-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
    }

    .pricing-table-wrap::after {
        content: 'Swipe to compare →';
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: #6c757d;
        margin-top: 0.5rem;
    }

    .industry-services-nav-sticky {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .industry-service-toolbar {
        gap: 0.5rem !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }

    .industry-service-toolbar a {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .pillar-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .pillar-nav .nav-link {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .case-study-strip {
        margin: 0 -0.75rem;
        padding-left: 0.75rem !important;
    }

    .section-title.display-6 {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-banner .btn-lg {
        width: 100%;
        margin: 0.25rem 0 !important;
    }

    .trust-item strong {
        font-size: 1.25rem;
    }

    .process-timeline .col-6 {
        margin-bottom: 0.5rem;
    }

    .seo-prose-section .article-content h2 {
        font-size: 1.35rem;
    }

    .icon-circle-hero {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    .website-hero h1.d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

@media (max-width: 576px) {
    .col-md-6.col-lg-3,
    .col-md-6.col-lg-4 {
        margin-bottom: 0;
    }

    .integration-grid .col-6 {
        padding: 0.25rem;
    }

    .integration-badge {
        font-size: 0.75rem !important;
        padding: 0.65rem !important;
    }

    .testimonial-card,
    .case-study-card .card-body {
        padding: 1rem !important;
    }

    .breadcrumb-nav {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .display-5.fw-bold.text-primary,
    .about .display-5 {
        font-size: 1.75rem;
    }
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--ep-accent);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

.tech-category-card {
    transition: box-shadow 0.2s ease;
}

.tech-category-card:hover {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.06);
}

.tech-stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-stack-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ep-ink);
    background: var(--ep-accent-soft);
    border: 1px solid var(--ep-accent-muted);
    border-radius: 2rem;
    white-space: nowrap;
}

.process-step-badge {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ep-accent-soft);
    color: var(--ep-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.process-step-num {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--ep-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-prose-section {
    border-top: 1px solid var(--ep-border);
}

#main-content {
    overflow-x: hidden;
}

.client-review-card {
    display: flex;
    flex-direction: column;
}

.client-review-stars {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.client-reviews-section {
    background: #fff;
    border-top: 1px solid var(--ep-border);
}

.client-reviews-section .client-review-card {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    background: var(--ep-cream);
    border: 1px solid var(--ep-border);
}

.client-reviews-section .client-review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ep-shadow-hover) !important;
    border-color: var(--ep-accent-muted);
}

.client-reviews-section .bi-quote {
    color: var(--ep-accent) !important;
    opacity: 0.35 !important;
}

@media (max-width: 768px) {
    .client-reviews-section .row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .client-reviews-section .col-md-4 {
        flex: 0 0 85%;
        max-width: 85%;
    }
}

/* Performance, accessibility, and tablet layout */

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

.card-img-top,
.industry-card img,
.blog-card img {
    display: block;
}

@media (max-width: 1199.98px) {
    .main-navbar .dropdown-menu.mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 0.35rem;
        border: 1px solid var(--ep-border);
        border-radius: var(--ep-radius);
        box-shadow: var(--ep-shadow) !important;
    }

    .main-navbar .navbar-collapse {
        max-height: calc(100vh - 4.5rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.75rem;
    }

    .main-navbar-actions {
        width: 100%;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem;
    }

    .main-navbar .nav-cta {
        width: 100%;
        text-align: center;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 991.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .pre-reviews-cta-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .tab-content .row.g-5 {
        --bs-gutter-y: 1.5rem;
    }

    .tab-content .col-lg-6 img {
        margin-top: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .stat-card:hover,
    .case-study-card:hover,
    .industry-card:hover,
    .solution-card:hover,
    .whatsapp-float:hover {
        transform: none;
    }
}

/* Our Standard Technologies — icon tiles on child pages */
.standard-technologies-section {
    border-top: 1px solid var(--ep-border);
}

.standard-tech-group-icon,
.standard-tech-subgroup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--ep-accent-soft);
    color: var(--ep-accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.standard-tech-subgroup-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.9rem;
}

.standard-tech-subgroup {
    padding: 1rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid var(--ep-border);
    height: 100%;
}

.standard-tech-tile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid var(--ep-border);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ep-ink);
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.standard-tech-tile i {
    font-size: 1.1rem;
    color: var(--ep-accent);
    flex-shrink: 0;
}

.standard-tech-tile:hover {
    border-color: var(--ep-accent-muted);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
}

@media (max-width: 575.98px) {
    .standard-tech-tile {
        font-size: 0.75rem;
        padding: 0.5rem 0.6rem;
    }

    .standard-tech-tile i {
        font-size: 1rem;
    }
}
