/* 
 * JB Pest Control Kolkata
 * Global CSS Architecture 
 */

:root {
    /* Color Palette from Analysis */
    --primary-color: #0A2A22; /* Dark Green */
    --accent-color: #10B981; /* Bright Green */
    --accent-hover: #059669;
    --bg-light: #F3F4F6; /* Light Grey */
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    
    /* Layout */
    --container-max: 1200px;
    --transition-speed: 0.3s;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

#main-content {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Utilities */
.text-primary-brand { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary-brand { background-color: var(--primary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-light-grey { background-color: var(--bg-light) !important; }

/* Custom Button */
.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--accent-color);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
}

/* Header Styles */
.top-bar {
    font-size: 0.875rem;
}

.hover-accent {
    transition: color var(--transition-speed) ease;
}
.hover-accent:hover {
    color: var(--accent-color) !important;
}

.social-icons a {
    transition: color var(--transition-speed) ease;
}
.social-icons a:hover {
    color: var(--accent-color) !important;
}

.navbar .nav-link {
    margin: 0px !important;
    transition: all var(--transition-speed) ease;
    border-radius: 4px;
    margin: 0 5px;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    background-color: var(--accent-color) !important;
    color: var(--white) !important;
    border-radius: 0px;
}

/* Dropdown Hover (Desktop) */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s ease;
    }
}

.dropdown-item {
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
}

.focus-ring-accent {
    --bs-focus-ring-color: rgba(16, 185, 129, 0.25);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-color: #0A2A22;
}

.hero-bg {
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    top: 0; left: 0;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(10,42,34,0.95) 0%, rgba(10,42,34,0.7) 50%, rgba(10,42,34,0.1) 100%);
    top: 0; left: 0;
}

.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }
.z-index-3 { z-index: 3; }

.min-vh-75 { min-height: 75vh; }

.hero-content {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.hero-title {
    line-height: 1.1;
    letter-spacing: -1.5px;
    font-size: 4rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 90%;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.hero-tech-img {
    filter: drop-shadow(-10px 10px 20px rgba(0,0,0,0.5));
    max-height: 600px;
    width: 100%;
}

.floating-bug-card {
    top: 40%;
    left: 10%;
    width: 400px;
    animation: float 5s ease-in-out infinite;
}

.drop-shadow-img {
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.fade-in-right {
    animation: fadeInRight 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 991.98px) {
    .hero-title { font-size: 2.8rem; }
    .hero-content { padding-top: 8rem; } /* Account for logo */
    .hero-overlay { background: rgba(10,42,34,0.85); }
}

/* Utilities */
.transition {
    transition: all var(--transition-speed) ease;
}
.hover-white:hover {
    color: var(--white) !important;
}
.hover-dark:hover {
    color: var(--primary-color) !important;
}


/* Modern Service Cards */
.service-card-modern {
    border: none;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(44, 74, 67, 0.15);
}
.service-card-modern .card-img-top-wrap {
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
}
.service-card-modern .card-img-top-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card-modern:hover .card-img-top-wrap img {
    transform: scale(1.08);
}
.service-card-modern .badge-service {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background-color: var(--bs-accent, #2c4a43);
    color: #fff;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.service-card-modern .card-body {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}
.service-card-modern .card-title {
    color: #212529;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.service-card-modern .card-text {
    color: #6c757d;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.service-card-modern .btn-book {
    margin-top: auto;
    color: var(--bs-accent, #2c4a43);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    font-size: 1.05rem;
}
.service-card-modern .btn-book i {
    transition: transform 0.3s ease;
}
.service-card-modern:hover .btn-book {
    color: #1e3b33;
}
.service-card-modern:hover .btn-book i {
    transform: translateX(6px);
}
/* Target Grow Effect */
.target-grow {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s ease, z-index 0.6s;
}
.target-grow:target {
    transform: scale(1.04);
    box-shadow: 0 20px 40px rgba(44, 74, 67, 0.6) !important;
    z-index: 10 !important;
    border: 2px solid var(--bs-accent, #2c4a43);
}
