/*
Theme Name: FixitPro Styles
Description: Premium stylesheet for FixitPro - Solar & Handyman WordPress Theme
Version: 1.0.0
Author: Webprompt
*/

/* --------------------------------------------------------------
   1. VARIABLES (Easy Customization)
-------------------------------------------------------------- */
:root {
    --primary: #0066cc;       /* Corporate Blue */
    --primary-dark: #004c99;
    --secondary: #10b981;     /* Success Green */
    --accent: #f59e0b;        /* Alert/CTA Orange */
    
    --text-main: #1e293b;     /* Dark Slate */
    --text-light: #64748b;    /* Light Slate */
    --bg-light: #f8fafc;      /* Off-white Background */
    --white: #ffffff;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px -10px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease-in-out;
}

/* --------------------------------------------------------------
   2. RESET & TYPOGRAPHY
-------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1.5rem; }

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn, .btn-primary, .btn-quote, button[type="submit"] {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    transition: var(--transition);
}

.btn:hover, .btn-primary:hover, .btn-quote:hover, button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
    color: var(--white);
}

/* --------------------------------------------------------------
   3. HEADER & NAVIGATION
-------------------------------------------------------------- */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

/* Sticky State (Added via JS) */
.site-header.is-sticky {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding h1 { font-size: 1.8rem; margin: 0; }
.site-branding a { color: var(--text-main); }

/* Main Menu */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 16px;
}

.main-navigation a:hover { color: var(--primary); }
.menu-toggle { display: none; } /* Hidden on desktop */

/* --------------------------------------------------------------
   4. HERO SECTION
-------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    padding: 180px 0 120px; /* Extra padding for floating cards */
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 60px;
    position: relative;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.hero-section p {
    color: #cbd5e1;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* --------------------------------------------------------------
   5. FLOATING SERVICE CARDS
-------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: -100px; /* Negative margin creates floating effect */
    position: relative;
    z-index: 10;
    padding-bottom: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--secondary);
}

.service-icon {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0; }

/* --------------------------------------------------------------
   6. COST CALCULATOR
-------------------------------------------------------------- */
.calc-section {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.calc-box {
    background: var(--white);
    max-width: 550px;
    margin: 0 auto;
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
}

.calc-input {
    width: 100%;
    padding: 15px;
    margin: 15px 0 25px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-body);
    transition: 0.3s;
}

.calc-input:focus {
    border-color: var(--primary);
    outline: none;
}

.calc-btn {
    width: 100%;
    background: var(--secondary);
    font-size: 18px;
}

.calc-btn:hover {
    background: #059669; /* Darker Green */
}

/* Success Box Result */
.success-box {
    margin-top: 25px;
    padding: 20px;
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 8px;
    color: #064e3b;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------
   7. FOOTER
-------------------------------------------------------------- */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.widget-title { color: var(--white); font-size: 1.2rem; margin-bottom: 25px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: var(--secondary); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 12px; }

/* --------------------------------------------------------------
   8. MOBILE RESPONSIVENESS
-------------------------------------------------------------- */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        color: var(--text-main);
        font-size: 26px;
        cursor: pointer;
        padding: 0;
    }

    .main-navigation ul {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px;
        text-align: center;
        gap: 20px;
        border-top: 1px solid #eee;
    }

    /* JS Toggles this class */
    .main-navigation.toggled ul { display: flex; }

    .btn-quote { display: none; } /* Hide quote button on mobile */
    
    .hero-section h1 { font-size: 2.5rem; }
    .hero-section { padding: 140px 0 80px; }
}