:root {
    --primary-color: #004a99;
    --secondary-color: #333;
    --accent-color: #e31e24;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --dark-text: #333;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --door-frame: #444;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header & Nav */
header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    z-index: 101;
}

/* Nav Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

nav ul {
    padding: 0;
    list-style: none;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding: 5px 0;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* --- Automatic Door Animation --- */
#door-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    pointer-events: none;
}

.door {
    width: 50%;
    height: 100%;
    background: var(--door-frame);
    position: relative;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 8px solid #333;
}

.door::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.4) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(173, 216, 230, 0.4) 100%);
    border: 4px solid #222;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
    z-index: 1;
}

.door::after {
    content: 'C';
    position: absolute;
    font-family: 'Arial Black', sans-serif;
    font-size: 15vw;
    color: var(--white);
    text-shadow: 4px 4px 10px rgba(0,0,0,0.5);
    z-index: 2;
}

.door.left { border-right: 4px solid #222; }
.door.right { border-left: 4px solid #222; }

body.doors-open .door.left { transform: translateX(-100%); }
body.doors-open .door.right { transform: translateX(100%); }
#door-overlay.hidden { display: none; }

/* Hero Section */
.hero {
    position: relative;
    height: 450px;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
}

.hero-text {
    padding: 0 20px;
}

.hero-text h2 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: clamp(1rem, 4vw, 1.4rem);
    margin-bottom: 2rem;
}

/* Main Content */
main {
    padding: 40px 0;
}

h2, h3 {
    color: var(--primary-color);
}

.disclaimer {
    background: #fff3cd;
    padding: 15px;
    border-left: 5px solid #ffeeba;
    font-style: italic;
    margin-top: 20px;
    border-radius: 0 4px 4px 0;
}

/* Intro Grid */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

/* Highlights */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.highlight-box {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-color);
}

/* Services */
.services-list {
    margin-top: 30px;
}

.service-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.service-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.emergency-callout {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.emergency-callout h3 { color: var(--white); }

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
}

.btn:hover {
    background: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Images */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--white);
    padding: 25px; /* Increased padding for consistency */
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center; /* Centered text */
    border-top: 5px solid var(--primary-color); /* Added primary color border-top */
}

.contact-card .title {
    font-weight: bold;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* FAQ List */
.faq-list .contact-card { /* Reusing contact-card for FAQ items */
    text-align: left; /* Override center alignment for FAQ questions */
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-section h4 {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Utilities */
#main-wrapper {
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.5s ease-in-out;
    transform: scale(0.9);
    opacity: 0;
}

body.doors-open #main-wrapper {
    transform: scale(1);
    opacity: 1;
}

body.locked { overflow: hidden; }

/* --- Mobile Styles --- */
@media (max-width: 850px) {
    header h1 {
        font-size: 1.3rem;
    }

    .nav-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--secondary-color);
        padding: 80px 30px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        z-index: 100;
    }

    nav.open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0 0 20px 0;
    }

    nav a {
        font-size: 1.2rem;
    }

    .hero {
        height: 350px;
    }

    .door::after {
        font-size: 25vw;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 300px;
    }

    .contact-card {
        padding: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}