/**
 * style.css - Base styles and shared components
 * 
 * This file contains:
 * - Global CSS variables and resets
 * - Shared component styles (header, footer, buttons)
 * - Responsive breakpoints
 * - Common utility classes
 * 
 * @author First Imperial Consulting & Technologies Solutions Ltd
 * @version 1.0
 */

/* ============================================
   CSS VARIABLES - Color Scheme & Design Tokens
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    /* Primary Brand Colors */
    --primary-dark: #0a1a3a;      /* Deep navy blue - main brand color */
    --primary-blue: #1a3a7a;       /* Medium blue - secondary brand color */
    --primary-light: #2a5abf;     /* Light blue - accents */
    --accent-gold: #d4af37;       /* Gold - highlights and CTAs */
    
    /* Neutral Colors */
    --light-bg: #f8f9fa;           /* Light gray background */
    --text-dark: #333;             /* Dark text color */
    --text-light: #fff;             /* White text */
    
    /* Design Tokens */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);  /* Standard box shadow */
    --transition: all 0.3s ease;                 /* Standard transition */
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    margin: 0 auto 20px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

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

.text-center {
    text-align: center;
}

/* Header & Navigation */
header {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.logo h2 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: white;
    margin: 0;
}

.logo p {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin: 0;
    margin-top: -5px;
    line-height: 1.2;
    word-break: break-word;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-gold);
}

.nav-menu a.active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    bottom: -5px;
    left: 0;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: var(--transition);
}

/* Page Hero */
.page-hero {
    background: linear-gradient(rgba(10, 26, 58, 0.9), rgba(10, 26, 58, 0.9)), 
                url('../images/hero.svg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-gold);
}

.footer-tagline {
    color: var(--accent-gold);
    font-style: italic;
    margin: 10px 0 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-gold);
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN - Tablet & Mobile
   ============================================ */

/* Tablet View (max-width: 992px) */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile View (max-width: 768px) - Most smartphones */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-dark);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .logo-img {
        height: 40px;
    }

    .logo h2 {
        font-size: 1.4rem;
    }

    .logo p {
        font-size: 0.65rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 60px 0;
    }
}

/* Small Mobile View (max-width: 576px) - Small smartphones */
@media (max-width: 576px) {
    .logo {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .logo-img {
        height: 35px;
        flex-shrink: 0;
    }

    .logo h2 {
        font-size: 1.1rem;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .logo p {
        font-size: 0.55rem;
        letter-spacing: 1px;
        line-height: 1.1;
        word-break: break-word;
    }
    
    /* Hide logo subtitle on very small screens */
    @media (max-width: 480px) {
        .logo-text p {
            display: none;
        }
        
        .logo h2 {
            font-size: 0.95rem;
        }
        
        .logo-img {
            height: 30px;
        }
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .page-hero {
        padding: 80px 0;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    /* Ensure images don't overflow on mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Better spacing on mobile */
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 40px 0;
    }
    
    /* Prevent text overflow */
    h1, h2, h3, h4 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Ensure buttons are touch-friendly */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
