/* ================================================
   Main Street Opticians - Modern Blue/Gray Theme
   ================================================ */

/* CSS Variables - New Color Palette */
:root {
    --primary: #1a1a1a;
    --accent: #2563eb;
    --accent-light: #3b82f6;
    --accent-dark: #1d4ed8;
    --blue: #0ea5e9;
    --teal: #14b8a6;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--primary);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ================================================
   Navigation
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

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

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.navbar.scrolled .logo-icon {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links>li {
    position: relative;
}

.nav-links>li>a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.navbar.scrolled .nav-links>li>a {
    color: var(--gray-700);
}

.nav-links>li>a:hover {
    color: var(--white);
}

.navbar.scrolled .nav-links>li>a:hover {
    color: var(--accent);
}

.arrow {
    font-size: 10px;
    transition: var(--transition);
}

.nav-links>li:hover .arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    background: var(--white);
    min-width: 160px;
    padding: 12px 0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--gray-600);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    color: var(--accent);
    background: var(--gray-50);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--white);
}

.navbar.scrolled .icon-btn {
    color: var(--gray-700);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .icon-btn:hover {
    background: var(--gray-100);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.nav-phone {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--white);
}

.navbar.scrolled .nav-phone {
    color: var(--gray-700);
}

.nav-phone:hover {
    background: var(--accent);
    color: var(--white);
}

.nav-phone svg {
    width: 18px;
    height: 18px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--primary);
}

/* ================================================
   Hero Section - Store Background
   ================================================ */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    overflow: hidden;
}

/* Background Image */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.85) 0%,
            rgba(30, 41, 59, 0.7) 50%,
            rgba(51, 65, 85, 0.5) 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 5;
}

.hero-text {
    max-width: 550px;
}

.hero-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--blue);
    margin-bottom: 16px;
    background: rgba(14, 165, 233, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
}

.hero-text h1 {
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--white);
}

.title-line.accent {
    color: var(--blue);
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 16px 36px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 36px;
    background: transparent;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Glasses Overlay */
.hero-product {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glasses-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
    mix-blend-mode: normal;
}

.glasses-image:hover {
    transform: rotate(0deg) scale(1.05);
}

/* ================================================
   Sections Common
   ================================================ */
section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

/* ================================================
   Services
   ================================================ */
.services {
    background: var(--gray-50);
}

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

.service-card {
    background: var(--white);
    padding: 40px 28px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card.featured {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--accent);
}

.service-card.featured .service-icon {
    color: var(--blue);
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

.service-card.featured p {
    color: rgba(255, 255, 255, 0.7);
}

/* ================================================
   Eyewear
   ================================================ */
.eyewear {
    background: var(--white);
}

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

.eyewear-content h2 {
    margin-bottom: 16px;
}

.eyewear-content p {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 24px;
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.brand-tags span {
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-700);
}

.promo-box {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    padding: 32px;
    border-radius: 12px;
    position: relative;
    display: inline-block;
    color: var(--white);
}

.promo-label {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--teal);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 1px;
}

.promo-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.promo-box p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.promo-box small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.eyewear-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.showcase-card {
    aspect-ratio: 1;
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.showcase-card:first-child {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.showcase-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-content {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    z-index: 2;
}

.showcase-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: var(--transition);
}

.showcase-card:hover .showcase-img {
    transform: scale(1.1);
}

/* ================================================
   Team
   ================================================ */
.team {
    background: var(--gray-50);
}

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

.doctor-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.doctor-card.retiring {
    border: 2px solid var(--accent);
}

.retiring-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
}

.doctor-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    margin: 0 auto 20px;
}

.doctor-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.doctor-role {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
}

.doctor-card p {
    font-size: 13px;
    color: var(--gray-500);
}

/* ================================================
   About
   ================================================ */
.about {
    background: var(--white);
}

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

.about-content h2 {
    margin-bottom: 32px;
}

.benefits {
    list-style: none;
}

.benefits li {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.check {
    width: 28px;
    height: 28px;
    background: var(--teal);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.benefits strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--gray-900);
}

.benefits p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

.testimonial-box {
    background: var(--gray-50);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--gray-100);
}

.quote {
    font-size: 80px;
    font-weight: 700;
    color: var(--gray-200);
    line-height: 1;
    position: absolute;
    top: 10px;
    left: 30px;
}

.testimonial-box>p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.testimonial-author {
    margin-bottom: 12px;
}

.testimonial-author strong {
    display: block;
    font-size: 14px;
    color: var(--gray-900);
}

.testimonial-author span {
    font-size: 12px;
    color: var(--gray-400);
}

.stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

/* ================================================
   Contact
   ================================================ */
.contact {
    background: var(--gray-50);
}

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

.contact-info h2 {
    margin-bottom: 32px;
}

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

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-item .icon {
    font-size: 20px;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.contact-item p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
}

.contact-item a {
    color: var(--accent);
}

.map-box {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-200);
}

/* ================================================
   Footer
   ================================================ */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

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

.footer-brand .logo-icon {
    width: 24px;
    height: 24px;
    color: var(--blue);
}

.footer-brand span {
    font-size: 14px;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
}

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

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

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

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

    .hero-text {
        max-width: 100%;
    }

    .hero-product {
        display: none;
    }

    .hero-cta {
        justify-content: center;
    }

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

    .eyewear-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}