/* Albamex Welding & Railing - Premium Industrial Design */

:root {
    /* Color Palette */
    --primary-color: #FFA500;
    /* Industrial Orange */
    --primary-hover: #e69500;
    --secondary-color: #333333;
    /* Dark Grey */
    --accent-color: #F4F4F4;
    /* Light Grey/Silver */
    --dark-bg: #1a1a1a;
    --light-bg: #ffffff;
    --text-color: #333;
    --text-light: #f4f4f4;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Oswald', sans-serif;
    /* Strong, industrial headings */

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
}

h3 {
    font-size: 1.5rem;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: #000;
}

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

.section {
    padding: var(--section-padding);
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.bg-light {
    background-color: var(--accent-color);
}

/* Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-width);
    background-color: rgba(26, 26, 26, 0.95);
    /* Slightly transparent dark */
    padding: 10px 30px;
    z-index: 1000;
    border-radius: 50px;
    /* Pill shape */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

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

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

/* Hide text in logo, keep only image */
.logo span,
.logo {
    font-size: 0;
    /* Hide text */
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Mobile Close Button (Hidden on Desktop) */
.nav-close-btn {
    display: none;
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero-swiper {
    width: 100%;
    height: 85vh;
}

.hero {
    height: 100%;
    /* Match swiper height */
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/WhatsApp-Image-2023-12-11-at-16.52.05.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    text-align: center;
    color: var(--text-light);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 15vh;
    /* Push text down */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    /* Stronger shadow */
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 400;
    /* Increased weight */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.trust-signals {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.trust-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border-bottom: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-img {
    height: 250px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

/* Assign images to service cards */
.service-card:nth-child(1) .service-img {
    background-image: url('../img/WhatsApp-Image-2023-12-11-at-16.51.09-1-700x700.jpeg');
}

/* Custom Railing */
.service-card:nth-child(2) .service-img {
    background-image: url('../img/WhatsApp-Image-2023-12-11-at-16.54.10.jpeg');
}

/* Structural Welding */
.service-card:nth-child(3) .service-img {
    background-image: url('../img/WhatsApp-Image-2023-12-11-at-16.51.09-9-700x700.jpeg');
}

/* Gates */
.service-card:nth-child(4) .service-img {
    background-image: url('../img/WhatsApp-Image-2023-12-13-at-15.51.27-700x700.jpeg');
}

/* Repair/Restore */


.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* About / Stats Section */
.stats-section {
    background: var(--dark-bg);
    color: var(--text-light);
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1rem;
    color: #ccc;
}

/* Quote/CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/WhatsApp-Image-2023-12-11-at-16.52.05-2-700x700.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

/* Footer */
footer {
    background: #111;
    color: #777;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 20px;
}

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

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    h1 {
        font-size: 2.5rem;
    }

    .header {
        padding: 10px 20px;
        width: 80%;
        /* 80% width as requested */
        max-width: 100%;
    }

    .hamburger {
        display: block;
        z-index: 2000;
    }

    /* Hamburger Animation to X */
    .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: 0;
        height: 100vh;
        gap: 20px;
        /* Increased gap */
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        /* Darker opacity */
        width: 100%;
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: none;
        padding: 40px 0;
        /* Add vertical padding */
        align-items: center;
        justify-content: space-evenly;
        /* Distribute items to fill screen */
        z-index: 1500;
        opacity: 0;
        pointer-events: none;
    }

    .nav-menu.active {
        left: 0;
        opacity: 1;
        pointer-events: all;
    }

    .nav-item {
        margin: 15px 0;
        /* Adjusted margin */
        width: auto;
        /* Fit content */
    }

    .nav-link {
        font-size: 1.5rem;
        /* Larger font */
        display: block;
        padding: 10px;
    }

    /* Dedicated Close Button for Mobile Menu */
    .nav-close-btn {
        display: block !important;
        /* Show on mobile */
        background: none;
        border: 1px solid #777;
        color: #777;
        padding: 10px 30px;
        border-radius: 50px;
        font-size: 1rem;
        margin-top: 20px;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .nav-close-btn:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Adjust grid for mobile */
    .trust-signals {
        gap: 20px;
        flex-direction: column;
    }

    .trust-item {
        width: 100%;
        justify-content: center;
    }

    .quote-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .quote-content h2 {
        text-align: center !important;
    }
}