/* * SA Coating - GLOBAL MASTER CSS (FINAL EDITION)
 * Role: Core Framework, Layout, Header, Footer, Typography
 * Status: Conflict-Free, Responsive, High-Performance
 */

:root {
    /* --- BRAND PALETTE (Dynamic 4-Color) --- */
    --primary: #00aeef;       /* Electric Cyan */
    --primary-dark: #008cb9;
    --primary-dim: rgba(0, 174, 239, 0.08);
    
    --secondary: #ed1c24;     /* Action Red */
    --secondary-dim: rgba(237, 28, 36, 0.08);
    
    --accent: #8dc63f;        /* Lime Green */
    --accent-dim: rgba(141, 198, 63, 0.1);
    
    --highlight: #fdb813;     /* Golden Yellow */
    --highlight-dim: rgba(253, 184, 19, 0.1);

    /* --- NEUTRALS --- */
    --dark: #0f1115;          /* Void Black */
    --dark-card: #1a1d24;     /* Panel Black */
    --tech-gray: #e0e5eb;     /* Grid Lines */
    --text-body: #4a5568;     /* Readable Gray */
    --white: #ffffff;
    
    /* --- TYPOGRAPHY --- */
    --font-main: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
    
    /* --- LAYOUT --- */
    --header-height: 80px;
    --border-radius: 4px;
}

/* =========================================
   1. RESET & BASE
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: var(--font-main); color: var(--dark); background: var(--white); 
    line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 1rem; }
p { margin-bottom: 1rem; }

/* =========================================
   2. CUSTOM GRID ENGINE (Mini-Bootstrap)
   ========================================= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; width: 100%; }
.container-fluid { width: 100%; padding: 0 20px; }

.row { display: flex; flex-wrap: wrap; margin-left: -15px; margin-right: -15px; }
.row > * { padding-left: 15px; padding-right: 15px; width: 100%; }

/* Grid Gaps */
.g-0 { margin: 0; } .g-0 > * { padding: 0; }
.g-3 { margin: -10px; } .g-3 > * { padding: 10px; }
.g-4 { margin: -15px; } .g-4 > * { padding: 15px; }
.g-5 { margin: -25px; } .g-5 > * { padding: 25px; }

/* Column Widths */
.col-6 { width: 50%; } .col-12 { width: 100%; }

/* Tablet & Up */
@media (min-width: 768px) {
    .col-md-3 { width: 25%; } .col-md-4 { width: 33.33%; } 
    .col-md-6 { width: 50%; } .col-md-8 { width: 66.66%; }
}
/* Desktop & Up */
@media (min-width: 992px) {
    .col-lg-2 { width: 16.66%; } .col-lg-3 { width: 25%; } 
    .col-lg-4 { width: 33.33%; } .col-lg-5 { width: 41.66%; } 
    .col-lg-6 { width: 50%; } .col-lg-7 { width: 58.33%; } 
    .col-lg-8 { width: 66.66%; }
    .offset-lg-1 { margin-left: 8.33%; }
}

/* =========================================
   3. GLOBAL UTILITIES
   ========================================= */
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.flex-grow-1 { flex-grow: 1; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.text-start { text-align: left; }

.fw-bold { font-weight: 700; }
.text-uppercase { text-transform: uppercase; }
.small { font-size: 0.85rem; }
.display-3 { font-size: 3.5rem; }
.display-4 { font-size: 3rem; }
.display-5 { font-size: 2.5rem; }

/* Colors */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-highlight { color: var(--highlight) !important; }
.text-white { color: white !important; }
.text-white-50 { color: rgba(255,255,255,0.6) !important; }
.text-muted { color: #6c757d !important; }
.text-dark { color: var(--dark) !important; }
.text-success { color: var(--accent) !important; }
.text-warning { color: var(--highlight) !important; }

/* Backgrounds */
.bg-light { background-color: #f8f9fa !important; }
.bg-white { background-color: white !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-tech-light { background-color: #f4f7f9 !important; }
.bg-black { background-color: #000 !important; }

/* Spacing */
.m-0 { margin: 0 !important; } .mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem !important; } .mt-3 { margin-top: 1rem !important; } 
.mt-4 { margin-top: 1.5rem !important; } .mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 0.5rem !important; } 
.mb-3 { margin-bottom: 1rem !important; } .mb-4 { margin-bottom: 1.5rem !important; } 
.mb-5 { margin-bottom: 3rem !important; }
.ms-1 { margin-left: 0.25rem; } .ms-2 { margin-left: 0.5rem; } .ms-3 { margin-left: 1rem; }
.me-2 { margin-right: 0.5rem; } .me-3 { margin-right: 1rem; }
.p-2 { padding: 0.5rem !important; } .p-3 { padding: 1rem !important; } 
.p-4 { padding: 1.5rem !important; } .p-5 { padding: 3rem !important; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.section-padding { padding: 80px 0; }

/* Borders & Shadows */
.border { border: 1px solid var(--tech-gray) !important; }
.border-top { border-top: 1px solid var(--tech-gray) !important; }
.border-bottom { border-bottom: 1px solid var(--tech-gray) !important; }
.border-end { border-right: 1px solid var(--tech-gray) !important; }
.border-primary { border-color: var(--primary) !important; }
.border-0 { border: none !important; }
.rounded { border-radius: var(--border-radius) !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50px !important; }
.shadow-sm { box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important; }
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important; }

/* =========================================
   4. SHARED THEME ELEMENTS (Global)
   ========================================= */
.tech-title { 
    font-size: 2.5rem; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; 
}
.tech-line { 
    width: 60px; height: 5px; background: var(--primary); margin-bottom: 40px; 
}
.badge-tech {
    display: inline-block; padding: 6px 12px; 
    background: rgba(0, 174, 239, 0.1); color: var(--primary);
    font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; 
    border: 1px solid var(--primary); letter-spacing: 1px;
}
.tech-grid-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
    z-index: 0; pointer-events: none;
}
.opacity-10 { opacity: 0.1; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.z-1 { position: relative; z-index: 1; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.min-vh-100 { min-height: 100vh; }
.h-100 { height: 100%; }
.w-100 { width: 100%; }

/* =========================================
   5. BUTTONS (Global)
   ========================================= */
.btn, .btn-cyber, .btn-custom {
    display: inline-block; padding: 14px 32px;
    background: var(--dark); color: var(--white);
    font-weight: 700; font-size: 0.9rem; letter-spacing: 1px;
    text-transform: uppercase; position: relative;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: all 0.3s ease; border: none; cursor: pointer; text-decoration: none;
}
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-cyber-primary, .btn-primary { background: var(--primary); color: white; border: none; }
.btn-cyber-primary:hover, .btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); }
.btn-cyber-outline { background: transparent; color: var(--dark); border: 2px solid var(--dark); clip-path: none; border-radius: 0; padding: 12px 30px; }
.btn-cyber-outline:hover { background: var(--dark); color: var(--white); transform: translateY(-3px); }
.btn-cyber-full { width: 100%; text-align: center; }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.3); color: white; background: transparent; clip-path: none; }
.btn-outline-light:hover { background: white; color: var(--dark); }

/* =========================================
   6. HEADER & NAVIGATION (NEXT GEN)
   ========================================= */
.top-bar { 
    background: var(--dark); color: #ccc; 
    font-size: 0.8rem; padding: 8px 0; 
    font-family: var(--font-mono); border-bottom: 1px solid #333; 
}
.top-bar i { color: var(--primary); }
.social-links a { margin-left: 15px; color: #aaa; transition: 0.3s; }
.social-links a:hover { color: var(--primary); }

.site-header { 
    height: var(--header-height); 
    background: rgba(255,255,255,0.98); 
    border-bottom: 1px solid var(--tech-gray);
    position: sticky; top: 0; z-index: 1000;
}

.brand-logo { margin-right: 40px; display: flex; align-items: center; }
.brand-logo img { max-height: 50px; }
.brand-logo h2 { font-size: 1.5rem; color: var(--dark); margin: 0; letter-spacing: -1px; }

/* Desktop Menu */
.main-nav ul { display: flex; gap: 30px; align-items: center; margin: 0; padding: 0; }
.main-nav a { 
    font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--dark); position: relative; padding: 5px 0; transition: 0.3s;
}
.main-nav a:hover, .main-nav a.text-primary { color: var(--primary); }

/* --- MEGA MENU DROPDOWN FIX (CENTERED) --- */
.has-dropdown { position: relative; }

/* Invisible bridge */
.has-dropdown::after {
    content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 30px; background: transparent;
}

.dropdown { 
    position: absolute; top: calc(100% + 20px); 
    /* CENTER ALIGNMENT FIX */
    left: 50%; transform: translateX(-50%) translateY(20px); 
    
    background: var(--white); min-width: 500px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); 
    border-top: 4px solid var(--primary); 
    z-index: 1001; padding: 25px; border-radius: 0 0 6px 6px;
    
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px;
}

/* Hover State */
.has-dropdown:hover .dropdown { 
    opacity: 1; visibility: visible; 
    /* Maintain Centering */
    transform: translateX(-50%) translateY(0); 
    pointer-events: auto;
}

/* Dropdown Items */
.dropdown li { border: none; }
.dropdown li a { 
    display: flex; align-items: center;
    padding: 15px 20px; font-size: 0.9rem; text-transform: none; font-weight: 700; color: var(--dark); 
    background: #fdfdfd; border-radius: 6px; border: 1px solid #eee;
    transition: 0.2s ease-in-out;
}

.dropdown li a::before {
    content: '\f054'; /* Chevron Right */
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    margin-right: 15px; color: #ccc; font-size: 0.9rem; transition: 0.2s;
}

.dropdown li a:hover { 
    background: white; border-color: var(--primary); color: var(--primary); 
    border-left: 4px solid var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.dropdown li a:hover::before { color: var(--primary); transform: translateX(3px); }

/* --- MOBILE MENU (World Class UI) --- */
.mobile-toggle { 
    display: none; background: none; border: none; 
    font-size: 1.3rem; /* Small & Precise */
    cursor: pointer; color: var(--dark); 
    z-index: 10001; margin-left: auto; padding: 5px;
}

/* Slide-in Drawer */
.mobile-menu-overlay { 
    background: white; 
    position: fixed; top: 0; right: 0; 
    width: 320px; max-width: 85%; height: 100%;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15); 
    z-index: 10000;
    display: block; /* Controlled by transform */
    transform: translateX(100%); /* Hidden by default */
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
}

/* Close Icon Sizing */
#close-mobile-menu i { font-size: 1.3rem; }

/* =========================================
   7. INNER PAGE HEADER (Global Fallback)
   ========================================= */
.page-header { 
    background: var(--dark); padding: 100px 0 80px; color: white; text-align: center; 
    background-image: radial-gradient(circle at 20% 50%, #1a1d24 0%, #0f1115 100%);
    position: relative; overflow: hidden;
}
.breadcrumb { font-family: var(--font-mono); color: #888; font-size: 0.85rem; }
.breadcrumb a { color: #aaa; }
.breadcrumb a:hover { color: var(--primary); }

/* =========================================
   8. MEGA FOOTER (Competitor Style)
   ========================================= */
.site-footer { 
    background: #1a1d24; color: #a0aec0; 
    padding-top: 0; margin-top: 0; 
    position: relative; border-top: none;
}

.footer-top-strip {
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    width: 100%;
}

.footer-heading {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { 
    color: #a0aec0; text-decoration: none; font-size: 0.85rem; 
    transition: 0.3s; display: block;
}
.footer-links a:hover { 
    color: var(--white); transform: translateX(5px); 
}

/* Sticky Side Buttons */
.sticky-side-btns {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%);
    z-index: 9999; flex-direction: column; gap: 5px;
}
.side-btn {
    display: block; width: 45px; height: 140px;
    color: white; text-decoration: none;
    border-radius: 6px 0 0 6px;
    position: relative; transition: 0.3s;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
    overflow: hidden;
}
.side-btn span {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; font-size: 0.9rem;
}
.btn-cost { background: var(--highlight); color: var(--dark); }
.btn-enquire { background: var(--secondary); }
.side-btn:hover { width: 55px; }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25d366; color: white;
    padding: 10px 20px; border-radius: 50px;
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; font-weight: 700;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9999; transition: 0.3s;
}
.whatsapp-float:hover { transform: translateY(-5px); background: #20b857; color: white; }
.whatsapp-float i { font-size: 1.5rem; }

.footer-address { font-size: 0.85rem; color: #a0aec0; }
.social-btn-sm {
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: white;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s; text-decoration: none; font-size: 0.8rem;
}
.social-btn-sm:hover { background: var(--primary); color: white; }

.footer-bottom { 
    background: #0f1115; border-top: 1px solid #2a2d35; 
    padding: 20px 0; margin-top: 40px; font-size: 0.8rem; 
}
.list-inline-item { display: inline-block; margin-right: 10px; }

/* =========================================
   9. MEDIA QUERIES (Visibility Control)
   ========================================= */
/* Tablet */
@media (min-width: 768px) {
    .d-md-block { display: block !important; }
    .d-md-none { display: none !important; }
    .d-md-flex { display: flex !important; }
    .d-md-inline-block { display: inline-block !important; }
}

/* Desktop */
@media (min-width: 992px) {
    .d-lg-block { display: block !important; }
    .d-lg-none { display: none !important; }
    .d-lg-flex { display: flex !important; }
}

/* Mobile */
@media (max-width: 991px) {
    .main-nav { display: none; } /* Hide Desktop Menu */
    .brand-logo { margin-right: 0; }
    .mobile-menu-overlay { display: block; } /* Allow block display for slide-in */
    .mobile-toggle { display: block !important; }
}

@media (max-width: 768px) {
    .top-bar { display: none !important; } /* Hide Top Bar */
    .footer-heading { margin-top: 30px; margin-bottom: 10px; }
    .footer-bottom { text-align: center; }
    .whatsapp-float { bottom: 20px; right: 20px; padding: 10px; border-radius: 50%; }
    .wa-text { display: none; } /* Icon only on mobile */
    .list-inline-item { display: block; margin: 5px 0; }
}