/*
 * Campbell Sheet Metal Inc. - Custom Stylesheet
 * Version: 1.0
 */

/* ======================= VARIABLES & GLOBAL STYLES ======================= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Roboto:wght@400;500&display=swap');

:root {
    --primary-color: #E60073; /* Electric Magenta */
    --dark-gray: #1a1a1a;
    --medium-gray: #2c2c2c;
    --light-gray: #f4f4f4;
    --text-color-dark: #333;
    --text-color-light: #e0e0e0;
    --border-color: #444;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: #fff;
    color: var(--text-color-dark);
    line-height: 1.6;
}
img { max-width: 100%; height: auto; }
ul { list-style: none; }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ======================= REUSABLE COMPONENTS ======================= */
.section { padding: 80px 0; }
.bg-dark { background-color: var(--dark-gray); color: var(--text-color-light); }
.bg-light { background-color: var(--light-gray); }
.text-center { text-align: center; }
.text-light { color: var(--text-color-light); }
.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}
.grid { display: grid; }
.grid-2-cols { grid-template-columns: repeat(2, 1fr); }
.grid-3-cols { grid-template-columns: repeat(3, 1fr); }
.grid-4-cols { grid-template-columns: repeat(4, 1fr); }
.grid-2-cols-uneven { grid-template-columns: 2fr 1fr; }
.grid-2-cols-uneven-reverse { grid-template-columns: 1fr 2fr; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 3rem; }
.align-center { align-items: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}
.btn-primary { background-color: var(--primary-color); color: #fff; }
.btn-primary:hover { background-color: #b8005c; border-color: #b8005c; transform: translateY(-3px); }
.btn-secondary { background-color: var(--dark-gray); color: #fff; border-color: var(--dark-gray); }
.btn-secondary:hover { background-color: #000; border-color: #000; }
.btn-primary-outline { background-color: transparent; color: var(--primary-color); }
.header .btn-primary-outline { color: #fff; border-color: #fff; }
.header .btn-primary-outline:hover { background-color: #fff; color: var(--dark-gray); }

/* ======================= HEADER / NAVBAR ======================= */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
.header.scrolled {
    background-color: var(--dark-gray);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}
.nav-logo img { height: 40px; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-link {
    color: #fff;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px 0; background-color: #fff; transition: all 0.3s; }

/* ======================= HERO SECTION ======================= */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    animation: zoom-in 20s ease-out infinite;
}
@keyframes zoom-in { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.5));
}
.hero-content { position: relative; z-index: 2; }
.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hero-subtitle { font-size: 1.25rem; max-width: 600px; margin: 0 auto 2rem; }

/* ======================= SERVICE PREVIEW ======================= */
.service-preview { background-color: var(--medium-gray); padding: 40px 0; }
.service-preview-card { text-align: center; color: var(--text-color-light); }
.service-preview-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.service-preview-card h3 { font-family: var(--font-heading); font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; }

/* ======================= CLIENT LOGOS ======================= */
.scrolling-logos { overflow: hidden; white-space: nowrap; }
.logos-slide {
    display: inline-block;
    animation: 30s slide infinite linear;
}
.logos-slide img { height: 60px; margin: 0 40px; filter: grayscale(1) brightness(2); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ======================= CTA STRIP ======================= */
.cta-strip { background: var(--primary-color); color: #fff; padding: 60px 0; }
.cta-strip h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.cta-strip p { font-size: 1.2rem; margin-bottom: 2rem; }
.cta-strip .btn { background: #fff; color: var(--primary-color); }

/* ======================= ABOUT PAGE ======================= */
.page-header {
    padding: 160px 0 100px;
    text-align: center;
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: center;
}
.page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 26, 26, 0.7);
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    text-transform: uppercase;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    top: 0; bottom: 0; left: 50%;
    margin-left: -2px;
}
.timeline-item { position: relative; width: 50%; padding: 10px 40px; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-dot {
    position: absolute;
    width: 20px; height: 20px;
    background: #fff;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 20px; z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -10px; }
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }
.timeline-content {
    padding: 20px 30px;
    background: var(--light-gray);
    border-radius: 6px;
}

.value-card { padding: 2rem; transition: transform 0.3s, box-shadow 0.3s; }
.value-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.value-card .icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
.value-card h3 { font-family: var(--font-heading); font-size: 1.8rem; }

.team-member img {
    width: 100%;
    filter: grayscale(1);
    transition: filter 0.3s;
}
.team-member:hover img { filter: grayscale(0); }
.team-member h4 { margin-top: 1rem; margin-bottom: 0; font-size: 1.5rem; }
.team-member p { color: #777; }

/* ======================= SERVICES PAGE ======================= */
.service-card { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover img { transform: scale(1.1); }
.service-card-content {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
}
.service-card-content h3 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 0.5rem; }
.service-card-content .icon { color: var(--primary-color); font-size: 2rem; margin-bottom: 0.5rem; }

/* ======================= PROJECTS PAGE ======================= */
.project-filters { margin-bottom: 2rem; text-align: center; }
.btn-filter {
    background: transparent;
    border: 1px solid #ccc;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
}
.btn-filter.active, .btn-filter:hover { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.project-grid {
    column-count: 3;
    column-gap: 1rem;
}
.project-item {
    position: relative;
    margin-bottom: 1rem;
    display: inline-block;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
}
.project-item img { width: 100%; display: block; transition: transform 0.4s; }
.project-item:hover img { transform: scale(1.1); }
.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(230, 0, 115, 0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}
.project-item:hover .project-overlay { opacity: 1; }
.project-overlay h3 { font-family: var(--font-heading); font-size: 1.5rem; }
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}
.lightbox-content { max-width: 90%; max-height: 80%; }
.lightbox-close { position: absolute; top: 15px; right: 35px; color: #fff; font-size: 40px; cursor: pointer; }

/* ======================= CONTACT PAGE ======================= */
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.contact-info-block {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.faq-accordion .faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}
.faq-question {
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer p { padding: 0 15px 15px; }

/* ======================= FOOTER ======================= */
.footer { background: var(--dark-gray); color: var(--text-color-light); padding-top: 60px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 40px;
}
.footer-logo { max-width: 200px; margin-bottom: 1rem; }
.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-color-light); }
.footer-col a:hover { color: var(--primary-color); }
.social-icons a { display: inline-block; margin-right: 1rem; font-size: 1.2rem; }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 20px 0;
}

/* ======================= MISC & RESPONSIVE ======================= */
.back-to-top {
    position: fixed;
    bottom: 20px; right: 20px;
    background: var(--primary-color);
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.back-to-top.show { opacity: 1; visibility: visible; }

@media (max-width: 992px) {
    .grid-2-cols-uneven, .grid-2-cols-uneven-reverse, .grid-3-cols, .grid-4-cols {
        grid-template-columns: 1fr 1fr;
    }
    .project-grid { column-count: 2; }
}

@media (max-width: 768px) {
    .grid-2-cols, .grid-2-cols-uneven, .grid-2-cols-uneven-reverse, .grid-3-cols, .grid-4-cols {
        grid-template-columns: 1fr;
    }
    .timeline::after { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-dot { left: 20px; }
    
    .nav-menu {
        position: fixed;
        left: -100%; top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: var(--dark-gray);
        width: 100%;
        height: 100vh;
        transition: 0.3s;
    }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 1rem 0; }
    .hamburger { display: block; z-index: 1001; }
    .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); }

    .hero-title { font-size: 3rem; }
    .project-grid { column-count: 1; }
}