/* ==========================================================================
   Elite Impex — shared design system (site-wide revamp)
   Loaded on every page via layouts/master. Brand: teal #09c5e2 / navy #0f1c2e
   ========================================================================== */
:root {
    --ei-teal: #09c5e2;
    --ei-teal-d: #067f97;
    --ei-navy: #0f1c2e;
    --ei-ink: #1f2a37;
    --ei-muted: #6b7785;
    --ei-bg: #f7f9fb;
    --ei-border: #edf0f3;
}

/* ---- Section rhythm ---- */
.ei-section { padding: 90px 0; }
.ei-section--sm { padding: 64px 0; }
.ei-bg-light { background: var(--ei-bg); }
.ei-bg-dark { background: var(--ei-navy); }

/* ---- Unified section heading ---- */
.ei-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.ei-eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase; color: var(--ei-teal);
    margin-bottom: 14px;
}
.ei-head h2 {
    font-size: 38px; line-height: 1.18; font-weight: 800;
    color: var(--ei-navy); letter-spacing: -.5px; margin: 0 0 18px;
}
.ei-head p { font-size: 16px; color: var(--ei-muted); line-height: 1.8; margin: 0 0 22px; }
.ei-divider { width: 64px; height: 4px; border-radius: 4px; background: var(--ei-teal); margin: 0 auto; }
.ei-head--left { text-align: left; margin-left: 0; max-width: none; }
.ei-head--left .ei-divider { margin: 0; }
.ei-bg-dark .ei-head h2 { color: #fff; }

/* ---- Page hero (inner pages) ---- */
.ei-page-hero {
    position: relative; padding: 78px 0 66px; text-align: center;
    background: var(--ei-navy); background-size: cover; background-position: center;
    overflow: hidden;
}
.ei-page-hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(15, 28, 46, .94) 0%, rgba(15, 28, 46, .82) 45%, rgba(6, 127, 151, .72) 100%);
}
.ei-page-hero::after {
    content: ""; position: absolute; right: -60px; top: -40px; width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(9, 197, 226, .25), transparent 65%);
    pointer-events: none;
}
.ei-page-hero .container { position: relative; z-index: 2; }
.ei-page-hero .ei-eyebrow { color: #4cdbf1; margin-bottom: 12px; }
.ei-page-hero h1 {
    color: #fff; font-weight: 800; font-size: 42px; line-height: 1.15;
    letter-spacing: -.5px; margin: 0 0 16px;
}
.ei-breadcrumb { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.ei-breadcrumb a { color: rgba(255, 255, 255, .75); }
.ei-breadcrumb a:hover { color: #fff; }
.ei-breadcrumb .sep { color: rgba(255, 255, 255, .4); }
.ei-breadcrumb .current { color: var(--ei-teal); font-weight: 600; }

/* ---- Buttons ---- */
a.ei-btn, button.ei-btn {
    display: inline-block; background: var(--ei-teal); color: #fff !important;
    font-weight: 700; letter-spacing: .4px; padding: 13px 32px; border: 0; border-radius: 6px;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
a.ei-btn:hover, button.ei-btn:hover { background: var(--ei-navy); color: #fff !important; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(9, 197, 226, .28); }
a.ei-btn-line {
    display: inline-block; border: 2px solid var(--ei-teal); color: var(--ei-teal);
    font-weight: 700; letter-spacing: .4px; padding: 12px 30px; border-radius: 6px;
    transition: background .2s ease, color .2s ease;
}
a.ei-btn-line:hover, a.ei-btn-line:focus { background: var(--ei-teal); color: #fff !important; }

/* ---- Generic card ---- */
.ei-card {
    background: #fff; border: 1px solid var(--ei-border); border-radius: 14px;
    padding: 32px 30px; height: 100%;
    box-shadow: 0 6px 22px rgba(15, 28, 46, .05);
    transition: transform .28s ease, box-shadow .28s ease;
}
.ei-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15, 28, 46, .12); }
.ei-card .ei-card-icon {
    width: 64px; height: 64px; border-radius: 16px; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--ei-teal), var(--ei-teal-d)); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    box-shadow: 0 10px 22px rgba(9, 197, 226, .3);
}
.ei-card h3 { font-size: 20px; font-weight: 700; color: var(--ei-navy); margin: 0 0 12px; }
.ei-card p { color: var(--ei-muted); font-size: 14.5px; line-height: 1.75; margin: 0; }

/* numbered variant */
.ei-card .ei-card-num { font-size: 14px; font-weight: 800; color: var(--ei-teal); letter-spacing: 2px; display: block; margin-bottom: 6px; }

/* ---- Media card (image on top) ---- */
.ei-media-card {
    background: #fff; border: 1px solid var(--ei-border); border-radius: 14px;
    overflow: hidden; height: 100%;
    box-shadow: 0 6px 22px rgba(15, 28, 46, .06);
    transition: transform .28s ease, box-shadow .28s ease;
}
.ei-media-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15, 28, 46, .14); }
.ei-media-card .ei-media-thumb { display: block; position: relative; overflow: hidden; aspect-ratio: 16/10; background: #eef2f5; }
.ei-media-card .ei-media-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.ei-media-card:hover .ei-media-thumb img { transform: scale(1.07); }
.ei-media-card .ei-media-body { padding: 24px 24px 26px; }
.ei-media-card .ei-media-body h3 { font-size: 18px; line-height: 1.4; margin: 0 0 12px; }
.ei-media-card .ei-media-body h3 a { color: var(--ei-navy); }
.ei-media-card .ei-media-body h3 a:hover { color: var(--ei-teal); }
.ei-media-card .ei-media-body p { color: var(--ei-muted); font-size: 14px; line-height: 1.7; margin: 0 0 16px; }
.ei-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ei-teal); font-weight: 700; font-size: 14px; }
.ei-link i { transition: transform .2s ease; }
.ei-link:hover i { transform: translateX(4px); }

/* ---- Checklist ---- */
.ei-checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.ei-checklist li { position: relative; padding-left: 32px; margin-bottom: 13px; color: #46505c; font-weight: 500; }
.ei-checklist li i { position: absolute; left: 0; top: 2px; color: var(--ei-teal); font-size: 18px; }

/* ---- Framed image (with accent block + optional badge) ---- */
.ei-framed { position: relative; padding: 0 0 22px 22px; max-width: 560px; }
.ei-framed > img { position: relative; z-index: 2; width: 100%; border-radius: 12px; box-shadow: 0 24px 50px rgba(15, 28, 46, .18); }
.ei-framed::before {
    content: ""; position: absolute; left: 0; bottom: 0; width: 55%; height: 70%;
    border-radius: 12px; background: linear-gradient(135deg, var(--ei-teal), var(--ei-teal-d)); z-index: 1;
}
.ei-framed .ei-framed-badge {
    position: absolute; right: -10px; top: 26px; z-index: 3;
    background: var(--ei-navy); color: #fff; border-radius: 10px;
    padding: 16px 22px; text-align: center; box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}
.ei-framed .ei-framed-badge strong { display: block; font-size: 30px; line-height: 1; color: var(--ei-teal); }
.ei-framed .ei-framed-badge span { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #cfd6dd; }
.ei-lead { font-size: 16px; color: #46505c; line-height: 1.85; margin-bottom: 22px; }

/* ---- Stat strip ---- */
.ei-stats { background: linear-gradient(125deg, #0bcbe8 0%, #09b2cf 55%, #067f97 100%); border-radius: 16px; padding: 8px 0; }
.ei-stat { text-align: center; padding: 26px 16px; }
.ei-stat strong { display: block; font-size: 40px; font-weight: 800; color: #fff; line-height: 1; }
.ei-stat span { display: block; margin-top: 8px; font-size: 14px; letter-spacing: .5px; color: rgba(255, 255, 255, .9); }

/* ---- Compliance / certification cards ---- */
.ei-comp-card {
    background: #fff; border: 1px solid #edf0f3; border-radius: 12px;
    padding: 26px 18px; text-align: center; height: 100%;
    display: flex; align-items: center; justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ei-comp-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(15,28,46,.1); border-color: #d6eef4; }
.ei-comp-card img { max-height: 86px; width: auto; }

/* ---- Compliance continuous marquee ---- */
.ei-comp-marquee { position: relative; overflow: hidden; }
.ei-comp-marquee::before,
.ei-comp-marquee::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.ei-comp-marquee::before { left: 0; background: linear-gradient(90deg, #f7f9fb, rgba(247,249,251,0)); }
.ei-comp-marquee::after { right: 0; background: linear-gradient(270deg, #f7f9fb, rgba(247,249,251,0)); }
.ei-comp-track { display: flex; width: max-content; animation: ei-comp-scroll 24s linear infinite; }
.ei-comp-marquee:hover .ei-comp-track { animation-play-state: paused; }
.ei-comp-item { flex: 0 0 auto; width: 260px; padding: 8px 14px; }
@keyframes ei-comp-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---- Product cards (all grids & carousels) ---- */
.product {
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 28, 46, .07);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    height: 100%;
}
.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 28, 46, .14);
    border-color: #d6eef4;
}
.product .product-description { padding: 16px 18px 20px; }
.product .product-title h3 { font-size: 16px; margin: 0; }
.product .product-category { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--ei-teal); margin-bottom: 6px; }

/* Keep sidebar widget list-style products flat (not card-styled) */
.widget-shop .product {
    border: 0; border-bottom: 1px solid #eee; border-radius: 0;
    overflow: visible; box-shadow: none; height: auto;
}
.widget-shop .product:hover { transform: none; box-shadow: none; }

/* ---- Catalogue cards ---- */
.ei-catalogues .post-item { border: 0 !important; }
.ei-catalogues .post-item-wrap {
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 28, 46, .08);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.ei-catalogues .post-item-wrap:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(15, 28, 46, .15);
    border-color: #d6eef4;
}
.ei-catalogues .post-item-description { padding: 20px 24px 26px; }

/* ---- Media gallery tiles ---- */
.ei-gallery .grid-item > a,
.ei-gallery .image-hover-zoom {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 28, 46, .10);
    transition: transform .28s ease, box-shadow .28s ease;
}
.ei-gallery .grid-item > a:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(15, 28, 46, .18);
}
.ei-gallery .grid-item img { display: block; width: 100%; }

/* ---- CTA band ---- */
.ei-cta { background: var(--ei-navy); border-radius: 16px; padding: 50px; position: relative; overflow: hidden; }
.ei-cta::after { content: ""; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(9, 197, 226, .3), transparent 65%); }
.ei-cta .ei-cta-inner { position: relative; z-index: 2; }
.ei-cta h2 { color: #fff; font-weight: 800; font-size: 30px; margin: 0 0 10px; }
.ei-cta p { color: rgba(255, 255, 255, .8); margin: 0; font-size: 16px; }
@media (max-width: 767px) { .ei-cta { padding: 34px 24px; text-align: center; } .ei-cta h2 { font-size: 24px; } .ei-stat strong { font-size: 32px; } }

/* ---- Form controls ---- */
.ei-form .form-control {
    border: 1px solid #e2e7ec; border-radius: 8px; padding: 12px 16px; font-size: 15px;
    box-shadow: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.ei-form .form-control:focus { border-color: var(--ei-teal); box-shadow: 0 0 0 3px rgba(9, 197, 226, .15); }
.ei-form label { font-weight: 600; color: var(--ei-navy); margin-bottom: 6px; }

/* ---- Responsive ---- */
@media (max-width: 1199px) { .ei-head h2 { font-size: 34px; } .ei-page-hero h1 { font-size: 38px; } }
@media (max-width: 991px) {
    .ei-section { padding: 64px 0; }
    .ei-head { margin-bottom: 40px; }
    .ei-head h2 { font-size: 30px; }
    .ei-page-hero { padding: 60px 0 50px; }
    .ei-page-hero h1 { font-size: 32px; }
}
@media (max-width: 767px) {
    .ei-section { padding: 50px 0; }
    .ei-head { margin-bottom: 32px; }
    .ei-head h2 { font-size: 26px; }
    .ei-head p { font-size: 15px; }
    .ei-page-hero h1 { font-size: 27px; }
    .ei-card { padding: 26px 22px; }
}

/* ==========================================================================
   Legal pages (Privacy Policy / Terms) + FAQ accordion
   ========================================================================== */

/* ---- Legal / prose layout ---- */
.ei-legal { padding: 80px 0; }
.ei-legal-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }

/* Sticky table of contents */
.ei-toc { position: sticky; top: 100px; }
.ei-toc .ei-toc-title {
    font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    color: var(--ei-muted); margin: 0 0 16px;
}
.ei-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; border-left: 2px solid var(--ei-border); }
.ei-toc li { margin: 0; }
.ei-toc a {
    display: block; padding: 8px 0 8px 18px; margin-left: -2px; border-left: 2px solid transparent;
    color: #56606c; font-size: 14px; line-height: 1.5; transition: color .15s ease, border-color .15s ease;
}
.ei-toc a:hover { color: var(--ei-teal-d); }
.ei-toc a.is-active { color: var(--ei-navy); font-weight: 700; border-left-color: var(--ei-teal); }

/* Prose body */
.ei-prose { max-width: 820px; }
.ei-prose > p:first-child { margin-top: 0; }
.ei-prose h2 {
    font-size: 23px; font-weight: 800; color: var(--ei-navy);
    margin: 44px 0 14px; padding-top: 6px; scroll-margin-top: 100px;
}
.ei-prose h2:first-of-type { margin-top: 0; }
.ei-prose h2 .ei-prose-num { color: var(--ei-teal); margin-right: 8px; }
.ei-prose h3 { font-size: 18px; font-weight: 700; color: var(--ei-ink); margin: 28px 0 10px; }
.ei-prose p { font-size: 16px; line-height: 1.85; color: #46505c; margin: 0 0 16px; }
.ei-prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.ei-prose ul li {
    position: relative; padding-left: 28px; margin-bottom: 10px;
    font-size: 16px; line-height: 1.7; color: #46505c;
}
.ei-prose ul li::before {
    content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px;
    border-radius: 50%; background: var(--ei-teal);
}
.ei-prose ol { padding-left: 22px; margin: 0 0 18px; }
.ei-prose ol li { font-size: 16px; line-height: 1.8; color: #46505c; margin-bottom: 10px; }
.ei-prose a { color: var(--ei-teal-d); font-weight: 600; }
.ei-prose-meta {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .5px;
    color: var(--ei-teal-d); background: rgba(9,197,226,.10);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
}
.ei-prose-note {
    margin-top: 40px; padding: 22px 24px; border-radius: 12px;
    background: var(--ei-bg); border: 1px solid var(--ei-border);
}
.ei-prose-note p { margin: 0; font-size: 15px; }

/* ---- FAQ accordion (native <details>) ---- */
.ei-faq { max-width: 880px; margin: 0 auto; }
.ei-accordion { margin: 0; }
.ei-accordion details {
    background: #fff; border: 1px solid var(--ei-border); border-radius: 12px;
    margin-bottom: 14px; box-shadow: 0 6px 22px rgba(15,28,46,.04); overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ei-accordion details[open] { border-color: rgba(9,197,226,.45); box-shadow: 0 12px 30px rgba(9,197,226,.10); }
.ei-accordion summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
    padding: 20px 24px; font-size: 17px; font-weight: 700; color: var(--ei-navy);
    line-height: 1.45;
}
.ei-accordion summary::-webkit-details-marker { display: none; }
.ei-accordion summary::after {
    content: "\002B"; margin-left: auto; flex: 0 0 auto; width: 30px; height: 30px;
    display: grid; place-items: center; border-radius: 50%; font-size: 20px; font-weight: 400;
    color: var(--ei-teal-d); background: rgba(9,197,226,.12); transition: transform .25s ease, background .2s ease;
}
.ei-accordion details[open] summary::after { content: "\2212"; transform: rotate(180deg); background: var(--ei-teal); color: #fff; }
.ei-accordion .ei-accordion-body { padding: 0 24px 22px; }
.ei-accordion .ei-accordion-body p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.8; color: #505a66; }
.ei-accordion .ei-accordion-body p:last-child { margin-bottom: 0; }
.ei-accordion .ei-accordion-body ul,
.ei-accordion .ei-accordion-body ol { margin: 4px 0 12px; padding-left: 20px; }
.ei-accordion .ei-accordion-body li { font-size: 15.5px; line-height: 1.75; color: #505a66; margin-bottom: 6px; }

/* ---- Footer legal links row ---- */
#footer .copyright-content .copyright-text { width: 100%; }
#footer .footer-legal-links a { color: rgba(255,255,255,.75); margin: 0 6px; }
#footer .footer-legal-links a:hover { color: #4cdbf1; }
#footer .footer-legal-links .sep { color: rgba(255,255,255,.3); }
@media (max-width: 575px) {
    #footer .copyright-content .copyright-text { justify-content: center; text-align: center; }
    #footer .footer-legal-links { margin-top: 10px; }
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .ei-legal { padding: 56px 0; }
    .ei-legal-wrap { grid-template-columns: 1fr; gap: 8px; }
    .ei-toc { display: none; }
}
@media (max-width: 767px) {
    .ei-legal { padding: 44px 0; }
    .ei-prose h2 { font-size: 20px; margin-top: 34px; }
    .ei-prose p, .ei-prose ul li, .ei-prose ol li { font-size: 15px; }
    .ei-accordion summary { padding: 16px 18px; font-size: 15.5px; gap: 12px; }
    .ei-accordion summary::after { width: 26px; height: 26px; font-size: 18px; }
    .ei-accordion .ei-accordion-body { padding: 0 18px 18px; }
}
