/* 
 * Alinden Pest Control - Custom Stylesheet
 * Author: Alinden Pest Control
 * Version: 1.0.0
 */

/* CSS Variables for Brand Colors */
:root {
    --primary-green: #2E7D32;
    --dark-green: #1B5E20;
    --light-green: #4CAF50;
    --accent-yellow: #FFC107;
    --dark-yellow: #FFA000;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-dark: #212529;
    --text-muted: #6C757D;
    --success-light: rgba(46, 125, 50, 0.1);
    --warning-light: rgba(255, 193, 7, 0.1);
    --danger-light: rgba(220, 53, 69, 0.1);
    --info-light: rgba(13, 202, 240, 0.1);
    --primary-light: rgba(13, 110, 253, 0.1);
    --secondary-light: rgba(108, 117, 125, 0.1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Utility Classes */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mt-6 {
    margin-top: 5rem;
}

.ls-1 {
    letter-spacing: 1px;
}

.ls-2 {
    letter-spacing: 2px;
}

/* Background Colors */
.bg-success-light {
    background-color: var(--success-light) !important;
}

.bg-warning-light {
    background-color: var(--warning-light) !important;
}

.bg-danger-light {
    background-color: var(--danger-light) !important;
}

.bg-info-light {
    background-color: var(--info-light) !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.bg-secondary-light {
    background-color: var(--secondary-light) !important;
}

/* Navigation Styles */
.custom-navbar {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    color: var(--white) !important;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--accent-yellow);
    line-height: 1;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.brand-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-yellow);
    line-height: 1.2;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-yellow) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--success-light);
    color: var(--primary-green);
    padding-left: 1.5rem;
}

.btn-cta-nav {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    border: none;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-cta-nav:hover {
    background-color: var(--dark-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?w=1920&h=1080&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.85) 0%, rgba(27, 94, 32, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-badge i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--white);
    font-size: 2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-indicator a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Animation Classes */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-up.delay-1 { animation-delay: 0.2s; }
.animate-fade-up.delay-2 { animation-delay: 0.4s; }
.animate-fade-up.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--light-green);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon-wrapper i {
    font-size: 2.5rem;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Stats Section */
.stat-item {
    padding: 1rem;
}

.counter {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

/* About Section */
.about-image-wrapper {
    position: relative;
}

.about-main-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    text-align: center;
    line-height: 1.2;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box-lg {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Team Cards */
.team-card {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.team-img-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    overflow: hidden;
    border: 4px solid var(--success-light);
    border-radius: 50%;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--success-light);
    color: var(--primary-green);
    border-radius: 50%;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-3px);
}

/* Accordion Customization */
.accordion-button:not(.collapsed) {
    background-color: var(--success-light);
    color: var(--primary-green);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* Contact Form */
.contact-form-card {
    border: none;
    background: var(--white);
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--light-green);
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

/* Social Links Large */
.social-links-large .btn {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links-large .btn:hover {
    background-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-3px);
}

/* Footer Styles */
footer {
    margin-top: 0;
}

.pt-6 {
    padding-top: 4rem;
}

.hover-warning {
    transition: color 0.3s ease;
}

.hover-warning:hover {
    color: var(--accent-yellow) !important;
}

.footer-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-yellow) !important;
    transform: translateX(5px);
}

.social-links-footer a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links-footer a:hover {
    color: var(--accent-yellow) !important;
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    
    .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        display: inline-block;
    }
    
    .about-image-wrapper {
        margin-bottom: 2rem;
    }
    
    .navbar-collapse {
        background: rgba(27, 94, 32, 0.98);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu {
        background: transparent;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
    
    .dropdown-item {
        color: rgba(255,255,255,0.9);
    }
    
    .btn-cta-nav {
        margin-top: 0.5rem;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .service-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .service-icon-wrapper i {
        font-size: 1.8rem;
    }
    
    .py-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .hero-section, footer, .back-to-top {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
}

/* Accessibility Improvements */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus Visible for Keyboard Navigation */
:focus-visible {
    outline: 3px solid var(--accent-yellow);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}