/* ==========================================================================
   ÓPTICA D'LUCAS - PREMIUM LANDING PAGE CSS (LIGHT THEME)
   ========================================================================== */

/* --- CSS Variables & Root --- */
:root {
    /* Color Palette */
    --color-bg: #FFFFFF;
    /* Pure white background */
    --color-bg-alt: #FDFDFD;
    /* Slightly off-white for depth */
    --color-bg-card: #FFFFFF;
    /* Pure white content area */
    --color-border: #EAEAEA;

    --color-gold: #D4AF37;
    /* Strong metallic gold */
    --color-gold-hover: #b8952c;
    --color-gold-light: #e6cd98;

    --color-red-dark: #6b0c0c;
    /* Elegant Dark Red for accents/footer */

    --color-heading: #1A1A1A;
    /* Deep dark for high contrast */
    --color-text: #555555;
    /* Dark gray for reading */
    --color-text-muted: #7A7A7A;
    --color-white: #FFFFFF;

    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #1EBE5D;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-text: 'Inter', sans-serif;

    /* Spacing & Utilities */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    /* Very delicate shadow */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
    /* Sophisticated card shadow */
    --shadow-accent: 0 10px 30px rgba(155, 28, 28, 0.15);
    /* Soft red glow */

    --border-radius: 12px;
    /* Smoother premium rounding */
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-text);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    /* Headings over white background */
    font-weight: 500;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0;
    /* More breathing room */
}

.bg-gray {
    background-color: var(--color-bg-alt);
    /* Darker red section */
}

.mt-4 {
    margin-top: 2rem;
}

/* --- Typography Utilities --- */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title .subtitle,
.subtitle {
    display: block;
    color: var(--color-red-accent);
    /* Red used as elegant accent */
    font-family: var(--font-text);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    min-height: 48px;
    font-family: var(--font-text);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
    /* White text on gold */
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-gold-outline {
    background-color: transparent;
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-gold-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* --- Hero Badges --- */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-heading);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    /* subtle gold border */
    transition: var(--transition-fast);
}

.hero-badge i {
    color: var(--color-red-accent);
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--color-red-accent);
}

/* --- Navigation / Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}

.header.scrolled {
    background-color: #FFFFFF;
    /* White header on scroll */
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--color-border);
    z-index: 999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.header.scrolled .logo img {
    height: 35px;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

/* Initially dark links over the light hero */
.nav-link {
    color: var(--color-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

/* On scroll, keep dark text */
.header.scrolled .nav-link {
    color: var(--color-heading);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-red-accent);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--color-gold);
}

.nav-toggle {
    display: none;
    color: var(--color-heading);
    font-size: 1.5rem;
    cursor: pointer;
}

.header.scrolled .nav-toggle {
    color: var(--color-heading);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 4rem;
    background-image: url('https://images.unsplash.com/photo-1591076482161-42ce6da69f67?q=80&w=2000&auto=format&fit=crop');
    /* Added glasses image for top background */
    background-size: cover;
    background-position: center 40%;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.92));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-subtitle {
    display: inline-block;
    color: var(--color-red-accent);
    font-family: var(--font-text);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 4px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--color-red-accent);
    padding-left: 1rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--color-heading);
}

.hero-text {
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons .btn-outline {
    border-color: var(--color-heading);
    color: var(--color-heading);
}

.hero-buttons .btn-outline:hover {
    background-color: var(--color-heading);
    color: var(--color-white);
}

/* --- Features Section --- */
.features {
    background-color: var(--color-bg);
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: -8rem;
}

.feature-card {
    background-color: var(--color-bg-card);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-red-accent);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(155, 28, 28, 0.05);
    /* very soft red backdrop */
    color: var(--color-red-accent);
    /* Red accent */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition-fast);
}

.feature-card:hover .feature-icon {
    background-color: var(--color-red-accent);
    color: var(--color-white);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-heading);
}

.feature-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* --- Collections Section --- */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.collection-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.collection-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.collection-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-item:hover .collection-img img {
    transform: scale(1.05);
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.collection-item:hover .collection-overlay {
    opacity: 1;
}

.collection-info {
    padding: 1.5rem 0;
    text-align: center;
    background-color: var(--color-bg-card);
}

.collection-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

.collection-info p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--color-gold);
    color: var(--color-white);
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-gold);
}

.about-experience .number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.about-experience .text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-highlight {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--color-bg-alt);
    border-left: 3px solid var(--color-gold);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.highlight-icon {
    font-size: 2rem;
    color: var(--color-gold);
}

.highlight-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

.highlight-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--color-text);
}

.highlight-text strong {
    color: var(--color-heading);
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: var(--color-bg-card);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.stars {
    color: #FFC107;
    /* Golden yellow for stars looks better */
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-heading);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* --- Locations Section --- */
.locations {
    position: relative;
    background-color: var(--color-bg-alt);
    /* Light contrast */
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 992px) {
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.location-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.location-info {
    padding: 2.5rem;
    flex-grow: 1;
}

.location-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--color-heading);
}

.location-details {
    margin-bottom: 2rem;
}

.location-details li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.location-details i {
    color: var(--color-red-accent);
    margin-top: 0.3rem;
}

.location-details strong {
    color: var(--color-heading);
}

.location-map {
    height: 300px;
    width: 100%;
}

/* --- CTA Box / Contact --- */
.cta-box {
    background: linear-gradient(135deg, var(--color-red-dark) 0%, #4a0707 100%);
    /* Deep red gradient */
    border: 1px solid rgba(212, 175, 55, 0.3);
    /* Gold accent */
    border-radius: var(--border-radius);
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-card);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-heading);
}

.cta-content p {
    color: var(--color-text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.working-hours {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
}

.working-hours p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.hours-icon {
    font-size: 2rem;
    color: var(--color-gold);
}

/* --- Footer --- */
.footer {
    background-color: var(--color-red-dark);
    /* Deep red footer */
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    height: 50px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    /* Removed filter: brightness(0) invert(1) */
}

.footer-desc {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-heading);
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-red-accent);
    color: var(--color-white);
    transform: translateY(-3px);
    border-color: var(--color-red-accent);
}

.footer-title {
    font-family: var(--font-text);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-red-accent);
}

.footer-address li {
    margin-bottom: 1.5rem;
}

.footer-address strong {
    display: block;
    color: var(--color-heading);
    margin-bottom: 0.3rem;
}

.footer-address span {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-credits a {
    color: var(--color-red-accent);
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: var(--color-whatsapp-hover);
    transform: scale(1.1);
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Layout adjustments --- */
@media (max-width: 991px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-experience {
        bottom: -20px;
        right: 20px;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }

    .working-hours {
        justify-content: center;
        text-align: left;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-badges {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-bg);
        padding: 6rem 2rem;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--color-border);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.1rem;
        display: block;
        color: var(--color-heading);
        text-shadow: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        margin-top: -3rem;
    }

    .section {
        padding: 56px 0;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .whatsapp-float:hover .whatsapp-tooltip {
        display: none;
    }

    .header .nav-toggle {
        color: var(--color-heading);
        text-shadow: none;
    }

    .header.scrolled .nav-toggle {
        color: var(--color-heading);
        text-shadow: none;
    }
}