/* =============================================
   GLOBAL CSS - JK Drive Technology (Pvt) Ltd
   ============================================= */

/* ---- CSS Variables / Color Palette ---- */
:root {
    /* Core Brand Colors (from jkdrive.lk) */
    --primary:       #1a2a4a;   /* Deep navy blue – main brand color */
    --primary-dark:  #0e1a30;   /* Darker navy – footer/dark sections */
    --accent:        #132C91;   /* Royal blue – calls-to-action & highlights (jkdrive.lk brand) */
    --accent-hover:  #0d1f6b;   /* Darker royal blue – hover states */
    --accent-light:  #2a47b8;   /* Lighter royal blue – subtle highlights */
    --accent-rgb:    19, 44, 145; /* RGB form for rgba() usage */

    /* Neutrals */
    --white:         #ffffff;
    --light-bg:      #f4f6f9;
    --light-gray:    #e9ecef;
    --border-color:  #dee2e6;
    --mid-gray:      #6c757d;
    --dark-text:     #1a2a4a;
    --body-text:     #555555;

    /* Navbar (white bar – matching screenshot) */
    --nav-bg:        #ffffff;
    --nav-text:      #1a2a4a;   /* Dark navy links */
    --nav-text-hover:#132C91;   /* Royal blue on hover/active */
    --nav-border:    #e2e2e2;   /* Bottom border */
    --nav-height:    72px;

    /* Typography (aligned with jkdrive.lk / About page) */
    --font-nav:      'Teko', 'Raleway', sans-serif;
    --font-body:     'Bai Jamjuree', 'Roboto', sans-serif;
    --font-heading:  'Teko', sans-serif;

    /* Layout */
    --section-pad:   80px;
    --border-radius: 6px;
    --box-shadow:    0 4px 20px rgba(0,0,0,0.10);
    --transition:    all 0.3s ease;
}

/* ---- Base Reset & Body ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--body-text);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-text);
    font-weight: 600;
    line-height: 1.3;
}

a { text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

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

ul { list-style: none; padding: 0; margin: 0; }

/* ============================================
   NAVBAR – White, matching jkdrive.lk exactly
   ============================================ */

.main-navbar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease;
}

.main-navbar.scrolled {
    box-shadow: 0 3px 18px rgba(0,0,0,0.12);
}

/* Inner flex row: logo | links | right icons */
.navbar-inner {
    display: flex;
    align-items: center;
    height: var(--nav-height);
    gap: 0;
}

/* ---- Logo ---- */
.navbar-brand-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-right: 30px;
    text-decoration: none;
}

.nav-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ---- Center Nav Links ---- */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
    gap: 0;
}

.nav-links li { position: relative; }

.nav-links .nav-link {
    font-family: var(--font-nav);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.85px;
    text-transform: uppercase;
    color: var(--nav-text);
    display: block;
    padding: 0 15px;
    height: var(--nav-height);
    line-height: var(--nav-height);
    position: relative;
    white-space: nowrap;
    transition: color 0.25s ease;
    text-decoration: none;
}

/* Orange underline indicator */
.nav-links .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    transition: width 0.3s ease;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: var(--accent);
}

.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after {
    width: calc(100% - 20px);
}

/* ---- Right: Social + Search ---- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 20px;
}

.nav-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--nav-text);
    font-size: 15px;
    border-radius: 4px;
    transition: var(--transition);
    text-decoration: none;
}

.nav-social-icon:hover {
    color: var(--accent);
    background: rgba(19, 44, 145,0.08);
}

.nav-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--nav-text);
    font-size: 15px;
    border-radius: 4px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 4px;
}

.nav-search-btn:hover {
    color: var(--accent);
    background: rgba(19, 44, 145,0.08);
}

/* ---- Search Bar (slide-down) ---- */
.nav-search-bar {
    display: none;
    border-top: 1px solid var(--nav-border);
    padding: 12px 0;
    background: var(--nav-bg);
}

.nav-search-bar.open { display: block; }

.search-bar-inner {
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.search-bar-inner input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--dark-text);
}

.search-bar-inner button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.search-bar-inner button:hover { background: var(--accent-hover); }

.search-bar-inner .search-close {
    background: var(--light-gray);
    color: var(--mid-gray);
    padding: 9px 12px;
}

.search-bar-inner .search-close:hover { background: #ccc; color: var(--dark-text); }

/* ---- Mobile Toggle Button ---- */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    padding: 6px 7px;
    margin-left: auto;
}

.nav-mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--nav-text);
    border-radius: 1px;
    transition: var(--transition);
}

.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Page Hero / Breadcrumb Banner ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2a4070 100%);
    color: var(--white);
    padding: 70px 0 50px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/home/h1.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.breadcrumb-nav a { color: var(--accent); }
.breadcrumb-nav a:hover { color: var(--white); }
.breadcrumb-nav .sep { color: rgba(255,255,255,0.5); }

/* ---- Section Styles ---- */
.section-pad { padding: var(--section-pad) 0; }
.section-pad-sm { padding: 50px 0; }

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
}

.section-title.white { color: var(--white); }

.section-subtitle {
    font-size: 15px;
    color: var(--mid-gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.section-subtitle.white { color: rgba(255,255,255,0.8); }

.title-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.title-separator.centered { justify-content: center; }

.title-line {
    height: 3px;
    width: 50px;
    background: var(--accent);
    border-radius: 2px;
}

.title-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

/* ---- Buttons ---- */
.btn-primary-custom {
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
    padding: 12px 32px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: transparent;
    color: var(--accent);
}

.btn-primary-custom.on-dark:hover {
    color: var(--white);
    border-color: var(--white);
    background: transparent;
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 32px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-book {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 9px 24px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.btn-book:hover { background: var(--accent-hover); color: var(--white); }

/* ---- Cards ---- */
.card-custom {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-custom .card-img { width: 100%; height: 220px; object-fit: cover; }

.card-custom .card-body-custom { padding: 20px; }

.card-custom .card-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.card-custom .card-title-custom {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-custom .card-date {
    font-size: 12px;
    color: var(--mid-gray);
    margin-bottom: 8px;
}

/* ---- Dark Section ---- */
.bg-dark-section {
    background: var(--primary);
    color: var(--white);
}

.bg-accent-section {
    background: var(--accent);
    color: var(--white);
}

.bg-light-section { background: var(--light-bg); }

/* ---- Icon Boxes ---- */
.icon-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.icon-box:hover { transform: translateY(-5px); }

.icon-box .icon-circle {
    width: 75px;
    height: 75px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    color: var(--white);
    transition: var(--transition);
}

.icon-box:hover .icon-circle { background: var(--primary); }

.icon-box h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.icon-box p { font-size: 14px; color: var(--mid-gray); line-height: 1.7; }

/* ---- Partners Carousel ---- */
.partners-section { background: var(--white); padding: 50px 0; }

.partners-section h2 { text-align: center; margin-bottom: 10px; }

.partner-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    filter: grayscale(60%);
    opacity: 0.75;
    transition: var(--transition);
}

.partner-logo-wrap:hover { filter: grayscale(0); opacity: 1; }

.partner-logo-wrap img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

/* ---- Testimonials ---- */
.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
}

.testimonial-card .stars { color: #ffc107; margin-bottom: 15px; }

.testimonial-card .quote-text {
    font-size: 15px;
    color: var(--body-text);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-card .client-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin: 0 auto 10px;
    display: block;
}

.testimonial-card .client-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
}

.testimonial-card .client-role { font-size: 13px; color: var(--mid-gray); }

/* ---- Contact Form ---- */
.contact-form .form-control {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-size: 14px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(19, 44, 145,0.15);
}

.contact-form .form-label { font-weight: 500; color: var(--dark-text); font-size: 14px; }

/* ============================================
   FOOTER – Exact match of jkdrive.lk screenshot
   Dark background | Social row | Divider | Copyright
   ============================================ */

.site-footer {
    background: #111827;   /* Very dark charcoal – matches screenshot */
    color: rgba(255,255,255,0.75);
}

/* ---- Social Icons Row ---- */
.footer-social-row {
    padding: 28px 20px 22px;
    text-align: center;
}

.footer-social-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,0.72);
    font-family: var(--font-nav);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-social-link i {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    transition: color 0.25s ease;
}

.footer-social-link:hover,
.footer-social-link:hover i {
    color: var(--accent);
}

/* ---- Divider ---- */
.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 0 20px;
}

/* ---- Copyright Row ---- */
.footer-copyright-row {
    padding: 18px 20px 22px;
    text-align: center;
}

.footer-copyright-row p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    font-family: var(--font-body);
    letter-spacing: 0.3px;
}

.footer-brand-link {
    color: #17c1e8;   /* Teal/cyan – "SLT-DIGITAL" color from screenshot */
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-brand-link:hover { color: #5de0f8; }

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: var(--transition);
}

.whatsapp-float:hover {
    background: #1ebe5d;
    color: var(--white);
    transform: scale(1.08);
}

.whatsapp-tooltip {
    position: absolute;
    right: 66px;
    bottom: 50%;
    transform: translateY(50%);
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--primary);
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ---- Stats / Counter Section ---- */
.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Feature List ---- */
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--body-text);
}

.feature-list li i {
    color: var(--accent);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ---- Utility ---- */
.text-accent { color: var(--accent) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.bg-accent-custom { background: var(--accent) !important; }
.text-primary-custom { color: var(--primary) !important; }

/* ---- Responsive Helpers ---- */
@media (max-width: 1199px) {
    .nav-links .nav-link { padding: 0 10px; font-size: 14px; letter-spacing: 0.65px; }
}

@media (max-width: 991px) {
    :root { --nav-height: 64px; }

    /* The mobile drawer behaviour now lives in responsive.css.
       The block below is kept for fallback only and overridden there. */
    .nav-mobile-toggle { display: flex; }
    .nav-right { gap: 0; margin-left: 10px; }

    /* Slide-down mobile menu (legacy fallback) */
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--nav-border);
        border-bottom: 3px solid var(--accent);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        z-index: 1049;
        padding: 10px 0;
    }

    .nav-links.open { display: flex; }

    .nav-links li { width: 100%; }

    .nav-links .nav-link {
        height: auto;
        line-height: 1;
        padding: 13px 24px;
        font-size: 15px;
        border-left: 3px solid transparent;
    }

    .nav-links .nav-link::after { display: none; }

    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        border-left-color: var(--accent);
        background: rgba(19, 44, 145,0.05);
    }
}

@media (max-width: 767px) {
    :root { --section-pad: 50px; --nav-height: 60px; }
    .section-title { font-size: 28px; }
    .page-hero h1 { font-size: 30px; }
    .nav-social-icon { display: none; }
    .nav-logo { height: 44px; }
}
