/* =============================================
   KIZITO TECHNOLOGY & ENGINEERING COMPANY
   Clean, Professional CSS Design
   ============================================= */

:root {
    --primary-deep: #0b2b40;
    --primary-solid: #1a4b6e;
    --engine-accent: #e67e22;
    --engine-hover: #c0392b;
    --light-surface: #fefefe;
    --gray-soft: #eef2f5;
    --text-dark: #0f2c3b;
    --text-muted: #2c4c64;
    --border-smoke: #dce5ec;
    --shadow-sm: 0 8px 18px rgba(0,0,0,0.05);
    --shadow-md: 0 15px 30px rgba(0,0,0,0.1);
    --header-bg: #0a1f2c;
    --header-text: #cbdde9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7fc;
    color: #102a3c;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ===== DARK HEADER ===== */
.site-header {
    background: var(--header-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 3px solid var(--engine-accent);
}

.site-header.dark-header .logo-text h1 {
    background: linear-gradient(130deg, #ffffff, #e67e22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-header.dark-header .logo-text span {
    color: var(--engine-accent);
}

.site-header.dark-header .nav-menu li a {
    color: var(--header-text);
}

.site-header.dark-header .nav-menu li a:hover {
    color: var(--engine-accent);
}

.site-header.dark-header .nav-menu li a i {
    color: var(--engine-accent);
}

.site-header.dark-header .mobile-toggle {
    color: var(--header-text);
}

.site-header.dark-header .dropdown-menu {
    background: var(--header-bg);
    border-color: var(--engine-accent);
}

.site-header.dark-header .dropdown-menu li a {
    color: var(--header-text);
}

.site-header.dark-header .dropdown-menu li a:hover {
    background: rgba(230, 126, 34, 0.15);
    color: var(--engine-accent);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.2s ease;
}
.logo-img {
    height: 88px;
    width: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.3), 0 0 0 2px rgba(230,126,34,0.3);
    transition: transform 0.25s ease, box-shadow 0.2s;
    background: white;
    padding: 3px;
}
.logo-img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 22px rgba(0,0,0,0.4), 0 0 0 3px var(--engine-accent);
}
.logo-text h1 {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: white;
}
.logo-text span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--engine-accent);
    display: block;
    letter-spacing: 1px;
}

/* ===== NAVIGATION ===== */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-menu li a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-dark);
    transition: 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu li a i {
    color: var(--primary-solid);
    font-size: 1rem;
}

.nav-menu li a:hover {
    color: var(--engine-accent);
}

.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 42px;
    left: 0;
    background: white;
    width: 260px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: 0.7rem 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 200;
    border: 1px solid var(--border-smoke);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}
.dropdown-menu li a {
    padding: 0.6rem 1.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
}
.dropdown-menu li a:hover {
    background: var(--gray-soft);
    padding-left: 2rem;
}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-deep);
}
.mobile-close { display: none; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    box-shadow: 0 8px 22px rgba(37,211,102,0.4);
    text-decoration: none;
    transition: 0.2s;
}
.whatsapp-float i { font-size: 2rem; }
.whatsapp-float:hover {
    transform: scale(1.08);
    background: #1fae58;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(115deg, #eef3fc 0%, #ffffff 100%);
    padding: 70px 0;
}
.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 45px;
}
.hero-content { flex: 1.2; }
.hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-deep);
}
.hero-content .highlight { color: var(--engine-accent); }
.hero-content p {
    margin: 20px 0 30px;
    font-size: 1.1rem;
    color: #2c556e;
}
.hero-image { flex: 1; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-md); }
.hero-image img { width: 100%; height: auto; display: block; }

/* ===== BUTTONS ===== */
.btn {
    background: var(--primary-solid);
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-solid);
    color: var(--primary-solid);
    margin-left: 15px;
}
.btn-outline:hover {
    background: var(--primary-solid);
    color: white;
}
.btn-primary { background: var(--primary-solid); color: white; }
.btn-primary:hover { background: var(--primary-deep); }
.btn-block { width: 100%; display: block; text-align: center; }

/* ===== SERVICES ===== */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-deep);
}
.services-preview { padding: 70px 0; background: white; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.service-card {
    background: #ffffff;
    padding: 2rem 1.2rem;
    border-radius: 28px;
    text-align: center;
    transition: 0.25s ease;
    border: 1px solid var(--border-smoke);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: block;
}
.service-card i {
    font-size: 2.6rem;
    color: var(--engine-accent);
    margin-bottom: 1rem;
}
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; }
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--engine-accent);
    box-shadow: var(--shadow-md);
}

/* ===== GALLERY ===== */
.gallery-section {
    background: var(--gray-soft);
    padding: 70px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}
.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    height: 230px;
    box-shadow: var(--shadow-sm);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ===== LOGIN ===== */
.login-section { padding: 80px 0; min-height: calc(100vh - 300px); display: flex; align-items: center; }
.login-container { max-width: 420px; margin: 0 auto; width: 100%; }
.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: var(--shadow-md);
}
.login-card h2 { text-align: center; margin-bottom: 5px; }
.login-subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 25px; }
.login-form .form-group { margin-bottom: 18px; }
.login-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.login-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-smoke);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border 0.3s;
}
.login-form .form-control:focus { outline: none; border-color: var(--engine-accent); }
.error-message { color: #dc2626; font-size: 14px; margin-bottom: 15px; padding: 10px; background: #fee2e2; border-radius: 8px; }
.login-footer { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 13px; }

/* ===== SERVICE DETAIL PAGES ===== */
.page-hero {
    background: linear-gradient(115deg, #0b2b40 0%, #1a4b6e 100%);
    color: white;
    padding: 60px 0;
}
.page-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.page-hero .breadcrumb a { color: var(--engine-accent); text-decoration: none; }

.service-detail { padding: 70px 0; background: white; }
.service-detail-grid { display: flex; flex-wrap: wrap; gap: 50px; }
.service-main { flex: 2; }
.service-sidebar { flex: 1; }
.service-main h2 {
    font-size: 1.8rem;
    color: var(--primary-deep);
    margin: 1.5rem 0 1rem;
}
.service-main h2:first-of-type { margin-top: 0; }
.service-main p { margin-bottom: 1rem; color: var(--text-muted); line-height: 1.7; }
.service-main ul { margin: 1rem 0 1.5rem 1.8rem; color: var(--text-muted); }
.service-main li { margin-bottom: 0.5rem; }
.feature-list { list-style: none; margin-left: 0 !important; }
.feature-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.feature-list li i {
    color: var(--engine-accent);
    font-size: 1.2rem;
    width: 24px;
}

.info-card {
    background: var(--gray-soft);
    border-radius: 24px;
    padding: 1.8rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-smoke);
}
.info-card h3 { margin-bottom: 1rem; color: var(--primary-deep); }
.info-card ul { margin-left: 0; list-style: none; }
.info-card ul li {
    margin-bottom: 0.6rem;
    padding-left: 24px;
    position: relative;
}
.info-card ul li i {
    position: absolute;
    left: 0;
    top: 2px;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-deep), var(--primary-solid));
    color: white;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.cta-card h3 {
    color: white;
    margin-bottom: 1rem;
}
.cta-card .btn-white {
    background: white;
    color: var(--primary-solid);
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 1rem;
    transition: 0.2s;
}
.cta-card .btn-white:hover {
    background: var(--engine-accent);
    color: white;
}

/* ===== FOOTER ===== */
.footer {
    background: #0a1f2c;
    color: #cbdde9;
    padding: 50px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #bdd4e8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}
.footer-links a:hover {
    color: var(--engine-accent);
    transform: translateX(4px);
}
.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 26px;
    font-size: 0.85rem;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 860px) {
    .mobile-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: #0a1f2c;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.8rem 2rem;
        box-shadow: 8px 0 28px rgba(0,0,0,0.5);
        transition: left 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        z-index: 1200;
        gap: 1.4rem;
        overflow-y: auto;
    }
    .nav-menu.active { left: 0; }
    .mobile-close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1.4rem;
        font-size: 1.8rem;
        background: none;
        border: none;
        cursor: pointer;
        color: #cbdde9;
    }
    .site-header.dark-header .nav-menu li a {
        color: #cbdde9;
    }
    .dropdown {
        position: relative;
        width: 100%;
    }
    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        cursor: pointer;
    }
    .dropdown > a i.fa-chevron-down { transition: transform 0.2s ease; }
    .dropdown.active > a i.fa-chevron-down { transform: rotate(180deg); }
    .dropdown-menu {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: rgba(255,255,255,0.08);
        border-radius: 12px;
        box-shadow: none;
        padding: 0;
        margin-top: 0.5rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease-out;
        border: none;
    }
    .dropdown.active .dropdown-menu {
        max-height: 400px;
        padding: 0.5rem 0;
    }
    .dropdown-menu li a {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        color: #cbdde9 !important;
    }
    .dropdown-menu li a:hover {
        background: rgba(230, 126, 34, 0.15) !important;
        color: var(--engine-accent) !important;
    }
    .hero-grid { flex-direction: column; }
    .hero-content h2 { font-size: 2.2rem; }
    .btn-outline { margin-left: 0; margin-top: 12px; }
    .logo-img { height: 70px; }
    .logo-text h1 { font-size: 1.35rem; }
    .logo { gap: 12px; }
    .container { padding: 0 18px; }
    .service-detail-grid { flex-direction: column; }
    .page-hero h1 { font-size: 2rem; }

    /* Service Grid - 2 columns on tablets */
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .service-card {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    .service-card i {
        font-size: 2.2rem;
        margin-bottom: 0.6rem;
    }
    .service-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    .service-card p {
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    .gallery-item {
        height: 180px;
    }
}

@media (max-width: 580px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .service-card {
        padding: 1rem 0.6rem;
        border-radius: 16px;
    }
    .service-card i {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }
    .service-card h3 {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    .service-card p {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .hero {
        padding: 40px 0;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .gallery-item {
        height: 140px;
        border-radius: 12px;
    }
}

@media (max-width: 400px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .service-card {
        padding: 0.8rem 0.4rem;
        border-radius: 12px;
    }
    .service-card i {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    .service-card h3 {
        font-size: 0.65rem;
    }
    .service-card p {
        font-size: 0.55rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery-item {
        height: 110px;
    }
}

@media (max-width: 500px) {
    .whatsapp-float { width: 52px; height: 52px; bottom: 20px; right: 20px; }
    .whatsapp-float i { font-size: 1.8rem; }
    .logo-img { height: 60px; }
    .logo-text h1 { font-size: 1.2rem; }
}

/* =============================================
   UTILITY & ADDITIONAL STYLES
   ============================================= */

/* Highlight boxes for service pages */
.highlight-box {
    background: var(--gray-soft);
    padding: 25px;
    border-radius: 16px;
    border-left: 4px solid var(--engine-accent);
    margin: 25px 0;
}
.highlight-box h3 {
    margin-bottom: 10px;
    color: var(--primary-deep);
}
.highlight-box p {
    margin-bottom: 0;
}
.highlight-box ul {
    margin-left: 0;
    list-style: none;
}
.highlight-box ul li {
    margin-bottom: 6px;
    font-size: 14px;
    padding-left: 24px;
    position: relative;
}
.highlight-box ul li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--engine-accent);
}

/* Feature grids for service pages */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 25px 0;
}
.feature-item {
    background: var(--gray-soft);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
}
.feature-item:hover {
    transform: translateY(-5px);
}
.feature-item .feature-icon {
    width: 56px;
    height: 56px;
    background: var(--engine-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 22px;
}
.feature-item h4 {
    margin-bottom: 5px;
    font-size: 15px;
    color: var(--primary-deep);
}
.feature-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Alarm types, gate types, etc. */
.alarm-types, .gate-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}
.alarm-type, .gate-type {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--gray-soft);
    padding: 15px 20px;
    border-radius: 12px;
    transition: transform 0.3s;
}
.alarm-type:hover, .gate-type:hover {
    transform: translateX(8px);
}
.alarm-type i, .gate-type i {
    font-size: 28px;
    color: var(--engine-accent);
    width: 40px;
    text-align: center;
}
.alarm-type h4, .gate-type h4 {
    margin-bottom: 2px;
    font-size: 16px;
    color: var(--primary-deep);
}
.alarm-type p, .gate-type p {
    margin-bottom: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Design grids, software grids, etc. */
.design-grid, .software-grid, .ac-grid, .ta-grid, .sensor-grid, .access-grid, .phone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 25px 0;
}
.design-item, .software-item, .ac-item, .ta-item, .sensor-item, .access-item, .phone-item {
    background: var(--gray-soft);
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}
.design-item:hover, .software-item:hover, .ac-item:hover, .ta-item:hover, .sensor-item:hover, .access-item:hover, .phone-item:hover {
    transform: translateY(-4px);
}
.design-item i, .software-item i, .ac-item i, .ta-item i, .sensor-item i, .access-item i, .phone-item i {
    font-size: 28px;
    color: var(--engine-accent);
    margin-bottom: 8px;
}
.design-item h4, .software-item h4, .ac-item h4, .ta-item h4, .sensor-item h4, .access-item h4, .phone-item h4 {
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--primary-deep);
}
.design-item p, .software-item p, .ac-item p, .ta-item p, .sensor-item p, .access-item p, .phone-item p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Responsive for feature grids on small screens */
@media (max-width: 580px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .feature-item {
        padding: 14px;
    }
    .feature-item .feature-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .feature-item h4 {
        font-size: 13px;
    }
    .feature-item p {
        font-size: 11px;
    }
    .design-grid, .software-grid, .ac-grid, .ta-grid, .sensor-grid, .access-grid, .phone-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .design-item, .software-item, .ac-item, .ta-item, .sensor-item, .access-item, .phone-item {
        padding: 14px;
    }
    .design-item i, .software-item i, .ac-item i, .ta-item i, .sensor-item i, .access-item i, .phone-item i {
        font-size: 22px;
    }
    .design-item h4, .software-item h4, .ac-item h4, .ta-item h4, .sensor-item h4, .access-item h4, .phone-item h4 {
        font-size: 12px;
    }
    .design-item p, .software-item p, .ac-item p, .ta-item p, .sensor-item p, .access-item p, .phone-item p {
        font-size: 10px;
    }
    .alarm-type, .gate-type {
        padding: 12px 14px;
    }
    .alarm-type i, .gate-type i {
        font-size: 22px;
        width: 32px;
    }
    .alarm-type h4, .gate-type h4 {
        font-size: 14px;
    }
    .alarm-type p, .gate-type p {
        font-size: 11px;
    }
    .highlight-box {
        padding: 16px;
    }
    .highlight-box h3 {
        font-size: 16px;
    }
}