/*
|--------------------------------------------------------------------------
| Eternal Intercontinental Home Page Refinement
|--------------------------------------------------------------------------
| Add after css/style.css. This file keeps the original homepage content and
| assets while improving layout, readability, nav behavior and responsiveness.
|--------------------------------------------------------------------------
*/

:root {
    --ei-purple: #633991;
    --ei-purple-dark: #3c0876;
    --ei-pink: #f72a8f;
    --ei-soft-pink: #fff6fc;
    --ei-gold: #d9a441;
    --ei-navy: #081a3d;
    --ei-ink: #101529;
    --ei-muted: #6f7280;
    --ei-line: rgba(99, 57, 145, 0.14);
    --ei-radius: 28px;
    --ei-shadow: 0 22px 55px rgba(31, 23, 74, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ei-ink);
    background: #ffffff;
    overflow-x: hidden;
}

body p {
    color: #626675;
    line-height: 1.85;
}

body h1,
body h2,
body h3,
body h4,
body h5 {
    letter-spacing: -0.035em;
}

body h2,
body h3,
body h4,
body h5 {
    color: var(--ei-purple);
}

.section {
    padding: 90px 0;
}

.light-bg {
    background: linear-gradient(180deg, #fff8fe 0%, #fbf3ff 100%);
}

.section-title {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.section-title small,
.section-kicker {
    display: inline-block;
    color: #9b8ba5;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 0.7rem;
}

.section-title h3 {
    font-weight: 700;
    color: var(--ei-purple);
}

.btn {
    border-radius: 999px;
    letter-spacing: 0.04em;
    font-weight: 700;
    white-space: normal;
}

.btn-primary {
    background-image: linear-gradient(135deg, var(--ei-purple) 0%, var(--ei-pink) 100%);
    box-shadow: 0 12px 28px rgba(247, 42, 143, 0.22);
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(247, 42, 143, 0.28);
}

.btn-light {
    color: var(--ei-purple) !important;
    border-radius: 999px;
}

.button-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* Navigation */
.ei-main-nav {
    padding: 0;
    background: linear-gradient(135deg, rgba(74, 13, 143, 0.96) 0%, rgba(250, 42, 143, 0.96) 100%);
    box-shadow: 0 14px 34px rgba(42, 9, 72, 0.18);
    backdrop-filter: blur(14px);
}

.nav-shell {
    padding-left: 22px;
    padding-right: 22px;
}

.ei-main-nav .navbar {
    padding: 0.72rem 0;
}

.ei-brand img {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.2));
}

.ei-main-nav .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.86rem;
    font-weight: 600;
    text-transform: none;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.ei-main-nav .navbar-nav .nav-link:hover,
.ei-main-nav .navbar-nav .nav-link.active {
    color: #fff !important;
}

.ei-main-nav .navbar-nav > .nav-item > .nav-link.active::after {
    border-bottom-color: rgba(255, 255, 255, 0.86);
}

.nav-pill {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.nav-private-name span {
    color: #fff;
    display: inline-flex;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-international {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.58rem 1rem !important;
    margin-left: 0.5rem;
}

/* Hero */
.ei-hero {
    padding-top: 96px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--ei-purple-dark) 0%, var(--ei-pink) 100%);
    overflow: hidden;
}

.hero-copy {
    padding: 38px 15px 26px;
}

.ei-hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 6vw, 4.8rem);
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.ei-hero .tagline {
    color: #ffe3f5;
    font-size: clamp(1.05rem, 2vw, 1.5rem);
}

.hero-banner-wrap {
    background: #fff;
    padding: 0;
}

.hero-banner {
    width: 100%;
    display: block;
}

/* Feature cards */
.feature-row .ei-feature-card {
    min-height: 100%;
}

.ei-feature-card {
    border: 0;
    border-radius: 22px;
    box-shadow: var(--ei-shadow);
    overflow: hidden;
}

.ei-feature-card::before {
    width: 6px;
}

.ei-feature-card .card-body {
    padding: 2rem;
}

.ei-feature-card h4 {
    font-weight: 700;
}

.ei-feature-card p {
    margin-bottom: 0;
}

/* Community Support */
.ei-support-section h2,
.ei-citizen-section h2,
.ei-services-section h2 {
    font-size: clamp(2.1rem, 4vw, 4rem);
    font-weight: 300;
    color: var(--ei-purple);
}

.home-logo-large {
    max-width: 360px;
    width: 82%;
    filter: drop-shadow(0 22px 35px rgba(99, 57, 145, 0.15));
}

.ei-lead-dark {
    color: #5d3d72;
    font-weight: 500;
}

.finance-strip {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--ei-shadow);
    background: #fff;
}

.finance-strip img {
    width: 100%;
}

/* Logo panel */
.ei-partnership-section {
    text-align: center;
}

.home-logo-main {
    width: min(420px, 70vw);
    filter: drop-shadow(0 24px 34px rgba(99, 57, 145, 0.12));
}

.ei-partnership-section h3 {
    font-weight: 500;
    color: #8c8591;
}

/* Citizen */
.citizen-card {
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    border-top: 5px solid #d36aba;
    border-radius: 0 0 var(--ei-radius) var(--ei-radius);
    padding: clamp(2rem, 5vw, 4.2rem);
    box-shadow: var(--ei-shadow);
}

.citizen-topline {
    color: var(--ei-purple);
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 3.5rem;
}

.citizen-card .lead {
    color: #df7db1;
}

.inline-btn {
    display: inline-flex;
    vertical-align: middle;
    margin: 0.25rem 0.35rem;
}

/* Services */
.logo-card {
    text-align: center;
    background: #fff;
    padding: 1.6rem;
    border-radius: 26px;
    box-shadow: var(--ei-shadow);
}

.logo-card img {
    width: min(300px, 86%);
}

.logo-card h3 {
    margin-top: 1rem;
    font-weight: 700;
}

.service-writeup h4 {
    font-weight: 700;
    margin-top: 1.15rem;
    margin-bottom: 0.4rem;
}

.service-writeup p {
    margin-bottom: 0.85rem;
}

/* Ecosystem */
.ei-ecosystem-section {
    padding-top: 82px;
}

.ecosystem-card {
    min-height: 100%;
    background: #fff;
    border-radius: 22px;
    padding: 2rem;
    box-shadow: var(--ei-shadow);
    border: 1px solid var(--ei-line);
}

.ecosystem-card span {
    display: inline-flex;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 57, 145, 0.1), rgba(247, 42, 143, 0.12));
    color: var(--ei-purple);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.ecosystem-card h4 {
    font-weight: 700;
}

.ecosystem-card p {
    min-height: 92px;
}

.ecosystem-card a {
    font-weight: 700;
    color: var(--ei-pink);
}

.market-card {
    border-color: rgba(217, 164, 65, 0.35);
}

/* Steps */
.refined-steps .media {
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 14px 34px rgba(99, 57, 145, 0.07);
    border: 1px solid var(--ei-line);
}

.circle-icon {
    flex: 0 0 86px;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--ei-pink);
    border-radius: 50%;
    font-size: 2.7rem;
    font-weight: 300;
    box-shadow: 0 15px 30px rgba(99, 57, 145, 0.09);
    position: relative;
}

.circle-icon::after {
    content: '';
    position: absolute;
    width: 52px;
    height: 3px;
    background: #cc8ecd;
    right: -26px;
    top: 50%;
    transform: translateY(-50%);
}

.refined-steps h5 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.side-logo-card {
    background: #fff;
    border-radius: 26px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--ei-shadow);
}

.side-logo-card img {
    max-height: 310px;
    object-fit: contain;
}

.side-logo-card h3 {
    font-weight: 700;
    margin-top: 1rem;
}

/* FAQ */
.faq-card {
    background: #fff;
    border-radius: 22px;
    padding: 1.5rem;
    margin-bottom: 1.4rem;
    border: 1px solid var(--ei-line);
    box-shadow: 0 12px 28px rgba(31, 23, 74, 0.06);
}

.faq-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.faq-card p {
    margin-bottom: 0;
}

/* CTA */
.ei-final-cta {
    color: #fff;
}

.ei-final-cta .tagline {
    color: rgba(255, 255, 255, 0.86);
    max-width: 900px;
    margin: 1.5rem auto;
}

.engineering-image-wrap img {
    max-width: 640px;
    width: 80%;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

/* Footer */
.ei-footer {
    color: #8f8a96;
}

.ei-footer a {
    color: #df7db1;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.social-icons a {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(99, 57, 145, 0.08);
    font-size: 1.15rem;
}

.copyright {
    margin-top: 3rem;
    color: #8f8a96;
}

@media (max-width: 1199px) {
    .ei-main-nav .navbar-collapse {
        margin-top: 0.75rem;
        background: rgba(19, 10, 45, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 20px;
        padding: 1rem;
    }

    .ei-main-nav .navbar-nav {
        align-items: stretch !important;
    }

    .nav-international {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .section {
        padding: 70px 0;
    }

    .circle-icon {
        flex-basis: 70px;
        width: 70px;
        height: 70px;
        font-size: 2.1rem;
    }

    .circle-icon::after {
        display: none;
    }

    .refined-steps .media {
        align-items: flex-start;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .nav-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ei-brand img {
        max-height: 50px;
    }

    .ei-hero {
        padding-top: 82px;
    }

    .hero-copy {
        padding-top: 30px;
    }

    .citizen-topline {
        margin-bottom: 2rem;
    }

    .refined-steps .media {
        flex-direction: column;
    }

    .circle-icon {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }

    .button-row,
    .footer-links {
        justify-content: center;
    }

    .ei-footer,
    .ei-footer p {
        text-align: center !important;
    }
}

@media print {
    .fixed-top,
    .ei-main-nav,
    .navbar {
        position: static !important;
        display: block !important;
    }

    .ei-main-nav {
        background: #633991 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ei-hero {
        padding-top: 0 !important;
    }

    .section {
        page-break-inside: avoid;
    }

    .btn,
    .social-icons,
    script {
        display: none !important;
    }
}
