/* =========================================================================
   VARIABLES & DESIGN TOKENS (LIGHT THEME)
   ========================================================================= */
:root {
    /* Colors based on Logo */
    --clr-primary: #183d50; /* Deep Blue */
    --clr-accent: #b17752; /* Rust/Orange */
    
    --clr-bg: #FFFFFF; /* Pure white background */
    --clr-bg-surface: #F4F6F8; /* Light grey for sections */
    
    --clr-text-main: #1A202C; /* Dark text */
    --clr-text-muted: #4A5568; /* Grey text */
    --clr-border: #E2E8F0;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Sizes */
    --max-width: 1320px;
    --nav-height: 100px;
    --border-radius-sm: 4px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================================
   RESET & BASE 
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--clr-bg);
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -2px; }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -1px; }
h3 { font-size: 1.8rem; letter-spacing: -0.5px; }
p { margin-bottom: 1.5rem; color: var(--clr-text-muted); font-size: 1.1rem; }

.accent-text { color: var(--clr-accent); }

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(177, 119, 82, 0.1);
    color: var(--clr-accent);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(177, 119, 82, 0.2);
}

/* =========================================================================
   LAYOUT & UTILITIES
   ========================================================================= */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding { padding: 8rem 0; }
.bg-surface { background-color: var(--clr-bg-surface); }
.text-center { text-align: center; }
.section-title { margin-bottom: 1.5rem; }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0; /* Brutalist/Lux sharp edges */
    font-weight: 600;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--clr-primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--clr-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(177, 119, 82, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}
.btn-secondary:hover {
    background: var(--clr-primary);
    color: #fff;
}

.btn-large { padding: 1.2rem 2.8rem; }
.btn-block { width: 100%; }

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--clr-bg);
    z-index: 100;
    transition: all var(--transition-normal);
    border-bottom: 1px solid var(--clr-border);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 80px;
}

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

/* User wants Logo height explicitly at 90px */
.logo img {
    height: 90px;
    object-fit: contain;
    transition: height var(--transition-normal);
}

.navbar.scrolled .logo img {
    height: 60px; /* shrink slightly when scrolled */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--clr-primary);
}

.nav-link:not(.btn-primary):hover { color: var(--clr-accent); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--clr-primary);
}

/* =========================================================================
   EDITORIAL HERO SECTION
   ========================================================================= */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 4rem);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F7FA 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 2rem;
}

.hero-overlapping-box {
    margin-top: 3rem;
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 40px rgba(24, 61, 80, 0.08);
    border-left: 4px solid var(--clr-accent);
    max-width: 500px;
}

.hero-overlapping-box h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
.hero-overlapping-box p {
    font-size: 1rem;
    margin-bottom: 0;
}

.hero-images {
    position: relative;
    height: 600px;
}

.hero-img-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 70%;
    object-fit: cover;
    border-radius: 0 var(--border-radius-lg) 0 var(--border-radius-lg);
    box-shadow: 0 30px 60px rgba(24, 61, 80, 0.15);
    z-index: 1;
}

.hero-img-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 50%;
    object-fit: cover;
    border-radius: var(--border-radius-lg) 0 var(--border-radius-lg) 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border: 10px solid #fff;
}

/* =========================================================================
   EDITORIAL ABOUT SECTION
   ========================================================================= */
.about {
    position: relative;
    padding: 10rem 0;
}

.about-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.about-image-wrapper {
    position: relative;
    z-index: 1;
    transform: translate(-3rem, 3rem);
}

.about-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(24, 61, 80, 0.15);
}

.about-content-card {
    background: var(--clr-primary);
    color: #fff;
    padding: 5rem 4rem;
    box-shadow: 30px 30px 0 rgba(177, 119, 82, 1);
    z-index: 2;
    position: relative;
}

.about-content-card h2 { color: #fff; }
.about-content-card p { color: #A0AEC0; }
.about-content-card .badge { border-color: rgba(255,255,255,0.2); color: #fff; background: rgba(255,255,255,0.1); }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item h3 { font-size: 3rem; color: var(--clr-accent); margin-bottom: 0; }
.stat-item p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: #fff; }

/* =========================================================================
   MASONRY PHOTO-GRID SERVICES
   ========================================================================= */
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.services-header .header-text { max-width: 600px; }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 350px;
    gap: 1rem;
}

.photo-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background-color: var(--clr-primary);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    opacity: 0.8;
}

.photo-card:hover img {
    transform: scale(1.1);
    opacity: 0.4;
}

.photo-card-content {
    position: absolute;
    inset: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(24, 61, 80, 0.9) 0%, transparent 60%);
}

.photo-card-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.photo-card-content p {
    color: #E2E8F0;
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.photo-card:hover .photo-card-content h3 { transform: translateY(0); }
.photo-card:hover .photo-card-content p { opacity: 1; transform: translateY(0); }

/* Spans for 8 items */
.photo-card:nth-child(1) { grid-column: span 2; grid-row: span 2; } /* Parking Lot */
.photo-card:nth-child(2) { grid-column: span 1; grid-row: span 1; } /* Handyman */
.photo-card:nth-child(3) { grid-column: span 1; grid-row: span 1; } /* Drywall */
.photo-card:nth-child(4) { grid-column: span 1; grid-row: span 1; } /* Tiles */
.photo-card:nth-child(5) { grid-column: span 1; grid-row: span 1; } /* Locksmith */
.photo-card:nth-child(6) { grid-column: span 2; grid-row: span 1; } /* Fence */
.photo-card:nth-child(7) { grid-column: span 1; grid-row: span 1; } /* Painting */
.photo-card:nth-child(8) { grid-column: span 1; grid-row: span 1; } /* Janitorial */

/* =========================================================================
   CONTACT SECTION
   ========================================================================= */
.contact-wrapper {
    background: var(--clr-primary);
    color: #fff;
    padding: 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    position: relative;
}

.contact-wrapper h2 { color: #fff; }
.contact-wrapper p { color: #A0AEC0; }

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--clr-accent);
    outline: none;
}

.bg-pattern {
    position: absolute;
    top: 0; right: 0;
    width: 50%; height: 100%;
    background-image: radial-gradient(var(--clr-accent) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    background: #0D232E;
    color: #CBD5E1;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 100px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.footer-links h4 { color: #fff; margin-bottom: 1.5rem; }
.footer-links a { display: block; margin-bottom: 0.8rem; color: #94A3B8; }
.footer-links a:hover { color: var(--clr-accent); }

/* =========================================================================
   ANIMATIONS & MEDIA QUERIES
   ========================================================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

@media (max-width: 1024px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; }
    .about-grid-wrapper { grid-template-columns: 1fr; }
    .about-image-wrapper { transform: none; margin-top: 3rem; height: 400px; }
    .about-content-card { margin: 0; padding: 4rem 3rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0; width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-150%);
        border-bottom: 1px solid var(--clr-border);
    }
    .nav-links.active { transform: translateY(0); }
    .mobile-menu-btn { display: block; font-size: 1.8rem; }
    
    .contact-wrapper { grid-template-columns: 1fr; padding: 3rem 2rem; }
    .footer-content { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: 1fr; }
    .photo-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
}
