/* Smooth scrolling for all anchor links */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    color-scheme: dark;
}

body {
    overflow-x: hidden;
}

/* Placeholder color matching select text color */
input::placeholder,
textarea::placeholder {
    color: hsl(213, 31%, 91%) !important;
    opacity: 1;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(255, 107, 53, 0.4); }
    to { box-shadow: 0 0 30px rgba(255, 107, 53, 0.6); }
}

.btn-primary {
    background: linear-gradient(135deg, hsl(14, 100%, 57%), hsl(14, 95%, 65%));
    color: white;
    border: none;
    padding: 16px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

@media (min-width: 1024px) {
    .btn-primary {
        padding: 16px 24px;
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.btn-call {
    background: linear-gradient(135deg, hsl(210, 100%, 45%), hsl(210, 100%, 55%));
    color: white;
    border: none;
    padding: 16px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

@media (min-width: 1024px) {
    .btn-call {
        padding: 16px 24px;
    }
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-call-header {
    background: linear-gradient(135deg, hsl(210, 100%, 45%), hsl(210, 100%, 55%));
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    animation: pulse-subtle 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@media (min-width: 1024px) {
    .btn-call-header {
        padding: 12px 24px;
    }
}

@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

.btn-emergency {
    background: linear-gradient(135deg, hsl(14, 100%, 57%), hsl(14, 95%, 65%));
    color: white;
    border: 2px solid hsl(14, 95%, 65%);
    padding: 16px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    animation: glow 2s ease-in-out infinite alternate;
}

@media (min-width: 1024px) {
    .btn-emergency {
        padding: 16px 32px;
    }
}

.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    transform: translateY(-4px);
}

.hero-bg {
    position: relative;
    overflow: hidden;
}

.hero-parallax-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(35, 39, 42, 0.8), rgba(35, 39, 42, 0.9)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    will-change: transform;
}

.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

.emergency-cta {
    background: hsla(14, 90%, 55%, 0.1);
    border: 1px solid hsla(14, 90%, 55%, 0.3);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.cta-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-desc {
    color: hsl(215, 20%, 65%);
    margin-bottom: 20px;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
}

@keyframes pulse-urgent {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 hsla(14, 90%, 55%, 0.7);
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 0 0 10px hsla(14, 90%, 55%, 0);
    }
}

/* Chevron animation styles */
.faq-chevron, .service-chevron {
    transition: transform 0.3s ease;
}

.pulse-urgent {
    animation: pulse-urgent 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cta-buttons .btn-emergency {
    background: linear-gradient(135deg, hsl(14, 90%, 55%), hsl(14, 100%, 65%));
    color: hsl(0, 0%, 100%);
    box-shadow: 0 0 30px hsla(14, 90%, 55%, 0.3);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-urgent 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cta-buttons .btn-emergency:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px hsla(14, 90%, 55%, 0.4);
}

.cta-buttons .btn-call {
    background: linear-gradient(135deg, hsl(210, 100%, 45%), hsl(210, 100%, 55%));
    color: hsl(0, 0%, 100%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-buttons .btn-call:hover {
    background: linear-gradient(135deg, hsl(210, 100%, 55%), hsl(210, 100%, 65%));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

/* Scroll margin for anchor links to account for fixed header */
section[id] {
    scroll-margin-top: 50px;
}

/* Sticky header animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-slide-in {
    animation: slideDown 0.4s ease-out forwards;
}

.header-slide-out {
    animation: slideDown 0.3s ease-in reverse forwards;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: block;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 500px;
    width: 90%;
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
    display: none;
    animation: modalSlideIn 0.3s ease forwards;
}

@media (max-width: 640px) {
    .modal-container {
        max-height: 98vh;
        width: 95%;
        top: 8px;
        transform: translate(-50%, 0) scale(0.9);
        animation: modalSlideInMobile 0.3s ease forwards;
    }
}

.modal-container.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes modalSlideInMobile {
    from {
        opacity: 0;
        transform: translate(-50%, -20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-container .step-content h3 {
    margin-top: 8px;
}

@media (min-width: 641px) {
    .modal-container .step-content h3 {
        margin-top: 0;
    }
}

.modal-close:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: rotate(90deg);
}

/* Form fields focus styling */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Select dropdown arrow styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Hide form labels visually but keep for accessibility (screen readers) */
#step1-form label.block:not([for="emergency"]):not([for="modal-emergency"]),
#step2-form label.block:not([for="emergency"]):not([for="modal-emergency"]),
#modal-step1-form label.block:not([for="emergency"]):not([for="modal-emergency"]),
#modal-step2-form label.block:not([for="emergency"]):not([for="modal-emergency"]),
#quote-form label.block:not([for="emergency"]):not([for="modal-emergency"]),
#quote-form #step1-form label.block:not([for="emergency"]):not([for="modal-emergency"]),
#quote-form #step2-form label.block:not([for="emergency"]):not([for="modal-emergency"]),
#quote-modal label.block:not([for="emergency"]):not([for="modal-emergency"]),
#quote-modal #modal-step1-form label.block:not([for="emergency"]):not([for="modal-emergency"]),
#quote-modal #modal-step2-form label.block:not([for="emergency"]):not([for="modal-emergency"]),
form#step1-form label:not([for="emergency"]):not([for="modal-emergency"]),
form#step2-form label:not([for="emergency"]):not([for="modal-emergency"]),
form#modal-step1-form label:not([for="emergency"]):not([for="modal-emergency"]),
form#modal-step2-form label:not([for="emergency"]):not([for="modal-emergency"]) {
    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-width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


