/* Montclair Optical - Main Stylesheet */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #3055A4;
    --dark-blue: #1a3a6e;
    --light-blue: #4a7dd4;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Questrial', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

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

ul {
    list-style: none;
}

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

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

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

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

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

nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    padding: 10px 0;
    position: relative;
}

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

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

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

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(48, 85, 164, 0.7), rgba(48, 85, 164, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

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

.about-text h2 {
    font-size: 36px;
    font-weight: 300;
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    box-shadow: 20px 20px 0 var(--primary-blue);
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 300;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

a.service-card {
    display: block;
    color: inherit;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--primary-blue);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Brands Section */
.brands-section {
    padding: 100px 0;
    background-color: var(--white);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
}

.brand-item {
    text-align: center;
    padding: 30px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item--image {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    min-height: 240px;
}

.brand-item--image img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 6px;
}


.brand-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 20px rgba(48, 85, 164, 0.1);
}

.brand-item h3 {
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-item p {
    color: var(--text-light);
    font-size: 14px;
    font-style: italic;
}

/* Stores Section */
.stores-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.store-card {
    background-color: var(--white);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.store-image {
    height: 250px;
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.store-info {
    padding: 40px;
}

.store-info h3 {
    font-size: 24px;
    font-weight: 400;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.store-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.8;
}

.store-info .address {
    margin-bottom: 20px;
}

.store-info .hours {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.store-info .hours h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form h2 {
    font-size: 36px;
    font-weight: 300;
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

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

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

.contact-info h2 {
    font-size: 36px;
    font-weight: 300;
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-details h3 {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.contact-details p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

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

.footer-section a {
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-section p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.7;
}

.footer-bottom .site-credit {
    font-size: 11px;
    margin-top: 10px;
    opacity: 0.5;
}

.footer-bottom .site-credit a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom .site-credit a:hover {
    text-decoration: underline;
}

/* Page Headers */
.page-header {
    background-color: var(--primary-blue);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 42px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Full Width Image Section */
.full-image-section {
    height: 400px;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
}

@media (max-width: 1024px) {
    .full-image-section {
        background-attachment: scroll;
        background-position: center center;
        height: 300px;
    }
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.social-links a:hover {
    opacity: 1;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Google Maps */
.store-map {
    width: 100%;
    height: 250px;
    border: none;
    margin-top: 20px;
}

.store-map-header {
    width: 100%;
    height: 250px;
    border: none;
    display: block;
}

.full-image-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(48, 85, 164, 0.5), transparent);
}

/* Sale Banner */
.sale-banner {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 60px 0;
}

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

.sale-banner .sale-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sale-banner .sale-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

.sale-text {
    text-align: left;
    color: var(--white);
}

.sale-text h2 {
    font-size: 42px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--white);
}

.sale-text .sale-discount {
    font-size: 64px;
    font-weight: 400;
    color: #f0c040;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.sale-text .sale-details {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sale-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .sale-text {
        text-align: center;
    }

    .sale-text h2 {
        font-size: 28px;
    }

    .sale-text .sale-discount {
        font-size: 48px;
    }

    .sale-text .sale-details {
        font-size: 16px;
    }

    .header-container {
        padding: 15px 20px;
    }

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

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
    }

    nav a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

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

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

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .section-header h2,
    .about-text h2,
    .contact-form h2,
    .contact-info h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .sale-banner {
        padding: 40px 0;
    }

    .sale-text h2 {
        font-size: 22px;
    }

    .sale-text .sale-discount {
        font-size: 36px;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 13px;
    }

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

    .page-header h1 {
        font-size: 28px;
    }
}
