/* Steadfast Security Solutions - Clean V3 Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 60px;
    width: auto;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #1a1a1a;
}

.header-cta {
    background: #c0392b;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.header-cta:hover {
    background: #a93226;
}

/* Navigation */
.nav {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

/* Mobile menu toggle - hidden on desktop */
.menu-toggle {
    display: none;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #c0392b;
}

.nav .dropdown {
    position: relative;
}

.nav .dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1001;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #c0392b;
}

/* Main Content */
.main-content {
    margin-top: var(--header-offset, 100px);
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: white;
    color: #333;
    padding: 10px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 280px;
    flex-shrink: 0;
}

.hero-text {
    text-align: left;
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #666;
}

/* Page Headers */
.page-header {
    text-align: center;
    padding: 60px 0 40px;
    background: white;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    position: relative;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #c0392b;
    border-radius: 2px;
}

.page-header .subtitle {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
    max-width: 900px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 20px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.service-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card h3 {
    color: #c0392b;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Services List */
.services-list {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 1000px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.services-list h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #1a1a1a;
}

.services-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.services-grid-list li {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    list-style: none;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.services-grid-list li:hover {
    transform: translateY(-3px);
}

.services-grid-list strong {
    color: #c0392b;
    font-size: 1.1rem;
}

/* Contact Form */
.contact-form {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.contact-form iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 20px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}


.contact-box h3 {
    color: #c0392b;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-box a {
    color: #c0392b;
    text-decoration: none;
}

.contact-box a:hover {
    text-decoration: underline;
}

/* Mission Statement */
.mission {
    background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.mission h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.mission h3 {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px;
}

.mission h4 {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    color: #c0392b;
    margin-bottom: 15px;
}

.footer-section:nth-child(1) {
    text-align: left;
}

.footer-section:nth-child(2) {
    text-align: center;
}

.footer-section:nth-child(3) {
    text-align: right;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* Service Modal Styles */
.service-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.service-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #c0392b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.service-modal-close:hover {
    color: #a93226;
}

.service-modal h3 {
    color: #c0392b;
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-right: 30px;
}

.service-modal p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0;
}

.services-grid-list li {
    cursor: pointer;
    transition: all 0.3s ease;
}

.services-grid-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .nav {
        display: none; /* hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 20px;
        border-top: 1px solid #eee;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    /* Show nav when toggled */
    body.nav-open .nav {
        display: flex;
    }

    /* Show hamburger on mobile */
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: white;
        color: #333;
        cursor: pointer;
        order: 2; /* Position to the right */
    }
    .menu-toggle svg {
        width: 22px;
        height: 22px;
    }
    
    /* Hide CTA button on mobile to make room */
    .header-cta {
        display: none;
    }
    
    /* Add CTA to mobile nav */
    .nav .mobile-cta {
        display: block;
        background: #c0392b;
        color: white;
        padding: 12px 20px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin-top: 10px;
    }
    
    .nav .mobile-cta:hover {
        background: #a93226;
    }
    
    .brand-name {
        font-size: 1.4rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        letter-spacing: 0.5px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        margin-top: var(--header-offset, 150px);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
}

/* Hide mobile CTA on desktop */
@media (min-width: 769px) {
    .nav .mobile-cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .services-list {
        padding: 20px;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    .brand-logo {
        height: 50px;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .header-cta {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
