/* All American Overhead Garage Door - Main Stylesheet */
/* Color Scheme: Red (#DC143C), Black (#000000), White (#FFFFFF), Light Gray (#F5F5F5) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #DC143C;
    --dark-red: #B71C1C;
    --black: #000000;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Header & Navigation */
header {
    background-color: var(--black);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.top-bar {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

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

.contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 18px;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

nav {
    background-color: var(--black);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo img {
    height: 60px;
    width: auto;
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(220,20,60,0.1)" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--primary-red);
    font-weight: 600;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

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

.btn-primary:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

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

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

/* Sections */
section {
    padding: 80px 0;
}

section.gray-bg {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5em;
    color: var(--black);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 1.2em;
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
}

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

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s;
    text-align: center;
    border-top: 4px solid var(--primary-red);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
}

.service-card i {
    font-size: 3.5em;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--black);
}

.service-card p {
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-card a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-card a:hover {
    gap: 10px;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 15px var(--shadow);
    border-left: 5px solid var(--primary-red);
}

.feature-box i {
    font-size: 2.5em;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.feature-box h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--black);
}

.feature-box p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Testimonials */
.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-red);
}

.testimonial p {
    font-size: 1.1em;
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-author i {
    color: var(--primary-red);
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

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

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info-box {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
}

.contact-info-box h3 {
    color: var(--black);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--primary-red);
    font-size: 1.5em;
    margin-top: 3px;
}

.info-item div h4 {
    color: var(--black);
    margin-bottom: 5px;
    font-size: 1.1em;
}

.info-item div p,
.info-item div a {
    color: var(--medium-gray);
    text-decoration: none;
}

.info-item div a:hover {
    color: var(--primary-red);
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--black);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
}

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

/* Map Container */
.map-container {
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-section p,
.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--dark-gray);
    color: var(--light-gray);
}

/* Service Page Specific */
.service-hero {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.service-hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.main-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow);
}

.main-content h2 {
    color: var(--black);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
    border-left: 5px solid var(--primary-red);
    padding-left: 15px;
}

.main-content h3 {
    color: var(--black);
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.4em;
}

.main-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--dark-gray);
}

.main-content ul,
.main-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
    line-height: 1.8;
}

.main-content ul li,
.main-content ol li {
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.main-content a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.main-content a:hover {
    text-decoration: underline;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-box {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px var(--shadow);
}

.sidebar-box h3 {
    color: var(--black);
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 3px solid var(--primary-red);
    padding-bottom: 10px;
}

.sidebar-box ul {
    list-style: none;
}

.sidebar-box ul li {
    margin-bottom: 12px;
}

.sidebar-box ul li a {
    color: var(--dark-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar-box ul li a:hover,
.sidebar-box ul li a.active {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateX(5px);
}

.sidebar-box ul li a i {
    color: inherit;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    align-items: center;
}

.about-text h2 {
    color: var(--black);
    margin-bottom: 20px;
    font-size: 2em;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--dark-gray);
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.value-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow);
    text-align: center;
    border-top: 4px solid var(--primary-red);
}

.value-box i {
    font-size: 3em;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.value-box h3 {
    color: var(--black);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.value-box p {
    color: var(--medium-gray);
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .service-content,
    .contact-grid,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 140px;
        flex-direction: column;
        background-color: var(--black);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2em;
    }
    
    .hero h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero h1 {
        font-size: 1.8em;
    }
    
    .hero p {
        font-size: 1.1em;
    }
    
    .section-title h2 {
        font-size: 2em;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
