/* 1. Basic Setup & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f4f7f6; /* Light grey background */
    color: #333;
}

/* 2. Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
}

.logo span {
    color: #0984e3; /* Solar Blue Color */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: #636e72;
    margin: 0 15px;
    font-weight: 600;
}

.btn-pdf {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

/* 3. Hero Section (Blue Header) */
.hero {
    background: #0984e3;
    color: white;
    text-align: center;
    padding: 60px 20px 140px; /* neeche space barhao */

}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* 4. Calculator Layout */
.container {
    max-width: 1000px;
    margin: 40px auto; /* FIXED */

    padding: 0 20px;
}

.calculator-card {
background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 1050px;
        margin: 0 auto 40px auto; /* FIXED */

    padding: 40px;
    position: relative; /* Z-index ke liye zaroori hai */
    z-index: 10;

}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* 5. Inputs & Labels */
label {
    display: block;
    font-weight: 700;
    margin: 20px 0 10px;
    color: #2d3436;
}

select, input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    background: #f9f9f9;
}

/* Appliance Section Container */
.appliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

/* Individual Card Styling */
.appliance-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.appliance-card:hover {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.appliance-card i {
    font-size: 1.4rem;
    color: #007bff;
    margin-bottom: 8px;
}

.appliance-card label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    display: block;
}

/* Modern Input Inside Card */
.appliance-card input {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 5px;
    text-align: center;
    font-size: 0.9rem;
    outline: none;
}

.appliance-card span {
    font-size: 0.7rem;
    color: #adb5bd;
    margin-top: 5px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .appliance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.water-toggles label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Naya Professional Button Style */
.btn-generate {
    width: 100%;
    max-width: 400px;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    
    /* Blue Gradient Jo Professional Lagta Hai */
    background: linear-gradient(135deg, #0984e3, #6c5ce7);
    color: white;
    
    /* Soft Shadow for Depth */
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

/* Hover Effect: Button thoda upar aayega aur shadow barhegi */
.btn-generate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.4);
    background: linear-gradient(135deg, #0773c5, #5b4cc4);
}

/* Click Effect */
.btn-generate:active {
    transform: translateY(-1px);
}

/* 7. Results Section (Modern Box) */
.result-grid {
    display: grid;
    /* 4 columns layout for professional desktop view */
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px;
    background: #f1f9ff; /* Light blue background for emphasis */
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
}

.res-item h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #2d3436;
    font-weight: 600;
}

.res-item p {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0984e3; /* Brand blue color */
}

/* Mobile Responsive: 2x2 grid on smaller screens */
@media (max-width: 768px) {
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.main-footer {
    background-color: #1e272e;
    color: #ffffff;
    padding: 80px 0 30px 0;
    margin-top: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding: 0 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-logo span { color: #0984e3; }

.brand-col p {
    color: #b2bec3;
    max-width: 300px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
}

/* Accent line under headings */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: #0984e3;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li { margin-bottom: 15px; }

.footer-col ul li a {
    color: #b2bec3;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: #0984e3;
    padding-left: 5px;
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ffffff;
    background: rgba(255,255,255,0.05);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-links a:hover {
    background: #0984e3;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #636e72;
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .brand-col p { margin: 0 auto; }
    .social-links { justify-content: center; }
}


/* PDF Layout Fixes */
.pdf-mode {
    padding: 40px !important;
    background: white !important;
}

.pdf-mode .btn-generate {
    display: none !important; /* PDF mein button ki zaroorat nahi */
}

.pdf-mode .calculator-card {
    box-shadow: none !important;
    border: 1px solid #eee !important;
}

/* Inputs ko PDF mein text ki tarah dikhana */
.pdf-mode input, .pdf-mode select {
    border: none !important;
    background: transparent !important;
    font-weight: bold !important;
    color: #0984e3 !important;
    padding: 0 !important;
}


/* Premium SEO Section Styles */
.seo-content {
    margin-top: 80px;
    padding-bottom: 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title span {
    color: #0984e3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #2d3436;
    margin-top: 10px;
}

/* Modern Info Cards */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.modern-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #f1f1f1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: #0984e3;
}

.card-icon {
    font-size: 2.5rem;
    color: #0984e3;
    margin-bottom: 20px;
}

.modern-card h3 {
    margin-bottom: 15px;
    color: #2d3436;
}

.card-tag {
    display: inline-block;
    margin-top: 20px;
    background: #e3f2fd;
    color: #0984e3;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Accordion FAQ */
.faq-container {
    background: #f9f9f9;
    padding: 60px 40px;
    border-radius: 30px;
}

details {
    background: white;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
}

summary {
    padding: 20px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #2d3436;
}

summary i {
    font-size: 0.8rem;
    transition: 0.3s;
}

details[open] summary i {
    transform: rotate(180deg);
}

details p {
    padding: 0 20px 20px;
    color: #636e72;
}

/* Logo link ki styling fixed */
.logo-link {
    text-decoration: none;
    color: inherit; /* Yeh browser ka default purple khatam kar dega */
}

/* Isse link ka color hamesha black aur blue hi rahega, chahe click karein ya na karein */
.logo-link:visited, 
.logo-link:active, 
.logo-link:link {
    text-decoration: none;
    color: inherit;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #1e272e; /* "MyOffGrid" part hamesha dark black rahega */
    letter-spacing: -1px;
}

.logo span {
    color: #0984e3; /* "Plan" part hamesha blue rahega */
}


.water-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    gap: 12px;
    margin-top: 10px;
}

.water-toggles label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}


/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
    /* Container padding kam karein taake content ke liye jagah banay */
    .container {
        padding: 0 15px;
    }

    /* Navbar ko stack karein */
    .navbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero Section ki text size kam karein */
    .hero h1, .guides-hero h1 {
        font-size: 1.8rem;
        letter-spacing: -1px;
    }

    /* Layout Grids ko single column karein */
    .layout, .footer-grid-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* Calculator Cards (Appliance List) */
    /* Agar aapne grid use kiya hai to usay 1 ya 2 columns mein adjust karein */
    .appliance-grid { 
        grid-template-columns: 1fr 1fr; /* Mobile par 2 cards sath dikhenge */
        gap: 10px;
    }

    /* Sidebar ko content ke niche bhej dein */
    .sidebar-box {
        position: static;
        margin-top: 20px;
    }

    /* Images aur Placeholders ki height adjust karein */
    .img-placeholder {
        height: 200px;
    }

    /* Water Needs section ko full width karein */
    .water-needs-section {
        padding: 20px;
    }
}

/* Chote phones ke liye (iPhone SE etc) */
@media (max-width: 480px) {
    .appliance-grid {
        grid-template-columns: 1fr; /* Bohat chote screens par 1 card */
    }
    
    .logo {
        font-size: 20px;
    }
}

.keyword {
    color: #f1f2f6; /* Light white/grey color taake background par pyara lage */
    font-weight: 600;
}


.button-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px; /* Appliances se thora gap */
    padding-bottom: 20px;
}

.calculate-btn {
    background-color: #ff9900;
    color: white;
    padding: 15px 60px; /* Thora wide button professional lagta hai */
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    width: 80%; /* Aap isey full width ya fix width de sakte hain */
    transition: background 0.3s ease;
}

.calculate-btn:hover {
    background-color: #e68a00; /* Hover per halka dark orange */
}


.appliances-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 ki jagah 3 kar dein */
    gap: 20px;
}

/* Mobile ke liye grid ko wapas 1 column ker dena */
@media (max-width: 768px) {
    .appliances-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.appliance-card:focus-within {
    border-color: #0984e3;
    box-shadow: 0 0 15px rgba(9, 132, 227, 0.15);
    transform: translateY(-2px); /* Chota sa bounce effect */
}