/*
 * AMC Secure Enterprise Feel — macOS-grade public UI overrides.
 */

:root {
    --button-bg: #12a86b;
    --card-radius: 22px;
    --page: #f5f5f7;
    --font-ui: var(--amc-font-sans);
    --font-display: var(--amc-font-display);
    --site-container: 1280px;
    --amc-surface-glass: rgba(255, 255, 255, 0.72);
    --amc-hero-accent: #6ee7b7;
}

body:not(.admin-body):not(.auth-body):not(.portal-body) {
    background: var(--page);
    color: var(--amc-ink);
}

/* Official logo shield-edge glow — see logo-shield-glow.css (no outer ring). */

/* Stop overlay flash on refresh */
body:not(.admin-body) .cart-drawer:not(.is-open),
body:not(.admin-body) .cart-drawer[hidden] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.inquiry-modal[hidden],
.inquiry-modal:not(.is-open) {
    display: none !important;
}

.inquiry-card {
    animation: none !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 28px 80px rgba(2, 8, 23, 0.22) !important;
}

.amc-copilot-panel[hidden] {
    display: none !important;
}

.amc-copilot-toggle {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Header: clean enterprise shell */
.home-utility-bar {
    min-height: 30px;
    padding-block: 5px;
    background: linear-gradient(90deg, #071326, #0b2744);
    font-size: 12px;
    letter-spacing: 0.01em;
}

.market-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(255, 255, 255, 0.82) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 12px 40px rgba(15, 23, 42, 0.06);
}

.global-homepage .market-header {
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 18px 48px rgba(15, 23, 42, 0.08);
}

.topbar {
    min-height: 72px !important;
    padding: 10px clamp(16px, 3vw, 40px) !important;
    background: transparent !important;
}

.global-homepage .topbar {
    min-height: 76px !important;
    grid-template-columns: minmax(180px, 260px) minmax(280px, 1fr) auto !important;
}

.market-brand strong {
    color: var(--amc-ink) !important;
    font-size: clamp(15px, 1.5vw, 18px) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-shadow: none !important;
}

.market-brand em,
.market-brand small {
    color: var(--amc-muted) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

.global-homepage .market-brand::after {
    display: none !important;
}

.market-search,
.ui-glass-search {
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

.market-nav a,
.nav-row a {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--amc-text) !important;
}

/* Hero — premium enterprise, readable scale */
body.global-homepage .global-home-main {
    background:
        radial-gradient(circle at 85% 0%, rgba(18, 168, 107, 0.08), transparent 32%),
        radial-gradient(circle at 10% 12%, rgba(11, 78, 162, 0.07), transparent 28%),
        linear-gradient(180deg, #f5f5f7 0%, #fbfbfc 42%, #ffffff 100%) !important;
    padding-top: 18px !important;
}

body.global-homepage .global-hero,
body.global-homepage .hero-galaxy-banner--galaxy {
    width: min(100% - 28px, 1180px) !important;
    max-width: 1180px !important;
    min-height: var(--home-hero-body-min, clamp(160px, 14vw, 200px)) !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: clamp(8px, 1vw, 14px) !important;
    border-radius: 18px !important;
    display: block !important;
    grid-template-columns: unset !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    background:
        radial-gradient(ellipse 70% 55% at 50% 45%, rgba(14, 165, 233, 0.14), transparent 65%),
        radial-gradient(ellipse 50% 40% at 15% 80%, rgba(139, 92, 246, 0.14), transparent 58%),
        linear-gradient(155deg, #020617 0%, #0b1224 50%, #111827 100%) !important;
    box-shadow: 0 16px 40px rgba(2, 8, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.global-homepage .global-hero-copy > p {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #d1fae5 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

body.global-homepage .global-hero-copy h1 {
    max-width: 380px !important;
    margin-top: 4px !important;
    font-size: clamp(20px, 2.5vw, 32px) !important;
    font-weight: 800 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.04em !important;
}

body.global-homepage .global-hero-copy > span {
    max-width: 380px !important;
    margin-top: 6px !important;
    font-size: clamp(10px, 0.8vw, 12px) !important;
    line-height: 1.4 !important;
}

body.global-homepage .hero-actions {
    gap: 8px !important;
    margin-top: 10px !important;
}

body.global-homepage .hero-actions a {
    min-height: 36px !important;
    padding: 0 16px !important;
    font-size: 12px !important;
}

body.global-homepage .hero-trust-row {
    gap: 6px !important;
    max-width: 520px !important;
    margin-top: 10px !important;
}

body.global-homepage .hero-trust-row span {
    min-height: 28px !important;
    padding: 5px 7px !important;
    font-size: 8.5px !important;
}

body.global-homepage .hero-title-part--custom {
    background: linear-gradient(90deg, #7dd3fc 0%, #86efac 32%, #c4b5fd 66%, #fcd34d 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

body.global-homepage .hero-title-part--sky { color: #67e8f9 !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; }
body.global-homepage .hero-title-part--mint { color: #6ee7b7 !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; }
body.global-homepage .hero-title-part--violet { color: #c4b5fd !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; }
body.global-homepage .hero-title-part--amber { color: #fcd34d !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; }

body.global-homepage .hero-galaxy-hub {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    overflow: visible !important;
}

body.global-homepage .hero-orbit-node--planet .hero-orbit-node__sphere {
    width: 36px !important;
    height: 36px !important;
}

body.global-homepage .hero-orbit-node__tag {
    font-size: 10.5px !important;
    font-weight: 800 !important;
}

body.global-homepage .hero-galaxy-hub:not(.hero-galaxy-hub--logo-only) .hero-galaxy-core {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) rotateX(var(--hero-orbit-tilt-inv, -58deg)) translateZ(52px) !important;
}

body.global-homepage .global-hero-copy {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 5 !important;
}

body.global-homepage .hero-galaxy-banner--galaxy.hero-has-master-rail .global-hero-copy {
    bottom: var(--home-hero-rail-h, 48px) !important;
    box-sizing: border-box !important;
}

body.global-homepage .hero-actions a:first-child {
    background: linear-gradient(135deg, #0891b2 0%, #059669 52%, #4f46e5 100%) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 10px 28px rgba(8, 145, 178, 0.28) !important;
}

body.global-homepage .hero-actions a:last-child {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

body.global-homepage .hero-currency-card,
body.global-homepage .hero-currency-card--glass {
    background: rgba(15, 23, 42, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(10px) !important;
}

body.global-homepage .global-preference-strip {
    width: min(100% - 28px, 1180px) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 12px 18px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    background: var(--amc-surface-glass) !important;
    backdrop-filter: blur(18px) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06) !important;
}

body.global-homepage .service-icon-cloud .ui-icon-card {
    border-right: 1px solid rgba(226, 232, 240, 0.8) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)) !important;
}

body.global-homepage .service-icon-cloud .ui-icon-card img {
    width: 52px !important;
    height: 52px !important;
    padding: 8px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, rgba(18, 168, 107, 0.1), rgba(11, 78, 162, 0.08)) !important;
    object-fit: contain !important;
}

.product-visual img,
.catalog-card img {
    image-rendering: auto !important;
    background: linear-gradient(135deg, #f8fafc, #eef4ff) !important;
}

/* Inner pages — unified shell */
.catalog-page,
.checkout-page,
.contact-page,
.appointment-page,
.auth-page,
.blog-page {
    width: min(100% - 32px, 1280px);
    margin-inline: auto;
    padding-top: 18px;
}

.cart-panel,
.checkout-panel,
.catalog-panel,
.contact-panel {
    border-radius: 24px !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08) !important;
}

.product-card,
.global-product-card,
.ui-portal-card,
.ui-gradient-card,
.client-logo-card {
    border-radius: 22px !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06) !important;
}

.product-card h3,
.global-product-card h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

.product-card p,
.global-product-card p {
    color: var(--amc-muted) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.price-row button,
.product-request-actions button,
.department-tabs button.is-active,
button[type="submit"]:not(.admin-body button) {
    background: linear-gradient(135deg, #0b4ea2, #12a86b) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
}

.department-tabs button {
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.section-title-row h2,
.client-logo-slider-head h2,
.global-marketplace h2 {
    font-size: clamp(28px, 3vw, 38px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
}

.section-title-row p,
.client-logo-slider-head p {
    color: var(--amc-green-600) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

/* Service icon rail — slower, calmer */
body.global-homepage .service-icon-track {
    animation-duration: 140s !important;
}

body.global-homepage .service-icon-cloud {
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08) !important;
}

/* Footer */
.site-footer {
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Catalog & inner pages */
.catalog-shell,
.checkout-page,
.contact-page,
.about-page-shell {
    width: min(100% - 32px, 1280px);
    margin-inline: auto;
}

body:not(.admin-body) .breadcrumb {
    font-size: 13px;
    color: var(--amc-muted);
}

@media (max-width: 900px) {
    .global-homepage .topbar {
        grid-template-columns: 1fr !important;
    }

    body.global-homepage .global-hero,
    body.global-homepage .hero-galaxy-banner--galaxy {
        min-height: clamp(148px, 16vw, 188px) !important;
    }

    .home-utility-bar {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-icon-track,
    .client-logo-track {
        animation: none !important;
    }
}
