/*
 * PSFM Corporate Premium Design System
 * Final public UI owner loaded after legacy and page-level styles.
 * Scope: visual consistency only; routes, content, SEO and lead behavior remain unchanged.
 */

:root {
    --psfm-cp-navy-950: #041426;
    --psfm-cp-navy-900: #071f3f;
    --psfm-cp-navy-800: #0d2d52;
    --psfm-cp-navy-700: #173f6b;
    --psfm-cp-red-700: #a91227;
    --psfm-cp-red-600: #c8172f;
    --psfm-cp-red-500: #d71920;
    --psfm-cp-green-600: #087f53;
    --psfm-cp-ink: #102033;
    --psfm-cp-body: #506078;
    --psfm-cp-muted: #6b7789;
    --psfm-cp-line: #dce3ec;
    --psfm-cp-line-strong: #c8d3df;
    --psfm-cp-soft: #f5f7fa;
    --psfm-cp-soft-blue: #eef3f8;
    --psfm-cp-white: #ffffff;
    --psfm-cp-radius-sm: 8px;
    --psfm-cp-radius-md: 12px;
    --psfm-cp-radius-lg: 16px;
    --psfm-cp-shadow-sm: 0 8px 24px rgba(7, 31, 63, .06);
    --psfm-cp-shadow-md: 0 18px 44px rgba(7, 31, 63, .1);
    --psfm-cp-shadow-lg: 0 26px 64px rgba(4, 20, 38, .16);
    --psfm-cp-container: 1240px;
    --psfm-cp-section: clamp(72px, 7vw, 96px);
    --psfm-cp-section-mobile: 56px;
    --psfm-cp-control: 52px;
    --psfm-cp-transition: 180ms ease;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

html body[class]:not(#psfm-public-visual-unlock) {
    color: var(--psfm-cp-body);
    background: var(--psfm-cp-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html body[class]:not(#psfm-public-visual-unlock) main.main {
    color: var(--psfm-cp-body);
    background: var(--psfm-cp-white);
}

html body[class]:not(#psfm-public-visual-unlock) main.main > :where(section, div) {
    min-width: 0;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .container {
    width: min(var(--psfm-cp-container), calc(100% - 40px));
    max-width: min(var(--psfm-cp-container), calc(100% - 40px));
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(h1, h2, h3, h4, h5, h6) {
    color: var(--psfm-cp-ink);
    letter-spacing: -.018em;
    text-wrap: pretty;
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(p, li, dd) {
    color: var(--psfm-cp-body);
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(p, li) {
    line-height: 1.68;
}

html body[class]:not(#psfm-public-visual-unlock) :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(200, 23, 47, .22) !important;
    outline-offset: 3px;
}

html body[class]:not(#psfm-public-visual-unlock) ::selection {
    color: var(--psfm-cp-white);
    background: var(--psfm-cp-red-600);
}

/* Typography and section rhythm */
html body[class]:not(#psfm-public-visual-unlock) main.main :where(.site-title, .seo-section-title) {
    max-width: 820px;
    margin-bottom: 16px;
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    line-height: 1.16;
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(.site-title-tagline, .seo-kicker, .premium-product-kicker) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--psfm-cp-red-600);
    font-size: .75rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .1em;
    text-transform: uppercase;
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .homepage-shell,
    .seo-section,
    .service-area,
    .about-area,
    .contact-area,
    .project-area,
    .blog-area,
    .team-area,
    .faq-area,
    .premium-product-body
) {
    padding-block: var(--psfm-cp-section);
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .homepage-shell,
    .seo-section,
    .service-area,
    .about-area,
    .contact-area,
    .project-area,
    .blog-area,
    .team-area,
    .faq-area,
    .premium-product-body
).pt-0 {
    padding-top: 0 !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(.homepage-shell.is-light, .seo-page, .psfm-services-page) {
    background: var(--psfm-cp-soft);
}

/* Buttons and actions */
html body[class]:not(#psfm-public-visual-unlock) :where(
    .theme-btn,
    .theme-btn-white,
    .theme-btn-outline,
    .vendor-btn,
    .vendor-btn-light,
    .psfm-breadcrumb-action
) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--psfm-cp-control);
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--psfm-cp-radius-sm);
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    transition:
        transform var(--psfm-cp-transition),
        box-shadow var(--psfm-cp-transition),
        color var(--psfm-cp-transition),
        background-color var(--psfm-cp-transition),
        border-color var(--psfm-cp-transition);
}

html body[class]:not(#psfm-public-visual-unlock) :where(.theme-btn, .vendor-btn) {
    color: var(--psfm-cp-white);
    background: var(--psfm-cp-red-600);
    border-color: var(--psfm-cp-red-600);
    box-shadow: 0 12px 26px rgba(200, 23, 47, .18);
}

html body[class]:not(#psfm-public-visual-unlock) :where(.theme-btn, .vendor-btn):hover {
    color: var(--psfm-cp-white);
    background: var(--psfm-cp-red-700);
    border-color: var(--psfm-cp-red-700);
    box-shadow: 0 16px 30px rgba(169, 18, 39, .22);
    transform: translateY(-2px);
}

html body[class]:not(#psfm-public-visual-unlock) :where(.theme-btn-white, .theme-btn-outline, .vendor-btn-light) {
    color: var(--psfm-cp-navy-900);
    background: var(--psfm-cp-white);
    border-color: var(--psfm-cp-line-strong);
}

html body[class]:not(#psfm-public-visual-unlock) :where(.theme-btn-white, .theme-btn-outline, .vendor-btn-light):hover {
    color: var(--psfm-cp-red-600);
    background: #fffafb;
    border-color: rgba(200, 23, 47, .42);
    transform: translateY(-2px);
}

html body[class]:not(#psfm-public-visual-unlock) a[href*="wa.me"] i {
    color: var(--psfm-cp-green-600);
}

/* Corporate cards */
html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .seo-card,
    .seo-panel,
    .seo-list-card,
    .seo-faq-card,
    .seo-link-card,
    .seo-cluster-card,
    .faq-item,
    .service-card,
    .workspace-item,
    .blog-item,
    .project-item,
    .contact-form,
    .contact-info,
    .contact-coverage-card,
    .premium-product-card,
    .premium-product-section,
    .premium-product-panel,
    .psfm-conversion-panel,
    .psfm-service-command-panel,
    .psfm-buying-card,
    .service-operating-model-card,
    .service-intent-item,
    .jeddah-buyer-card
) {
    border: 1px solid var(--psfm-cp-line) !important;
    border-radius: var(--psfm-cp-radius-md) !important;
    background: var(--psfm-cp-white);
    box-shadow: var(--psfm-cp-shadow-sm);
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    a.seo-link-card,
    a.psfm-buying-card,
    .service-card,
    .workspace-item,
    .blog-item,
    .project-item
) {
    transition:
        transform var(--psfm-cp-transition),
        border-color var(--psfm-cp-transition),
        box-shadow var(--psfm-cp-transition);
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    a.seo-link-card,
    a.psfm-buying-card,
    .service-card,
    .workspace-item,
    .blog-item,
    .project-item
):hover {
    border-color: rgba(200, 23, 47, .32) !important;
    box-shadow: var(--psfm-cp-shadow-md);
    transform: translateY(-3px);
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .seo-card,
    .seo-panel,
    .seo-list-card,
    .seo-faq-card,
    .contact-form,
    .contact-coverage-card,
    .premium-product-section,
    .premium-product-panel
) {
    padding: clamp(24px, 3vw, 36px) !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .seo-chip,
    .psfm-breadcrumb-chips > span,
    .service-intent-item,
    .psfm-trust-badge-strip > span
) {
    border: 1px solid var(--psfm-cp-line);
    border-radius: var(--psfm-cp-radius-sm);
    background: var(--psfm-cp-white);
    color: var(--psfm-cp-navy-900);
    box-shadow: none;
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .seo-chip,
    .psfm-breadcrumb-chips > span,
    .service-intent-item
) i {
    color: var(--psfm-cp-red-600);
}

/* Forms */
html body[class]:not(#psfm-public-visual-unlock) main.main :where(.form-label, label) {
    margin-bottom: 8px;
    color: var(--psfm-cp-ink);
    font-size: .88rem;
    font-weight: 800;
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .form-control,
    .form-select,
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    select,
    textarea
) {
    min-height: 54px !important;
    border: 1px solid var(--psfm-cp-line-strong) !important;
    border-radius: var(--psfm-cp-radius-sm) !important;
    background-color: var(--psfm-cp-white) !important;
    color: var(--psfm-cp-ink) !important;
    box-shadow: none !important;
    transition: border-color var(--psfm-cp-transition), box-shadow var(--psfm-cp-transition);
}

html body[class]:not(#psfm-public-visual-unlock) main.main textarea.form-control,
html body[class]:not(#psfm-public-visual-unlock) main.main textarea {
    min-height: 128px !important;
    resize: vertical;
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .form-control,
    .form-select,
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    select,
    textarea
):focus {
    border-color: var(--psfm-cp-red-600);
    box-shadow: 0 0 0 4px rgba(200, 23, 47, .1);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .form-text {
    color: var(--psfm-cp-muted);
    font-size: .8rem;
    line-height: 1.5;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-contact-more-details {
    border: 1px solid var(--psfm-cp-line);
    border-radius: var(--psfm-cp-radius-sm);
    background: var(--psfm-cp-soft);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-contact-more-details summary {
    padding: 16px 18px;
    color: var(--psfm-cp-navy-900);
    font-weight: 800;
    cursor: pointer;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-contact-more-grid {
    padding: 0 18px 18px;
}

/* Header and navigation */
html body[class]:not(#psfm-public-visual-unlock) > header.header .main-navigation {
    background: rgba(255, 255, 255, .98) !important;
    border-bottom: 1px solid rgba(7, 31, 63, .1) !important;
    box-shadow: 0 10px 28px rgba(7, 31, 63, .07) !important;
    backdrop-filter: blur(14px);
}

html body[class]:not(#psfm-public-visual-unlock) > header.header .custom-nav-shell {
    min-height: 78px;
}

html body[class]:not(#psfm-public-visual-unlock) > header.header .header-brand img {
    width: auto;
    max-width: 168px;
    max-height: 52px;
}

html body[class]:not(#psfm-public-visual-unlock) > header.header .header-menu-list > .nav-item > .nav-link {
    position: relative;
    min-height: 42px;
    padding: 10px 8px !important;
    border-radius: var(--psfm-cp-radius-sm);
    color: var(--psfm-cp-ink) !important;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.15;
    background: transparent !important;
}

html body[class]:not(#psfm-public-visual-unlock) > header.header .header-menu-list > .nav-item > .nav-link:hover,
html body[class]:not(#psfm-public-visual-unlock) > header.header .header-menu-list > .nav-item > .nav-link.active {
    color: var(--psfm-cp-red-600) !important;
    background: rgba(200, 23, 47, .055) !important;
}

html body[class]:not(#psfm-public-visual-unlock) > header.header .dropdown-menu {
    border: 1px solid var(--psfm-cp-line) !important;
    border-radius: var(--psfm-cp-radius-md) !important;
    background: rgba(255, 255, 255, .99) !important;
    box-shadow: var(--psfm-cp-shadow-lg) !important;
}

html body[class]:not(#psfm-public-visual-unlock) > header.header .dropdown-item {
    border-radius: var(--psfm-cp-radius-sm);
    color: var(--psfm-cp-ink);
}

html body[class]:not(#psfm-public-visual-unlock) > header.header .dropdown-item:hover,
html body[class]:not(#psfm-public-visual-unlock) > header.header .dropdown-item.active {
    color: var(--psfm-cp-red-600);
    background: rgba(200, 23, 47, .06);
}

html body[class]:not(#psfm-public-visual-unlock) > header.header :where(.language-switcher, .mobile-language-switcher) {
    border: 1px solid var(--psfm-cp-line);
    background: var(--psfm-cp-soft);
    box-shadow: none;
}

html body[class]:not(#psfm-public-visual-unlock) > header.header .header-btn .theme-btn {
    min-height: 48px;
    padding-inline: 16px;
}

/* Shared breadcrumb hero */
html body[class]:not(#psfm-public-visual-unlock) main.main .site-breadcrumb-wrapper {
    min-height: 400px !important;
    padding-block: 64px !important;
    background-color: var(--psfm-cp-navy-950) !important;
    background-image:
        linear-gradient(108deg, rgba(4, 20, 38, .93), rgba(7, 31, 63, .76)),
        var(--psfm-breadcrumb-bg) !important;
    background-position: center !important;
    background-size: cover !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .site-breadcrumb-wrapper::before {
    background: linear-gradient(180deg, rgba(4, 20, 38, .1), rgba(4, 20, 38, .36)) !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .site-breadcrumb-wrapper > .container {
    max-width: 920px !important;
    text-align: center;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .breadcrumb-title {
    max-width: 860px !important;
    margin-inline: auto !important;
    color: var(--psfm-cp-white) !important;
    font-size: clamp(2.4rem, 4.5vw, 3.75rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-breadcrumb-summary {
    max-width: 760px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, .84) !important;
    font-size: 1.02rem;
    line-height: 1.68;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .breadcrumb-menu {
    justify-content: center;
    margin-top: 18px;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-breadcrumb-chips {
    justify-content: center;
    margin-top: 20px;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-breadcrumb-chips > span {
    min-height: 38px;
    padding: 8px 12px;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .1);
    color: var(--psfm-cp-white);
    backdrop-filter: blur(8px);
}

/* Homepage hero */
html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero {
    background:
        radial-gradient(circle at 86% 18%, rgba(200, 23, 47, .12), transparent 30%),
        linear-gradient(135deg, var(--psfm-cp-navy-950), var(--psfm-cp-navy-900));
}

html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-layout {
    border-color: rgba(255, 255, 255, .14) !important;
    border-radius: var(--psfm-cp-radius-md) !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-kicker {
    border-color: rgba(255, 255, 255, .16) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .1) !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-kicker-mark {
    background: var(--psfm-cp-red-600) !important;
    box-shadow: 0 8px 20px rgba(200, 23, 47, .24);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-main-title {
    color: var(--psfm-cp-white) !important;
    letter-spacing: -.025em !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-copy > p {
    color: rgba(255, 255, 255, .82) !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-market-note {
    border-color: rgba(255, 255, 255, .14) !important;
    border-radius: var(--psfm-cp-radius-sm) !important;
    background: rgba(255, 255, 255, .08) !important;
    box-shadow: none !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-visual-card {
    border-color: rgba(255, 255, 255, .18) !important;
    border-radius: var(--psfm-cp-radius-md) !important;
    box-shadow: 0 24px 58px rgba(0, 0, 0, .26) !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-visual-overlay {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--psfm-cp-radius-sm);
    background: rgba(4, 20, 38, .9);
    backdrop-filter: blur(8px);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-visual-stats > span {
    border: 1px solid var(--psfm-cp-line);
    border-radius: var(--psfm-cp-radius-sm);
    background: var(--psfm-cp-white);
    box-shadow: var(--psfm-cp-shadow-sm);
}

/* Homepage discovery and service cards */
html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-conversion-hub {
    background: var(--psfm-cp-soft);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-conversion-panel {
    padding: clamp(28px, 4vw, 48px) !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-conversion-intro {
    max-width: 760px;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-conversion-intro h2 {
    max-width: 760px;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    line-height: 1.14;
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(.psfm-smart-search-field, .psfm-service-command-field) {
    min-height: 56px;
    border-color: var(--psfm-cp-line-strong);
    border-radius: var(--psfm-cp-radius-sm);
    box-shadow: none;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-service-filter-tab {
    min-height: 42px;
    border-color: var(--psfm-cp-line-strong);
    border-radius: var(--psfm-cp-radius-sm);
    color: var(--psfm-cp-navy-900);
    background: var(--psfm-cp-white);
    box-shadow: none;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-service-filter-tab:is(:hover, :focus-visible, .is-active) {
    border-color: var(--psfm-cp-navy-900);
    color: var(--psfm-cp-white);
    background: var(--psfm-cp-navy-900);
    box-shadow: 0 10px 22px rgba(7, 31, 63, .14);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-recommendation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-recommendation-card {
    border: 1px solid var(--psfm-cp-line);
    border-radius: var(--psfm-cp-radius-md);
    box-shadow: var(--psfm-cp-shadow-sm);
    transition: transform var(--psfm-cp-transition), border-color var(--psfm-cp-transition), box-shadow var(--psfm-cp-transition);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-recommendation-card:hover {
    border-color: rgba(200, 23, 47, .3);
    box-shadow: var(--psfm-cp-shadow-md);
    transform: translateY(-3px);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-recommendation-media {
    aspect-ratio: 16 / 10;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-recommendation-body {
    padding: 20px;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-recommendation-icon,
html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .service-operating-model-icon,
    .psfm-buying-card > span:first-child
) {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: var(--psfm-cp-radius-sm);
    color: var(--psfm-cp-red-600);
    background: rgba(200, 23, 47, .08);
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .psfm-service-card,
    .psfm-service-route-card,
    .psfm-service-buying-panel,
    .psfm-service-seo-routes,
    .location-card
) {
    overflow: hidden;
    border: 1px solid var(--psfm-cp-line) !important;
    border-radius: var(--psfm-cp-radius-md) !important;
    background: var(--psfm-cp-white);
    box-shadow: var(--psfm-cp-shadow-sm) !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .psfm-service-card,
    .psfm-service-route-card,
    .location-card
) {
    transition: transform var(--psfm-cp-transition), border-color var(--psfm-cp-transition), box-shadow var(--psfm-cp-transition);
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .psfm-service-card,
    .psfm-service-route-card,
    .location-card
):hover {
    border-color: rgba(200, 23, 47, .3) !important;
    box-shadow: var(--psfm-cp-shadow-md) !important;
    transform: translateY(-3px);
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(.psfm-service-media, .location-card-image) {
    overflow: hidden;
    aspect-ratio: 16 / 10 !important;
    border-radius: var(--psfm-cp-radius-md) var(--psfm-cp-radius-md) 0 0 !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(.psfm-service-media, .location-card-image) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(.psfm-service-card, .location-card):hover :where(.psfm-service-media, .location-card-image) img {
    transform: scale(1.025);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-service-body {
    padding: 22px !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(.psfm-service-icon, .psfm-service-badge) {
    border-radius: var(--psfm-cp-radius-sm) !important;
}

/* Service, manpower, industry and location templates */
html body[class]:not(#psfm-public-visual-unlock) main.main :where(.seo-page, .psfm-services-page) {
    padding-block: var(--psfm-cp-section);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .seo-page > .seo-section:first-child {
    padding-top: 0 !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .seo-card.seo-hero {
    background:
        radial-gradient(circle at 90% 10%, rgba(200, 23, 47, .12), transparent 34%),
        linear-gradient(135deg, var(--psfm-cp-navy-950), var(--psfm-cp-navy-900)) !important;
    border-color: rgba(255, 255, 255, .08) !important;
    box-shadow: var(--psfm-cp-shadow-lg);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .seo-card.seo-hero :where(h1, h2, h3, .seo-section-title) {
    color: var(--psfm-cp-white) !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .seo-card.seo-hero :where(p, li) {
    color: rgba(255, 255, 255, .82) !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .seo-hero-media {
    overflow: hidden;
    border-radius: var(--psfm-cp-radius-md);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .seo-hero-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

html body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .seo-link-grid,
    .seo-cluster-grid,
    .service-operating-model-grid,
    .psfm-buying-grid
) {
    gap: 18px;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .seo-link-card {
    min-height: 100%;
    padding: 20px;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .seo-list {
    display: grid;
    gap: 10px;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .seo-list li {
    gap: 10px;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .seo-list li::before,
html body[class]:not(#psfm-public-visual-unlock) main.main .seo-list li > i {
    color: var(--psfm-cp-red-600);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .seo-panel {
    position: sticky;
    top: calc(var(--psfm-fixed-header-height, 78px) + 20px);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .contact-line {
    min-height: 52px;
    padding: 12px;
    border: 1px solid var(--psfm-cp-line);
    border-radius: var(--psfm-cp-radius-sm);
    background: var(--psfm-cp-soft);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .contact-line > i {
    color: var(--psfm-cp-red-600);
}

/* FAQ and accordion */
html body[class]:not(#psfm-public-visual-unlock) main.main .accordion {
    display: grid;
    gap: 10px;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .accordion-item {
    overflow: hidden;
    border: 1px solid var(--psfm-cp-line) !important;
    border-radius: var(--psfm-cp-radius-sm) !important;
    background: var(--psfm-cp-white);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .accordion-button {
    min-height: 58px;
    padding: 16px 18px;
    color: var(--psfm-cp-ink);
    background: var(--psfm-cp-white);
    font-weight: 800;
    box-shadow: none;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .accordion-button:not(.collapsed) {
    color: var(--psfm-cp-red-600);
    background: rgba(200, 23, 47, .045);
    box-shadow: inset 0 -1px 0 var(--psfm-cp-line);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .accordion-body {
    padding: 18px;
    color: var(--psfm-cp-body);
    line-height: 1.7;
}

/* Premium product and CTA banners */
html body[class]:not(#psfm-public-visual-unlock) main.main :where(.premium-product-hero, .seo-banner) {
    background:
        radial-gradient(circle at 88% 10%, rgba(200, 23, 47, .15), transparent 32%),
        linear-gradient(135deg, var(--psfm-cp-navy-950), var(--psfm-cp-navy-900)) !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .premium-product-layout {
    gap: clamp(28px, 4vw, 56px);
}

html body[class]:not(#psfm-public-visual-unlock) main.main .premium-product-panel {
    border-color: rgba(255, 255, 255, .18) !important;
}

html body[class]:not(#psfm-public-visual-unlock) main.main .seo-banner {
    border-radius: var(--psfm-cp-radius-md);
    box-shadow: var(--psfm-cp-shadow-lg);
}

/* Footer and persistent conversion controls */
html body[class]:not(#psfm-public-visual-unlock) .footer-area {
    margin-top: var(--psfm-cp-section);
    background:
        radial-gradient(circle at 12% 0%, rgba(200, 23, 47, .12), transparent 30%),
        linear-gradient(135deg, var(--psfm-cp-navy-800), var(--psfm-cp-navy-950)) !important;
    color: #cbd5e1;
}

html body[class]:not(#psfm-public-visual-unlock) .footer-area .footer-widget-title {
    color: var(--psfm-cp-white);
    font-size: 1rem;
    letter-spacing: .01em;
}

html body[class]:not(#psfm-public-visual-unlock) .footer-area :where(.footer-list a, .footer-contact a, p) {
    color: #cbd5e1;
}

html body[class]:not(#psfm-public-visual-unlock) .footer-area :where(.footer-list a, .footer-contact a):hover {
    color: var(--psfm-cp-white);
}

html body[class]:not(#psfm-public-visual-unlock) .footer-area .footer-list li a i {
    color: #ef6a78;
}

html body[class]:not(#psfm-public-visual-unlock) .footer-floating-contact .btn {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .6) !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 28px rgba(4, 20, 38, .2) !important;
}

html body[class]:not(#psfm-public-visual-unlock) .footer-floating-contact-text {
    display: none !important;
}

html body[class]:not(#psfm-public-visual-unlock) .psfm-ai-assistant:not(.is-open) .psfm-ai-launcher {
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 16px 34px rgba(4, 20, 38, .22) !important;
}

html body[class]:not(#psfm-public-visual-unlock) .psfm-ai-assistant:not(.is-open) .psfm-ai-launcher-text {
    display: none !important;
}

/* RTL */
html[dir="rtl"] body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .site-title,
    .seo-section-title,
    .breadcrumb-title,
    .hero-main-title
) {
    letter-spacing: 0 !important;
}

html[dir="rtl"] body[class]:not(#psfm-public-visual-unlock) main.main :where(
    .site-title-tagline,
    .seo-kicker,
    .premium-product-kicker
) {
    letter-spacing: 0;
    text-transform: none;
}

html[dir="rtl"] body[class]:not(#psfm-public-visual-unlock) main.main :where(p, li, dd) {
    line-height: 1.82;
}

html[dir="rtl"] body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-copy h1.hero-main-title,
html[dir="rtl"] body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-copy h1.hero-main-title > span {
    line-height: 1.22 !important;
    letter-spacing: 0 !important;
}

/* Tablet */
@media (min-width: 992px) and (max-width: 1199.98px) {
    html body[class]:not(#psfm-public-visual-unlock) > header.header .header-menu-list > .nav-item > .nav-link {
        padding-inline: 5px !important;
        font-size: .7rem;
    }

    html body[class]:not(#psfm-public-visual-unlock) > header.header .header-brand img {
        max-width: 150px;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-visual-card {
        aspect-ratio: 1 / 1 !important;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-recommendation-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    :root {
        --psfm-cp-section: 68px;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-recommendation-grid,
    html body[class]:not(#psfm-public-visual-unlock) main.main :where(.seo-link-grid, .seo-cluster-grid, .service-operating-model-grid, .psfm-buying-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .seo-panel {
        position: static;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-visual-card {
        aspect-ratio: 16 / 10 !important;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    :root {
        --psfm-cp-section: var(--psfm-cp-section-mobile);
        --psfm-cp-control: 50px;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .container {
        width: 100%;
        max-width: 100%;
        padding-inline: 16px;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main :where(
        .homepage-shell,
        .seo-section,
        .service-area,
        .about-area,
        .contact-area,
        .project-area,
        .blog-area,
        .team-area,
        .faq-area,
        .premium-product-body
    ) {
        padding-block: var(--psfm-cp-section-mobile);
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main :where(.site-title, .seo-section-title) {
        font-size: clamp(1.65rem, 7vw, 2.05rem);
        line-height: 1.18;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .site-breadcrumb-wrapper {
        min-height: 330px !important;
        padding-block: 44px !important;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .breadcrumb-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
        line-height: 1.14 !important;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-breadcrumb-summary {
        font-size: .92rem;
        line-height: 1.58;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-conversion-panel,
    html body[class]:not(#psfm-public-visual-unlock) main.main :where(
        .seo-card,
        .seo-panel,
        .seo-list-card,
        .seo-faq-card,
        .contact-form,
        .contact-coverage-card,
        .premium-product-section,
        .premium-product-panel
    ) {
        padding: 20px !important;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-conversion-intro h2 {
        font-size: clamp(1.7rem, 7.4vw, 2.05rem);
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-recommendation-grid,
    html body[class]:not(#psfm-public-visual-unlock) main.main :where(.seo-link-grid, .seo-cluster-grid, .service-operating-model-grid, .psfm-buying-grid) {
        grid-template-columns: minmax(0, 1fr);
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-service-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-service-filter-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    html body[class]:not(#psfm-public-visual-unlock) :where(
        .theme-btn,
        .theme-btn-white,
        .theme-btn-outline,
        .vendor-btn,
        .vendor-btn-light
    ) {
        min-height: 50px;
        padding: 11px 14px;
        font-size: .84rem;
    }

    html body[class]:not(#psfm-public-visual-unlock) .footer-floating-contact {
        display: none !important;
    }

    html body[class]:not(#psfm-public-visual-unlock) .psfm-mobile-action-bar.psfm-mobile-three-cta {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
        border-top: 1px solid var(--psfm-cp-line) !important;
        background: rgba(255, 255, 255, .97) !important;
        box-shadow: 0 -12px 30px rgba(4, 20, 38, .14) !important;
        backdrop-filter: blur(14px);
    }

    html body[class]:not(#psfm-public-visual-unlock) .psfm-mobile-action-bar.psfm-mobile-three-cta > a {
        min-width: 0 !important;
        min-height: 52px !important;
        border-radius: var(--psfm-cp-radius-sm) !important;
        font-size: .76rem !important;
        line-height: 1.15 !important;
    }
}

@media (max-width: 575.98px) {
    html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero {
        padding-block: 30px 36px !important;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-layout {
        padding: 14px !important;
        border-radius: var(--psfm-cp-radius-sm) !important;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-actions > :first-child {
        grid-column: 1 / -1;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-market-note {
        padding: 13px !important;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-breadcrumb-chips {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 340px);
        margin-inline: auto;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .psfm-breadcrumb-chips > span {
        justify-content: center;
        width: 100%;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .breadcrumb-menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: min(100%, 350px) !important;
        max-width: 100% !important;
        margin-inline: auto !important;
        overflow: hidden !important;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .breadcrumb-menu li:not(:first-child):not(:last-child) {
        display: none !important;
    }

    html body[class]:not(#psfm-public-visual-unlock) main.main .breadcrumb-menu li.active {
        min-width: 0 !important;
        max-width: calc(100% - 72px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    html body[class]:not(#psfm-public-visual-unlock) *,
    html body[class]:not(#psfm-public-visual-unlock) *::before,
    html body[class]:not(#psfm-public-visual-unlock) *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 575.98px) {
    html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-actions.homepage-hero-actions--two,
    html[dir="rtl"] body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-actions.homepage-hero-actions--two {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Keep the two existing mobile hero actions full-width during cached Blade rollouts. */
@media (max-width: 575.98px) {
    html body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-actions > :nth-child(2):last-child,
    html[dir="rtl"] body[class]:not(#psfm-public-visual-unlock) main.main .homepage-hero .hero-actions > :nth-child(2):last-child {
        grid-column: 1 / -1 !important;
    }
}
