/* assets/css/style.css - With Mobile Hamburger Menu */

:root {
    --primary: #0a2a4a;
    --accent: #e30613;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --gray: #555;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    line-height: 1.7;
    color: #333;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ==================== HEADER ==================== */
header {
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--accent); }

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--primary);
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu a {
    display: block;
    padding: 15px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-menu a:hover {
    background: rgba(227, 6, 19, 0.2);
    color: var(--accent);
}

/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(rgba(10, 42, 74, 0.78), rgba(10, 42, 74, 0.85)), 
                url('/assets/images/hero-metal.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 160px 20px 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.35rem;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 16px 38px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227,6,19,0.3);
}

.btn:hover {
    background: #c00410;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(227,6,19,0.4);
}

/* Sections */
section { padding: 100px 0; }

h2 {
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-image {
    height: 240px;
    background-size: cover;
    background-position: center;
}

.service-card h3 {
    font-size: 1.55rem;
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary);
}

.service-card p {
    padding: 0 1.5rem 1.8rem;
    color: var(--gray);
}

/* Why Section */
.why-section { background: var(--light); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.why-item {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.why-item h3 { margin-bottom: 1rem; color: var(--primary); }

/* CTA & Footer */
.cta-section {
    background: var(--primary);
    color: white;
    text-align: center;
}

.cta-section h2 { color: white; }

.contact-info { margin: 2rem 0; font-size: 1.3rem; line-height: 1.6; }

footer {
    background: var(--dark);
    color: #aaa;
    padding: 60px 0 30px;
    text-align: center;
    font-size: 0.95rem;
}

/* Logo Image Styling */
.logo-image {
    height: 100px;
    width: auto;
    max-width: 360px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-image:hover {
    opacity: 0.9;
}

/* Adjust spacing if needed */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .logo-image {
        height: 82px;
    }
}


/* ==================== RESPONSIVE - HAMBURGER MENU ==================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;                    /* Hide desktop menu on mobile */
    }

    .hamburger {
        display: flex;                    /* Show hamburger on mobile */
    }

    .hero h1 { font-size: 2.4rem; }
    section { padding: 80px 0; }
}

/* When hamburger is active, change lines to X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}