/* ==========================================================================
   SKYSHILP CONSTRUCTION - MASTER STYLESHEET
   File: assets/css/style.css
   Theme: Corporate, Premium, Engineering
   ========================================================================== */

/* ==========================================================================
   1. COLOR SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* --- Brand Colors --- */
    --primary-color: #0B1F3A;       /* Deep Navy Blue */
    --primary-light: #163A66;       /* Lighter Navy for hover */
    --secondary-color: #F97316;     /* Construction Orange */
    --secondary-dark: #C2410C;      /* Darker Orange for hover */
    --accent-color: #475569;        /* Steel Gray */
    
    /* --- Background Colors --- */
    --bg-light: #F8FAFC;            /* Off-white background */
    --bg-dark: #0F172A;             /* Very dark blue/black */
    --bg-white: #FFFFFF;            /* Pure white */
    
    /* --- Text Colors --- */
    --text-primary: #1E293B;        /* Dark Slate */
    --text-muted: #64748B;          /* Muted Blue-Gray */
    --text-light: #F1F5F9;          /* Light Gray text for dark bg */
    
    /* --- Utility Colors --- */
    --border-color: #E2E8F0;
    --success-color: #16A34A;
    --danger-color: #DC2626;
    --warning-color: #F59E0B;
    
    /* --- Spacing & sizing --- */
    --header-height: 80px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* --- Transitions --- */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

/* ==========================================================================
   2. TYPOGRAPHY SYSTEM
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; } /* Hero text */
h2 { font-size: 2.25rem; } /* Section titles */
h3 { font-size: 1.5rem; } /* Card titles */
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--secondary-color); }

p { margin-bottom: 1.5rem; color: var(--text-muted); }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
strong { font-weight: 600; color: var(--primary-color); }

/* ==========================================================================
   3. GLOBAL RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

/* ==========================================================================
   4. LAYOUT SYSTEM
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }

/* Spacing Utilities */
.mt-1 { margin-top: 1rem; } .mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; } .mb-4 { margin-bottom: 4rem; }
.text-center { text-align: center; }

.section-header {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   5. BUTTON SYSTEM
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-small-quote {
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

.btn-small-quote:hover {
    background-color: var(--secondary-dark);
}

/* ==========================================================================
   6. HEADER STYLING
   ========================================================================== */
.site-header {
    width: 100%;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left ul, .top-bar-right ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar i { margin-right: 8px; color: var(--secondary-color); }
.top-bar-right { display: flex; align-items: center; gap: 20px; }

/* Main Navigation */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.menu-list {
    display: flex;
    gap: 30px;
}

.menu-item { position: relative; }

.menu-item a {
    font-weight: 500;
    color: var(--primary-color);
    padding: 10px 0;
    position: relative;
}

.menu-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.menu-item a:hover::after,
.menu-item.active a::after {
    width: 100%;
}

/* Dropdown */
.has-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 240px;
    box-shadow: var(--shadow-md);
    padding: 10px 0;
    border-top: 3px solid var(--secondary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--bg-light);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
    padding-left: 25px; /* Slight slide effect */
}

.dropdown-menu li a::after { display: none; }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hide mobile menu by default */
.mobile-menu-container {
    display: none;
}

/* Hide mobile toggle button on desktop */
.mobile-menu-toggle {
    display: none;
}

/* Show mobile menu only on small screens */
@media (max-width: 992px) {

    .main-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-container {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #0B1F3A;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .mobile-menu-container.active {
        left: 0;
    }
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
}
.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
}
.hamburger-inner::before { top: -8px; }
.hamburger-inner::after { bottom: -8px; }

/* ==========================================================================
   7. HERO SECTION STYLING
   ========================================================================== */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 31, 58, 0.85), rgba(11, 31, 58, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--bg-white);
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 { color: var(--bg-white); margin-bottom: 1.5rem; }
.hero-content .highlight { color: var(--secondary-color); }
.hero-subheading { font-size: 1.25rem; color: var(--text-light); margin-bottom: 2.5rem; }

.hero-buttons { display: flex; gap: 1rem; }

/* Hero Stats */
.hero-stats {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--secondary-color);
    z-index: 3;
    display: flex;
    padding: 30px 50px;
    border-top-left-radius: 50px;
}

.stat-item {
    margin-right: 40px;
    text-align: center;
    color: var(--bg-white);
}

.stat-item:last-child { margin-right: 0; }
.stat-number { display: block; font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.875rem; opacity: 0.9; }

/* ==========================================================================
   8. CARD SYSTEM
   ========================================================================== */
.service-card, .project-card, .team-card, .testimonial-card, .blog-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.service-card:hover, .project-card:hover, .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Service Card Specifics */
.service-card { padding: 30px; text-align: left; border-bottom: 3px solid transparent; }
.service-card:hover { border-bottom-color: var(--secondary-color); }
.service-card .icon-box {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Project Card Specifics */
.project-image {
    height: 250px;
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.project-card:hover .project-image img { transform: scale(1.05); }
.project-content { padding: 20px; }
.location { color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }

/* Testimonial Card */
.testimonial-card { padding: 30px; border-left: 4px solid var(--secondary-color); }
.rating { color: var(--warning-color); margin-bottom: 15px; }

/* ==========================================================================
   9. GRID SYSTEM & LAYOUTS
   ========================================================================== */
.services-grid, .projects-grid, .team-grid, .blog-grid {
    display: grid;
    gap: 30px;
}

/* 3 Column Grid Default */
.services-grid, .projects-grid, .blog-grid {
    grid-template-columns: repeat(3, 1fr);
}

.team-grid {
    grid-template-columns: repeat(4, 1fr);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.row { display: flex; flex-wrap: wrap; gap: 40px; }
.col-text { flex: 1; }
.col-image { flex: 1; }

/* ==========================================================================
   10. FORM SYSTEM
   ========================================================================== */
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--primary-color); }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* ==========================================================================
   11. FOOTER STYLING
   ========================================================================== */
.site-footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding-top: 60px;
    font-size: 0.95rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}

.widget-title {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: #cbd5e1; transition: 0.2s; }
.footer-menu a:hover { color: var(--secondary-color); padding-left: 5px; }

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.contact-item i { color: var(--secondary-color); margin-top: 5px; }

.footer-bottom {
    background-color: #061121; /* Darker shade */
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.inline-menu { display: flex; gap: 20px; }
.inline-menu a { font-size: 0.85rem; color: #94a3b8; }
.inline-menu a:hover { color: var(--bg-white); }

.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--bg-white);
    transition: 0.3s;
}
.social-icons a:hover { background: var(--secondary-color); }

/* ==========================================================================
   12. ANIMATION UTILITIES
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.8s ease-out forwards; }

/* ==========================================================================
   13. RESPONSIVE SYSTEM
   ========================================================================== */
/* Tablet & Small Desktop (Max 1024px) */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    .services-grid, .projects-grid, .blog-grid, .team-grid, .features-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-widgets { grid-template-columns: 1fr 1fr; }
    .hero-stats { padding: 20px 30px; }
    .stat-number { font-size: 1.5rem; }
}

/* Mobile Devices (Max 768px) */
@media (max-width: 768px) {
    /* Header */
    .top-bar { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .main-menu {
        display: none; /* Handled by JS toggling class */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        border-top: 1px solid var(--border-color);
    }
    
    .menu-list { flex-direction: column; gap: 0; }
    .menu-item a { padding: 12px 0; border-bottom: 1px solid var(--border-color); }
    .header-actions .btn { display: none; } /* Hide CTA on mobile nav bar */
    
    /* Hero */
    .hero-section { height: auto; min-height: 500px; padding: 100px 0 50px; text-align: center; }
    .hero-stats {
        position: static;
        width: 100%;
        border-radius: 0;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 20px;
    }
    .stat-item { margin-right: 0; }
    .hero-buttons { justify-content: center; }

    /* Layouts */
    .services-grid, .projects-grid, .blog-grid, .team-grid, .features-grid, .testimonials-grid {
        grid-template-columns: 1fr; /* Stack everything */
    }
    
    .row { flex-direction: column; }
    .footer-widgets { grid-template-columns: 1fr; gap: 30px; }
    
    .bottom-wrapper { flex-direction: column; text-align: center; gap: 15px; }
    .inline-menu { justify-content: center; }
    
    .about-row .col-image { order: -1; margin-bottom: 20px; }
}

/* Small Mobile (Max 480px) */
@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .section-padding { padding: 50px 0; }
    .hero-stats { flex-direction: column; gap: 15px; }
}

/* ==========================================================================
   14. ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}