/* Reset and base styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
    /* outline: 1px solid red !important; */
}

:root {
    --primary-color: #1a237e;
    --secondary-color: #0d47a1;
    --accent-color: #2962ff;
    --emergency-red: #d32f2f;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-emergency: linear-gradient(135deg, var(--emergency-red), #b71c1c);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 100vw !important;
    overflow-x: hidden !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Common Section Styles */
section {
    position: relative;
    padding: 4rem 2rem;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    height: 80px;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    width: 240px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.20);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.emergency-contact {
    display: flex;
    align-items: center;
}

.emergency-contact .emergency-btn {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    animation: pulse 2s infinite;
    border-left: 4px solid var(--emergency-red);
}

.emergency-contact .emergency-btn:hover {
    background-color: rgba(211, 47, 47, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    animation: none;
}

.emergency-contact .emergency-btn i {
    font-size: 1.4rem;
    color: var(--emergency-red);
    animation: shake 1s infinite;
}

.emergency-contact .emergency-btn span {
    font-size: 0.9rem;
    opacity: 1;
    font-weight: 500;
    color: var(--text-color);
}

.emergency-contact .emergency-btn strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--emergency-red);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

@media (max-width: 1024px) {
    section {
        padding: 5rem 1.5rem;
    }
    .logo-img {
        width: 140px;
        height: auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 1.5rem;
    }

    header {
        height: 100px;
        width: 100vw;
        padding: 0 !important;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    nav,
    .mobile-menu-btn {
        display: none !important;
    }

    .logo {
        width: 100vw;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        margin: 0 !important;
    }

    .logo-img {
        display: block;
        margin: 0 auto !important;
        padding: 0 !important;
        max-height: 100px;
        min-width: 120px;
        width: auto;
    }

    .emergency-contact {
        display: none;
    }

    .emergency-contact .emergency-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        gap: 0.8rem;
    }

    .emergency-contact .emergency-btn i {
        font-size: 1.2rem;
    }

    .emergency-contact .emergency-btn span {
        font-size: 0.8rem;
    }

    .emergency-contact .emergency-btn strong {
        font-size: 1.1rem;
    }

    .hero-content {
        padding: 2rem;
    }

    main, section {
        max-width: 100vw;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    body {
        overflow-x: hidden;
    }

    header, nav {
        min-width: 0;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: -100vw;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        padding: 1.5rem 0.5rem 1rem 0.5rem;
        gap: 1.5rem;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: left 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s;
        z-index: 1100;
    }
    .mobile-menu-active .nav-links {
        left: 0;
        opacity: 1;
        pointer-events: auto;
    }

    header .secondary-nav,
    .secondary-nav {
        display: none !important;
    }

    main, .hero {
        margin-top: 56px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 2.5rem 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .logo-img {
        width: 60px;
        max-height: 36px;
        margin-right: 0;
        margin-left: auto;
        margin-right: auto;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .emergency-contact .emergency-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        gap: 0.6rem;
    }

    .emergency-contact .emergency-btn i {
        font-size: 1.1rem;
    }

    .emergency-contact .emergency-btn span {
        font-size: 0.75rem;
    }

    .emergency-contact .emergency-btn strong {
        font-size: 1rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    main, section {
        max-width: 100vw;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    body {
        overflow-x: hidden;
    }

    header {
        height: 48px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    margin-top: -80px;
    padding-top: 80px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/doorfix24-hero-01.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.3), rgba(211, 47, 47, 0.3));
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 3rem;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    animation: float 6s ease-in-out infinite;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(to right, #ffffff, #d32f2f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

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

.emergency-btn {
    background-color: var(--emergency-red);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    text-decoration: none !important;
}

.emergency-btn:hover {
    background-color: #b71c1c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

.emergency-btn:active {
    transform: translateY(-1px);
}

.emergency-btn i {
    font-size: 1.4rem;
    animation: pulse 2s infinite;
}

.emergency-btn .phone-number {
    display: block;
    font-weight: 600;
    font-size: 1.1em;
    margin-top: 0.1em;
}

.secondary-btn {
    background-color: transparent;
    color: var(--white);
    padding: 1rem 2rem;
    border: 2px solid var(--white);
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
}

.secondary-btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.secondary-btn:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .emergency-btn,
    .secondary-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-content {
        padding: 1.5rem;
    }
}

/* Services Section */
#services {
    background-color: var(--white);
}

#services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--emergency-red);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--emergency-red);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.5rem;
    }
    .service-card {
        padding: 1.25rem 1rem;
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .services-grid {
        gap: 1rem;
        padding: 0;
    }
    .service-card {
        padding: 1rem 0.5rem;
        font-size: 0.97rem;
    }
    .service-card i {
        font-size: 2rem;
    }
    .service-card h3 {
        font-size: 1.1rem;
    }
    .service-card p {
        font-size: 0.97rem;
    }
}

/* About Section */
#about {
    background-color: var(--light-bg);
}

#about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

#about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--emergency-red), var(--primary-color));
    border-radius: 2px;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-text {
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--emergency-red);
    margin-bottom: 1rem;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 768px) {
    #about h2 {
        font-size: 2rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-item i {
        font-size: 2rem;
    }

    .stat-item h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    #about h2 {
        font-size: 1.8rem;
    }

    .about-text {
        padding: 1.5rem;
    }

    .stat-item i {
        font-size: 1.8rem;
    }

    .stat-item h4 {
        font-size: 1.3rem;
    }
}

/* Contact Section */
#contact {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('images/doorfix24-hero-02.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

#contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#contact h2::after {
    background: linear-gradient(to right, var(--emergency-red), var(--white));
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emergency-red);
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
    background-color: var(--white);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--emergency-red);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn i {
    font-size: 1.1rem;
}

/* Form Validation Styles */
.error-message {
    color: var(--emergency-red);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(211, 47, 47, 0.1);
    padding: 0.75rem;
    border-radius: 5px;
    border-left: 4px solid var(--emergency-red);
}

.error-message i {
    font-size: 1rem;
}

.success-message {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 4px solid #2e7d32;
}

.success-message i {
    font-size: 1.2rem;
}

input.error,
textarea.error,
select.error {
    border-color: var(--emergency-red);
    background-color: rgba(211, 47, 47, 0.05);
}

input.error:focus,
textarea.error:focus,
select.error:focus {
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

/* Form Field Required Indicator */
.required-field::after {
    content: '*';
    color: var(--emergency-red);
    margin-left: 0.25rem;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
    }

    .submit-btn {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}

.contact-info {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.contact-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.contact-info p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--emergency-red);
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.emergency-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(211, 47, 47, 0.1);
    border-left: 4px solid var(--emergency-red);
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: pulse 2s infinite;
}

.emergency-note i {
    color: var(--emergency-red);
    font-size: 1.5rem;
}

.emergency-note p {
    font-size: 1rem;
    color: var(--white);
    margin: 0;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    #contact-form,
    .contact-info {
        padding: 1.5rem;
    }

    .contact-info p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #contact h2 {
        font-size: 2rem;
    }

    .contact-info h3 {
        font-size: 1.3rem;
    }
}

/* Footer */
footer {
    background: linear-gradient(to right, #1a237e, #283593);
    color: var(--white);
    padding: 4rem 1rem 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--emergency-red), #1a237e);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    max-width: 400px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--emergency-red);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-section ul li a i {
    color: var(--emergency-red);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--emergency-red);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--emergency-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--white);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul li a {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        width: 150px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 100px;
}
@media (min-width: 769px) {
    html {
        scroll-padding-top: 80px;
    }
}

/* Active Navigation State */
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    width: 100%;
}

/* Process Flow Section */
#process {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem;
}

#process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.05), rgba(26, 35, 126, 0.05));
    z-index: 0;
}

.process-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
    position: relative;
    z-index: 1;
}

.process-step {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 1rem 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--emergency-red);
    cursor: pointer;
    z-index: 1;
    transform: translateX(0);
}

.process-step:hover {
    transform: translateY(-5px) translateX(10px);
    box-shadow: var(--shadow-lg);
    border-left-width: 6px;
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-emergency);
    color: var(--white);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.process-step i {
    font-size: 1.75rem;
    color: var(--emergency-red);
    margin: 0.25rem 0;
    transition: var(--transition);
}

.process-step:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

.process-step h3 {
    color: var(--emergency-red);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.process-note {
    max-width: 600px;
    margin: 1.5rem auto 0;
    padding: 1.25rem;
    background: var(--gradient-emergency);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.process-note i {
    font-size: 1.25rem;
    color: var(--white);
}

.process-note p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .process-step {
        padding: 1rem;
        margin: 0.75rem 0;
    }

    .process-step:hover {
        transform: translateY(-5px) translateX(5px);
    }

    .process-step i {
        font-size: 1.5rem;
    }

    .process-step h3 {
        font-size: 1rem;
    }

    .process-note {
        padding: 1rem;
        margin: 1.25rem 1rem 0;
    }

    .process-note i {
        font-size: 1.1rem;
    }

    .process-note p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .process-step {
        padding: 0.875rem;
        margin: 0.5rem 0;
    }

    .process-step:hover {
        transform: translateY(-5px);
    }

    .step-number {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
    }

    .process-step i {
        font-size: 1.25rem;
    }

    .process-step h3 {
        font-size: 0.95rem;
    }
}

/* Secondary Navigation */
.secondary-nav {
    background: var(--primary-color);
    padding: 0.5rem 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.secondary-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.secondary-nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.secondary-nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.secondary-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emergency-red);
    transition: var(--transition);
}

.secondary-nav-links a:hover {
    color: var(--emergency-red);
}

.secondary-nav-links a:hover::after {
    width: 100%;
}

.secondary-nav-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.secondary-nav-contact a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.secondary-nav-contact a:hover {
    color: var(--emergency-red);
}

.secondary-nav-contact i {
    font-size: 1rem;
}

/* Form Loading State */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Form Field Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
    transition: all 0.3s ease;
}

/* Form Field Hover States */
input:hover,
textarea:hover,
select:hover {
    border-color: var(--primary-color);
}

/* Form Field Placeholder Styles */
::placeholder {
    color: #999;
    opacity: 1;
}

/* 404.html custom styles */
.error-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/doorfix24-hero-01.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.error-content {
    max-width: 600px;
    background: rgba(0, 0, 0, 0.8);
    padding: 3rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    color: var(--emergency-red);
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.error-message {
    font-size: 2rem;
    margin: 1rem 0 2rem;
    color: var(--white);
}

.error-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background-color: var(--emergency-red);
    color: var(--white);
}

.primary-btn:hover {
    background-color: #b71c1c;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

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

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

@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }
    .error-message {
        font-size: 1.5rem;
    }
    .error-description {
        font-size: 1rem;
    }
    .error-actions {
        flex-direction: column;
    }
    .error-btn {
        width: 100%;
        text-align: center;
    }
}

/* Mobile menu styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    margin-right: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}
.mobile-menu-btn:focus {
    outline: 2px solid var(--primary-color);
    background: rgba(41, 98, 255, 0.08);
}
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1100;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        padding: 1.5rem 0.5rem 1rem 0.5rem;
        gap: 1.5rem;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: left 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s;
        z-index: 1100;
    }
    .mobile-menu-active .nav-links {
        left: 0;
        opacity: 1;
        pointer-events: auto;
    }
    nav ul.nav-links li a {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
        border-radius: 6px;
        width: 100%;
        text-align: center;
    }
    nav ul.nav-links li a:active,
    nav ul.nav-links li a:focus {
        background: var(--light-bg);
        color: var(--primary-color);
    }
}

#statusMessage {
    margin: 1rem 0;
    font-size: 1rem;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: 1.5px solid transparent;
    opacity: 1;
    transition: opacity 0.5s ease;
}
#statusMessage.success {
    color: var(--emergency-green, #388e3c);
    background: rgba(56, 142, 60, 0.08);
    border-color: var(--emergency-green, #388e3c);
}
#statusMessage.error {
    color: var(--emergency-red, #b71c1c);
    background: rgba(183, 28, 28, 0.08);
    border-color: var(--emergency-red, #b71c1c);
}
#statusMessage .status-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}
#statusMessage.hide {
    opacity: 0;
    pointer-events: none;
}

.features {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    margin-top: 2rem;
}
.feature {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    text-align: center;
    flex: 1 1 0;
    min-width: 220px;
    max-width: 340px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.feature i {
    font-size: 2.2rem;
    color: var(--emergency-red);
    margin-bottom: 1rem;
}
.feature h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}
.feature p {
    color: var(--text-color);
    font-size: 1rem;
}
@media (max-width: 900px) {
    .about-content {
        gap: 1.5rem;
    }
    .features {
        gap: 1.2rem;
    }
}
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    .features {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }
    .feature {
        max-width: 100%;
        min-width: 0;
        padding: 1.25rem 0.75rem;
    }
}
@media (max-width: 480px) {
    .about-content {
        gap: 1rem;
        padding: 0;
    }
    .feature {
        padding: 1rem 0.5rem;
        font-size: 0.97rem;
    }
    .feature i {
        font-size: 1.5rem;
    }
    .feature h3 {
        font-size: 1rem;
    }
    .feature p {
        font-size: 0.95rem;
    }
}

img, video {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

#scrollTopBtn {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 2000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color, #1a237e);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
    transition: opacity 0.3s, transform 0.3s;
}
#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#scrollTopBtn:focus {
    outline: 2px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
}
@media (max-width: 768px) {
    #scrollTopBtn {
        right: 1rem;
        bottom: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

.contact-logo {
    width: 240px !important;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 0 0.5rem 0;
}

/* Promotions Section */
.promotions-section {
    background: linear-gradient(135deg, #f5f5f5 80%, #e3eafc 100%);
    padding: 4rem 2rem 3rem 2rem;
    margin: 0;
    border-top: 1.5px solid #e0e0e0;
}
.promotions-section h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}
.promotions-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}
.promotions-container {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1100px;
}
.promotion-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(26,35,126,0.07);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 320px;
    min-width: 220px;
    max-width: 100%;
    min-height: 400px;
    flex: 1;
    transition: box-shadow 0.2s, transform 0.2s;
    border-top: 4px solid var(--primary-color);
}
.promotion-card:hover {
    box-shadow: 0 8px 32px rgba(26,35,126,0.13);
    transform: translateY(-4px) scale(1.03);
}
.promotion-logo {
    max-width: 120px;
    height: auto;
    display: block;
    object-fit: contain;
}
svg.promotion-logo {
    width: 100% !important;
    height: auto !important;
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    image-rendering: optimizeQuality;
}
.promotion-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    width: 100%;
    text-align: center;
}
.promotion-info h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
    padding: 0.5rem 0 0.5rem 0;
}
.promotion-info p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    text-align: center;
    flex: 1;
}
.promotion-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.10);
    border: none;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}
.promotion-btn i {
    font-size: 1.2em;
    margin-right: 0.2em;
    display: inline-block;
}
.promotion-buitendeur .promotion-btn {
    background: #0d47a1;
}
.promotion-buitendeur .promotion-btn:hover {
    background: #2962ff;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}
.promotion-locksecure {
    border-top: 4px solid #d32f2f;
}
.promotion-locksecure .promotion-btn {
    background: #d32f2f;
}
.promotion-locksecure .promotion-btn:hover {
    background: #b71c1c;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}
.promotion-buitendeur .promotion-info h3 {
    color: #0d47a1;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}
.promotion-buitendeur .promotion-info p {
    color: #174ea6;
}
.promotion-locksecure .promotion-info h3 {
    color: #d32f2f;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}
.promotion-locksecure .promotion-info p {
    color: #b71c1c;
}
.promotion-securehomes {
    border-top: 4px solid #388e3c;
}
.promotion-securehomes .promotion-info h3 {
    color: #388e3c;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}
.promotion-securehomes .promotion-info p {
    color: #2e7031;
}
.promotion-securehomes .promotion-btn {
    background: #388e3c;
}
.promotion-securehomes .promotion-btn:hover {
    background: #2e7031;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}
@media (max-width: 900px) {
    .promotions-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    .promotion-card {
        width: 100%;
        min-width: 0;
        margin-bottom: 1.5rem;
        min-height: 350px;
        flex-basis: auto;
    }
}
@media (max-width: 600px) {
    .promotions-section {
        padding: 2rem 0.5rem 1.5rem 0.5rem;
    }
    .promotion-card {
        min-height: 320px;
        margin-bottom: 2rem;
    }
} 