/* ============================================================
   ORIENT EARTHING — style.css
   ============================================================ */

/* ── VARIABLES ── */
:root {
    --primary: #e85d04;
    --primary-dk: #c44b00;
    --accent: #ffd166;
    --dark: #1a1a2e;
    --light-bg: #f8f6f2;
    --white: #ffffff;
    --border: #e8e3da;
    --text: #2d2d2d;
    --muted: #6b6570;
    --shadow: 0 4px 32px rgba(26, 26, 46, .10);
    --radius: 14px;
}

/* ── RESET / BASE ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ── TOP BAR ── */
.topbar {
    background: var(--dark);
    color: #ccc;
    font-size: 0.78rem;
    padding: 7px 0;
}

.topbar a {
    color: #ccc;
    text-decoration: none;
}

.topbar a:hover {
    color: var(--accent);
}

.topbar .sep {
    margin: 0 12px;
    opacity: .4;
}

/* ── NAVBAR ── */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    height: 100px;
    top: 0;
    z-index: 1000;
    transition: box-shadow .3s;
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar-brand img {
    width: 150px;
}

.navbar-nav .nav-link {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: .92rem;
    color: var(--dark) !important;
    padding: 6px 14px !important;
    letter-spacing: .02em;
    transition: color .2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 6px;
    padding: 8px 20px !important;
    transition: background .2s !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
}

.navbar-collapse {
    background: white;
    padding: 20px;
}

.enquiry-btn {
    background: var(--primary);
    color: #111122;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: .92rem;
    padding: 6px 14px !important;
    letter-spacing: .02em;
    transition: color .2s;
    text-decoration: none;
}

.enquiry-btn:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #2a1060 100%);
    padding: 72px 0 60px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 93, 4, .18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, .6);
    font-size: .83rem;
}

.page-hero .breadcrumb-item.active {
    color: var(--accent);
}

.page-hero .breadcrumb-divider {
    color: rgba(255, 255, 255, .4);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 10px;
}

.page-hero p {
    color: rgba(255, 255, 255, .7);
    margin-top: 10px;
    font-size: 1rem;
    max-width: 520px;
}

/* ── SECTION SHARED ── */
section {
    padding: 88px 0;
}

.section-label {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 14px;
}

.section-sub {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 560px;
}

.divider-line {
    width: 48px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin-bottom: 20px;
}

/* ── BUTTONS ── */
.btn-solid {
    background: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .94rem;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background .2s, transform .15s;
}

.btn-solid:hover {
    background: var(--primary-dk);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: .88rem;
    padding: 9px 20px;
    display: inline-block;
    transition: all .2s;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-ghost {
    border: 1.5px solid var(--border);
    color: var(--dark);
    background: transparent;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: .94rem;
    padding: 12px 26px;
    display: inline-block;
    transition: border-color .2s;
}

.btn-ghost:hover {
    border-color: var(--dark);
    color: var(--dark);
}

.btn-primary-solid {
    background: var(--primary);
    color: white;
    padding: 13px 30px;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s, transform .15s;
    display: inline-block;
    border: none;
}

.btn-primary-solid:hover {
    background: var(--dark);
    color: white;
    transform: translateY(-1px);
}

/* ── TRUST MARQUEE ── */
.trust-band {
    background: var(--dark);
    padding: 20px 0;
    overflow: hidden;
}

.trust-inner {
    display: flex;
    gap: 56px;
    align-items: center;
    animation: marquee 28s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .7);
    font-size: .83rem;
    font-weight: 500;
    flex-shrink: 0;
}

.trust-item i {
    color: var(--accent);
}

/* ── PRODUCT CARD ── */
.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: transform .25s, box-shadow .25s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(26, 26, 46, .12);
}

.product-card .img-wrap {
    height: 210px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .img-wrap img {
    max-height: 170px;
    object-fit: contain;
    transition: transform .3s;
}

.product-card:hover .img-wrap img {
    transform: scale(1.06);
}

.product-card .card-body {
    padding: 20px;
}

.product-card h5 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.product-card p {
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ── CERT SLIDER ── */
.cert-slider-wrap {
    position: relative;
}

.cert-slider {
    display: flex;
    gap: 16px;
    overflow: hidden;
    padding: 8px 4px 16px;
}

.cert-slide {
    flex: 0 0 calc(25% - 12px);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
    cursor: pointer;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

.cert-slide:hover {
    box-shadow: 0 10px 32px rgba(232, 93, 4, .12);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.cert-slide img {
    object-fit: contain;
}

.cert-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--dark);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    transition: background .2s, color .2s, border-color .2s;
    font-size: 1rem;
}

.cert-nav:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cert-nav.prev {
    left: -10px;
}

.cert-nav.next {
    right: -10px;
}

.cert-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.cert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    border: none;
    transition: background .2s, width .2s;
}

.cert-dot.active {
    background: var(--primary);
    width: 22px;
    border-radius: 4px;
}

/* ── WHY CARD ── */
.why-card {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    height: 100%;
    transition: transform .2s;
}

.why-card:hover {
    transform: translateY(-4px);
}

.why-card .icon {
    width: 52px;
    height: 52px;
    background: var(--primary);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.why-card h5 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.why-card p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ── INDUSTRY CARD ── */
.industry-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: transform .25s, box-shadow .25s;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(26, 26, 46, .10);
}

.industry-card .img-wrap {
    height: 200px;
    overflow: hidden;
}

.industry-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.industry-card:hover .img-wrap img {
    transform: scale(1.06);
}

.industry-card .card-body {
    padding: 20px;
}

.industry-card h5 {
    font-size: 1.02rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.industry-card p {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.6;
}

.industry-icon-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: border-color .2s, box-shadow .2s;
}

.industry-icon-item:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 24px rgba(232, 93, 4, .10);
}

.industry-icon-item i {
    font-size: 1.9rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.industry-icon-item span {
    font-family: 'Syne', sans-serif;
    font-size: .84rem;
    font-weight: 600;
    color: var(--dark);
}

/* ── ABOUT FEATURE ── */
.about-feature {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}

.about-feature .feat-icon {
    width: 44px;
    height: 44px;
    background: rgba(232, 93, 4, .10);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.about-feature h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 4px;
    color: var(--dark);
}

.about-feature p {
    font-size: .87rem;
    color: var(--muted);
    margin: 0;
}

/* ── CONTACT ── */
.contact-info-card {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    height: 100%;
}

.contact-info-card .icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.contact-info-card h6 {
    font-family: 'Syne', sans-serif;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.contact-info-card p,
.contact-info-card a {
    font-size: .9rem;
    color: var(--muted);
    display: block;
    line-height: 1.7;
}

.contact-info-card a:hover {
    color: var(--primary);
}

/* ── FORM ── */
.contact-form .form-control,
.contact-form .form-select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .92rem;
    background: var(--white);
    color: var(--text);
    transition: border-color .2s;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, .08);
    outline: none;
}

.contact-form label {
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
    display: block;
}

/* ── ENQUIRY DARK FORM ── */
.enquiry-section {
    background: linear-gradient(135deg, var(--dark) 0%, #2d1b69 100%);
}

.enquiry-section .section-title {
    color: var(--white);
}

.enquiry-section .section-sub {
    color: rgba(255, 255, 255, .7);
}

.dark-form .form-control,
.dark-form .form-select {
    border: 1.5px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .92rem;
}

.dark-form .form-control::placeholder {
    color: rgba(255, 255, 255, .45);
}

.dark-form .form-control:focus,
.dark-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: none;
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    outline: none;
}

.dark-form .form-select option {
    color: var(--dark);
}

/* ── STATS BAR ── */
.stats-bar {
    background: var(--primary);
    padding: 48px 0;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    font-family: 'Syne', sans-serif;
    font-size: 2.4rem;
    color: var(--white);
    display: block;
}

.stat-item span {
    color: rgba(255, 255, 255, .8);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── CLIENT LOGOS ── */
.client-logo {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    transition: box-shadow .2s;
}

.client-logo:hover {
    box-shadow: var(--shadow);
}

.client-logo img {
    max-height: 38px;
    max-width: 110px;
    object-fit: contain;
    transition: filter .2s;
}

/* ── FOOTER ── */
footer {
    background: #111122;
    color: rgba(255, 255, 255, .75);
    padding: 64px 0 28px;
    overflow: hidden;
}

footer .footer-brand img {
    width: 150px;
    margin-bottom: 16px;
}

footer p {
    font-size: .87rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .55);
    max-width: 280px;
}

footer h6 {
    font-family: 'Syne', sans-serif;
    color: var(--white);
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 18px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    font-size: .87rem;
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color .2s;
}

footer ul li a:hover {
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .87rem;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 12px;
}

.footer-contact li i {
    color: var(--primary);
    margin-top: 2px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .08);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 48px;
    padding-top: 22px;
    font-size: .82rem;
    color: rgba(255, 255, 255, .35);
}

/* ── BACK TO TOP ── */
#backToTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s;
    z-index: 999;
}

#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── LIGHTBOX OVERLAY ── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

/* ── FADE-UP ANIMATION ── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── MAP ── */
.map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-frame iframe {
    display: block;
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
    .cert-slide {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .cert-slide {
        flex: 0 0 calc(100% - 4px);
    }

    .page-hero {
        padding: 52px 0 44px;
    }
}

@media (max-width: 992px) {
    .logo {
        margin-top: -10px !important;
    }
}

/* ── PRODUCT CARD — button always at bottom ── */
.product-card .card-body .btn-outline,
.product-card .card-body .btn-outline-primary-custom {
    margin-top: auto;
    align-self: flex-start;
}

/* ── FLOATING WIDGET ── */
.float-widget {
    position: fixed;
    bottom: 30px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 998;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .20);
    transition: transform .2s, box-shadow .2s;
    position: relative;
}

.float-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.float-btn.wa {
    background: #25d366;
    color: white;
}

.float-btn.call {
    background: var(--primary);
    color: white;
}

/* tooltip label */
.float-btn::before {
    content: attr(data-tip);
    position: absolute;
    right: 62px;
    background: var(--dark);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.float-btn:hover::before {
    opacity: 1;
}

/* pulse ring on whatsapp */
.float-btn.wa::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: .6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}