/* 
   Durga Bhavani Pest Control - Redesign Styles
   Colors:
   - Primary: #003366 (Deep Navy Blue)
   - Secondary: #FF6600 (Safety Orange)
   - Accent: #00A3E0 (Cyan)
   - Background: #F4F7F6 (Cool Grey)
   - Text: #222222 (Charcoal)
*/

:root {
    --primary-color: #003366;
    --secondary-color: #28a745;
    /* Green for Pest Control */
    --accent-color: #00A3E0;
    --bg-color: #F4F7F6;
    --text-color: #222222;
    --text-light: #546E7A;
    --white: #ffffff;
    --light-green: #E3F2FD;
    /* Changed to Light Blue for background tints */
    --shadow: 0 4px 6px -1px rgba(0, 51, 102, 0.1), 0 2px 4px -1px rgba(0, 51, 102, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 51, 102, 0.15), 0 4px 6px -2px rgba(0, 51, 102, 0.1);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-pill: 4px;
    /* Sharper buttons */
}

.text-secondary-c {
    color: #c78d38;
    /* Based on the image gradient/color */
    background: -webkit-linear-gradient(45deg, #28a745, #ff6600);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Common */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 15px;
}

.bg-light {
    background-color: var(--light-green);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 94, 32, 0.3);
}

.btn-secondary-outline {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-secondary-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-outline-white {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-logo {
    max-height: 80px;
    /* Adjust based on navbar height */
    width: auto;
    object-fit: contain;
}

.logo span {
    display: none;
    /* Hide text span if present */
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden initially */
    width: 250px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: 0.4s ease;
    padding: 60px 20px;
    text-align: center;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    /* Reduced from 100vh for better fold visibility */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(27, 94, 32, 0.85), rgba(27, 94, 32, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--light-green);
}

.service-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    /* Using emoji/text icons for now */
    transition: 0.3s;
}

.service-card:hover .icon-wrapper {
    background: var(--secondary-color);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    padding-right: 30px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--light-green);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.info-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-logo-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-icon:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.footer-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}



.mobile-sticky-call {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-color);
    padding: 15px;
    text-align: center;
    z-index: 1000;
}

.mobile-sticky-call a {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        order: -1;
        /* Form first on mobile usually converts better or swap as needed */
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }



    .mobile-sticky-call {
        display: block;
    }
}

/* New Utilities for Redesign */
.text-navy {
    color: var(--primary-color) !important;
}

.bg-navy {
    background-color: var(--primary-color) !important;
}

.bg-dark-glass {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bg-gradient-light-success {
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
    border-color: var(--secondary-color) !important;
}

.card-hover-up {
    transition: transform 0.3s ease;
}

.card-hover-up:hover {
    transform: translateY(-5px);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.transition-scale {
    transition: transform 0.5s ease;
}

.hover-lift:hover .transition-scale {
    transform: scale(1.1);
}


/* =========================================
   MOBILE-FIRST RESPONSIVE OVERRIDES
   ========================================= */

@media (max-width: 768px) {

    /* --- Typography & Layout --- */
    html {
        font-size: 14px;
        /* Slightly smaller base font for mobile to prevent overflow */
    }

    .container {
        padding: 0 15px;
        /* Maximize screen real estate */
    }

    .section {
        padding: 50px 0;
        /* Reduce vertical padding */
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.8rem;
        /* Fit on small screens */
    }

    .section-header p {
        font-size: 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* --- Header & Navigation --- */
    header {
        padding: 10px 0;
        /* Compact header */
    }

    .header-logo {
        max-height: 50px;
        /* Smaller logo */
    }

    .mobile-menu {
        width: 100%;
        /* Full screen menu for easier use */
        padding-top: 80px;
    }

    .mobile-menu a {
        font-size: 1.5rem;
        /* Large tap targets */
        padding: 10px 0;
        display: block;
    }

    /* --- Buttons & Touch Targets --- */
    .btn {
        width: 100%;
        /* Full width buttons */
        padding: 14px 20px;
        /* Larger tap area */
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
        /* Space between stacked buttons */
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }

    /* --- Services Grid Stacking --- */
    .services-grid,
    .features-grid,
    .footer-content {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 30px;
    }

    .service-card {
        padding: 30px 20px;
        text-align: center;
    }

    /* --- Contact Page --- */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        /* Easy to tap inputs */
        font-size: 16px;
        /* Prevent IOS zoom on focus */
    }

    /* --- Footer --- */
    .footer-content {
        text-align: center;
        gap: 40px;
    }

    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 30px;
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-link {
        padding: 8px 0;
        /* Improve tap target */
        font-size: 1.1rem;
    }

    .footer-social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin: 0 5px;
        display: inline-flex;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    h1 {
        font-size: 1.8rem;
    }

    .hero {
        min-height: 500px;
    }
}