/* 
 * Byars Property Maintenance - Master Stylesheet
 */

/* ==========================================================================
   1. Core Variables & Global Reset
   ========================================================================== */
:root {
    --bg-color: #f2f4f1;
    --bg-secondary: #e6e8e5;
    --card-bg: #ffffff;
    --text-main: #2c3e30;
    --text-muted: #5f6d62;
    --accent: #4a7c59;
    --accent-hover: #365e41;
    --gold: #d4a373;
    --border-color: #dbe0dc;
    --leaf-radius: 20px;
    --shadow-soft: 0 4px 20px rgba(44, 62, 48, 0.08);
    --shadow-depth: 0 10px 20px rgba(0,0,0,0.05), 0 20px 40px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */
h1, h2, h3 { 
    font-family: 'Merriweather', serif; 
    color: var(--text-main); /* Restored brand color */
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
    font-weight: 600;
}

.text-center { text-align: center; }

/* ==========================================================================
   3. Layout Components
   ========================================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.narrow-container { max-width: 700px; }

.section { padding: 100px 0; }
.bg-secondary { background-color: var(--bg-secondary); }

/* Standard Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Services Grid - Forced 4 Columns on Desktop */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Process Grid - Forced 3 Columns on Desktop */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* ==========================================================================
   4. Navigation
   ========================================================================== */
.split-nav {
    display: flex;
    align-items: center;
    padding: 10px 40px;
    position: sticky;
    top: 0;
    background-color: rgba(242, 244, 241, 0.98);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.nav-left-logo { flex: 1; display: flex; justify-content: flex-start; }
.nav-center-links { flex: 0 0 auto; display: flex; gap: 30px; align-items: center; }

.nav-center-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    transition: color 0.3s;
}

.nav-center-links a:hover { color: var(--accent); }

.nav-right-cta { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 20px; }

.badge-logo { height: 90px; width: auto; transition: transform 0.3s ease; }

.nav-cta {
    background-color: var(--accent);
    color: white !important;
    padding: 10px 24px;
    border-radius: var(--leaf-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.nav-cta:hover { background-color: var(--accent-hover); }

.login-link {
    color: var(--text-muted) !important;
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: var(--leaf-radius);
    font-size: 0.85rem;
}

.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero { display: flex; justify-content: center; align-items: center; background-color: var(--bg-color); }

.hero-background-wrapper {
    width: 100%;
    background-image: url('images/IMG_7866.webp');
    background-size: cover;
    background-position: center 85%;
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-card {
    background-color: white;
    padding: 60px 50px;
    max-width: 650px;
    width: 100%;
    text-align: center;
    border-radius: var(--leaf-radius);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-depth);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    z-index: 2;
}

.hero h1 { 
    font-size: 2.8rem; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 20px; 
    letter-spacing: -1px; 
    color: var(--text-main);
}
.hero p { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
    margin-bottom: 35px; 
    max-width: 550px; 
    margin-left: auto; 
    margin-right: auto; 
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* ==========================================================================
   6. About Us
   ========================================================================== */
.split-layout { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.split-text { flex: 1; min-width: 300px; text-align: left; }

.split-graphic { flex: 1; min-width: 300px; display: flex; justify-content: center; }
.feature-photo {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--leaf-radius);
    box-shadow: var(--shadow-soft);
}

.feature-list { list-style: none; padding: 0; margin-top: 30px; margin-bottom: 40px; }
.feature-list li { margin-bottom: 15px; font-size: 1rem; display: flex; align-items: center; gap: 15px; font-weight: 500; }
.feature-list i { color: var(--accent); font-size: 1.1rem; }

/* ==========================================================================
   7. Generic Card Styles (Services, Reviews, Process)
   ========================================================================== */
.card, .process-step {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--leaf-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover, .process-step:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }

.icon-box {
    width: 60px; height: 60px;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--accent);
    margin-bottom: 25px;
}

.price-badge {
    background-color: white; border: 1px solid var(--accent); color: var(--accent);
    padding: 5px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 700;
}

.card h3, .process-step h3 { margin-top: 0; font-size: 1.3rem; margin-bottom: 15px; }
.card p, .process-step p { color: var(--text-muted); font-size: 0.95rem; flex-grow: 1; }

.card-link {
    text-decoration: none; color: var(--accent); font-weight: 600; font-size: 0.9rem;
    text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px;
}

/* Reviews */
.review-card { 
    padding: 0; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column;
}
.review-card .card-image { width: 100%; height: 200px; background-size: cover; background-position: center; border-bottom: 1px solid var(--border-color); }
.review-content { 
    padding: 30px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}
.review-content p { flex-grow: 1; } /* Pushes label to bottom */

/* Process Numbers */
.step-number {
    font-family: 'Merriweather', serif; font-size: 2.5rem; font-weight: 900;
    color: var(--accent); margin-bottom: 10px; display: block;
}

/* ==========================================================================
   8. Components
   ========================================================================== */
.button-group { display: flex; justify-content: center; gap: 15px; }
.primary-btn {
    background-color: var(--accent); color: white; padding: 12px 30px; border-radius: 50px;
    text-decoration: none; font-weight: 600; border: none; cursor: pointer; font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3); transition: all 0.3s ease;
}
.primary-btn:hover { background-color: var(--accent-hover); transform: translateY(-2px); }

.secondary-btn {
    background-color: transparent; border: 2px solid var(--border-color); color: var(--text-main);
    padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 600;
    font-size: 0.9rem; transition: all 0.3s;
}
.secondary-btn:hover { border-color: var(--accent); color: var(--accent); }

.comparison-slider { width: 100%; max-width: 800px; margin: 0 auto; position: relative; border-radius: var(--leaf-radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.comparison-image-wrapper { position: relative; height: 400px; overflow: hidden; }
.comparison-image-wrapper img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.img-before { clip-path: inset(0 50% 0 0); }
.slider-range { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: col-resize; z-index: 10; }
.slider-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.2); z-index: 5; display: flex; align-items: center; justify-content: center; color: var(--accent); }

.contact-box { background-color: var(--card-bg); padding: 50px; border-radius: var(--leaf-radius); box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.85rem; }
input, select, textarea { width: 100%; padding: 12px; background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background-color: #fff; }
.submit-btn { width: 100%; margin-top: 10px; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
footer { text-align: center; padding: 60px 20px; color: var(--text-muted); border-top: 1px solid var(--border-color); }
.footer-logo { height: 120px; margin-bottom: 30px; opacity: 0.9; }
.footer-badges { margin-bottom: 30px; }
.badge { display: inline-block; background: var(--card-bg); padding: 5px 15px; border-radius: 50px; font-size: 0.8rem; margin: 0 5px; border: 1px solid var(--border-color); }
.social-links a { color: var(--text-muted); margin: 0 10px; font-size: 1.5rem; transition: color 0.3s; }
.social-links a:hover { color: var(--accent); }
.footer-legal a { color: var(--text-muted); text-decoration: none; margin: 0 10px; font-size: 0.85rem; }
.area-list span { display: inline-block; background-color: var(--card-bg); padding: 10px 20px; margin: 5px; border-radius: 50px; border: 1px solid var(--border-color); }
.author-block { display: flex; flex-direction: column; margin-top: 20px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.customer-type { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }

/* ==========================================================================
   10. Mobile Responsive Overrides
   ========================================================================== */
@media (max-width: 1024px) {
    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; text-align: center; }
    
    .split-nav { 
        padding: 8px 15px; 
        justify-content: flex-end; 
        position: sticky;
    }
    .nav-left-logo { 
        position: absolute; 
        left: 50%; 
        transform: translateX(-50%); 
        flex: none; 
    }
    .badge-logo { height: 50px; }
    .nav-cta { display: none; }
    .mobile-toggle { display: block; position: relative; z-index: 1002; }

    .nav-center-links {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: white; flex-direction: column; padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-top: 1px solid var(--border-color);
    }
    .nav-center-links.active { display: flex; }
    .nav-center-links a { padding: 15px; width: 100%; text-align: center; border-bottom: 1px solid var(--border-color); }

    .hero-background-wrapper { padding: 80px 15px 100px 15px; background-position: center right; }
    .hero-card { padding: 40px 25px; max-width: 92%; }
    .hero h1 { font-size: 1.8rem; }
    .hero .primary-btn { animation: pulse 2s infinite; padding: 16px 30px; }

    @keyframes pulse {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 124, 89, 0.4); }
        70% { transform: scale(1.02); box-shadow: 0 0 0 15px rgba(74, 124, 89, 0); }
        100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 124, 89, 0); }
    }

    .split-layout { flex-direction: column; text-align: center; }
    .split-text { text-align: center; }
    .feature-list { display: inline-block; text-align: left; margin: 20px auto; }

    /* Horizontal Scroller Fixes */
    .services-grid, .process-grid, .grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 20px 30px 20px;
        scroll-padding-left: 20px;
        justify-content: flex-start !important;
    }

    .services-grid::-webkit-scrollbar, .process-grid::-webkit-scrollbar, .grid::-webkit-scrollbar {
        display: block; height: 4px;
    }
    .services-grid::-webkit-scrollbar-thumb, .process-grid::-webkit-scrollbar-thumb, .grid::-webkit-scrollbar-thumb {
        background: var(--accent); border-radius: 10px;
    }

    .card, .process-step, .review-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
        text-align: center;
        min-height: auto;
    }

    .icon-box { margin: 0 auto 15px auto; }
    .card-header { flex-direction: column; align-items: center; }
    .card p { text-align: center; }
    .card-link { margin: 0 auto; }
    
    .review-card .card-image { height: 160px; }
    .step-number { font-size: 2rem; }
    .comparison-image-wrapper { height: 280px; }
}

/* Page Loader */
#loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color); z-index: 9999;
    display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease;
}
.loader-blade {
    width: 50px; height: 50px; border: 4px solid var(--accent);
    border-top: 4px solid var(--bg-color); border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
