/* ===== CUSTOM CSS VARIABLES ===== */
:root {
    /* Professional Red & Yellow Color Scheme */
    --primary-red: #8B0000;
    --primary-yellow: #FFD700;
    --primary-white: #FFFFFF;
    --light-yellow: #FFF59D;
    --dark-red: #660000;
    --light-red: #B22222;
    --cream: #F8F9FA;
    --gray-light: #F5F5F5;
    --gray-medium: #6C757D;
    --gray-dark: #343A40;

    /* Typography */
    --font-primary: 'Open Sans', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;

    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--primary-white);
}

.container {
    max-width: var(--container-max-width);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    color: var(--primary-red);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-yellow));
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-medium);
    border: none;
    padding: 12px 30px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    border: none;
    color: var(--primary-white);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--light-red), var(--primary-red));
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--primary-white);
}

.btn-outline-light {
    border: 2px solid var(--primary-white);
    color: var(--primary-white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--primary-white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-red);
    color: var(--primary-white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red)) !important;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-white) !important;
}

.navbar-nav .nav-link {
    color: var(--primary-white) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-yellow) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width var(--transition-medium);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 50%, var(--primary-yellow) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: -20px;
    padding-bottom: -20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-logo {
    text-align: center;
    margin-bottom: 0;
    animation: fadeInUp 1s ease-out;
}

.company-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-medium);
}

.company-logo:hover {
    transform: scale(1.02);
}

.hero-subtitle {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    margin-top: -40px;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-features {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-yellow);
    margin-bottom: 10px;
}

/* ===== SERVICES SECTION ===== */
#services {
    padding: var(--section-padding);
    background: var(--gray-light);
}

.service-card {
    background: var(--primary-white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
    border: none;
    overflow: hidden;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-card.popular {
    border: 3px solid var(--primary-red);
    transform: scale(1.05);
}

.service-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-red);
    color: var(--primary-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    color: var(--primary-white);
    padding: 30px 20px;
    text-align: center;
    border: none;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price-badge {
    background: var(--primary-red);
    color: var(--primary-white);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
}

.card-body {
    padding: 30px 20px;
}

.dumpster-image {
    text-align: center;
    margin-bottom: 20px;
}

.dumpster-image svg {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform var(--transition-medium);
}

.service-card:hover .dumpster-image svg {
    transform: scale(1.05);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
}

.feature-list li:last-child {
    border-bottom: none;
}

.capacity-info {
    background: var(--gray-light);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.card-footer {
    background: transparent;
    border: none;
    padding: 20px;
}

.additional-service {
    background: var(--primary-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
    transition: all var(--transition-medium);
}

.additional-service:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* ===== QUOTE FORM SECTION ===== */
#quote {
    padding: var(--section-padding);
    background: var(--gray-light);
}

.quote-form-wrapper {
    background: var(--primary-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.quote-form .form-label {
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.quote-form .form-control,
.quote-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all var(--transition-fast);
}

.quote-form .form-control:focus,
.quote-form .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.25);
}

.quote-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

/* ===== SERVICE AREAS SECTION ===== */
#areas {
    padding: var(--section-padding);
}

.area-list {
    list-style: none;
    padding: 0;
}

.area-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
    position: relative;
    padding-left: 20px;
}

.area-list li:before {
    content: '📍';
    position: absolute;
    left: 0;
    top: 8px;
}

.area-list li:last-child {
    border-bottom: none;
}

.guidelines-section {
    background: var(--primary-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.materials-list {
    list-style: none;
    padding: 0;
}

.materials-list li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.allowed-section .materials-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.prohibited-section .materials-list li:before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: bold;
}

/* ===== TESTIMONIALS SECTION ===== */
#testimonials {
    padding: var(--section-padding);
    background: var(--gray-light);
}

.google-badge {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.testimonial-card {
    background: var(--primary-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-red);
    opacity: 0.3;
}

.stars {
    margin-bottom: 15px;
}

.testimonial-card blockquote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author strong {
    color: var(--primary-red);
    font-size: 1.1rem;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 5px;
}

/* ===== CONTACT SECTION ===== */
#contact {
    padding: var(--section-padding);
}

.contact-card {
    background: var(--primary-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    margin-bottom: 20px;
}

.contact-card h4 {
    color: var(--primary-red);
    margin-bottom: 15px;
}

.map-container {
    margin-top: 50px;
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.why-choose-us {
    background: var(--primary-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    font-size: 1.5rem;
    width: 50px;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--primary-white);
}

.footer-brand h4 {
    color: var(--primary-white);
    margin-bottom: 20px;
}

.footer-title {
    color: var(--primary-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-yellow);
    padding-left: 5px;
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-medium);
}

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

.contact-info .contact-item {
    margin-bottom: 10px;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.contact-info a:hover {
    color: var(--primary-yellow);
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-badges .badge {
    font-size: 0.8rem;
    padding: 8px 12px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .company-logo {
        max-width: 280px;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }

    .service-card.popular {
        transform: none;
    }

    .service-card.popular:hover {
        transform: translateY(-10px);
    }

    .quote-form-wrapper {
        padding: 30px 20px;
    }

    .contact-card {
        margin-bottom: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .testimonial-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .company-logo {
        max-width: 240px;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .quote-form-wrapper {
        padding: 20px 15px;
    }

    .service-card {
        margin-bottom: 30px;
    }

    .card-body,
    .card-header {
        padding: 20px 15px;
    }

    .additional-service {
        padding: 20px;
    }
}

/* Mobile responsive styles for logo */
@media (max-width: 768px) {
    .company-logo {
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }

    .hero-subtitle {
        font-size: 1.8rem;
        margin-top: 0rem !important; /* Override negative margin on mobile */
    }

    .hero-logo {
        margin-bottom: 1rem;
        padding: 0 20px;
    }

    .hero-section {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    /* Hide hero description text on mobile */
    .hero-section .lead {
        display: none;
    }
}

@media (max-width: 480px) {
    .company-logo {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin-top: 0.5rem !important; /* Override negative margin on mobile */
    }

    .hero-logo {
        margin-bottom: 1.5rem;
        padding: 0 15px;
    }
}

/* iPhone 16 and similar devices */
@media (max-width: 430px) {
    .company-logo {
        max-width: 240px;
        margin: 0 auto;
        display: block;
    }

    .hero-logo {
        margin-bottom: 1.2rem;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 1.4rem;
        margin-top: 0.3rem !important; /* Override negative margin on mobile */
        padding: 0 10px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-section,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .section-title {
        font-size: 18pt;
        margin-bottom: 10pt;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-primary-custom {
    color: var(--primary-blue) !important;
}

.text-red-custom {
    color: var(--primary-red) !important;
}

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

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

.border-primary-custom {
    border-color: var(--primary-blue) !important;
}

.border-red-custom {
    border-color: var(--primary-red) !important;
}

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.25);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-section {
        background: var(--primary-blue);
    }

    .service-card {
        border: 2px solid var(--gray-dark);
    }
}

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

    html {
        scroll-behavior: auto;
    }
}