/* 
   Theme: Professional Enterprise (Compact & Inline)
   Fonts: Inter (Body), Space Grotesk (Headers)
*/

:root {
    /* LIGHT PALETTE */
    --bg-main: #FFFFFF;
    --bg-surface: #F8FAFC;
    --bg-surface-hover: #F1F5F9;

    --text-primary: #334155;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;

    /* VIBRANT ACCENTS */
    --accent-primary: #3B82F6;
    --accent-secondary: #0EA5E9;
    --accent-dim: rgba(59, 130, 246, 0.05);

    --border-light: #F1F5F9;
    --border-strong: #E2E8F0;

    /* NEATNESS & CONSISTENCY TOKENS */
    --radius-main: 6px;
    /* Tighter, more professional radius */
    --padding-section: 5rem 0;
    /* Consistent vertical rhythm */

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    /* Crisp, subtle shadow */
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.08);

    /* STANDARD WIDTH */
    --container-width: 1200px;
    /* Slightly wider to accommodate nav */
    --header-height: 80px;
    /* Consistant height */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* NUCLEAR OPTION: No underlines anywhere */
a,
a:hover,
a:focus,
a:active,
a:visited,
h1 a,
h2 a,
h3 a,
p a,
span a,
div a,
li a {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Space Grotesk', sans-serif;
    color: #1E293B;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.text-accent {
    color: var(--accent-primary);
    font-weight: 600;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.center-text {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: #FFFFFF;
    border-color: var(--border-strong);
    color: var(--text-primary);
}

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

/* Header */
header {
    height: var(--header-height);
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background 0.3s, box-shadow 0.3s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    padding: 0 40px;
    /* Requested horizontal padding */
}

.logo {
    display: flex;
    align-items: center;
    z-index: 20;
    /* Keep above mobile menu */
    text-decoration: none;
}

.logo img {
    height: 38px;
    /* Fits nicely within 80px header */
    width: auto;
    display: block;
}

/* Centered Navigation */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    /* Requested spacing */
    align-items: center;
}

.nav-center a {
    color: #475569 !important;
    /* Medium Gray */
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-center a:hover,
.nav-center a.active {
    color: #2563EB !important;
    /* Blue Hover */
}

/* Right Side Actions */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 20;
}

.btn-nav-cta {
    background-color: #2563EB;
    color: #FFFFFF;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.btn-nav-cta:hover {
    background-color: #3B82F6;
    /* Lighter Blue Hover */
    box-shadow: none;
    transform: none;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #0A1628;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 1rem;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: flex;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-center {
        display: none;
        /* Hide desktop nav */
    }

    .mobile-menu-toggle {
        display: block;
    }

    header .container {
        padding: 0 20px;
        /* Smaller padding on mobile */
    }

    .btn-nav-cta {
        padding: 0.5rem 1rem;
        /* Smaller button on mobile */
        font-size: 0.9rem;
    }
}

/* Hero */
.hero {
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 5rem;
    text-align: center;
    background: #FFFFFF;
}

.hero-box {
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 1.5rem auto 2.5rem auto;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

/* Logo Grid - COMPACT & SINGLE LINE */
.logo-grid {
    display: flex;
    flex-wrap: nowrap;
    /* Force single line */
    justify-content: center;
    /* Pack items in the center */
    align-items: center;
    gap: 3rem;
    /* Tighter gap */
    padding: 3rem 0;
    opacity: 0.6;
    overflow-x: hidden;
    /* Hide overflow */
    width: 100%;
}

.logo-item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    /* Smaller font to fit */
    color: var(--text-muted);
    /* Lighter shade */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
    /* Prevent text wrapping inside item */
}

/* Sections */
section {
    padding: 5rem 0;
}

/* Grids */
.process-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    /* Compact columns */
    gap: 1.5rem;
    margin-top: 3rem;
}

.process-card,
.pricing-card {
    background: #FFFFFF;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-main);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card .btn {
    margin-top: auto;
}

.process-card:hover,
.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.step-number {
    background: var(--bg-surface);
    color: var(--accent-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

/* Comparison Table */
.comparison-section {
    background-color: var(--bg-surface);
}

.comparison-table {
    width: 100%;
    margin: 2rem auto;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-main);
    background: #F8FAFC;
    /* Light Gray Background */
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.95rem;
}

.comparison-table th {
    background: #FFFFFF;
    font-weight: 600;
}

.comparison-table td:last-child {
    color: var(--accent-primary);
    font-weight: 600;
    background: rgba(59, 130, 246, 0.02);
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.accordion-item {
    border-bottom: 1px solid var(--border-light);
    background: #FFFFFF;
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
    color: var(--text-secondary);
}

.accordion-item.active .accordion-content {
    padding-bottom: 1.5rem;
    max-height: 500px;
}

/* Callout */
.callout-box {
    background: var(--bg-surface);
    border-left: 4px solid var(--accent-primary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

/* ROI */
.roi-calc {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin: 4rem 0;
}

.roi-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 1rem 0;
}

.form-input {
    padding: 0.8rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
}

/* Feature Items */
.feature-item {
    padding: 2rem;
    border-left: 3px solid var(--accent-primary);
    background: var(--bg-surface);
    margin-bottom: 0;
}

/* Pricing Features List */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.pricing-features li i {
    color: var(--accent-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.price-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0;
}

.price-sub {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Footer */
footer {
    background: #1E293B;
    /* Dark Navy */
    padding: 60px 0;
    color: #F8FAFC;
    border-top: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.footer-col p {
    color: #94A3B8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-col a {
    color: #94A3B8;
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #64748B;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    /* Allow wrap on mobile */
    .pricing-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Bottom CTA Section */
.cta-section {
    background-color: #0A1628;
    color: #FFFFFF;
    padding: 80px 0;
    text-align: center;
    width: 100%;
}

.cta-section h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #94A3B8;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-stats-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-main);
    color: #FFFFFF;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cta {
    background-color: #FFFFFF;
    color: #0A1628;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-main);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-cta:hover {
    background-color: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #0A1628;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .container {
        padding: 0 1.5rem !important;
    }

    /* Header */
    header .container {
        padding: 0 1rem !important;
    }

    .logo img {
        height: 32px !important;
    }

    /* Hero */
    .hero {
        padding-top: calc(var(--header-height) + 3rem) !important;
        padding-bottom: 3rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
    }

    .cta-group {
        flex-direction: column !important;
        width: 100%;
    }

    .cta-group .btn {
        width: 100% !important;
    }

    .hero-stats {
        flex-direction: column !important;
        gap: 2rem !important;
        margin-top: 2rem !important;
        padding-top: 2rem !important;
    }

    /* Logo Grid */
    .logo-grid {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 1.5rem !important;
        padding: 2rem 0 !important;
    }

    .logo-item {
        font-size: 0.95rem !important;
    }

    /* Sections */
    section {
        padding: 3rem 0 !important;
    }

    /* Grids */
    .pricing-grid,
    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .process-card,
    .pricing-card {
        padding: 2rem 1.5rem 3rem 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem !important;
    }

    .pricing-card .btn {
        margin-top: 1.5rem !important;
        width: 100% !important;
    }

    .pricing-card.enterprise {
        display: block !important;
        background: #FFFFFF !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* CTA Section */
    .cta-section {
        padding: 4rem 0 !important;
    }

    .cta-section h2 {
        font-size: 2rem !important;
    }

    .cta-stats-bar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-stat-card {
        width: 100%;
        max-width: 300px;
    }

    /* Comparison Table */
    .comparison-table {
        font-size: 0.85rem !important;
        display: block;
        overflow-x: auto;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem !important;
        text-align: center !important;
    }

    /* ROI Calculator */
    .roi-calc {
        padding: 2rem 1.5rem !important;
    }

    .roi-calc > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .roi-number {
        font-size: 2.5rem !important;
    }

    /* Split Layouts */
    .split-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .form-container {
        padding: 1.5rem !important;
    }

    /* Feature Boxes */
    .feature-box {
        padding: 2rem 1.5rem !important;
    }

    div[style*="grid-template-columns: repeat(auto-fit, minmax(400px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    /* Portal Specific */
    section div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Buttons */
    .btn-primary,
    .btn-outline {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }

    /* Mobile Menu Improvements */
    .mobile-menu {
        padding: 1.5rem 1rem !important;
    }

    .mobile-menu a {
        padding: 0.75rem 0 !important;
        font-size: 1.05rem !important;
    }

    /* Contact Cards */
    .contact-card {
        padding: 1.25rem !important;
    }

    /* Feature List Grid */
    .feature-list-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .feature-item {
        padding: 1.5rem !important;
    }

    /* Pricing Cards */
    .pricing-card {
        position: relative;
    }

    .pricing-card div[style*="position: absolute"] {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin-bottom: 1rem !important;
        display: inline-block;
    }

    /* Forms */
    input[type="number"][style*="width: 150px"] {
        width: 100% !important;
    }

    /* Gray Cards */
    .gray-card {
        padding: 1.5rem !important;
    }

    /* Work With Us Section - Force Single Column */
    section div[style*="display: flex"][style*="gap: 4rem"] {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    section div[style*="flex: 2"],
    section div[style*="flex: 3"] {
        flex: 1 !important;
        width: 100% !important;
    }

    /* Pricing Page - What You Get Grid */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
}