/* ========================================
   BASE STYLES
   Core HTML elements, typography, buttons, utilities, and animations
   ======================================== */

/* HTML & Body Reset */
html {
    background: #2c3e2f !important;
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
}

html, body {
    font-family: var(--font-family-base);
    color: var(--text-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    background: #2c3e2f !important;
}

body {
    padding-top: 85px;
    background: #2c3e2f !important;
    min-height: 100vh;
}

/* Body scroll lock for modals */
body.no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-family-base); 
    font-weight: 700; 
    letter-spacing: -0.5px; 
}

h1 { 
    font-weight: 800; 
}

/* Base Button Styles */
.btn { 
    border-radius: 50px; 
    padding: 12px 30px; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); 
    letter-spacing: 0.5px; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
}

.btn:focus, .btn.focus { 
    outline: 0; 
    box-shadow: none !important; 
}

.btn-primary { 
    background-color: var(--primary-green); 
    border-color: var(--primary-green); 
    color: white; 
}

.btn-primary:hover { 
    background-color: var(--dark-green); 
    border-color: var(--dark-green); 
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12); 
}

.btn-outline-primary { 
    border-color: var(--primary-green); 
    color: var(--primary-green); 
    background-color: transparent; 
}

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

.btn-outline-light { 
    border-color: rgba(255, 255, 255, 0.7); 
    color: white; 
}

.btn-outline-light:hover { 
    background-color: white; 
    color: var(--dark-green); 
    border-color: white; 
    transform: translateY(-3px); 
}

.btn-cta {
    background-color: var(--cta-orange);
    border-color: var(--cta-orange);
    color: white;
    font-weight: 700;
    padding: 14px 35px !important;
    border-radius: 50px;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5;
    min-width: auto;
    white-space: nowrap;
}

.btn-cta:hover {
    background-color: var(--cta-orange-hover);
    border-color: var(--cta-orange-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(255, 87, 34, 0.25);
}

/* Utility Classes for Common Patterns */
.transition-smooth { transition: all 0.3s ease; }
.hover-lift:hover { transform: translateY(-3px); }
.hover-lift-small:hover { transform: translateY(-2px); }
.hover-lift-medium:hover { transform: translateY(-5px); }
.hover-lift-large:hover { transform: translateY(-8px); }
.hover-lift-xl:hover { transform: translateY(-10px); }
.radius-pill { border-radius: 50px; }
.radius-large { border-radius: 20px; }
.radius-medium { border-radius: 12px; }
.radius-small { border-radius: 8px; }
.radius-tiny { border-radius: 4px; }

/* Common Font Sizes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.text-md { font-size: 0.9rem; }
.text-base { font-size: 0.95rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.2rem; }

/* Common Box Shadows */
.shadow-sm { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); }
.shadow-md { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); }
.shadow-lg { box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12); }
.shadow-xl { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }

/* Common Spacing */
.section-spacing { padding: 80px 0; }
.section-spacing-sm { padding: 60px 0; }
.section-spacing-lg { padding: 100px 0; }

/* Section Titles */
.section-title { 
    position: relative; 
    margin-bottom: 50px; 
    font-weight: 700; 
    color: var(--dark-green); 
}

.section-title:after { 
    content: ''; 
    position: absolute; 
    bottom: -15px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 60px; 
    height: 3px; 
    background-color: var(--primary-green); 
    border-radius: 2px; 
}

/* Page Headers */
.page-header {
    background-color: var(--page-header-bg);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    color: var(--dark-green);
    margin-bottom: 0;
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

.no-underline.page-header h1::after {
    display: none;
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
    background-color: white;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid #eee;
}

#benefits.section-padding { 
    padding-bottom: 30px; 
}

#contact.section-padding { 
    border-bottom: none; 
}

/* Base List Styles */
.bullet-list { 
    list-style: none; 
    padding-left: 0; 
    margin-bottom: 25px; 
    flex-grow: 1; 
}

.bullet-list li { 
    position: relative; 
    padding-left: 28px; 
    margin-bottom: 10px; 
    font-size: 0.95rem; 
    font-weight: 400; 
    color: var(--text-dark); 
}

.bullet-list li:before { 
    content: "\f00c"; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    position: absolute; 
    left: 0; 
    top: 3px; 
    width: 18px; 
    height: 18px; 
    color: var(--primary-green); 
    font-size: 1rem; 
    text-align: center; 
}

/* Card Title */
.card-title {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LANDSCAPE MOBILE OPTIMIZATION */
@media screen and (orientation: landscape) and (max-height: 600px) {
    html {
        background: #2c3e2f !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body {
        background: #2c3e2f !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .container,
    .container-fluid {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

/* MOBILE TOUCH OPTIMIZATION */
@media (hover: none) and (pointer: coarse) {
    .btn-cta:hover,
    .btn-primary:hover,
    .btn-outline-primary:hover,
    .btn-outline-light:hover,
    .pest-card:hover,
    .service-card:hover,
    .testimonial-card:hover,
    .benefit-item:hover,
    .modern-card:hover,
    .logo-unit:hover,
    .nav-link:hover,
    .single-stat-item:hover,
    .stat-item:hover,
    .stat-card:hover {
        transform: none !important;
        box-shadow: none !important;
        background-color: initial !important;
        border-color: initial !important;
        filter: none !important;
        opacity: 1 !important;
    }
}

/* Base Responsive Adjustments */
@media (max-width: 991px) {
    body { padding-top: 75px; }
    .page-header { padding: 40px 0; }
    .section-padding { padding: 60px 0; }
    .section-title { margin-bottom: 40px; }
}

@media (max-width: 767px) {
    body { 
        background: linear-gradient(135deg, #1a2a1f 0%, #0f1811 100%); 
        min-height: 100vh; 
    }
    
    #benefits.section-padding,
    #educational-content-section.section-padding { 
        background-color: white; 
    }
    
    .page-header h1 { font-size: 2rem; }
    .btn { padding: 10px 25px; font-size: 0.85rem; }
    .btn-cta { padding: 12px 30px; }
    h1, .display-3 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}
