/* 
    YEG Exteriors - Design System
*/

:root {
    --primary-color: #2F2D2A; /* Slate/Grout */
    --secondary-color: #Fdfbf8; /* Light Sand/Limestone */
    --accent-color: #ffc107; /* Star gold */
    --text-color: #4A4540; /* Dark Stone */
    --heading-font: 'Anton', sans-serif;
    --body-font: 'Montserrat', sans-serif;
    --section-padding: 100px 0;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    font-weight: 300;
    padding-top: 80px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    z-index: 1000;
    background-color: #262626; /* Solid thick header matching logo */
    transition: var(--transition-speed);
}

.main-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Logo container stripped of drop */
.logo {
    background-color: transparent;
    padding: 0;
    margin-left: 30px; 
    z-index: 1005;
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
}

.desktop-logo {
    max-height: 60px; /* Fits exactly within header */
    transition: max-height 0.3s ease;
}

.mobile-logo {
    display: none;
}

.main-header.scrolled .logo {
    padding-bottom: 0px;
}

.main-header.scrolled .desktop-logo {
    max-height: 50px;
}

/* Navigation Menu */
.nav-menu {
    background-color: transparent; 
    padding: 0 40px 0 0;
    height: 80px; 
    display: flex;
    align-items: center;  /* Vertically center the links */
    justify-content: flex-end; /* Push links to the right */
}

.main-header.scrolled .nav-menu {
    height: 70px;
}

.close-menu {
    display: none;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 35px; /* More breathable gap */
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap; /* Prevent wrapping completely */
}

.nav-menu ul li a {
    color: #fff;
    font-size: 16px; /* Larger font size */
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    white-space: nowrap; /* Forces links to stay exactly on 1 line */
}

.nav-menu ul li a:hover {
    color: #888;
}

/* Hamburger Toggle (Mobile Only) */
.desktop-hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 10px;
    z-index: 1005;
}

.desktop-hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.3s;
}

.nav-menu ul li.separator {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 15px 0;
}

/* Hero Section */
.hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
    z-index: 5;
}

.slide-content h1 {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 20px;
}

.slide-content p {
    color: #ffffff;
    font-size: 1.2rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
    margin-bottom: 30px;
}

.hero-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.hero-pagination .dot {
    width: 12px;
    height: 12px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-pagination .dot.active, 
.hero-pagination .dot:hover {
    background-color: white;
}

/* Vertical Service Blocks */
.service-vertical-block {
    width: 100%;
    min-height: 80vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

/* Internal Page Hero */
.internal-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Sections */
.section-padding {
    padding: var(--section-padding);
}

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

h1, h2, h3, h4, .btn {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

p {
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-speed);
}

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

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Grid Layouts */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Portfolio Gallery */
.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    border-radius: 4px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-overlay h3 {
    color: white;
    margin: 0;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.intro-video {
    width: 100%;
    aspect-ratio: 16/9;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-icon {
    font-size: 4rem;
    color: white;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.3));
}

/* Google Reviews */
.bg-light {
    background-color: #f9f9f9;
}

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

.stars {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Footer */
.main-footer {
    background-color: #2F2D2A; /* Brick Theme Footer */ /* Dark/Gray based on screenshots */
    color: white;
    padding: 80px 0;
}

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

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: white;
}

/* Contact Form */
.custom-form {
    background: #fff;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition-speed);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    .intro-grid {
        display: flex;
        flex-direction: column;
    }
    
    .intro-grid.flex-reverse {
        flex-direction: column-reverse;
    }

    .grid-3, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    h1, h2, h3, .reveal-text {
        font-family: 'Oswald', sans-serif !important;
        font-weight: 700 !important;
    }
    
    h1 {
        font-size: 2.2rem !important;
    }
    
    .section-padding {
        padding: 50px 0 !important;
    }
    
    .service-vertical-block {
        min-height: 50vh;
    }
    
    .service-vertical-block h2 {
        font-size: 2.2rem !important;
    }

    /* Mobile Header Overrides */
    .main-header {
        padding: 5px 20px !important;
    }
    
    .desktop-hamburger {
        display: block;
    }
    
    .nav-menu, .main-header.scrolled .nav-menu {
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh !important;
        background-color: #262626;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        padding: 0;
        z-index: 1010;
        box-shadow: none;
    }

    .nav-menu.active, .main-header.scrolled .nav-menu.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 30px;
    }

    .close-menu {
        display: block;
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 30px;
        color: #fff;
        cursor: pointer;
    }
    
    .hero {
        height: 60vh !important; 
    }
}

/* Global Smooth Animations */
html {
    scroll-behavior: smooth;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
