/* ============================================
   CATALYST ERP — Custom Overrides
   Supplements landing-page.css
   ============================================ */

/* --- Header Logo Sizing --- */
.header-left {
    max-width: 180px;
}

.landing_logo,
.landing_logo_dark {
    max-height: 42px;
    width: auto;
}

/* --- Features Preview --- */
.features-preview {
    width: 85%;
    max-width: 900px;
    margin: -60px auto 0;
    position: relative;
    z-index: 2;
}

.features-preview img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.1);
}

/* --- Login Theme Landing Page --- */
body.landing-auth-homepage {
    min-height: 100vh;
    background: linear-gradient(180deg, #f0faf4 0%, #f7faf7 40%, #ffffff 100%);
    color: #1f2937;
    /* Override custom-login auth styles that block scroll & width */
    overflow-x: hidden;
    overflow-y: auto !important;
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
}

.landing-auth-homepage .custom-login-inner {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    /* Override auth max-width & flex centering */
    max-width: 100% !important;
    display: block !important;
    padding: 0 !important;
}

.landing-home-main {
    padding-bottom: 48px;
}

.landing-auth-homepage .login-bg-img {
    display: none !important;
    pointer-events: none;
}

.landing-auth-homepage .bg-login {
    display: none !important;
}

.landing-auth-homepage .announcement {
    width: min(1160px, calc(100% - 32px));
    margin: 18px auto 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.92);
    color: #f9fafb;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

.landing-auth-homepage .dash-header {
    padding-top: 24px;
}

.landing-auth-homepage .main-header .navbar {
    margin-top: 18px;
    padding: 16px 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.landing-auth-homepage .main-header .navbar .container {
    max-width: 100%;
}

.landing-auth-homepage .main-header .nav-link {
    color: #475467;
    font-weight: 600;
}

.landing-auth-homepage .main-header .nav-link.active,
.landing-auth-homepage .main-header .nav-link:hover {
    color: #1f9d64;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-auth-homepage .btn {
    border-radius: 999px;
    padding: 0.9rem 1.5rem;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.landing-auth-homepage .btn:hover {
    transform: translateY(-1px);
}

.landing-auth-homepage .btn-primary {
    border: none;
    background: linear-gradient(135deg, #2bb673 0%, #1f9d64 100%);
    box-shadow: 0 18px 32px rgba(31, 157, 100, 0.22);
}

.landing-auth-homepage .btn-outline-dark,
.landing-auth-homepage .btn-outline-light {
    color: #111827;
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.88);
}

.landing-auth-homepage .main-banner {
    position: relative;
    padding: 72px 0 24px;
    background: transparent !important;
}

.landing-auth-homepage .main-banner .container-offset {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(28px, 4vw, 48px);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.landing-auth-homepage .main-banner h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #111827;
}

.landing-auth-homepage .main-banner h6,
.landing-auth-homepage .main-banner p {
    color: #475467;
    font-size: 1rem;
    line-height: 1.8;
}

.hero-module-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-module-pills span {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(31, 157, 100, 0.18);
    color: #1f9d64;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.landing-auth-homepage .dash-preview {
    padding: 16px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
}

.landing-auth-homepage .preview-img {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.hero-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.hero-metric-card {
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.hero-metric-card strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 1rem;
}

.hero-metric-card span {
    display: block;
    color: #475467;
    line-height: 1.6;
}

.trusted-strip {
    margin-top: 24px;
    padding: 18px 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.landing-auth-homepage .section-surface {
    padding-top: 30px;
    background: transparent !important;
}

.landing-auth-homepage .section-surface > .container {
    padding: clamp(28px, 4vw, 48px);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.landing-auth-homepage .title span,
.landing-auth-homepage .features-section > .container > .row > .col-xxl-4 > span {
    color: #1f9d64;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    font-weight: 800;
}

.landing-auth-homepage .title h2,
.landing-auth-homepage .features-section h2,
.landing-auth-homepage .subscription h2,
.landing-auth-homepage .faqs h2,
.landing-auth-homepage .testimonial h2 {
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.landing-auth-homepage .features-section .card,
.landing-auth-homepage .discover-section .card,
.landing-auth-homepage .screenshots .screenshot-card,
.landing-auth-homepage .subscription .price-card,
.landing-auth-homepage .testimonial .card {
    height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.landing-auth-homepage .features-section .card.bg-primary,
.landing-auth-homepage .discover-section .card.bg-primary {
    background: linear-gradient(160deg, #dbf7e9 0%, #c8f0dd 100%) !important;
    border-color: rgba(31, 157, 100, 0.18);
}

.landing-auth-homepage .features-section .card:not(.bg-primary),
.landing-auth-homepage .discover-section .card:not(.bg-primary) {
    background: rgba(248, 250, 252, 0.94) !important;
}

.landing-auth-homepage .features-section .card h3,
.landing-auth-homepage .discover-section .card h3,
.landing-auth-homepage .screenshots h5,
.landing-auth-homepage .subscription .price-card .p-price,
.landing-auth-homepage .price-card p,
.landing-auth-homepage .faqs .accordion-button,
.landing-auth-homepage .testimonial .card h3,
.landing-auth-homepage .workflow-spotlight h2 {
    color: #111827 !important;
}

.landing-auth-homepage .features-section .card p,
.landing-auth-homepage .discover-section .card p,
.landing-auth-homepage .screenshots p,
.landing-auth-homepage .price-card .form-check-label,
.landing-auth-homepage .workflow-spotlight p,
.landing-auth-homepage .faqs .accordion-body,
.landing-auth-homepage .testimonial .card p,
.landing-auth-homepage .site-footer p {
    color: #475467 !important;
}

.landing-auth-homepage .theme-avtar {
    background: linear-gradient(135deg, rgba(43, 182, 115, 0.12), rgba(31, 157, 100, 0.2));
    border-radius: 20px;
}

.landing-auth-homepage .workflow-spotlight {
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.landing-auth-homepage .workflow-spotlight + .workflow-spotlight {
    margin-top: 28px;
}

.landing-auth-homepage .img-wrapper,
.landing-auth-homepage .features-preview,
.landing-auth-homepage .screenshots .img-wrapper {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.landing-auth-homepage .discover-section .btn-outline-light {
    background: #fff;
}

/* --- Operating Model (Discover) Grid --- */
.discover-grid {
    display: flex;
    flex-wrap: wrap;
}

.discover-grid .card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.discover-grid .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
}

.discover-grid .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.discover-grid .card-body p:last-child {
    margin-top: auto;
}

.landing-auth-homepage .price-card {
    padding: 6px;
}

.landing-auth-homepage .price-card.bg-dark {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%) !important;
    border-color: rgba(17, 24, 39, 0.8);
}

.landing-auth-homepage .price-card.bg-dark .p-price,
.landing-auth-homepage .price-card.bg-dark p,
.landing-auth-homepage .price-card.bg-dark .form-check-label {
    color: #f8fafc !important;
}

.landing-auth-homepage .price-card .price-badge {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #111827;
}

.landing-auth-homepage .price-card.bg-dark .price-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff;
}

.landing-auth-homepage .faqs .accordion-item {
    margin-bottom: 16px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.landing-auth-homepage .faqs .accordion-button {
    border-radius: 20px !important;
    background: #fff;
    box-shadow: none;
}

.landing-auth-homepage .faqs .accordion-button:not(.collapsed) {
    color: #1f9d64 !important;
    background: rgba(219, 247, 233, 0.58);
}

.landing-auth-homepage .site-footer {
    margin: 0 auto;
    width: 100%;
    border-radius: 0;
    background: #111827 !important;
    border: none;
    box-shadow: none;
    padding: 64px 0 0;
    color: #e2e8f0;
}

.landing-auth-homepage .site-footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.landing-auth-homepage .site-footer .footer-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    align-items: start;
}

.landing-auth-homepage .site-footer .ftr-col.cmp-detail {
    max-width: 100%;
    flex: unset;
}

.landing-auth-homepage .site-footer .ftr-col.cmp-detail p {
    color: #94a3b8 !important;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-top: 12px;
}

.landing-auth-homepage .site-footer .ftr-col ul {
    padding: 0;
    margin: 0;
}

.landing-auth-homepage .site-footer .ftr-col ul li {
    margin-bottom: 12px;
}

.landing-auth-homepage .site-footer .ftr-col ul li a {
    color: #94a3b8;
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.landing-auth-homepage .site-footer .ftr-col ul li a:hover {
    color: #2bb673;
    padding-left: 4px;
}

.landing-auth-homepage .site-footer .ftr-subscribe {
    max-width: 100%;
    flex: unset;
}

.landing-auth-homepage .site-footer .ftr-subscribe h2 {
    color: #f8fafc !important;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.landing-auth-homepage .site-footer .ftr-subscribe p {
    color: #94a3b8 !important;
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.landing-auth-homepage .site-footer .input-wrapper {
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12) !important;
    padding: 4px;
}

.landing-auth-homepage .site-footer .input-wrapper input {
    padding-left: 20px;
    color: #e2e8f0;
    background: transparent;
}

.landing-auth-homepage .site-footer .input-wrapper input::placeholder {
    color: #64748b;
}

.landing-auth-homepage .site-footer .input-wrapper .btn {
    background: linear-gradient(135deg, #2bb673 0%, #1f9d64 100%) !important;
    border: none;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 24px;
}

.landing-auth-homepage .site-footer .border-top {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.landing-auth-homepage .site-footer .border-top p {
    color: #64748b !important;
    font-size: 0.85rem;
    padding: 16px 0;
}

.landing-auth-homepage .footer-logo img {
    max-height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* --- Image Wrapper & Screenshot Cards Positioning --- */
.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-wrapper:hover img {
    transform: scale(1.03);
}

.screenshot-card {
    position: relative;
    overflow: hidden;
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Footer Logo --- */
.footer-logo,
.footer-logo img {
    max-height: 38px;
    width: auto;
}

/* --- RTL Mirroring --- */
[dir="rtl"] .ftr-col ul li a::before {
    content: none;
}

[dir="rtl"] .nav-link {
    text-align: right;
}

[dir="rtl"] .subscribe .input-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .subscribe .input-wrapper input {
    border-radius: 0 50px 50px 0;
}

[dir="rtl"] .subscribe .input-wrapper button {
    border-radius: 50px 0 0 50px;
}

[dir="rtl"] .feature-card,
[dir="rtl"] .price-card {
    text-align: right;
}

/* --- Dark Mode Body Gradient Background --- */
.landing-dark {
    background: linear-gradient(180deg, #0a0e27 0%, #070a1f 50%, #0a0e27 100%) !important;
}

.landing-dark .site-footer {
    background: #070a1f !important;
}

.landing-dark .bg-gray-100 {
    background: #0d1230 !important;
}

.landing-dark .bg-dark {
    background: #111640 !important;
}

/* --- Hidden Scrollbar (Webkit) --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f7faf7;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2bb673, #1f9d64);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #35c47f;
}

/* --- Large Container Breakpoint --- */
@media (min-width: 1500px) {
    .container {
        max-width: 1400px;
    }
}

/* --- Extra Responsive Tweaks --- */
@media (max-width: 991px) {
    body.landing-auth-homepage {
        background: linear-gradient(180deg, #f0faf4 0%, #f7faf7 40%, #ffffff 100%);
    }

    .landing-auth-homepage .main-header .navbar {
        padding: 14px 18px;
    }

    .landing-nav-actions {
        margin-top: 18px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .landing-auth-homepage .main-banner .container-offset,
    .landing-auth-homepage .section-surface > .container {
        width: min(100%, calc(100% - 24px));
        padding: 24px;
    }

    .landing-auth-homepage .site-footer .footer-row {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .landing-auth-homepage .site-footer .ftr-subscribe {
        grid-column: 1 / -1;
    }

    .hero-metric-grid {
        grid-template-columns: 1fr;
    }

    .trusted-strip {
        padding: 20px;
    }

    .landing-auth-homepage .workflow-spotlight {
        padding: 20px;
    }

    .features-preview {
        width: 95%;
        margin-top: -30px;
    }

    .header-left {
        max-width: 150px;
    }

    .landing_logo,
    .landing_logo_dark {
        max-height: 36px;
    }
}

@media (max-width: 767px) {
    .landing-auth-homepage .main-banner {
        padding-top: 52px;
    }

    .landing-auth-homepage .banner-btn {
        flex-direction: column;
    }

    .landing-auth-homepage .main-header .navbar {
        border-radius: 22px;
    }

    .landing-auth-homepage .site-footer .footer-row {
        grid-template-columns: 1fr;
    }

    .features-preview {
        width: 100%;
        margin-top: -20px;
    }

    .footer-logo,
    .footer-logo img {
        max-height: 32px;
    }
}

@media (max-width: 480px) {
    .landing-auth-homepage .announcement,
    .landing-auth-homepage .main-banner .container-offset,
    .landing-auth-homepage .section-surface > .container,
    .landing-auth-homepage .site-footer {
        width: min(100%, calc(100% - 16px));
    }

    .landing-auth-homepage .btn {
        width: 100%;
        justify-content: center;
    }

    .header-left {
        max-width: 120px;
    }

    .landing_logo,
    .landing_logo_dark {
        max-height: 30px;
    }

    .features-preview {
        margin-top: -10px;
    }
}

/* --- Selection Color --- */
::selection {
    background: rgba(43, 182, 115, 0.3);
    color: #111827;
}

::-moz-selection {
    background: rgba(43, 182, 115, 0.3);
    color: #111827;
}

/* --- Link Styles --- */
a {
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:focus-visible {
    outline: 2px solid #2bb673;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* --- Button Focus Accessibility --- */
.btn:focus-visible,
button:focus-visible {
    outline: 2px solid #1f9d64;
    outline-offset: 2px;
}

/* --- Card Hover Transitions (global) --- */
.landing-auth-homepage .features-section .card,
.landing-auth-homepage .testimonial .card,
.landing-auth-homepage .price-card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.landing-auth-homepage .features-section .card:hover,
.landing-auth-homepage .testimonial .card:hover,
.landing-auth-homepage .price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

/* --- Workflow Spotlight Hover --- */
.landing-auth-homepage .workflow-spotlight {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.landing-auth-homepage .workflow-spotlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.1);
}

/* --- FAQ Accordion Hover --- */
.landing-auth-homepage .faqs .accordion-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.landing-auth-homepage .faqs .accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

/* ====== Operating Model (Discover) Section ====== */
.discover-section .discover-grid {
    display: flex;
    flex-wrap: wrap;
}

.discover-section .discover-grid > [class*="col"] {
    display: flex;
}

.discover-section .discover-grid .card {
    width: 100%;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease;
}

.discover-section .discover-grid .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.discover-section .discover-grid .card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.discover-section .discover-grid .card p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.88;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive: stack 2-col on tablets, 1-col on phones */
@media (max-width: 991.98px) {
    .discover-section .discover-grid > [class*="col"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .discover-section .discover-grid > [class*="col"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
