/* ==========================================================================
   MODERN RESET ARCHITECTURE, GLOBAL VARIABLES, AND BASE ELEMENT RULES
   ========================================================================== */
:root {
    --bg-primary: #ffffff;      
    --bg-secondary: #f8f9fa;    
    --text-main: #18181b;       
    --text-muted: #52525b;      
    
    --nav-bg: #070708;          
    --nav-text: #a1a1aa;        
    --nav-border: #1b1e22;      
    
    --accent: #0D6BFF;          
    --accent-glow: rgba(13, 107, 255, 0.08); 
    --border-color: #e4e4e7;    
    
    --font-header: 'Merriweather', Georgia, serif;
    --font-sub: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    /* Consolidated high-performance hardware binned layout transition token */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

/* Modern core default layout box sizing reset rules */
*, ::before, ::after {
    box-sizing: border-box;
}

/* Safely targets elements that natively contain layout-shifting indents */
body, h1, h2, h3, p, ul, ol, figure {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
}

#services, #faq, #about, #contact {
    scroll-margin-top: clamp(90px, 10vw, 140px); 
}

h1, h2, h3 {
    font-family: var(--font-header);
    font-weight: 400;
    color: var(--text-main);
}

.section-sub, .location-tag, .stat-label, .img-label, .quote-form label, .btn, .main-nav a {
    font-family: var(--font-sub);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-sub, .location-tag, .stat-label, .img-label, .quote-form label {
    font-size: 1.1rem;
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    margin-bottom: 3.5rem;
    max-width: 100%; 
}

.section-header h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin: 0.5rem 0 1rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1.15rem; 
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 1.5px;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
    box-shadow: 0 6px 20px rgba(13, 107, 255, 0.2);
    transform: translateY(-1px);
}

.btn-text {
    color: var(--accent);
    padding-left: 0.5rem;
}

.btn-text:hover { padding-left: 0.8rem; }
/* ==========================================================================
   SITE STRUCTURE LAYOUT COMPONENTS & NAVIGATION MODULES
   ========================================================================== */
.site-header {
    border-bottom: 1px solid var(--nav-border);
    position: sticky;
    top: 0;
    background-color: rgba(7, 7, 8, 0.9); 
    backdrop-filter: blur(20px) saturate(180%); 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 140px; 
    padding: 0 2rem;
    transition: var(--transition);
}

.logo-link { display: flex; align-items: center; height: 100%; text-decoration: none; }
.header-logo { max-height: 96px; width: auto; object-fit: contain; display: block; }
.main-nav ul { display: flex; align-items: center; list-style: none; gap: 2.5rem; }

.main-nav a {
    text-decoration: none;
    color: var(--nav-text); 
    font-size: 1.25rem;
    position: relative;
    padding: 0.35rem 0;
    transition: var(--transition);
}

.main-nav a:hover { color: #ffffff; }
.main-nav a::after {
    content: ''; position: absolute; bottom: -2px; left: 50%; width: 0; height: 2px;
    background-color: var(--accent); transition: var(--transition); transform: translateX(-50%);
}
.main-nav a:hover::after { width: 100%; }

.main-nav .btn-secondary {
    padding: 0.5rem 1.5rem; border-radius: 4px; border: none; background-color: #ffffff; 
    color: #000000; font-weight: 500;
}
.main-nav .btn-secondary:hover {
    background-color: var(--accent); color: #ffffff;
    box-shadow: 0 4px 15px rgba(13, 107, 255, 0.4); transform: translateY(-1px);
}

/* Prevents the underline decoration from rendering on secondary buttons */
.main-nav .btn-secondary::after {
    display: none !important;
    content: none !important;
}
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 24px; height: 18px; background: transparent; border: none; cursor: pointer; z-index: 110; }
.hamburger-bar { width: 100%; height: 2px; background-color: #ffffff; transition: var(--transition); }

/* ==========================================================================
   DYNAMIC RESPONSIVE SOCIAL MEDIA ENGINE (DESKTOP DISPOSITION)
   ========================================================================== */
.social-icon-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Desktop Contact Block Separation Layout Track */
.desktop-contact-social {
    justify-content: center; 
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    padding-top: 2rem;
    width: 100%;
}

/* Hide the duplicate Mobile Drawer entry completely while on Desktop layout tracks */
.mobile-drawer-social-item {
    display: none !important;
}

.social-icon-link {
    display: inline-block;
    line-height: 0;
    transition: var(--transition);
}

/* Vector path path-conforming interactive drop shadow glow effect */
.social-icon-link:hover,
.social-icon-link:active {
    filter: drop-shadow(0 0 5px rgba(13, 107, 255, 0.8));
    opacity: 0.95;
}

.social-icon-img {
    width: 64px; 
    height: 64px;
    display: block;
    object-fit: contain;
}

/* ==========================================================================
   PAGE HERO & SERVICE SECTIONS
   ========================================================================== */
.hero { 
    position: relative; 
    z-index: 2; 
    padding: 10rem 0; 
    background-image: linear-gradient(to right, #ffffff 55%, transparent 100%), url('img/hero-bg.jpg');
    background-size: cover;
    background-position: right center; 
    background-repeat: no-repeat;
    background-color: #ffffff; 
}

.hero h1 { font-size: 4.5rem; line-height: 1.05; letter-spacing: -0.5px; margin-bottom: 1.5rem; max-width: 700px; }
.hero-lead { font-size: 1.25rem; color: var(--text-muted); max-width: 550px; margin-bottom: 2.5rem; font-weight: 300; }
.hero-philosophy-block { margin-top: 6rem; max-width: 750px; border-top: 1px solid var(--border-color); padding-top: 3.5rem; }
.hero-philosophy-block h2 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 1.25rem; }
.hero-philosophy-block p:not(.section-sub) { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.services-section { padding: 7rem 0; background-color: #ffffff; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); position: relative; z-index: 2; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03); }
.services-modern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem 2.5rem; }
.service-card { border: 1px solid #e4e4e7; border-top: 3px solid var(--accent); padding: 2.5rem 2rem; border-radius: 6px; background-color: #ffffff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02); transition: var(--transition); position: relative; }
.service-card h3 { font-size: 1.6rem; margin-bottom: 0.75rem; letter-spacing: -0.3px; }
.service-card p { font-size: 0.95rem; color: var(--text-muted); font-weight: 300; line-height: 1.6; }
/* ==========================================================================
   DYNAMIC INTERACTION MATRIX, ESTIMATOR SYSTEM & MEDIA DRAWER RESPONSIVENESS
   ========================================================================== */
.faq-section { padding: 7rem 0; background-color: #f8f9fa; border-bottom: 1px solid var(--border-color); position: relative; z-index: 2; }
.faq-modern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 4rem 3.5rem; }
.faq-item { background-color: #ffffff; padding: 2.5rem; border-radius: 6px; border: 1px solid #e4e4e7; border-left: 4px solid var(--accent); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02); position: relative; }
.faq-item h3 { font-size: 1.4rem; margin-bottom: 0.75rem; line-height: 1.3; color: var(--text-main); }
.faq-item p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* Highly compatible, clean inline links matching FAQ paragraphs across all platforms */
.inline-text-link, 
.inline-text-link:visited {
    color: var(--accent);
    text-decoration: underline transparent;
    text-underline-offset: 3px;             
    text-decoration-thickness: 1px;         
    font-weight: 500;
    transition: text-decoration-color 0.25s ease;
}

.inline-text-link:hover, 
.inline-text-link:active {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.owner-about-section { padding: 7rem 0; background-color: #ffffff; position: relative; z-index: 2; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.02), 0 20px 40px rgba(0, 0, 0, 0.03); }
.owner-photo-frame { width: 100%; max-width: 380px; height: 420px; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; background-color: var(--bg-secondary); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); margin: 0 auto; }
.owner-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(13,107,255,0.02) 0%, transparent 100%); background-color: #f4f7fa; }
.blueprint-label { letter-spacing: 1.5px; color: var(--text-muted); opacity: 0.5; font-size: 1rem; }

.contact-section { padding: 8rem 0; background-color: #f8f9fa; border-top: 1px solid var(--border-color); position: relative; z-index: 2; }

/* Modern fluid layout engine: handles desktop side-by-side columns and mobile stacking automatically */
.owner-about-container, .contact-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: clamp(2rem, 5vw, 5rem); 
    align-items: start; 
}

.owner-text h2 { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.1; }
.owner-text p:not(.section-sub) { margin-bottom: 1.25rem; color: var(--text-muted); font-size: 1.05rem; }

.contact-info p:not(.section-sub) { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }
.contact-details { margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }
.contact-details p { margin-bottom: 0.75rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }
.quote-form input, .quote-form textarea { width: 100%; padding: 0.85rem; background-color: rgba(248, 249, 250, 0.9); border: 1px solid var(--border-color); border-radius: 4px; font-family: var(--font-body); font-size: 0.95rem; color: var(--text-main); transition: var(--transition); }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); background-color: var(--bg-primary); }
.quote-form button[type="submit"] { display: block; width: 100%; text-align: center; }

.file-upload-wrapper { position: relative; width: 100%; }
.file-input-hidden { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 3; }
.file-upload-trigger { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; background-color: rgba(248, 249, 250, 0.9); border: 2px dashed var(--border-color); border-radius: 6px; text-align: center; transition: var(--transition); }
.upload-icon { font-size: 1.75rem; color: var(--accent); margin-bottom: 0.5rem; line-height: 1; }
.upload-text { font-size: 0.95rem; color: var(--text-main); font-weight: 500; }
.upload-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.file-upload-wrapper:hover .file-upload-trigger, .file-input-hidden:focus ~ .file-upload-trigger { border-color: var(--accent); background-color: var(--bg-primary); box-shadow: 0 0 15px var(--accent-glow); }
.file-preview-gallery { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.file-preview-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.85rem; background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 4px; font-size: 0.85rem; color: var(--text-main); }
.file-error-alert { color: #dc2626; font-size: 0.85rem; margin-top: 0.5rem; font-weight: 500; }

/* Clean, flat layout system for legal navigation links in footer section */
.site-footer { padding: 4rem 0; border-top: 1px solid var(--nav-border); background-color: var(--nav-bg); color: var(--nav-text); font-size: 1.15rem; letter-spacing: 1.5px; position: relative; z-index: 2; }
.footer-container { display: flex; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; transition: var(--transition); }
.site-footer p:last-child { color: #ffffff; }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { color: var(--nav-text); text-decoration: none; transition: var(--transition); }
.footer-legal-links a:hover { color: #ffffff; }

/* ==========================================================================
   RESPONSIVE VIEWPORT BREAKPOINT OVERRIDES (MOBILE DRAWER DISPOSITION)
   ========================================================================== */
@media (max-width: 1040px) {
    body.nav-open { overflow: hidden; position: fixed; width: 100%; }
    .header-container { height: 90px; }
    .header-logo { max-height: 65px; max-width: 75% }
    .hero { padding: 6rem 0 4rem 0; background-image: linear-gradient(to bottom, rgba(255,255,255,0.96) 0%, #ffffff 100%), url('img/hero-bg.jpg'); background-position: center center; }
    .menu-toggle { display: flex; }
    .main-nav { position: fixed; top: 0; right: 0; width: 80%; max-width: 320px; height: 100vh; background-color: #0d0f12; border-left: 1px solid var(--nav-border); padding: 7rem 2rem 2rem 2rem; box-shadow: -10px 0 30px rgba(0,0,0,0.7); display: none; z-index: 999; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 2.5rem; }
    .main-nav a { font-size: 1.25rem; color: #ffffff; }
    .main-nav .btn { display: block; width: 100%; text-align: center; }
    .main-nav .btn-secondary { background-color: var(--accent) !important; color: #ffffff !important; }
    
    .menu-toggle.active .hamburger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--accent); }
    .menu-toggle.active .hamburger-bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .hamburger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--accent); }
    
    .hero h1 { font-size: 2.8rem; }
    .hero-philosophy-block h2 { font-size: 2rem; }
    .section-header h2, .owner-text h2, .contact-info h2 { font-size: 2.4rem; }
    .services-section, .faq-section, .owner-about-section { width: 100%; padding: 4rem 0; }
    .services-modern-grid { padding: 0 1rem; gap: 1.5rem; }
    .faq-modern-grid { grid-template-columns: 1fr; gap: 2rem; padding: 0 1rem; }
    .faq-item { padding: 1.5rem; }
    .owner-about-container, .contact-container { padding: 2rem 1.5rem; }
    .footer-container { flex-direction: column; gap: 0.75rem; text-align: center; }
    
    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
        margin-top: 0.5rem;
    }

    /* Hide the Contact Card row completely to avoid overlaps and form collisions on mobile devices */
    .desktop-contact-social {
        display: none !important;
    }

    /* Unhide the Mobile Drawer list element inside the pop-out hamburger menu */
    .mobile-drawer-social-item {
        display: block !important;
        margin-top: 2rem; 
        padding-left: 0.35rem; 
        width: 100%;
    }

    /* Recalibrate layout scaling variables specifically for the mobile slide-out drawer */
    .mobile-drawer-social-item .social-icon-row {
        justify-content: flex-start; 
        gap: 1.25rem;
    }

    .mobile-drawer-social-item .social-icon-img {
        width: 32px; 
        height: 32px;
    }
}

/* ==========================================================================
   FULLY COMPATIBLE PIPELINE SCROLL INTERSECTION MODULE RULES
   ========================================================================== */
.reveal-on-scroll { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: var(--transition); 
    will-change: opacity, transform; 
}

.reveal-on-scroll.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
    transition-delay: calc(var(--item-index, 1) * 0.12s);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
}
