/* ============================================================
   S.T Contracts Ltd - GLOBAL STYLESHEET
   Loads on every page (via each page's <head>).
   Consolidates: base reset, top bar, main nav, logo strip, footer.
   Reviews are intentionally kept separate in
   st-contracts-reviews.css (easy to update the review block).

   SECTIONS
     1. BASE        - reset, Mulish import, body font
     2. TOP BAR     - slim charcoal utility bar (.st-topbar*)
     3. NAVIGATION  - main dark nav + mega/dropdown + mobile (.nav-*)
     4. LOGO STRIP  - accreditation logo row (.st-logos*, .st-logo*)
     5. FOOTER      - dark footer (.st-footer*)
   ============================================================ */


/* ============================================================
   1. BASE  (reset + Mulish + body font)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@300;400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Mulish', sans-serif; }


/* ============================================================
   2. TOP BAR   (source: top-bar.css)
   ============================================================ */
.st-topbar {
    background-color: #1d2226;
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

.st-topbar-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 9px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.st-topbar-area {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.st-topbar-area i { color: #F28823; font-size: 14px; }

.st-topbar-right {
    display: inline-flex;
    align-items: center;
    gap: 22px;
}

.st-topbar-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.st-topbar-email i { color: #F28823; font-size: 14px; }
.st-topbar-email:hover { color: #ffffff; }

.st-topbar-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.st-topbar-social a {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.st-topbar-social a:hover { background: #F28823; color: #ffffff; transform: translateY(-1px); }

/* Match nav-container padding at each breakpoint */
@media screen and (max-width: 1280px) { .st-topbar-inner { padding: 9px 40px; } }
@media screen and (max-width: 1024px) { .st-topbar-inner { padding: 9px 32px; } }

/* Hidden on mobile - phone and email already live in the mobile menu */
@media screen and (max-width: 767px) { .st-topbar { display: none; } }

/* ============================================================
   3. NAVIGATION   (source: nav.css)
   Class hooks preserved so header.php + mobile-nav.js work.
   ============================================================ */
/*====================  ORANGE ACCENT LINE (now applied as nav-bar bottom border)  ====================*/
/* .st-contracts-accent-line retained for compatibility; no longer placed in markup */
.st-contracts-accent-line {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #F28823 0%, #d8731a 100%);
}

/*====================  MAIN NAV BAR  ====================*/
.nav-bar {
    background-color: #333333;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    border-bottom: 2px solid #F28823;
}
.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 80px;
}

/*====================  DESKTOP  ====================*/
.nav-desktop-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 15px 0;
}
.nav-logo a { display: inline-flex; }
.nav-logo img { height: 56px; width: auto; display: block; }

.nav-menu-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.nav-dropdown-trigger i { font-size: 0.7rem; transition: transform 0.25s ease; }
.nav-dropdown:hover .nav-dropdown-trigger i { transform: rotate(180deg); }
.nav-dropdown:hover .nav-link { color: #ffffff; }

/* Dropdown wrappers */
.nav-dropdown { position: relative; }

/* Mega menu (Services) */
.nav-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1200;
}
.nav-dropdown:hover .nav-mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mega-menu-inner {
    display: flex;
    gap: 36px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(20, 26, 32, 0.22);
    padding: 26px 30px;
}
.nav-mega-column { display: flex; flex-direction: column; gap: 4px; min-width: 232px; }
.nav-mega-heading {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9aa1a9;
    margin-bottom: 8px;
}
.nav-mega-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #2d333a;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-mega-link i {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    flex-shrink: 0;
    background: rgba(242, 136, 35, 0.1);
    color: #b3630f;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-mega-link:hover { background: #f6f7f9; color: #b3630f; }
.nav-mega-link:hover i { background: #F28823; color: #ffffff; }

/* Simple dropdown (More) */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 14px;
    min-width: 230px;
    list-style: none;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(20, 26, 32, 0.22);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1200;
}
.nav-dropdown-menu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #2d333a;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown-link i { color: #b3630f; width: 18px; text-align: center; }
.nav-dropdown-link:hover { background: #f6f7f9; color: #b3630f; }

/* Right section */
.nav-right-section { display: flex; align-items: center; gap: 20px; }
.nav-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-phone-link i { color: #F28823; }
.nav-phone-link:hover { color: #F28823; }
.nav-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F28823;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 13px 26px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(242, 136, 35, 0.32);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta-button:hover { background: #d8731a; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(242, 136, 35, 0.42); }
.nav-logo-group { display: flex; align-items: center; gap: 12px; }
.nav-logo-item { height: 44px; width: auto; display: block; }

/*====================  MOBILE  ====================*/
.nav-mobile-wrapper { display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.nav-mobile-phone {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #F28823;
    text-decoration: none;
    font-size: 1rem;
}
.nav-mobile-wrapper .nav-logo img { height: 48px; }
.nav-mobile-toggle {
    width: 46px; height: 46px;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: transparent; border: 0; cursor: pointer;
}
.nav-mobile-toggle span { width: 24px; height: 2px; background: #ffffff; border-radius: 2px; transition: all 0.25s ease; }

/* Full-screen panel (dark, to match the nav and keep the logo legible) */
.nav-mobile-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #333333;
    z-index: 1100;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.nav-mobile-menu.active { transform: translateX(0); }
body.menu-open { overflow: hidden; }

.nav-mobile-header { display: flex; align-items: center; justify-content: space-between; }
.nav-mobile-header .nav-logo img { height: 46px; }
.nav-mobile-close { background: transparent; border: 0; color: #ffffff; font-size: 1.3rem; cursor: pointer; line-height: 1; }

.nav-mobile-contact { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.nav-mobile-contact-link { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav-mobile-contact-link i { color: #F28823; width: 18px; text-align: center; }

.nav-mobile-cta-button {
    display: inline-flex; align-items: center; justify-content: center;
    background: #F28823; color: #ffffff; text-decoration: none;
    font-size: 0.95rem; font-weight: 800;
    padding: 15px 22px; border-radius: 999px;
}

.nav-mobile-list { list-style: none; display: flex; flex-direction: column; }
.nav-mobile-list > li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nav-mobile-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 2px;
    color: #ffffff; font-size: 1rem; font-weight: 700;
    text-decoration: none; cursor: pointer;
}
.nav-mobile-link i { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); transition: transform 0.25s ease; }
.nav-mobile-link.active i { transform: rotate(180deg); }

.nav-mobile-submenu { display: none; flex-direction: column; padding: 4px 0 14px 6px; }
.nav-mobile-submenu.active { display: flex; }
.nav-mobile-submenu-heading {
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    color: #8b929a; margin: 10px 0 4px;
}
.nav-mobile-submenu a { padding: 10px 8px; color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 0.92rem; font-weight: 600; border-radius: 8px; }
.nav-mobile-submenu a:hover { color: #F28823; background: rgba(255, 255, 255, 0.04); }

.nav-mobile-badges { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.nav-mobile-badges img { height: 42px; width: auto; }

/*====================  RESPONSIVE  ====================*/
@media screen and (max-width: 1280px) {
    .nav-container { padding: 0 40px; }
    .nav-desktop-wrapper { gap: 18px; }
    .nav-link { padding: 10px 12px; }
    .nav-right-section { gap: 14px; }
}

@media screen and (max-width: 1080px) {
    .nav-logo-group { display: none; }
}

@media screen and (max-width: 1024px) {
    .nav-container { padding: 0 32px; }
}

@media screen and (max-width: 767px) {
    .nav-container { padding: 0 20px; }
    .nav-desktop-wrapper { display: none; }
    .nav-mobile-wrapper { display: flex; }
}

/* ============================================================
   4. LOGO STRIP   (source: logos.css)
   ============================================================ */
/* Start: Logos Section */
.st-logos-section {
    padding: 60px 0;
}

/* Background Options */
.st-logos-bg-white {
    background-color: #ffffff;
}

.st-logos-bg-grey {
    background-color: #f3f3f3;
}

/* Start: Logos Container */
.logos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Start: Logos Swipeable Container */
.st-logos-swipe-container {
    width: 100%;
    overflow: hidden;
}

/* Start: Logos Row */
.st-logos-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Start: Logo Item */
.st-logo-item {
    flex: 1;
    text-align: center;
    padding: 0 15px;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Start: Logo Images */
.st-logo-item img {
    max-width: 115%; /* Increased by 15% from 100% */
    height: auto;
    max-height: 92px; /* Increased by 15% from 80px */
    /* Removed transition effect */
}

/* Removed hover effect */

/* Start: Tablet Responsive */
@media screen and (max-width: 1024px) {
    .st-logos-row {
        justify-content: center;
        gap: 20px; /* Improved horizontal spacing */
    }
    
    .st-logo-item {
        flex: 0 0 30%; /* Slightly smaller for better spacing */
        max-width: 30%;
    }
}

/* Start: Mobile Responsive - Updated for ultra-smooth scrolling */
@media screen and (max-width: 767px) {
    .st-logos-section {
        padding: 40px 0;
    }
    
    .st-logos-swipe-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        scroll-snap-type: none; /* Explicitly disable snap scrolling */
        padding-bottom: 10px;
    }
    
    .st-logos-swipe-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .st-logos-row {
        flex-wrap: nowrap;
        width: max-content;
        gap: 0; /* Further reduced gap between logos on mobile */
    }
    
    .st-logo-item {
        flex: 0 0 auto;
        width: 130px; /* Slightly reduced width for tighter spacing */
        max-width: none;
        margin: 0;
        padding: 0 4px; /* Reduced padding for tighter spacing */
        scroll-snap-align: none; /* Explicitly disable snap alignment */
    }
    
    .st-logo-item img {
        max-height: 69px; /* Increased by 15% from 60px */
    }
}

/* ============================================================
   5. FOOTER   (source: footer.css)
   ============================================================ */
.st-footer {
    background-color: #333333;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Mulish', sans-serif;
    border-top: 3px solid #F28823;
}
.st-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.1rem, 4vw, 1.75rem);
}
.st-footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.15fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}

/* Brand column */
.st-footer-logo-link { display: inline-flex; }
.st-footer-logo { height: 60px; width: auto; display: block; margin-bottom: 1.1rem; }
.st-footer-tagline { font-size: 0.92rem; line-height: 1.7; color: rgba(255, 255, 255, 0.6); max-width: 34ch; margin: 0 0 1.4rem; }

.st-footer-social { display: flex; gap: 10px; margin-bottom: 1.6rem; }
.st-footer-social-link {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.st-footer-social-link:hover { background: #F28823; color: #ffffff; transform: translateY(-2px); }

.st-footer-trust { display: flex; flex-direction: column; gap: 0.65rem; }
.st-footer-trust span { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.58); }
.st-footer-trust i { color: #F28823; width: 16px; text-align: center; }

/* Link columns */
.st-footer-heading {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 1.2rem;
    padding-bottom: 0.65rem;
    position: relative;
}
.st-footer-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: #F28823; border-radius: 2px; }

.st-footer-links { list-style: none; padding: 0; margin: 0; }
.st-footer-links li { margin-bottom: 0.6rem; }
.st-footer-links a {
    color: rgba(255, 255, 255, 0.66);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.st-footer-links a:hover { color: #F28823; padding-left: 5px; }

/* Contact column */
.st-footer-contact-info { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.5rem; }
.st-footer-phone,
.st-footer-email {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    word-break: break-word;
    transition: color 0.2s ease;
}
.st-footer-phone i,
.st-footer-email i { color: #F28823; width: 16px; text-align: center; flex-shrink: 0; }
.st-footer-phone:hover,
.st-footer-email:hover { color: #ffffff; }

.st-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F28823;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 13px 26px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(242, 136, 35, 0.3);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.st-footer-cta:hover { background: #d8731a; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(242, 136, 35, 0.4); }

/* Copyright bar */
.st-footer-copyright { border-top: 1px solid rgba(255, 255, 255, 0.09); }
.st-footer-copyright p { margin: 0; padding: 1.4rem 0; text-align: center; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }

/* WhatConverts tracking - kept, never displayed */
.st-contracts-tracking-wrapper { display: none; }

/*====================  RESPONSIVE  ====================*/
@media screen and (max-width: 1024px) {
    .st-footer-grid { grid-template-columns: 1fr 1fr; }
    .st-footer-brand { grid-column: 1 / -1; }
}
@media screen and (max-width: 767px) {
    .st-footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .st-footer-brand { grid-column: auto; }
    .st-footer-tagline { margin-left: auto; margin-right: auto; }
    .st-footer-social { justify-content: center; }
    .st-footer-trust { align-items: center; }
    .st-footer-heading { padding-bottom: 0.8rem; }
    .st-footer-heading::after { left: 50%; transform: translateX(-50%); }
    .st-footer-links a:hover { padding-left: 0; }
    .st-footer-contact-info { align-items: center; }
    .st-footer-phone,
    .st-footer-email { justify-content: center; }
}
