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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 100px;
    width: 210px;
}

.phone-number {
    color: #2c5aa0;
    font-weight: bold;
    font-size: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-number:hover {
    color: #1a4480;
}

.phone-icon {
    font-size: 16px;
}

/* Hero Section with Critical Background Image and Overlay */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 100px 0px 0px 0px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.fencemasterhouston.com/wp-content/uploads/2025/10/security-keypad-on-gate.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* CRITICAL: Black overlay at 50% opacity as required */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    background: #2c5aa0;
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: #1a4480;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: white;
    color: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #2c5aa0;
    font-weight: bold;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #666;
    line-height: 1.8;
}

/* Applications Section */
.applications {
    padding: 100px 0;
    background: white;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.application-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.application-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.application-content {
    padding: 30px;
}

.application-content h3 {
    font-size: 1.4rem;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.application-content p {
    color: #666;
    line-height: 1.8;
}

/* USPs Section */
.usps {
    padding: 100px 0;
    background: #2c5aa0;
    color: white;
}

.usps .section-title {
    color: white;
}

.usps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.usp-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.usp-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.usp-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.usp-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.usp-card p {
    opacity: 0.9;
    line-height: 1.8;
}

/* Trust Indicators */
.trust-indicators {
    padding: 100px 0;
    background: #f8f9fa;
}

.trust-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #2c5aa0;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    margin-top: 5px;
}

.trust-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.feature-item {
    color: #2c5aa0;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1a4480 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
}

.footer-brand p, .footer-contact p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-contact h4 {
    color: #2c5aa0;
    margin-bottom: 20px;
}

.footer-contact a {
    color: #2c5aa0;
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .trust-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .phone-number {
        font-size: 16px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero {
        height: 90vh;
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .benefits, .applications, .usps, .trust-indicators, .final-cta {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation on Scroll (CSS only implementation) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-card, .application-item, .usp-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .header, .footer {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: 300px;
    }
    
    body {
        font-size: 12pt;
    }
}
