/* ===============================
   Transarq Trading — Stylesheet
   Brand: Teal #20A39E + Charcoal #4A4A4A
   Font: Rubik
   =============================== */

:root {
    --brand-primary: #20A39E;
    --brand-primary-dark: #178A85;
    --brand-primary-light: #E8F6F5;
    --brand-dark: #4A4A4A;
    --brand-darker: #333333;
    --brand-muted: #6B6B6B;
    --brand-light: #F7F9FA;
    --brand-border: #E6E9EC;
    --brand-white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(74, 74, 74, 0.06);
    --shadow-md: 0 10px 30px rgba(74, 74, 74, 0.10);
    --shadow-lg: 0 20px 50px rgba(32, 163, 158, 0.15);
    --radius: 10px;
    --transition: 0.3s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden;
    position: relative; }

body {
    font-family: 'Rubik', system-ui, -apple-system, sans-serif;
    color: var(--brand-dark);
    background: var(--brand-white);
    line-height: 1.65;
    font-weight: 400;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    color: var(--brand-darker);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 { font-weight: 700; }

p { color: var(--brand-muted); }

a { color: var(--brand-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-primary-dark); }

img { max-width: 100%; height: auto; }

.text-brand { color: var(--brand-primary) !important; }
.bg-brand   { background: var(--brand-primary) !important; }
.bg-soft    { background: var(--brand-primary-light) !important; }
.bg-light-grey { background: var(--brand-light) !important; }

/* ===== Preloader ===== */
.preloader {
    position: fixed; inset: 0; background: #ffffff; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo {
    width: 140px; animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.92); opacity: 0.7; }
}

/* ===== Buttons ===== */
.btn {
    font-weight: 500;
    border-radius: var(--radius);
    padding: 0.7rem 1.6rem;
    transition: all var(--transition);
    border: 2px solid transparent;
}
.btn-brand {
    background: var(--brand-primary); color: #fff;
    border-color: var(--brand-primary);
}
.btn-brand:hover {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline-brand {
    background: transparent; color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.btn-outline-brand:hover {
    background: var(--brand-primary); color: #fff;
    transform: translateY(-2px);
}
.btn-light-on-dark {
    background: #fff; color: var(--brand-darker);
    border-color: #fff;
}
.btn-light-on-dark:hover {
    background: var(--brand-primary); color: #fff; border-color: var(--brand-primary);
    transform: translateY(-2px);
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--brand-darker);
    color: #d4d4d4;
    font-size: 0.85rem;
    padding: 0.55rem 0;
}
.top-bar a { color: #d4d4d4; }
.top-bar a:hover { color: var(--brand-primary); }
.top-bar i { color: var(--brand-primary); margin-right: 0.4rem; }

/* ===== Navbar ===== */
.navbar {
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 0.85rem 0;
    transition: all var(--transition);
    z-index: 1030;  /* keep main nav above sticky sidebars */
}
.navbar-brand img { height: 50px; width: auto; }
.navbar-nav .nav-link {
    color: var(--brand-darker);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--brand-primary);
}
.navbar-nav .nav-link.active::after {
    content: ''; position: absolute; bottom: 0; left: 1rem; right: 1rem; height: 2px;
    background: var(--brand-primary); border-radius: 2px;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    /* min-width: 260px; */ min-width: 300px; top: 35px;
}

/* Open Services dropdown on hover (desktop only) */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
    .navbar-nav .dropdown > .dropdown-toggle:active {
        pointer-events: none; /* keep menu open even if user clicks */
    }
}
.dropdown-item {
    color: var(--brand-darker);
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    font-size: 0.94rem;
    font-weight: 500;
    transition: all var(--transition);
}
.dropdown-item:hover, .dropdown-item:focus {
    background: var(--brand-primary-light);
    color: var(--brand-primary-dark);
}

/* Nested dropdown */
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu {
    top: 0; left: 100%; margin-top: -0.25rem;
}
.dropdown-submenu > a::after {
    content: '\F285'; /* bi-chevron-right unicode */
    font-family: 'bootstrap-icons';
    float: right; font-size: 0.75rem; margin-top: 4px;
}
@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu { display: block; }
}

/* ===== Hero Slider ===== */
.hero-slider .carousel-item {
    height: 90vh; min-height: 560px; max-height: 780px;
    background-size: cover; background-position: center;
    position: relative;
}
.hero-slider .carousel-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(110deg, rgba(51,51,51,0.85) 0%, rgba(32,163,158,0.55) 100%);
}
.hero-slider .carousel-caption {
    bottom: auto; top: 50%; transform: translateY(-50%);
    text-align: left; right: 10%; left: 10%;
}
.hero-slider .hero-subtitle {
    color: var(--brand-primary-light);
    font-weight: 500; letter-spacing: 3px; text-transform: uppercase;
    font-size: 0.95rem; margin-bottom: 1rem;
}
.hero-slider h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 700; line-height: 1.15;
    margin-bottom: 1.25rem; max-width: 720px;
}
.hero-slider p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem; max-width: 580px;
    margin-bottom: 2rem;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 5%; opacity: 0.85;
}
.hero-slider .carousel-indicators {
    bottom: 2rem;
}
.hero-slider .carousel-indicators button {
    width: 36px; height: 4px; border-radius: 2px;
    border: none; background: rgba(255,255,255,0.4);
}
.hero-slider .carousel-indicators button.active {
    background: var(--brand-primary);
}

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title .eyebrow {
    color: var(--brand-primary);
    font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    font-size: 0.85rem; display: block; margin-bottom: 0.6rem;
}
.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}
.section-title p {
    max-width: 680px; margin: 0 auto; margin-bottom: 15px;
}

/* ===== Page Banner ===== */
.page-banner {
    position: relative;
    padding: 5rem 0 4rem;
    background-size: cover; background-position: center;
    color: #fff;
    margin-top: 0;
}
.page-banner::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(110deg, rgba(51,51,51,0.88) 0%, rgba(32,163,158,0.65) 100%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-banner .breadcrumb {
    background: transparent; padding: 0; margin: 0.5rem 0 0;
}
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: #e0e0e0; }
.page-banner .breadcrumb-item.active { color: var(--brand-primary-light); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: #aaa; }

/* ===== About strip / Cards ===== */
.feature-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    height: 100%;
    transition: all var(--transition);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}
.feature-card .icon-wrap {
    width: 60px; height: 60px;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 1.2rem;
    transition: all var(--transition);
}
.feature-card:hover .icon-wrap {
    background: var(--brand-primary); color: #fff;
}
.feature-card h4 {
    font-size: 1.15rem; margin-bottom: 0.6rem;
}
.feature-card p { font-size: 0.95rem; margin: 0; }

/* ===== Service cards ===== */
.service-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--brand-border);
    height: 100%;
    transition: all var(--transition);
    display: flex; flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.service-card .img-wrap {
    height: 220px; overflow: hidden; position: relative;
}
.service-card .img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card:hover .img-wrap img { transform: scale(1.08); }
.service-card .body {
    padding: 1.5rem; display: flex; flex-direction: column; flex: 1;
}
.service-card .body h4 {
    font-size: 1.15rem; margin-bottom: 0.6rem;
}
.service-card .body p {
    font-size: 0.94rem; margin-bottom: 1.2rem; flex: 1;
}
.service-card .link-arrow {
    color: var(--brand-primary); font-weight: 500;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.service-card .link-arrow:hover { gap: 0.7rem; color: var(--brand-primary-dark); }

/* ===== Why Choose Us ===== */
.why-list {
    list-style: none; padding: 0; margin: 0;
}
.why-list li {
    display: flex; gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--brand-border);
}
.why-list li:last-child { border-bottom: none; }
.why-list i {
    color: var(--brand-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}
.why-list h5 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.why-list p { margin: 0; font-size: 0.94rem; }

/* ===== Clients strip ===== */
.client-logo {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 110px;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    font-weight: 600;
    color: var(--brand-muted);
    text-align: center;
    font-size: 1.05rem;
}
.client-logo:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* ===== CTA ===== */
.cta-band {
    background: linear-gradient(110deg, var(--brand-darker) 0%, var(--brand-primary-dark) 100%);
    color: #fff;
    padding: 4rem 0;
    border-radius: 0;
    position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(255,255,255,0.85); }

/* ===== Contact ===== */
.contact-info-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.2rem 0; border-bottom: 1px solid var(--brand-border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon-wrap {
    width: 48px; height: 48px;
    background: var(--brand-primary-light); color: var(--brand-primary);
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
}
.contact-info-item h5 { font-size: 1rem; margin: 0 0 0.2rem; }
.contact-info-item p, .contact-info-item a {
    margin: 0; color: var(--brand-muted); font-size: 0.95rem; word-break: break-word;
}
.contact-info-item a:hover { color: var(--brand-primary); }

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background: #fff;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(32,163,158,0.12);
}
.contact-form label {
    font-weight: 500; color: var(--brand-darker);
    margin-bottom: 0.4rem; font-size: 0.92rem;
}

/* ===== Footer ===== */
footer.site-footer {
    background: var(--brand-darker);
    color: #c8c8c8;
    padding: 4rem 0 1.5rem;
}
footer.site-footer h5 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.3px;
}
footer.site-footer p, footer.site-footer li {
    font-size: 0.93rem; color: #b8b8b8;
}
footer.site-footer ul.list-unstyled li a::before{
    content: '';

}
footer.site-footer ul {
    list-style: none; padding: 0; margin: 0;
}
footer.site-footer ul li { margin-bottom: 0.55rem; }
footer.site-footer ul li a {
    color: #c8c8c8; display: inline-flex; align-items: center; gap: 0.4rem;
}
footer.site-footer ul li a::before {
    content: '\F285'; font-family: 'bootstrap-icons'; font-size: 0.7rem;
    color: var(--brand-primary);
}
footer.site-footer ul li a:hover { color: var(--brand-primary); }
footer.site-footer .footer-logo {
    /* background: #fff;  */
    padding: 0.6rem 1rem; border-radius: 8px;
    display: inline-block; margin-bottom: 1.2rem;
}
footer.site-footer .footer-logo img { height: 42px; }
footer.site-footer .social-icons { display: flex; gap: 0.5rem; margin-top: 1rem; }
footer.site-footer .social-icons a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    transition: all var(--transition);
}
footer.site-footer .social-icons a:hover {
    background: var(--brand-primary); transform: translateY(-3px);
}
footer.site-footer hr {
    border-color: rgba(255,255,255,0.08); margin: 2.5rem 0 1.25rem;
}
.copyright { font-size: 0.85rem; color: #999; }
.copyright a { color: var(--brand-primary); }

/* ===== Service Detail page ===== */
.service-detail img.detail-hero {
    width: 100%; border-radius: var(--radius);
    height: 420px; object-fit: cover;
    margin-bottom: 2rem;
}
.service-detail h2 { margin-bottom: 1.2rem; }
.service-detail .lead { color: var(--brand-muted); font-size: 1.05rem; }
.service-detail .feature-list {
    list-style: none; padding: 0; margin: 1.5rem 0;
}
.service-detail .feature-list li {
    padding: 0.55rem 0; padding-left: 1.8rem;
    position: relative; color: var(--brand-darker);
}
.service-detail .feature-list li::before {
    content: '\F26B'; font-family: 'bootstrap-icons';
    color: var(--brand-primary); position: absolute; left: 0; top: 0.55rem;
    font-weight: bold;
}

.sidebar-card {
    background: var(--brand-light);
    border-radius: var(--radius); padding: 1.75rem;
    border: 1px solid var(--brand-border);
    position: sticky;
    top: 100px;
    z-index: 1;  /* must stay below sticky navbar (1030) */
}
@media (max-width: 991.98px) {
    .sidebar-card { position: static; }
}
.sidebar-card h4 { font-size: 1.1rem; margin-bottom: 1.2rem; }
.sidebar-card .service-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-card .service-nav li { margin-bottom: 0.4rem; }
.sidebar-card .service-nav a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 1rem;
    background: #fff; border-radius: 8px;
    color: var(--brand-darker); font-weight: 500;
    border: 1px solid transparent;
    font-size: 0.92rem;
}
.sidebar-card .service-nav a:hover,
.sidebar-card .service-nav a.active {
    background: var(--brand-primary); color: #fff;
}

/* ===== Industries strip ===== */
.industry-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    padding: 1.5rem; text-align: center;
    transition: all var(--transition);
    height: 100%;
}
.industry-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}
.industry-card i {
    color: var(--brand-primary);
    font-size: 2rem; margin-bottom: 0.8rem;
    display: block;
}
.industry-card h5 { font-size: 1rem; margin: 0; }

/* ===== Alerts ===== */
.alert-success {
    background: #E8F6F5; color: #0f5f5b; border: 1px solid #b8e3e0; border-radius: var(--radius);
}
.alert-danger {
    background: #fff0f0; color: #8b1f1f; border: 1px solid #f5c2c2; border-radius: var(--radius);
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.in {
    opacity: 1; transform: translateY(0);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed; right: 1.5rem; bottom: 1.5rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--brand-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    border: none;
    opacity: 0; visibility: hidden;
    transition: all var(--transition);
    z-index: 99;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-primary-dark); transform: translateY(-3px); }

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed; right: 1.5rem; bottom: 5rem;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
    z-index: 98;
    animation: wa-pulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover {
    background: #128C7E; color: #fff;
    transform: scale(1.08); animation: none;
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
    50%      { box-shadow: 0 8px 36px rgba(37, 211, 102, 0.7); }
}
@media (max-width: 575.98px) {
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.6rem; right: 1rem; bottom: 4.5rem; }
    .back-to-top    { right: 1rem; bottom: 1rem; }
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .navbar-brand img { height: 42px; }
    .navbar-nav .nav-link { padding: 0.6rem 0 !important; }
    .navbar-nav .nav-link.active::after { display: none; }
    .dropdown-menu { box-shadow: none; padding-left: 1rem; }
    .dropdown-submenu > .dropdown-menu { position: static; }
    .dropdown-submenu > a::after { float: right; }
    .hero-slider .carousel-item { height: 75vh; min-height: 500px; }
    .hero-slider .carousel-caption { right: 5%; left: 5%; }
    .section { padding: 3.5rem 0; }
    .page-banner { padding: 3.5rem 0 2.5rem; }
}

@media (max-width: 575.98px) {
    .top-bar { font-size: 0.78rem; text-align: center; }
    .top-bar .col-md-6:first-child { margin-bottom: 0.3rem; }
    .hero-slider .carousel-item { height: 70vh; min-height: 460px; }
    .hero-slider .carousel-indicators { bottom: 1rem; }
    .hero-slider .carousel-indicators button { width: 24px; }
    .service-card .img-wrap { height: 180px; }
    .service-detail img.detail-hero { height: 260px; }
    footer.site-footer { padding: 3rem 0 1.5rem; }
}
