/* ============================================
   KINAS GROUP OF COMPANY — Corporate Stylesheet
   v5 — BULLETPROOF MOBILE MENU
   ============================================ */

:root {
    --primary: #F37021;
    --primary-dark: #D4601C;
    --primary-light: #FF8C42;
    --secondary: #00A3E0;
    --secondary-dark: #0082B4;
    --secondary-light: #33B5E6;
    --accent: #4CAF50;
    --accent-dark: #388E3C;
    --accent-light: #66BB6A;
    --bg-dark: #0D0D0D;
    --bg-darker: #050505;
    --bg-section: #1A1A2E;
    --bg-card: #16213E;
    --bg-card-hover: #1E2A4A;
    --bg-input: #0F3460;
    --text-white: #FFFFFF;
    --text-light: #E0E0E0;
    --text-muted: #9E9E9E;
    --text-dark: #333333;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(243, 112, 33, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(243, 112, 33, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
    --font-body: 'Open Sans', 'Segoe UI', sans-serif;
    --container-max: 1280px;
    --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background-color: var(--bg-dark); color: var(--text-light); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden !important; }
a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-white); font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

/* --- Utility --- */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 50px 0; }
.bg-dark { background-color: var(--bg-dark); }
.bg-section { background-color: var(--bg-section); }

.section-label {
    display: inline-block; color: var(--primary); font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px; position: relative; padding-left: 40px;
}
.section-label::before { content: ''; position: absolute; left: 0; top: 50%; width: 28px; height: 2px; background: var(--primary); transform: translateY(-50%); }
.section-title { margin-bottom: 20px; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
    font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600;
    border: none; border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition); text-transform: uppercase; letter-spacing: 1px;
    text-decoration: none; color: var(--text-white);
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #FFF !important; box-shadow: 0 4px 15px rgba(243, 112, 33, 0.3); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-light), var(--primary)); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(243, 112, 33, 0.4); color: #FFF !important; }
.btn-secondary { background: transparent; color: var(--secondary) !important; border: 2px solid var(--secondary); }
.btn-secondary:hover { background: var(--secondary); color: #FFF !important; transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 42px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ============================================
   HEADER — Desktop
   ============================================ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(13, 13, 13, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color); height: var(--header-height);
}
.header.scrolled { background: rgba(5, 5, 5, 0.98); box-shadow: var(--shadow-md); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.header-logo { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1100; }
.header-logo img { height: 45px; width: auto; }

/* Desktop Nav */
.nav { display: flex; align-items: center; gap: 0; }
.nav a {
    color: var(--text-light); font-weight: 500; padding: 10px 18px; font-size: 0.9rem;
    position: relative; transition: var(--transition-fast); text-decoration: none;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: var(--primary); transition: var(--transition); transform: translateX(-50%);
}
.nav a:hover::after, .nav a.active::after { width: 60%; }
.nav-cta { margin-left: 16px; display: flex; gap: 8px; }

/* Hamburger */
.menu-toggle {
    display: none; cursor: pointer; padding: 8px; background: none; border: none;
    position: relative; z-index: 1100; width: 44px; height: 44px;
    flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px; background: var(--text-white);
    transition: var(--transition); border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-section) 50%, var(--bg-dark) 100%);
    overflow: hidden; padding-top: var(--header-height);
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(243, 112, 33, 0.08), transparent 70%); border-radius: 50%;
}
.hero-grid {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(243, 112, 33, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 112, 33, 0.03) 1px, transparent 1px);
    background-size: 60px 60px; z-index: 0;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-label {
    display: inline-block; color: var(--accent); font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 4px; margin-bottom: 20px; padding: 8px 16px;
    border: 1px solid rgba(76, 175, 80, 0.3); border-radius: var(--radius-sm);
}
.hero h1 { margin-bottom: 24px; }
.hero h1 span { color: var(--primary); }
.hero-text { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; max-width: 550px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Cards --- */
.divisions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.division-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 32px 28px; transition: var(--transition); position: relative; overflow: hidden; }
.division-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transform: scaleX(0); transition: var(--transition); }
.division-card:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: var(--shadow-glow); }
.division-card:hover::before { transform: scaleX(1); }
.division-card-icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; background: rgba(243, 112, 33, 0.1); color: var(--primary); }
.division-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.division-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.division-card .card-link { color: var(--secondary); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }

/* --- Features --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-item { text-align: center; padding: 30px 20px; }
.feature-item-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem; background: rgba(0, 163, 224, 0.1); color: var(--secondary); border: 1px solid rgba(0, 163, 224, 0.2); }
.feature-item h4 { margin-bottom: 10px; }
.feature-item p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Testimonials --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 32px; position: relative; }
.testimonial-card::before { content: '\201C'; font-size: 4rem; color: var(--primary); opacity: 0.2; position: absolute; top: 10px; left: 20px; font-family: serif; line-height: 1; }
.testimonial-content { font-style: italic; color: var(--text-light); margin-bottom: 20px; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-input); display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; font-size: 1.1rem; }
.testimonial-author-info strong { display: block; color: var(--text-white); font-size: 0.95rem; }
.testimonial-author-info span { color: var(--text-muted); font-size: 0.85rem; }
.testimonial-stars { color: var(--primary); font-size: 0.85rem; margin-bottom: 16px; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-list { list-style: none; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; padding: 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); }
.contact-info-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: rgba(243, 112, 33, 0.1); color: var(--primary); flex-shrink: 0; font-size: 1.1rem; }
.contact-info-text strong { display: block; color: var(--text-white); margin-bottom: 4px; font-size: 0.9rem; }
.contact-info-text span { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; color: var(--text-light); font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; }
.form-control { width: 100%; padding: 14px 16px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-white); font-family: var(--font-body); font-size: 0.95rem; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.1); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 120px; resize: vertical; }
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; opacity: 0 !important; height: 0 !important; width: 0 !important; }

/* --- Footer --- */
.footer { background: var(--bg-darker); border-top: 1px solid var(--border-color); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer h4 { color: var(--primary); font-size: 1rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* --- Alerts --- */
.alert { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; border: 1px solid; }
.alert-success { background: rgba(76, 175, 80, 0.1); border-color: rgba(76, 175, 80, 0.3); color: var(--accent); }
.alert-error { background: rgba(244, 67, 54, 0.1); border-color: rgba(244, 67, 54, 0.3); color: #F44336; }
.alert-info { background: rgba(0, 163, 224, 0.1); border-color: rgba(0, 163, 224, 0.3); color: var(--secondary); }

/* --- WhatsApp --- */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); transition: var(--transition); color: white; font-size: 1.5rem; }
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* ============================================
   TABLET
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MOBILE — 768px
   ============================================ */
@media (max-width: 768px) {
    :root { --header-height: 64px; }
    .container { padding: 0 16px; }

    /* HAMBURGER */
    .menu-toggle { display: flex !important; }

    /* FULL-SCREEN MOBILE NAV */
    .nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #050505 !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 80px 24px 40px 24px !important;
        gap: 0 !important;
        z-index: 1050 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%);
        transition: transform 0.35s ease, opacity 0.25s ease, visibility 0s 0.35s;
    }
    .nav.active {
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
        transition: transform 0.35s ease, opacity 0.25s ease, visibility 0s 0s;
    }

    .nav a {
        display: block !important;
        font-size: 1.1rem !important;
        padding: 18px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        width: 100% !important;
        text-align: center !important;
        color: var(--text-light) !important;
    }
    .nav a::after { display: none !important; }
    .nav a.active { color: var(--primary) !important; }
    .nav a:hover { color: var(--primary) !important; }

    .nav-cta {
        margin-left: 0 !important;
        margin-top: 24px !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
        display: flex !important;
    }
    .nav-cta .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 16px 20px !important;
        font-size: 0.95rem !important;
    }

    /* Hero */
    .hero { min-height: auto; padding: 100px 0 60px; }
    .hero-content { max-width: 100%; }
    .hero h1 { font-size: 1.75rem; }
    .hero-text { font-size: 0.95rem; margin-bottom: 28px; }
    .hero-label { font-size: 0.75rem; letter-spacing: 2px; padding: 6px 12px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; justify-content: center; min-width: unset; }

    /* Sections */
    .section-padding { padding: 50px 0; }
    .section-padding-sm { padding: 30px 0; }

    /* Grids */
    .divisions-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .testimonials-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer { padding: 40px 0 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-brand p { max-width: 100%; }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* WhatsApp smaller */
    .whatsapp-float { width: 48px; height: 48px; font-size: 1.3rem; bottom: 16px; right: 16px; }
}

/* ============================================
   SMALL MOBILE — 480px
   ============================================ */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    .btn { padding: 12px 24px; font-size: 0.85rem; }
    .btn-lg { padding: 14px 28px; font-size: 0.9rem; }
    .hero { padding: 90px 0 50px; }
    .hero h1 { font-size: 1.5rem; }
    .division-card { padding: 24px 20px; }
    .feature-item { padding: 20px 12px; }
    .form-control { padding: 12px 14px; }
}
/* ============================================
   LOGO FIX — Add this at the end of main.css
   Removes white/colored backgrounds, ensures proper sizing
   ============================================ */

/* Header logo — no background, proper size */
.header-logo img {
    height: 42px !important;
    width: auto !important;
    max-width: 200px;
    object-fit: contain !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    mix-blend-mode: normal;
}

/* Footer logo — slightly smaller */
.footer-brand img {
    height: 36px !important;
    width: auto !important;
    max-width: 180px;
    object-fit: contain !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Admin sidebar logo */
.admin-sidebar-brand img {
    height: 28px !important;
    width: auto !important;
    object-fit: contain !important;
    background: none !important;
}

/* Mobile: slightly smaller header logo */
@media (max-width: 768px) {
    .header-logo img {
        height: 36px !important;
        max-width: 160px;
    }
    .footer-brand img {
        height: 32px !important;
    }
}

@media (max-width: 480px) {
    .header-logo img {
        height: 32px !important;
        max-width: 140px;
    }
}
