/* ============================================================
   KAMED SECURITY — MAIN STYLESHEET  (Light Theme)
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #3fa63f;
    /* Kamed green */
    --primary-dk: #2e8b2e;
    /* darker green (hover) */
    --primary-lt: #eaf6ea;
    /* very light green tint */

    /* Nav / Footer — deep but not screaming blue */
    --nav-bg: #0f1b2d;
    /* near-black navy for nav */
    --nav-scrolled: #080f1a;
    /* darker on scroll */
    --footer-bg: #0f1b2d;

    /* Page backgrounds — light */
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --bg-dark: #eef0f3;

    /* Text */
    --text: #1a1a2a;
    --text-muted: #5a6475;
    --text-light: #8a94a6;

    /* Borders */
    --border: #e2e6ed;
    --border-dk: #cdd2da;

    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.13);

    --font-body: 'Inter', sans-serif;
    --font-head: 'Oswald', sans-serif;
    --radius: 6px;
    --transition: all 0.3s ease;
}

/* ---- Reset / Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.2;
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dk);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ---- Preloader ---- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--nav-bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-inner p {
    color: var(--primary);
    font-family: var(--font-head);
    letter-spacing: 6px;
    font-size: 13px;
    margin-top: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(63, 166, 63, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 9000;
    box-shadow: 0 4px 16px rgba(63, 166, 63, 0.35);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dk);
    color: #fff;
    transform: translateY(-3px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 8000;
    transition: transform 0.35s ease, box-shadow 0.3s ease, background 0.3s ease;
}

#mainNav.nav-hidden {
    transform: translateY(-100%);
}

/* Topbar — hidden once scrolled */
#mainNav.scrolled .nav-topbar {
    display: none;
}

/* Top bar */
.nav-topbar {
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(63, 166, 63, 0.2);
    padding: 6px 0;
    font-size: 13px;
}

.topbar-item {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar-item i {
    color: var(--primary);
}

.topbar-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.topbar-link:hover {
    color: var(--primary);
}

.topbar-social {
    display: flex;
    gap: 4px;
}

.topbar-social a {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    transition: var(--transition);
}

.topbar-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Main bar — white on light pages */
.nav-main {
    background: #fff;
    border-bottom: 3px solid var(--primary);
    padding: 6px 0;
    box-shadow: var(--shadow-sm);
}

/* Scrolled: compact, very dark navy */
#mainNav.scrolled .nav-main {
    background: var(--nav-scrolled);
    border-bottom-color: var(--primary);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
    padding: 4px 0;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    text-decoration: none;
}

.nav-brand-logo {
    height: 86px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: height 0.3s ease;
}

#mainNav.scrolled .nav-brand-logo {
    height: 62px;
}

.nav-brand-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    font-weight: 900;
    font-family: var(--font-head);
}

.nav-brand-text {
    line-height: 1.2;
}

.nav-brand-text strong {
    font-family: var(--font-head);
    font-size: 16px;
    color: var(--text);
    display: block;
    letter-spacing: 1px;
}

.nav-brand-text span {
    font-size: 10px;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

#mainNav.scrolled .nav-brand-text strong {
    color: #fff;
}

#mainNav.scrolled .nav-brand-text span {
    color: var(--primary);
}

/* Desktop nav links */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links>li {
    position: relative;
}

.nav-links>li>a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 22px 13px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.25s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    text-decoration: none;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* On scrolled (dark bg) links turn white */
#mainNav.scrolled .nav-links>li>a {
    color: rgba(255, 255, 255, 0.88);
}

#mainNav.scrolled .nav-links>li>a:hover,
#mainNav.scrolled .nav-links>li>a.active {
    color: var(--primary);
}

.nav-caret {
    font-size: 9px;
    transition: transform 0.25s;
    pointer-events: none;
}

.nav-links>li.has-dropdown:hover .nav-caret {
    transform: rotate(180deg);
}

/* Desktop dropdown */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-top: 3px solid var(--primary);
    border-radius: 0 0 8px 8px;
    padding: 6px 0;
    list-style: none;
    margin: 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

.nav-links>li.has-dropdown:hover .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-dropdown li a:hover {
    color: var(--primary);
    background: var(--primary-lt);
    border-left-color: var(--primary);
    padding-left: 24px;
}

/* CTA nav button */
.btn-nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: var(--radius);
    font-weight: 700 !important;
    margin-left: 6px;
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

.btn-nav-cta:hover {
    background: var(--primary-dk) !important;
    color: #fff !important;
    border-bottom: none !important;
}

/* Hamburger */
.nav-toggler {
    display: none;
    background: none;
    border: 2px solid rgba(63, 166, 63, 0.5);
    color: var(--primary);
    padding: 7px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    transition: var(--transition);
}

.nav-toggler:hover {
    background: var(--primary-lt);
}

#mainNav.scrolled .nav-toggler {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Spacer */
.nav-spacer {
    height: 136px;
}

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--nav-bg);
    border-right: 3px solid var(--primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(63, 166, 63, 0.2);
    flex-shrink: 0;
}

.mobile-nav-header span {
    flex: 1;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.mobile-nav-close:hover {
    color: var(--primary);
}

.mobile-nav-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s, background 0.2s;
    font-family: var(--font-body);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    background: rgba(63, 166, 63, 0.08);
}

.mobile-nav-link.active {
    border-left: 3px solid var(--primary);
    padding-left: 17px;
}

.mobile-nav-icon {
    width: 18px;
    color: var(--primary);
    font-size: 14px;
}

.mobile-nav-cta {
    background: rgba(63, 166, 63, 0.12) !important;
    color: var(--primary) !important;
    margin: 10px 14px;
    border-radius: var(--radius);
    border-bottom: none !important;
    border-left: none !important;
    padding-left: 20px !important;
}

.mobile-nav-cta:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.mobile-sub-caret {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.mobile-sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    transition: max-height 0.35s ease;
}

.mobile-sub-menu.sub-open {
    max-height: 360px;
}

.mobile-sub-link {
    display: block;
    padding: 11px 20px 11px 46px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-sub-link::before {
    content: '—';
    margin-right: 8px;
    color: var(--primary);
    font-size: 11px;
}

.mobile-sub-link:hover {
    color: var(--primary);
    padding-left: 50px;
}

.mobile-nav-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(63, 166, 63, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.mobile-nav-footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav-footer-link i {
    color: var(--primary);
    width: 14px;
}

.mobile-nav-footer-link:hover {
    color: var(--primary);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    backdrop-filter: blur(3px);
}

.mobile-nav-overlay.visible {
    display: block;
}

body.nav-open {
    overflow: hidden;
}

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.section-pad {
    padding: 90px 0;
}

.section-pad-sm {
    padding: 60px 0;
}

/* Light alternating sections */
.section-dark {
    background: var(--bg);
}

.section-darker {
    background: var(--bg-alt);
}

.section-dark3 {
    background: var(--bg-dark);
}

.section-badge {
    display: inline-block;
    background: var(--primary-lt);
    color: var(--primary);
    border: 1px solid rgba(63, 166, 63, 0.3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 580px;
}

.title-line {
    width: 56px;
    height: 3px;
    background: var(--primary);
    margin: 16px 0 28px;
}

.title-line.center {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-kamed {
    background: var(--primary);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 1px;
    padding: 13px 32px;
    border-radius: var(--radius);
    border: 2px solid var(--primary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-kamed:hover {
    background: var(--primary-dk);
    border-color: var(--primary-dk);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 166, 63, 0.3);
}

.btn-outline-kamed {
    background: transparent;
    color: var(--primary);
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 1px;
    padding: 11px 30px;
    border-radius: var(--radius);
    border: 2px solid var(--primary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-kamed:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   CARDS
   ============================================================ */
.kamed-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px 28px;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.kamed-card:hover {
    border-color: rgba(63, 166, 63, 0.45);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.kamed-card .card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-lt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 22px;
    transition: var(--transition);
}

.kamed-card:hover .card-icon {
    background: var(--primary);
    color: #fff;
}

.kamed-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
}

.kamed-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================================
   STATS SECTION — keep dark for contrast
   ============================================================ */
.stats-section {
    background: linear-gradient(135deg, var(--nav-bg) 0%, #162035 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

.stat-number {
    font-family: var(--font-head);
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
    background: var(--bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    border-color: rgba(63, 166, 63, 0.4);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card-img {
    height: 210px;
    overflow: hidden;
    position: relative;
    background: var(--bg-dark);
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.06);
}

.service-card-img .service-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 3px;
    text-transform: uppercase;
}

.service-card-body {
    padding: 24px 22px;
}

.service-card-body h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
}

.service-card-body p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.why-list li:last-child {
    border-bottom: none;
}

.why-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--primary-lt);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
}

.why-text h5 {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 4px;
}

.why-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* ============================================================
   BREADCRUMB / INNER BANNER
   ============================================================ */
.inner-banner {
    background: linear-gradient(rgba(8, 15, 26, 0.78), rgba(8, 15, 26, 0.88)),
        url('/images/services/img3.jpg') center/cover no-repeat;
    padding: 80px 0 50px;
    border-bottom: 3px solid var(--primary);
}

.inner-banner h1 {
    font-size: clamp(28px, 5vw, 50px);
    margin-bottom: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.breadcrumb-kamed {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-kamed li {
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.breadcrumb-kamed li+li {
    margin-left: 4px;
}

.breadcrumb-kamed a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-kamed a:hover {
    color: #fff;
}

.breadcrumb-kamed .bc-sep {
    display: inline-flex;
    align-items: center;
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
}

.breadcrumb-kamed .bc-current {
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-img-wrap {
    position: relative;
}

.about-img-wrap img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-badge-float {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: #fff;
    padding: 20px 24px;
    border-radius: 10px;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(63, 166, 63, 0.35);
}

.about-badge-float strong {
    font-family: var(--font-head);
    font-size: 36px;
    display: block;
    line-height: 1;
}

.about-badge-float span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.mission-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding: 28px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.mission-card h4 {
    font-size: 17px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.mission-card h4 i {
    color: var(--primary);
}

.mission-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-card {
    background: var(--bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.team-card:hover {
    border-color: rgba(63, 166, 63, 0.4);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-card-img {
    height: 220px;
    overflow: hidden;
    background: var(--bg-dark);
}

.team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card-img img {
    transform: scale(1.05);
}

.team-card-body {
    padding: 22px 18px;
}

.team-card-body h4 {
    font-size: 17px;
    margin-bottom: 4px;
    color: var(--text);
}

.team-card-body .role {
    color: var(--primary);
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-light);
    font-size: 13px;
    margin: 0 3px;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s;
    box-shadow: var(--shadow-sm);
}

.faq-item.open {
    border-color: rgba(63, 166, 63, 0.4);
}

.faq-question {
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    transition: color 0.3s;
    user-select: none;
}

.faq-question:hover,
.faq-item.open .faq-question {
    color: var(--primary);
}

.faq-question .faq-icon {
    color: var(--primary);
    font-size: 13px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 22px 18px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-info-card {
    background: var(--bg);
    border-radius: 10px;
    padding: 24px 24px 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.contact-card-title {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(63, 166, 63, 0.2);
    font-family: var(--font-head);
}

.contact-info-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.contact-info-row .ci-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: var(--primary-lt);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 15px;
    margin-top: 2px;
}

.contact-info-row .ci-text {
    flex: 1;
    min-width: 0;
}

.contact-info-row .ci-text strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}

.contact-info-row .ci-text span {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    display: block;
    word-break: break-word;
}

.contact-info-row .ci-text a {
    color: var(--text-muted);
}

.contact-info-row .ci-text a:hover {
    color: var(--primary);
}

.contact-social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.contact-social-item:hover {
    color: var(--primary);
}

.contact-social-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--primary-lt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    transition: var(--transition);
}

.contact-social-item:hover .contact-social-icon {
    background: var(--primary);
    color: #fff;
}

.contact-form-card {
    background: var(--bg);
    border-radius: 10px;
    padding: 32px 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.form-card-title {
    font-size: 22px;
    color: var(--text);
    margin-bottom: 6px;
}

.form-card-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    margin-top: 0;
}

.form-label-kamed {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.form-control-kamed {
    display: block;
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 11px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    line-height: 1.5;
    transition: border-color 0.3s, background 0.3s;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.form-control-kamed::placeholder {
    color: var(--text-light);
}

.form-control-kamed:focus {
    border-color: var(--primary);
    background: var(--primary-lt);
}

.form-select-kamed {
    cursor: pointer;
    -webkit-appearance: auto;
    appearance: auto;
}

textarea.form-control-kamed {
    resize: vertical;
    min-height: 130px;
}

.btn-submit-kamed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 14px 24px;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 4px;
}

.btn-submit-kamed:hover {
    background: var(--primary-dk);
    border-color: var(--primary-dk);
}

/* ---- Map ---- */
.map-heading {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 16px;
}

.map-wrap {
    height: 380px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

#map {
    width: 100%;
    height: 100%;
}

/* ============================================================
   FOOTER — keep dark for contrast / credibility
   ============================================================ */
.site-footer {
    background: var(--footer-bg);
    border-top: 3px solid var(--primary);
    padding: 70px 0 0;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-brand-logo {
    height: 106px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 4px;
}

.footer-brand strong {
    font-family: var(--font-head);
    font-size: 22px;
    color: #fff;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.footer-brand span {
    color: var(--primary);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    line-height: 1.7;
    margin: 18px 0 22px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    margin-right: 6px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.footer-heading {
    font-family: var(--font-head);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(63, 166, 63, 0.2);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    color: var(--primary);
    font-size: 11px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-item p {
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.42);
}

.footer-contact-item a:hover {
    color: var(--primary);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.35);
    padding: 16px 0;
    margin-top: 50px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom a {
    color: var(--primary);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
    background: linear-gradient(135deg, rgba(63, 166, 63, 0.12) 0%, rgba(8, 15, 26, 0.75) 100%),
        url('https://images.unsplash.com/photo-1541701494587-cb58502866ab?w=1600&q=80') center/cover;
    border-top: 1px solid rgba(63, 166, 63, 0.25);
    border-bottom: 1px solid rgba(63, 166, 63, 0.25);
    padding: 70px 0;
}

.cta-strip h2 {
    font-size: clamp(24px, 3.5vw, 40px);
    color: #fff;
}

.cta-strip p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .nav-topbar {
        display: none;
    }

    .nav-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-spacer {
        height: 90px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .about-badge-float {
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 576px) {
    .section-pad {
        padding: 60px 0;
    }

    .section-pad-sm {
        padding: 40px 0;
    }

    .inner-banner {
        padding: 90px 0 40px;
    }

    .contact-form-card {
        padding: 20px 16px;
    }

    .contact-info-card {
        padding: 20px 16px 4px;
    }

    .nav-spacer {
        height: 82px;
    }
}

/* ============================================================
   DARK THEME OVERRIDES
   Applied when <html data-theme="dark"> is set by JS.
   Only the variables that differ from light are listed here —
   everything else inherits from :root automatically.
   ============================================================ */
[data-theme="dark"] {
    /* Page backgrounds */
    --bg: #0d1117;
    --bg-alt: #131a22;
    --bg-dark: #1b2332;

    /* Text */
    --text: #e8eaf0;
    --text-muted: #8a94a6;
    --text-light: #5a6475;

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-dk: rgba(255, 255, 255, 0.14);

    /* Shadows — deeper in dark mode */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.65);

    /* Green tint stays but darkened */
    --primary-lt: rgba(63, 166, 63, 0.12);
}

/* Nav main bar — dark in dark mode */
[data-theme="dark"] .nav-main {
    background: #0f1b2d;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-links>li>a {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .nav-links>li>a:hover,
[data-theme="dark"] .nav-links>li>a.active {
    color: var(--primary);
}

[data-theme="dark"] .nav-brand-text strong {
    color: #fff;
}

/* Dropdown in dark mode */
[data-theme="dark"] .nav-dropdown {
    background: #0f1b2d;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .nav-dropdown li a {
    color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .nav-dropdown li a:hover {
    background: rgba(63, 166, 63, 0.1);
    color: var(--primary);
}

/* Hamburger in dark mode */
[data-theme="dark"] .nav-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .nav-toggler:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Section backgrounds flip */
[data-theme="dark"] .section-dark {
    background: var(--bg);
}

[data-theme="dark"] .section-darker {
    background: var(--bg-alt);
}

[data-theme="dark"] .section-dark3 {
    background: var(--bg-dark);
}

/* Cards */
[data-theme="dark"] .kamed-card {
    background: var(--bg-alt);
    border-color: var(--border);
}

[data-theme="dark"] .kamed-card h4 {
    color: var(--text);
}

[data-theme="dark"] .service-card {
    background: var(--bg-alt);
    border-color: var(--border);
}

[data-theme="dark"] .team-card {
    background: var(--bg-alt);
    border-color: var(--border);
}

[data-theme="dark"] .faq-item {
    background: var(--bg-alt);
    border-color: var(--border);
}

[data-theme="dark"] .faq-question {
    color: var(--text);
}

[data-theme="dark"] .contact-info-card {
    background: var(--bg-alt);
    border-color: var(--border);
}

[data-theme="dark"] .contact-form-card {
    background: var(--bg-alt);
    border-color: var(--border);
}

[data-theme="dark"] .mission-card {
    background: var(--bg-alt);
    border-color: var(--border);
}

[data-theme="dark"] .form-control-kamed {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .form-control-kamed::placeholder {
    color: var(--text-light);
}

[data-theme="dark"] .form-control-kamed:focus {
    background: rgba(63, 166, 63, 0.06);
    border-color: var(--primary);
}

[data-theme="dark"] .form-label-kamed {
    color: var(--text-muted);
}

[data-theme="dark"] .form-card-title {
    color: var(--text);
}

[data-theme="dark"] .map-heading {
    color: var(--text);
}

/* Why list separators */
[data-theme="dark"] .why-list li {
    border-bottom-color: var(--border);
}

/* Contact info text */
[data-theme="dark"] .contact-info-row .ci-text strong {
    color: var(--text);
}

/* Inline style overrides via CSS vars — handled by variable swap above */

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 4px 12px 4px 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(63, 166, 63, 0.2);
    border-color: var(--primary);
    color: #fff;
}

/* The pill track */
.theme-toggle-track {
    width: 32px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Dark mode — track turns green, pill slides right */
[data-theme="dark"] .theme-toggle-track {
    background: var(--primary);
}

[data-theme="dark"] .theme-toggle-track::after {
    transform: translateX(14px);
    background: #fff;
}

/* Icon swap */
.theme-toggle .icon-sun {
    display: inline-block;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: inline-block;
}

/* Mobile version — sits in the nav-main bar */
.theme-toggle-mobile {
    background: rgba(63, 166, 63, 0.12);
    border: 1px solid rgba(63, 166, 63, 0.35);
    color: var(--primary);
}

.theme-toggle-mobile:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

[data-theme="dark"] .theme-toggle-mobile {
    background: rgba(63, 166, 63, 0.15);
    border-color: rgba(63, 166, 63, 0.4);
    color: var(--primary);
}

/* ============================================================
   DARK MODE — inline-style overrides
   Targets elements whose background/color is set via inline
   style attributes so they also flip in dark mode.
   ============================================================ */

/* Stat boxes (about, training, index) */
[data-theme="dark"] .stat-box-inline {
    background: var(--bg-alt) !important;
    border-color: rgba(63, 166, 63, 0.25) !important;
}

/* Image mini-cards (index why-us, training curriculum) */
[data-theme="dark"] .mini-img-card {
    background: var(--bg-alt) !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] .mini-img-card h5 {
    color: var(--text) !important;
}

[data-theme="dark"] .mini-img-card p {
    color: var(--text-muted) !important;
}

/* Sector tiles (index) */
[data-theme="dark"] .sector-tile {
    background: var(--bg-alt) !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] .sector-tile span {
    color: var(--text) !important;
}

/* FAQ at-a-glance sidebar box */
[data-theme="dark"] .faq-glance-box {
    background: var(--bg-alt) !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] .faq-glance-row {
    border-bottom-color: var(--border) !important;
}

[data-theme="dark"] .faq-glance-row span {
    color: var(--text-muted) !important;
}

/* Services equipment grid items */
[data-theme="dark"] .equipment-item {
    background: var(--bg-alt) !important;
    border-color: var(--border) !important;
}