/* CompanyPortal — Premium Corporate Frontend */

:root {
    --cp-primary: #0F4C81;
    --cp-primary-dark: #0a3560;
    --cp-primary-light: #1a6cb5;
    --cp-secondary: #00A8E8;
    --cp-success: #16A34A;
    --cp-warning: #F59E0B;
    --cp-surface: #ffffff;
    --cp-surface-alt: #F8FAFC;
    --cp-text: #0F172A;
    --cp-text-muted: #64748b;
    --cp-border: #e2e8f0;
    --cp-header-height: 84px;
    --cp-topbar-height: 40px;
    --cp-header-shadow: 0 10px 36px rgba(15, 76, 129, 0.14), 0 2px 10px rgba(15, 76, 129, 0.08);
    --cp-radius: 16px;
    --cp-radius-sm: 10px;
    --cp-shadow: 0 4px 24px rgba(15, 76, 129, 0.08);
    --cp-shadow-lg: 0 20px 50px rgba(15, 76, 129, 0.14);
    --cp-glass: rgba(255, 255, 255, 0.72);
    --cp-gradient-hero: linear-gradient(135deg, #0F4C81 0%, #0a3560 40%, #00A8E8 100%);
    --cp-gradient-cta: linear-gradient(135deg, #0F4C81 0%, #00A8E8 100%);
}

html { scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }

body.public-site {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: var(--cp-text);
    background: var(--cp-surface-alt);
    direction: rtl;
    text-align: right;
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

body.public-site.d-flex.flex-column {
    min-width: 0;
}

body.public-site.d-flex.flex-column > header,
body.public-site.d-flex.flex-column > main,
body.public-site.d-flex.flex-column > footer,
body.public-site.d-flex.flex-column > section {
    min-width: 0;
    max-width: 100%;
}

/* ── Top Contact Bar ── */
.top-contact-bar {
    background: var(--cp-primary);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    min-height: var(--cp-topbar-height);
    display: flex;
    align-items: center;
}

.top-contact-bar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.top-contact-bar a:hover { color: #fff; }

.top-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.top-contact-item .icon {
    width: 16px;
    height: 16px;
    color: var(--cp-secondary);
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid rgba(15, 76, 129, 0.12);
    box-shadow: var(--cp-header-shadow);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--cp-gradient-cta);
    z-index: 1;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 14px 44px rgba(15, 76, 129, 0.2), 0 4px 12px rgba(15, 76, 129, 0.1);
}

.site-header .navbar {
    position: relative;
    z-index: 2;
    min-height: var(--cp-header-height);
    padding: 0.65rem 0;
}

.site-header .navbar-brand {
    font-weight: 800;
    font-size: 1.28rem;
    color: var(--cp-text) !important;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    letter-spacing: -0.02em;
}

.site-header .brand-icon {
    width: 46px;
    height: 46px;
    background: var(--cp-gradient-cta);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 168, 232, 0.4);
}

.site-header .nav-link {
    color: var(--cp-text) !important;
    font-weight: 600;
    font-size: 0.94rem;
    padding: 0.62rem 0.9rem !important;
    border-radius: var(--cp-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--cp-primary) !important;
    background: rgba(15, 76, 129, 0.09);
    box-shadow: inset 0 0 0 1px rgba(15, 76, 129, 0.08);
}

.site-header .btn-cta {
    background: var(--cp-gradient-cta);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.62rem 1.45rem;
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 168, 232, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.site-header .btn-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 168, 232, 0.45);
}

.site-header .navbar-toggler {
    padding: 0.45rem;
    border-radius: 12px;
    background: rgba(15, 76, 129, 0.06);
    color: var(--cp-primary);
}

.site-header .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.25);
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        margin-top: 0.75rem;
        padding: 1rem;
        border-radius: var(--cp-radius);
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(15, 76, 129, 0.1);
        box-shadow: var(--cp-shadow);
    }
}

/* ── Mega Menu ── */
.mega-menu-item { position: static !important; }

.mega-menu-panel {
    width: 100%;
    max-width: 960px;
    right: 0 !important;
    left: auto !important;
    margin-top: 0.5rem !important;
    padding: 1.75rem !important;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    box-shadow: var(--cp-shadow-lg);
    inset: auto !important;
    transform: none !important;
    background: var(--cp-surface);
}

.mega-menu-grid.d-lg-grid { display: none; }

@media (min-width: 992px) {
    .mega-menu-grid.d-lg-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

@media (min-width: 1200px) {
    .mega-menu-grid.d-lg-grid { grid-template-columns: repeat(3, 1fr); }
}

.mega-menu-columns {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem 1.5rem;
}

@media (min-width: 992px) {
    .mega-menu-columns.d-lg-grid {
        display: grid;
    }
}

.mega-menu-column-title {
    display: block;
    font-weight: 700;
    color: var(--cp-primary);
    text-decoration: none;
    margin-bottom: 0.35rem;
}

.mega-menu-column-title:hover { color: var(--cp-primary-dark); }

.mega-menu-column-desc {
    font-size: 0.8rem;
    color: var(--cp-text-muted);
    margin-bottom: 0.75rem;
}

.mega-menu-subgroup {
    margin-bottom: 0.65rem;
}

.mega-menu-subtitle {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cp-text);
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.mega-menu-product-link {
    display: block;
    font-size: 0.8rem;
    color: var(--cp-text-muted);
    text-decoration: none;
    padding: 0.15rem 0;
}

.mega-menu-product-link:hover {
    color: var(--cp-primary);
}

.mobile-mega-group {
    padding-inline-start: 0.75rem;
    margin-bottom: 0.5rem;
}

.mobile-mega-sublabel {
    display: block;
    font-size: 0.82rem;
    color: var(--cp-text-muted);
    padding: 0.35rem 0 0.15rem;
}

.mega-menu-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: var(--cp-radius-sm);
    text-decoration: none;
    color: var(--cp-text);
    border: 1px solid transparent;
    transition: all 0.25s;
}

.mega-menu-card:hover {
    background: var(--cp-surface-alt);
    border-color: var(--cp-border);
    color: var(--cp-primary);
    transform: translateY(-2px);
    box-shadow: var(--cp-shadow);
}

.mega-menu-card .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mega-menu-card h6 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.mega-menu-card p {
    font-size: 0.78rem;
    color: var(--cp-text-muted);
    margin: 0;
    line-height: 1.55;
}

.mega-menu-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cp-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-mega-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
}

.mobile-mega-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    color: var(--cp-text);
    text-decoration: none;
    border-radius: 8px;
}

.mobile-mega-link:hover {
    background: var(--cp-surface-alt);
    color: var(--cp-primary);
}

/* ── Hero ── */
.hero-section { position: relative; margin-bottom: 0; }

.hero-section--photo,
.hero-swiper-desktop {
    display: none;
    width: 80%;
    max-width: 100%;
    margin-inline: auto;
    border-radius: var(--cp-radius);
    overflow: hidden;
    box-shadow: var(--cp-shadow-lg);
}

.hero-mobile-static {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    border-radius: var(--cp-radius);
    overflow: hidden;
    box-shadow: var(--cp-shadow-lg);
    background: linear-gradient(180deg, #e8f4fc 0%, #f8fafc 45%, #eef6ff 100%);
    min-height: clamp(420px, 72vh, 560px);
    height: clamp(420px, 72vh, 560px);
    box-sizing: border-box;
}

.hero-mobile-static__media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem 7rem;
    z-index: 0;
}

.hero-mobile-static__photo {
    display: block;
    width: min(96%, 480px);
    max-height: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 768px) {
    .hero-swiper-desktop {
        display: none !important;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        pointer-events: none;
    }

    .hero-mobile-static {
        display: block;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .hero-mobile-static__photo {
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    .hero-swiper-desktop {
        display: block;
    }

    .hero-mobile-static {
        display: none !important;
    }
}

.hero-swiper { width: 100%; min-height: clamp(280px, 42vw, 520px); overflow: hidden; position: relative; }

.hero-swiper .swiper-wrapper { min-height: inherit; }

.hero-swiper:not(.swiper-initialized) .swiper-wrapper { display: block; }

.hero-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) { display: none !important; }

.hero-swiper:not(.swiper-initialized) .swiper-slide:first-child { width: 100%; }

/* Photo slider — تصویر برجسته + واترمارک رنگی پایین وسط */
.hero-section--photo .hero-swiper--photo,
.hero-swiper-desktop .hero-swiper--photo,
.hero-section--photo .hero-swiper--photo .swiper-wrapper,
.hero-swiper-desktop .hero-swiper--photo .swiper-wrapper,
.hero-section--photo .hero-swiper--photo .swiper-slide.hero-slide--photo,
.hero-swiper-desktop .hero-swiper--photo .swiper-slide.hero-slide--photo {
    height: clamp(520px, 81vh, 936px);
    min-height: clamp(520px, 81vh, 936px);
}

.hero-slide--photo {
    position: relative;
    padding: 0;
    background: linear-gradient(180deg, #e8f4fc 0%, #f8fafc 45%, #eef6ff 100%);
    overflow: hidden;
}

.hero-slide--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 35%, rgba(0, 168, 232, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(15, 76, 129, 0.08) 0%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.hero-slide-media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem 6.5rem;
    z-index: 0;
}

.hero-slide-photo {
    display: block;
    aspect-ratio: 16 / 9;
    width: min(96%, 1200px);
    max-height: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 24px 48px rgba(15, 76, 129, 0.22));
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: filter 0.5s ease;
}

.hero-slide--photo.swiper-slide-active .hero-slide-photo {
    filter: drop-shadow(0 28px 56px rgba(15, 76, 129, 0.28));
}

.hero-slide-watermark {
    position: absolute;
    z-index: 3;
    bottom: 1.75rem;
    right: 1.75rem;
    left: auto;
    max-width: min(380px, calc(100% - 2.5rem));
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.hero-slide-watermark--featured {
    left: 0;
    right: 0;
    margin-inline: auto;
    bottom: 2.75rem;
    transform: none;
    width: min(640px, calc(100% - 2rem));
    max-width: min(640px, calc(100% - 2rem));
    min-height: clamp(11rem, 22vh, 13.5rem);
    box-sizing: border-box;
    padding: 1.15rem 1.5rem 1.3rem;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.42) 0%,
        rgba(255, 255, 255, 0.28) 45%,
        rgba(0, 168, 232, 0.14) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 12px 40px rgba(15, 76, 129, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    isolation: isolate;
}

.hero-slide--photo .hero-slide-watermark--featured {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.42) 0%,
        rgba(255, 255, 255, 0.28) 45%,
        rgba(0, 168, 232, 0.14) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 12px 40px rgba(15, 76, 129, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.hero-slide-watermark--featured .hero-watermark-title {
    color: var(--cp-primary);
    font-size: clamp(1.1rem, 2.5vw, 1.55rem);
    font-weight: 700;
    text-shadow: none;
    margin-bottom: 0.35rem;
    line-height: 1.35;
    min-height: 2.75em;
}

.hero-slide-watermark--featured .hero-watermark-subtitle {
    color: #334155;
    font-size: clamp(0.82rem, 1.8vw, 0.95rem);
    margin-bottom: 0.85rem;
    text-shadow: none;
    line-height: 1.7;
    min-height: 1.7em;
}

.hero-slide-watermark--featured .hero-watermark-actions {
    justify-content: center;
    gap: 0.55rem;
    min-height: 4.75rem;
    align-content: center;
}

.hero-watermark-actions .btn-hero-primary {
    background: var(--cp-gradient-cta);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.45rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(15, 76, 129, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-watermark-actions .btn-hero-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 76, 129, 0.32);
}

.hero-watermark-actions .btn-hero-ghost {
    background: rgba(255, 255, 255, 0.45);
    color: var(--cp-primary);
    border: 1px solid rgba(15, 76, 129, 0.2);
    border-radius: 999px;
    padding: 0.45rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s;
}

.hero-watermark-actions .btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.65);
    color: var(--cp-primary-dark);
    border-color: rgba(15, 76, 129, 0.35);
}

.hero-slide--photo .hero-slide-watermark:not(.hero-slide-watermark--featured) {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.hero-watermark-title {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.45rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.45;
    margin: 0 0 0.3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    letter-spacing: 0.01em;
}

.hero-slide--photo .hero-slide-watermark:not(.hero-slide-watermark--featured) .hero-watermark-title {
    color: #0f172a;
    text-shadow: none;
}

.hero-watermark-subtitle {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: clamp(0.78rem, 1.6vw, 0.9rem);
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 0.65rem;
    line-height: 1.65;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-slide--photo .hero-slide-watermark:not(.hero-slide-watermark--featured) .hero-watermark-subtitle {
    color: #334155;
    text-shadow: none;
}

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

.hero-watermark-actions .btn {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
}

.hero-slide--photo .hero-watermark-actions .btn-dark {
    background: #0f172a;
    border-color: #0f172a;
}

.hero-slide--photo .hero-watermark-actions .btn-outline-dark {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.35);
}

.hero-slide--photo .hero-watermark-actions .btn-outline-dark:hover {
    background: #0f172a;
    color: #fff;
}

.hero-swiper--photo .swiper-pagination {
    z-index: 4;
    bottom: 0.65rem !important;
}

.hero-swiper--photo .swiper-button-next,
.hero-swiper--photo .swiper-button-prev {
    z-index: 4;
    color: #fff;
    background: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.25);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    backdrop-filter: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
}

.hero-swiper--photo .swiper-button-next:hover,
.hero-swiper--photo .swiper-button-prev:hover {
    background: #020617;
}

.hero-swiper--photo .swiper-pagination-bullet {
    background: rgba(15, 23, 42, 0.28);
    opacity: 1;
}

.hero-swiper--photo .swiper-pagination-bullet-active {
    background: #0f172a;
}

.hero-slide--fallback {
    display: flex;
    align-items: center;
    min-height: 580px;
    background: var(--cp-gradient-hero);
}

.hero-slide-watermark--center {
    position: relative;
    inset: auto;
    bottom: auto;
    max-width: 540px;
    margin: 0 auto;
}

@media (max-width: 575.98px) {
    .hero-slide-media {
        padding: 0.75rem 0.5rem 7rem;
    }

    .hero-slide-watermark--featured {
        bottom: 2.25rem;
        left: 0;
        right: 0;
        margin-inline: auto;
        transform: none;
        width: calc(100% - 1.25rem);
        max-width: calc(100% - 1.25rem);
        min-height: clamp(12rem, 28vh, 15rem);
        padding: 0.9rem 1rem 1rem;
        border-radius: 14px;
    }

    .hero-slide-watermark:not(.hero-slide-watermark--featured) {
        bottom: 1rem;
        right: 1rem;
        left: auto;
        max-width: calc(100% - 2rem);
        padding: 0.75rem 0.9rem;
    }

    .hero-watermark-actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

.hero-swiper .swiper-slide:not(.hero-slide--photo) {
    display: flex;
    align-items: center;
    min-height: 580px;
    background: var(--cp-gradient-hero);
    overflow: hidden;
    position: relative;
}

.hero-swiper .swiper-slide.hero-slide--photo {
    display: block;
    align-items: unset;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-shape--1 {
    width: 320px; height: 320px;
    background: var(--cp-secondary);
    top: -80px; left: 10%;
}

.hero-shape--2 {
    width: 240px; height: 240px;
    background: #8B5CF6;
    bottom: -60px; right: 15%;
    animation-delay: -3s;
}

.hero-shape--3 {
    width: 180px; height: 180px;
    background: var(--cp-warning);
    top: 40%; right: 35%;
    animation-delay: -5s;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 76, 129, 0.92) 0%, rgba(15, 76, 129, 0.6) 50%, rgba(0, 168, 232, 0.35) 100%);
}

.hero-slide-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.8;
}

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

.hero-actions .btn-primary-hero {
    background: #fff;
    color: var(--cp-primary);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.8rem 1.75rem;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-actions .btn-primary-hero:hover {
    background: var(--cp-surface-alt);
    color: var(--cp-primary-dark);
    transform: translateY(-2px);
}

.hero-actions .btn-outline-hero {
    border: 2px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

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

.hero-visual-card {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--cp-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hero-visual-card .icon {
    width: 100px;
    height: 100px;
    color: rgba(255, 255, 255, 0.4);
}

.hero-swiper:not(.hero-swiper--photo) .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    width: 10px; height: 10px;
}

.hero-swiper:not(.hero-swiper--photo) .swiper-pagination-bullet-active {
    background: #fff;
    width: 32px;
    border-radius: 6px;
}

.hero-swiper:not(.hero-swiper--photo) .swiper-button-next,
.hero-swiper:not(.hero-swiper--photo) .swiper-button-prev {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    width: 48px; height: 48px;
    border-radius: 50%;
    backdrop-filter: blur(6px);
}

.hero-swiper:not(.hero-swiper--photo) .swiper-button-next::after,
.hero-swiper:not(.hero-swiper--photo) .swiper-button-prev::after { font-size: 18px; font-weight: 700; }

.hero-swiper--photo .swiper-button-next::after,
.hero-swiper--photo .swiper-button-prev::after { font-size: 18px; font-weight: 700; }

/* ── Section Common ── */
.section-padding { padding: 5rem 0; }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0a5f7a;
    background: rgba(0, 168, 232, 0.14);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-header .section-desc a {
    color: #0a3560;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.12em;
    text-decoration-thickness: 1px;
}

.section-header .section-desc a:hover {
    color: #083d6b;
}

/* ── Feature Cards (Glassmorphism) ── */
.feature-card {
    background: var(--cp-glass);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--cp-radius);
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
    transition: transform 0.35s, box-shadow 0.35s;
    box-shadow: var(--cp-shadow);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cp-shadow-lg);
}

.feature-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 36px;
}

.feature-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--cp-text);
}

.feature-card__desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.feature-card .btn-feature {
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1.25rem;
    border: 1.5px solid #0a4c81;
    color: #0a4c81;
    background: transparent;
    transition: all 0.25s;
}

.feature-card:hover .btn-feature {
    background: var(--cp-primary);
    color: #fff;
}

/* ── Stats / Why Us ── */
.stats-section {
    background: var(--cp-primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 168, 232, 0.25), transparent 50%);
}

.stat-item { text-align: center; position: relative; z-index: 1; }

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    min-width: 5.5ch;
    display: inline-block;
}

.stat-number span { color: var(--cp-secondary); }

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

/* ── Product Showcase ── */
.showcase-block {
    padding: 4rem 0;
    border-bottom: 1px solid var(--cp-border);
}

.showcase-block:last-child { border-bottom: none; }

.showcase-visual {
    background: linear-gradient(145deg, rgba(15, 76, 129, 0.06), rgba(0, 168, 232, 0.08));
    border-radius: var(--cp-radius);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.showcase-visual--form {
    background: linear-gradient(145deg, rgba(0, 168, 232, 0.1), rgba(0, 168, 232, 0.04));
}

.showcase-visual--workflow {
    background: linear-gradient(145deg, rgba(15, 76, 129, 0.1), rgba(15, 76, 129, 0.04));
}

.showcase-visual--archive {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.04));
}

.showcase-visual::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: var(--cp-secondary);
    opacity: 0.08;
    bottom: -50px; left: -50px;
}

.showcase-content h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--cp-text);
}

.showcase-content p {
    color: var(--cp-text-muted);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.showcase-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.showcase-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
    color: var(--cp-text);
}

.showcase-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cp-success);
    font-weight: 700;
    line-height: 1;
}

/* ── Blog Cards ── */
.blog-card-premium {
    background: var(--cp-surface);
    border-radius: var(--cp-radius);
    overflow: hidden;
    border: 1px solid var(--cp-border);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--cp-shadow-lg);
}

.blog-card-premium__media {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cp-primary), var(--cp-secondary));
}

.blog-card-premium__img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    background: transparent;
}

.blog-card-premium__img.is-broken {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blog-card-premium__img-fallback {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
}

.blog-card-premium__media:has(.blog-card-premium__img.is-broken) .blog-card-premium__img-fallback,
.blog-card-premium__img-fallback.is-visible {
    display: flex;
}

.blog-card-premium__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    width: 100%;
    color: rgba(255, 255, 255, 0.55);
}

.blog-card-premium__body { padding: 1.5rem; }

.blog-card-premium__date {
    font-size: 0.8rem;
    color: var(--cp-text-muted);
    margin-bottom: 0.5rem;
}

.blog-card-premium__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    line-height: 1.5;
}

.blog-card-premium__title a {
    color: var(--cp-text);
    text-decoration: none;
}

.blog-card-premium__title a:hover { color: var(--cp-primary); }

.blog-card-premium__summary {
    font-size: 0.88rem;
    color: var(--cp-text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ── Testimonials ── */
.testimonial-card {
    background: var(--cp-surface);
    border-radius: var(--cp-radius);
    padding: 2rem;
    border: 1px solid var(--cp-border);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    line-height: 1;
    color: rgba(0, 168, 232, 0.15);
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--cp-text-muted);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--cp-gradient-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: #475569; }

.testimonials-swiper { padding-bottom: 3rem !important; }

.testimonials-swiper .swiper-pagination-bullet-active { background: var(--cp-primary); }

/* ── Partners ── */
.partners-section { background: var(--cp-surface); }

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    height: 80px;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: filter 0.3s, opacity 0.3s;
}

.partner-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo-item img {
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
}

.partner-logo-placeholder {
    font-weight: 700;
    font-size: 0.85rem;
    color: #475569;
    letter-spacing: 0.02em;
}

/* ── CTA ── */
.cta-section {
    background: var(--cp-gradient-cta);
    border-radius: var(--cp-radius);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 1rem;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -200px; left: -100px;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 2rem;
    position: relative;
}

.cta-section .btn-cta-light {
    background: #fff;
    color: var(--cp-primary);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.85rem 2.25rem;
    border: none;
    font-size: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform 0.25s;
}

.cta-section .btn-cta-light:hover {
    transform: translateY(-3px);
    color: var(--cp-primary-dark);
}

/* ── Footer ── */
.site-footer {
    background: var(--cp-text);
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
}

.site-footer .footer-brand,
.site-footer .footer-column-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover { color: var(--cp-secondary); }

.site-footer .footer-link-list { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-link-list li { margin-bottom: 0.6rem; }

.site-footer .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.site-footer .footer-contact-item .icon {
    width: 20px;
    height: 20px;
    color: var(--cp-secondary);
    margin-top: 2px;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.site-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    margin-left: 0.5rem;
    transition: background 0.2s, transform 0.2s;
}

.site-footer .social-links a:hover {
    background: var(--cp-secondary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Main ── */
.public-main { min-height: 50vh; min-width: 0; max-width: 100%; overflow-x: clip; }
.public-main--padded > .container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.skip-link {
    position: absolute;
    top: -100px; right: 1rem;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--cp-primary);
    color: #fff;
    border-radius: 8px;
}

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

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

/* Bootstrap theme overrides */
.btn-primary {
    background-color: var(--cp-primary);
    border-color: var(--cp-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--cp-primary-dark);
    border-color: var(--cp-primary-dark);
}

.btn-outline-primary {
    color: var(--cp-primary);
    border-color: var(--cp-primary);
}

.btn-outline-primary:hover {
    background-color: var(--cp-primary);
    border-color: var(--cp-primary);
}

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

/* Sidebar menu (public) */
.sidebar-menu__group { margin-bottom: 0.75rem; }
.sidebar-menu__title { font-weight: 600; display: block; margin-bottom: 0.35rem; }
.sidebar-menu__children { list-style: none; padding-right: 1rem; margin: 0; }
.sidebar-menu__children a { color: var(--cp-text-muted); text-decoration: none; font-size: 0.9rem; }
.sidebar-menu__children a:hover { color: var(--cp-primary); }

.page-inner .breadcrumb { margin-bottom: 1.5rem; }

/* Demo request success popup */
.demo-success-modal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15, 76, 129, 0.2);
    overflow: hidden;
}

.demo-success-modal .modal-body {
    padding: 2rem 1.75rem 1.75rem;
}

.demo-success-modal__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    color: #16a34a;
    animation: demoSuccessPop 0.45s ease-out;
}

.demo-success-modal__icon .icon {
    width: 44px;
    height: 44px;
}

.demo-success-modal__title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--cp-text);
}

.demo-success-modal__text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--cp-text-muted);
    margin-bottom: 1.35rem;
}

.demo-success-modal__btn {
    border-radius: 999px;
    min-width: 140px;
    font-weight: 700;
    background: var(--cp-gradient-cta, linear-gradient(135deg, #0f4c81, #00a8e8));
    border: none;
}

@keyframes demoSuccessPop {
    0% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 991.98px) {
    .hero-swiper:not(.hero-swiper--photo),
    .hero-swiper:not(.hero-swiper--photo) .swiper-slide {
        min-height: 480px;
    }

    .section-padding { padding: 3.5rem 0; }
    .mega-menu-panel {
        position: static !important;
        box-shadow: none;
        border: none;
        padding: 0 !important;
        max-width: 100%;
    }
    .top-contact-bar { display: none; }
    .cta-section { margin: 0; border-radius: 0; }
}
