/* ==========================================
   SAEED REMODELING LLC - STYLESHEET
   ========================================== */

:root {
    --primary: #0f172a;       /* Deep Midnight Slate */
    --secondary: #2563eb;     /* Strong Royal Blue */
    --accent: #d97706;        /* Accent Gold / Warm Wood tone */
    --text-dark: #f8fafc;     /* Bright White/Slate for crisp dark reading */
    --text-light: #94a3b8;    /* Muted Slate for secondary text */
    --bg-light: #1e293b;      /* Dark charcoal canvas background */
    --white: #111827;         /* Deep rich black-gray for cards */
    --font-stack: 'Arial', sans-serif;
}

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

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* --- NAVIGATION BAR --- */
header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #334155;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--text-dark);
}

.cta-nav {
    background-color: var(--secondary);
    color: var(--text-dark) !important;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-nav:hover {
    background-color: var(--accent);
}

/* --- GLOBAL HERO / BANNER --- */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), 
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    color: var(--text-dark);
    padding: 140px 20px;
    text-align: center;
    border-bottom: 1px solid #334155;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

/* Targeted Sub-page Hero Shorthand IDs */
#services-hero, #portfolio-hero, #about-hero {
    padding: 80px 20px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: #f8fafc;
    text-decoration: none;
    padding: 14px 32px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

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

/* --- SECTION STRUCTURES --- */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.section-title.left-align {
    text-align: left;
    margin-bottom: 25px;
}

.section-title.left-align::after {
    margin: 12px 0 0 0;
}

#process-section {
    background-color: #0f172a;
    max-width: 100%;
}

#about-content-wrapper {
    max-width: 800px;
}

/* --- GRIDS & CARDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-3.vertical-stack {
    grid-template-columns: 1fr;
}

.card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
    border-top: 4px solid var(--accent);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px;
    align-items: center;
}

.card-flex-row.reverse {
    direction: rtl;
}

.card-flex-row.reverse .card-text-side {
    text-align: left;
    direction: ltr;
}

.card-img-side {
    width: 100%;
    max-width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
}

.card-text-side {
    flex: 1;
    min-width: 300px;
}

.card-text-side h2 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.card-text-side p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.card-text-side ul, #about-content-wrapper ul {
    margin-left: 20px;
    color: var(--text-dark);
}

.card-text-side li, #about-content-wrapper li {
    margin-bottom: 8px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.process-step {
    text-align: center;
    padding: 20px;
}

.process-step .number {
    font-size: 42px;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 10px;
}

/* --- BEFORE/AFTER SLIDER (PORTFOLIO) --- */
.slider-container {
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.img-before {
    background-image: url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=800&q=80');
}

.img-after {
    background-image: url('https://images.unsplash.com/photo-1556911220-e15b29be8c8f?auto=format&fit=crop&w=800&q=80');
    width: 50%;
    border-right: 3px solid #f8fafc;
}

.slider-input {
    position: absolute;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.slider-label {
    position: absolute;
    bottom: 15px;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    pointer-events: none;
}
.label-before { left: 15px; }
.label-after { right: 15px; }

.slider-caption {
    text-align: center; 
    color: var(--text-light); 
    font-style: italic; 
    margin-top: 15px;
}

.gallery-title-break {
    margin-top: 60px;
}

/* --- STATIC GALLERY --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.portfolio-item {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.portfolio-info {
    padding: 20px;
}

/* --- CONTACT FORM --- */
.contact-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    border: 1px solid #475569;
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-stack);
    color: var(--text-dark);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.form-submit-btn {
    border: none; 
    width: 100%; 
    cursor: pointer;
}

/* --- ABOUT CTA BOX --- */
.about-cta-panel {
    background-color: var(--white); 
    color: var(--text-dark); 
    padding: 30px; 
    border-radius: 6px; 
    text-align: center; 
    border: 1px solid #334155;
}

.about-cta-panel p {
    margin-bottom: 20px; 
    color: var(--text-light);
}

.about-text-lead {
    font-size: 18px; 
    margin-bottom: 20px; 
    color: var(--text-dark);
}

.about-text-body {
    margin-bottom: 20px; 
    color: var(--text-light);
}

.about-list-title {
    color: var(--accent); 
    margin: 40px 0 15px 0; 
    font-size: 24px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 40px 20px;
    text-align: center;
    border-top: 5px solid var(--accent);
}

footer p {
    margin-bottom: 10px;
}

.footer-highlight {
    color: var(--text-dark);
    font-weight: 600;
}

/* ==========================================
   📱 MOBILE & TABLET OPTIMIZATIONS (MEDIA QUERIES)
   ========================================== */
@media (max-width: 900px) {
    /* Forces the row items on Services page to behave perfectly on tablets */
    .card-flex-row {
        flex-direction: column !important;
        align-items: stretch;
    }
    .card-img-side {
        max-width: 100%;
        height: 220px;
    }
}

@media (max-width: 768px) {
    /* Navigation re-alignment for small screens */
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
    }
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        font-size: 14px;
    }

    .cta-nav {
        padding: 6px 14px;
    }

    /* Scaling Typography so titles don't wrap awkwardly */
    .hero {
        padding: 80px 15px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    #services-hero, #portfolio-hero, #about-hero {
        padding: 50px 15px;
    }

    .section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    /* Form and card touch target adjustments */
    .contact-wrapper {
        padding: 25px 15px;
    }

    .card {
        padding: 30px 20px;
    }

    /* Scales before/after interactive window safely onto narrow phones */
    .before-after-slider {
        height: 280px;
    }
    
    .slider-label {
        font-size: 10px;
        bottom: 10px;
        padding: 2px 8px;
    }
}