/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* Header & Banner */
.main-header {
    background-color: #002d5b; /* Deep Navy */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sub-logo {
    font-weight: 300;
    font-size: 0.8rem;
    display: block;
    color: #00a8e8;
}

.contact-info p {
    font-size: 0.9rem;
    text-align: right;
}

/* Navigation Tabs */
.navbar {
    background-color: #003d7a;
}

.nav-tabs {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-tabs li a {
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: block;
    font-weight: bold;
    transition: background 0.3s;
}

.nav-tabs li a:hover {
    background-color: #00a8e8;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1567899378494-47b22a2ae96a?auto=format&fit=crop&q=80&w=1600') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.cta-button {
    display: inline-block;
    background-color: #ff6600; /* Emergency Orange */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 50px 5%;
}

.service-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 5px solid #00a8e8;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .banner-top {
        flex-direction: column;
        text-align: center;
    }
    .contact-info p {
        text-align: center;
        margin-top: 10px;
    }
    .nav-tabs {
        flex-wrap: wrap;
    }
    .nav-tabs li a {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}
/* JavaScript Animation Styles */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* Scrolled Header Style */
.main-header.scrolled {
    background-color: rgba(0, 25, 51, 0.95); /* Darker, slightly transparent navy */
    padding: 5px 0;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    
    /* Shape & Colors */
    border: none;
    background-color: #ff6600;
    color: white;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;

    /* The Smoothness Logic */
    opacity: 0;                /* Start invisible */
    visibility: hidden;        /* Start hidden from screen readers/clicks */
    pointer-events: none;      /* Can't click it while invisible */
    transition: all 0.4s ease; /* Smooth transition for everything */
    transform: translateY(20px); /* Optional: button slides up slightly as it fades in */
}

#backToTop.active {
    opacity: 1;                /* Fade in */
    visibility: visible;       /* Make it visible */
    pointer-events: auto;      /* Make it clickable */
    transform: translateY(0);  /* Slide into final position */
}

#backToTop:hover {
    background-color: #002d5b;
    transform: scale(1.05);    /* Tiny grow effect on hover */
}
/* Contact Section Styling */


.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 30px auto;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 12px;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sms-btn {
    background-color: #25D366; /* Messaging Green */
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.email-btn {
    background-color: #007AFF; /* Digital Blue */
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.action-btn:active {
    transform: scale(0.95); /* Squeezes slightly when tapped */
}

.phone-link {
    display: block;
    text-align: center;
    color: #002d5b;
    font-weight: 600;
    margin-top: 10px;
    text-decoration: none;
}