/* AVR Construction Inc. - Main Stylesheet */

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

:root {
    --primary-teal: #1a8a8a;
    --primary-navy: #1e3a5f;
    --accent-orange: #e67e22;
    --light-gray: #f8f9fa;
    --dark-gray: #333;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: color 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ==================== HEADER ==================== */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-navy);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

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

.header-top a {
    color: var(--white);
}

.header-top a:hover {
    color: var(--accent-orange);
}

.header-top-left {
    display: flex;
    gap: 25px;
}

.header-top-right {
    display: flex;
    gap: 20px;
}

nav {
    padding: 15px 0;
}

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

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

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

.nav-links a {
    color: var(--primary-navy);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 10px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-orange);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.nav-links a.active {
    color: var(--accent-orange);
}

.nav-cta {
    background: var(--accent-orange);
    color: var(--white) !important;
    padding: 12px 25px !important;
    border-radius: 5px;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: #d35400;
    color: var(--white) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-navy);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.05rem;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-navy);
}

.btn-outline {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.btn-outline:hover {
    background: var(--primary-navy);
    color: var(--white);
}

/* ==================== HERO SECTIONS ==================== */
.hero {
    background: linear-gradient(rgba(30, 58, 95, 0.85), rgba(26, 138, 138, 0.85)),
                url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 180px 20px 100px;
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

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

.license-badge {
    margin-top: 50px;
    padding: 18px 35px;
    background: rgba(255,255,255,0.15);
    border-radius: 5px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.license-badge p {
    font-size: 1.05rem;
    margin: 0;
}

/* Page Hero (smaller for inner pages) */
.page-hero {
    background: linear-gradient(rgba(30, 58, 95, 0.9), rgba(26, 138, 138, 0.85)),
                url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 180px 20px 80px;
    text-align: center;
    color: var(--white);
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== SECTION STYLES ==================== */
section {
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.section-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-orange);
    margin: 20px auto 0;
}

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

.bg-dark {
    background: var(--primary-navy);
    color: var(--white);
}

.bg-dark .section-header h2 {
    color: var(--white);
}

.bg-dark .section-header p {
    color: rgba(255,255,255,0.8);
}

/* ==================== SERVICE CARDS ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-card-content {
    padding: 30px;
}

.service-card h3 {
    color: var(--primary-navy);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-card a {
    color: var(--accent-orange);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-card a:hover {
    color: var(--primary-teal);
}

/* ==================== ABOUT STYLES ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.experience-badge .number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.about-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-feature .icon {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.about-feature span {
    font-weight: 600;
    color: var(--primary-navy);
}

/* ==================== WHY CHOOSE US ==================== */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.why-us-item {
    text-align: center;
    padding: 30px;
}

.why-us-item .icon {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: var(--accent-orange);
}

.why-us-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.why-us-item p {
    opacity: 0.85;
    line-height: 1.7;
}

/* ==================== GALLERY ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(30, 58, 95, 0.95));
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.contact-info > p {
    color: #666;
    margin-bottom: 35px;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-item .icon {
    width: 55px;
    height: 55px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--primary-navy);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: #666;
}

.contact-item a {
    color: var(--accent-orange);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--primary-teal);
}

.contact-form {
    background: var(--light-gray);
    padding: 45px;
    border-radius: 10px;
}

.contact-form h3 {
    color: var(--primary-navy);
    margin-bottom: 30px;
    font-size: 1.6rem;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

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

.contact-form .btn {
    width: 100%;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(rgba(30, 58, 95, 0.92), rgba(26, 138, 138, 0.88)),
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: var(--white);
}

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

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ==================== FOOTER ==================== */
footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 70px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--accent-orange);
}

.footer-col p {
    opacity: 0.85;
    margin-bottom: 15px;
    line-height: 1.7;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: rgba(255,255,255,0.85);
}

.footer-col ul a:hover {
    color: var(--accent-orange);
}

.footer-logo {
    height: 70px;
    margin-bottom: 20px;
    background: var(--white);
    padding: 10px 18px;
    border-radius: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.8;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .experience-badge {
        right: 20px;
        bottom: -20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .logo img {
        height: 70px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 25px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
        padding-top: 20px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 150px 20px 80px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .page-hero {
        padding: 150px 20px 60px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 70px 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }
}
