:root {
    /* Colors */
    --color-primary: #EA580C;
    --color-primary-hover: #C2410C;
    --color-secondary: #070033;
    --color-secondary-hover: #130066;
    --color-bg-light: #F5F7FA;
    --color-bg-white: #FFFFFF;
    --color-text-main: #0A0E1A;
    --color-text-body: #4B5563;
    --color-banner-bg: var(--color-secondary);
    --color-footer-bg: var(--color-secondary);
    --color-footer-text: #E7E9FF;
    --color-border: #E5E7EB;

    /* Typography */
    --font-family-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing - Docker uses wide containers */
    --container-width: 100%;
    /* Relative to boxed layout */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global Styles */
body {
    font-family: var(--font-family-main);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-body);
    background-color: #d6eafe;
    /* Light gray background for the workspace */
    -webkit-font-smoothing: antialiased;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* BOXED LAYOUT WRAPPER */
.boxed-layout {
    max-width: 1320px;
    /* Strict width per "like this image" request */
    margin: auto;
    /* Center with some margin from top */
    background-color: white;
    border: 1px solid #EAEAEA;
    /* Subtle float effect */
    position: relative;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img,
svg {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 100%;
    padding: 0 40px;
    /* Strict side padding within the box */
    margin: 0 auto;
}

.center-align {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.left-align {
    text-align: left;
    margin-right: auto;
}

/* Top Banner */
.top-banner {
    background-color: var(--color-banner-bg);
    color: white;
    font-size: 0.9rem;
    padding: 12px 0;
    position: relative;
    z-index: 1001;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.new-pill {
    background: linear-gradient(90deg, #FB923C, #EA580C);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-content p {
    margin: 0;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.arrow {
    font-family: sans-serif;
    /* For arrow character rendering */
}

.close-banner {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    position: absolute;
    right: 24px;
    cursor: pointer;
    opacity: 0.7;
}

.close-banner:hover {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

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

.btn-ghost {
    background-color: transparent;
    color: var(--color-text-main);
}

.btn-ghost:hover {
    background-color: rgba(7, 0, 51, 0.06);
    color: var(--color-secondary);
}

.btn-outline {
    background-color: white;
    border-color: #D0D7DE;
    color: var(--color-text-main);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background-color: #F6F8FA;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-main);
    line-height: 1.2;
    font-weight: 700;
}

/* ===========================
   Mobile Responsive Overrides
   =========================== */
@media (max-width: 900px) {
    /* Hero headline */
    .hero-content h1,
    .hero-section h1 {
        font-size: 2.2rem !important;
        letter-spacing: -0.5px !important;
    }
    /* Service & feature grids */
    [style*="grid-template-columns:repeat(3,1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
    }
    /* Split two-column layouts */
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"] {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 36px !important;
    }
    /* Client / partner grids */
    [style*="grid-template-columns:repeat(4,1fr)"],
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
    }
    /* Process steps */
    [style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: 1fr 1fr !important;
    }
    /* Hero stats strip */
    .hero-container [style*="display:flex"],
    .hero-container [style*="display: flex"] {
        flex-wrap: wrap;
        gap: 16px !important;
    }
    /* Footer grid */
    .site-footer [style*="grid-template-columns:2fr 1fr 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 560px) {
    [style*="grid-template-columns:repeat(3,1fr)"],
    [style*="grid-template-columns:repeat(4,1fr)"],
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="font-size:3.6rem"],
    [style*="font-size: 3.6rem"] {
        font-size: 2rem !important;
    }
    [style*="font-size:3rem"],
    [style*="font-size: 3rem"] {
        font-size: 1.8rem !important;
    }
    [style*="font-size:2.6rem"],
    [style*="font-size: 2.6rem"] {
        font-size: 1.6rem !important;
    }
    .container {
        padding: 0 16px;
    }
}

/* ===========================
   Additional Mobile Fixes
   =========================== */

@media (max-width: 768px) {
    /* Reduce large section vertical padding */
    section[style*="padding:100px 0"],
    section[style*="padding: 100px 0"] {
        padding-top: 52px !important;
        padding-bottom: 52px !important;
    }

    section[style*="padding:80px 0"],
    section[style*="padding: 80px 0"] {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* CTA-style section with text-align */
    section[style*="padding:100px 0;text-align"],
    section[style*="padding: 100px 0;text-align"],
    section[style*="text-align:center"][style*="padding:100px 0"] {
        padding-top: 52px !important;
        padding-bottom: 52px !important;
    }

    /* Hero section – remove fixed min-height so it doesn't feel too tall */
    section[style*="min-height:580px"],
    section[style*="min-height: 580px"] {
        min-height: auto !important;
    }

    /* Hero inner container padding */
    .hero-container[style*="padding"] {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    /* Hero stats strip: less margin-top, smaller gap */
    [style*="margin-top:52px"] {
        margin-top: 28px !important;
    }
    [style*="margin-top: 52px"] {
        margin-top: 28px !important;
    }

    /* Feature split gap when it collapses to single column */
    .container[style*="gap:64px"],
    .container[style*="gap: 64px"] {
        gap: 32px !important;
    }

    /* Section header margin-bottom */
    [style*="margin-bottom:64px"],
    [style*="margin-bottom: 64px"] {
        margin-bottom: 36px !important;
    }
    [style*="margin-bottom:48px"],
    [style*="margin-bottom: 48px"] {
        margin-bottom: 28px !important;
    }

    /* Inline h1 font sizes used in page heroes */
    [style*="font-size:3.5rem"],
    [style*="font-size: 3.5rem"] {
        font-size: 2.1rem !important;
        letter-spacing: -0.5px !important;
    }
    [style*="font-size:3.6rem"],
    [style*="font-size: 3.6rem"] {
        font-size: 2.1rem !important;
        letter-spacing: -0.5px !important;
    }
    [style*="font-size:3rem"],
    [style*="font-size: 3rem"] {
        font-size: 1.9rem !important;
    }
    [style*="font-size:2.6rem"],
    [style*="font-size: 2.6rem"] {
        font-size: 1.7rem !important;
    }
    [style*="font-size:2.4rem"],
    [style*="font-size: 2.4rem"] {
        font-size: 1.6rem !important;
    }

    /* Hero container: restore horizontal padding lost to inline padding:80px 0 */
    .hero-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Contact info strip: stack on small screens */
    .container[style*="display:flex"][style*="gap:48px"],
    .container[style*="display: flex"][style*="gap: 48px"] {
        gap: 20px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* Top banner text wrap */
    .banner-content {
        flex-wrap: wrap;
        gap: 8px;
        text-align: center;
    }

    /* Footer container padding */
    .site-footer .container {
        padding: 0 16px;
    }
}