/* Base Variables */
:root {
    /* Color Palette */
    --bg-color: #F9F9F7;
    /* warm cream/off-white */
    --text-color: #2C2C2C;
    /* dark charcoal */
    --text-muted: #666666;
    --accent-sand: #D4C5B0;
    --accent-terracotta: #E07A5F;
    --white: #FFFFFF;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Manrope', sans-serif;

    /* Spacing */
    --container-width: 1400px;
    --section-padding: 120px;

    /* Effects */
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 30px;
    color: var(--text-color);
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.eyebrow {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-terracotta);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--white);
    border: 1px solid var(--text-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-color);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(249, 249, 247, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    /* Changed to full width */
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Reduced filter as requested */
    filter: brightness(1.02) contrast(1.0);
}

/* Reduced opacity for the overlay to show more image */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(249, 249, 247, 0.8) 0%, rgba(249, 249, 247, 0.4) 40%, rgba(249, 249, 247, 0) 100%);
}

.hero-content {
    max-width: 600px;
    z-index: 1;
    position: relative;
    margin-left: 5%;
    /* Slight offset */
}

/* Models Section */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Reduced minmax to fit 3 easily on desktop */
    gap: 30px;
    margin-top: 60px;
}

.model-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--white);
    transition: var(--transition);
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.model-image {
    height: 300px;
    overflow: hidden;
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.model-card:hover .model-image img {
    transform: scale(1.05);
}

.model-info {
    padding: 30px;
}

.model-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.model-info p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Spotlight Section */
.section-padding {
    padding: var(--section-padding) 0;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.spotlight-image .image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.spotlight-image img {
    transition: transform 0.6s ease;
}

.spotlight-image:hover img {
    transform: scale(1.03);
}

.features {
    margin: 30px 0;
    padding-left: 20px;
    border-left: 2px solid var(--accent-sand);
}

.features li {
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 500;
}

.price-block {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Shop the Look */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.look-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 500px;
    gap: 30px;
}

.look-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.look-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.main-look:hover img {
    transform: scale(1.02);
}

/* Hotspots */
.hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.hotspot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--text-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--white);
}

.hotspot:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-color);
    color: var(--white);
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 1;
}

/* Editorial Section */
.editorial-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: center;
}

.editorial-visual {
    position: relative;
}

.editorial-visual img {
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
}

.visual-deco {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 100%;
    height: 100%;
    background: var(--accent-sand);
    opacity: 0.3;
    border-radius: 8px;
    z-index: 1;
}

.editorial-content h2 {
    font-size: 3.5rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-top: 30px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.link-arrow:hover {
    color: var(--accent-terracotta);
}

/* Footer */
.footer {
    background: var(--white);
    padding: 100px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 20px;
}

.footer h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 15px;
}

.footer ul li a {
    color: var(--text-muted);
}

.footer ul li a:hover {
    color: var(--text-color);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-family: var(--font-body);
}

.newsletter-form button {
    padding: 12px 24px;
    background: var(--text-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 30px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* Purchasing Section Styles - Global for Mobile Site */
.collection-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.purchasing-section {
    padding: 20px;
    background-color: #f9f9f7;
    border-radius: 8px;
    order: 2;
}

.models-grid {
    order: 1;
}

.variant-btn {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: #666;
    transition: all 0.2s ease;
}

.variant-btn:hover {
    border-color: #000;
    color: #000;
}

.variant-btn.active {
    border-color: #000;
    background-color: #000;
    color: white;
    font-weight: 500;
}

.commander-btn {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    color: #666;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s ease;
    text-align: center;
}

.commander-btn:hover {
    border-color: #000;
    color: #000;
}

.error-msg {
    display: none;
    color: #e74c3c;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero-image-container {
        width: 100%;
        top: 0;
        height: 100%;
        opacity: 0.7;
    }

    .hero-overlay {
        background: linear-gradient(to top, rgba(249, 249, 247, 0.5) 0%, rgba(249, 249, 247, 0.2) 100%);
    }

    .hero-content {
        margin-top: 100px;
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }




    .spotlight-image {
        order: -1;
    }

    .look-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .editorial-container {
        grid-template-columns: 1fr;
    }

    .editorial-visual {
        order: -1;
        margin-bottom: 40px;
        margin-left: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-icons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        min-height: 100vh;
        padding-top: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent scrolling behind */
    background-color: rgba(0, 0, 0, 0.9);
    /* Flexbox for centering */
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 100%;
    /* Take full width to allow centering inside */
    height: 100%;
    /* Take full height */
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    pointer-events: none;
    /* Let clicks pass through empty areas to modal? No, we handle it in JS */
    pointer-events: auto;
}

.mySlides {
    display: none;
    width: 100%;
    text-align: center;
}

.mySlides img {
    max-width: 100%;
    max-height: 85vh;
    /* Ensure image fits vertically within the viewport */
    object-fit: contain;
    /* Maintain aspect ratio */
    border-radius: 4px;
}

/* Close Button */
.close-btn {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 1001;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}