/*
Theme Name: Lumina Eyewear
Theme URI: https://yourwebsite.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: A luxury eyewear brand theme with ACF Pro powered content management.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lumina-eyewear
Tags: one-page, full-width-template, custom-colors, custom-menu, featured-images, theme-options
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg:        #FDFBF7;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-300: #d6d3d1;
    --color-stone-400: #a8a29e;
    --color-stone-500: #78716c;
    --color-stone-600: #57534e;
    --color-stone-900: #1c1917;
    --color-white:     #ffffff;
    --font-serif:      'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width:       80rem; /* 1280px / max-w-7xl */
    --max-width-md:    48rem; /* 768px / max-w-3xl */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-stone-900);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

::selection {
    background-color: var(--color-stone-900);
    color: var(--color-white);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container--narrow {
    max-width: var(--max-width-md);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   ANIMATIONS (replaces Framer Motion)
   ============================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.from-left {
    transform: translateX(-30px);
}

.animate-on-scroll.from-right {
    transform: translateX(30px);
}

.animate-on-scroll.delay-200 { transition-delay: 0.2s; }
.animate-on-scroll.delay-400 { transition-delay: 0.4s; }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Hero-specific animate (triggered immediately on load) */
.hero-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-animate.delay-200 { animation-delay: 0.2s; }
.hero-animate.delay-600 { animation-delay: 0.6s; }
.hero-animate.delay-800 { animation-delay: 0.8s; }

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(231, 229, 228, 0.5);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.site-nav__logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-stone-900);
    font-weight: 400;
}

.site-nav__links {
    display: none;
    align-items: center;
    gap: 3rem;
    list-style: none;
}

.site-nav__links a,
.site-nav__links button {
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-stone-900);
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-sans);
}

.site-nav__links a:hover,
.site-nav__links button:hover {
    color: var(--color-stone-500);
}

.site-nav__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin-right: -0.5rem;
    color: var(--color-stone-900);
}

.site-nav__hamburger svg {
    width: 1.5rem;
    height: 1.5rem;
    pointer-events: none;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    background-color: var(--color-bg);
    padding-top: 6rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    list-style: none;
}

.mobile-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu a,
.mobile-menu button {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-stone-900);
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    transition: color 0.2s ease;
    width: 100%;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
    color: var(--color-stone-500);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    width: 100%;
    padding-top: 5rem; /* account for fixed nav */
}

.hero__frame {
    position: absolute;
    inset: 0;
    top: 5rem;
    padding: 1.5rem 1.5rem 0;
}

.hero__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
}

.hero__image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.22);
}

.hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    color: var(--color-white);
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    max-width: 52rem;
    letter-spacing: -0.01em;
}

.hero__subtitle {
    margin-top: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    letter-spacing: 0.05em;
    font-weight: 300;
    max-width: 36rem;
    line-height: 1.6;
}

.hero__cta {
    margin-top: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: var(--color-white);
    color: var(--color-stone-900);
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 9999px;
    transition: background-color 0.2s ease;
    font-family: var(--font-sans);
    font-weight: 400;
    border: none;
    cursor: pointer;
}

.hero__cta:hover {
    background-color: var(--color-stone-200);
}

.hero__cta svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* ============================================================
   STORY SECTION
   ============================================================ */
.story {
    padding: 8rem 1.5rem;
}

.story__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.story__image-wrap {
    aspect-ratio: 4 / 3;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(28, 25, 23, 0.15);
}

.story__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.story__image-wrap:hover img {
    transform: scale(1.05);
}

.story__eyebrow {
    font-size: 0.8125rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-stone-500);
    margin-bottom: 1.5rem;
}

.story__heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 2rem;
    color: var(--color-stone-900);
}

.story__body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: var(--color-stone-600);
    font-size: 1.0625rem;
    line-height: 1.8;
    font-weight: 300;
}

/* ============================================================
   COLLECTION SECTION
   ============================================================ */
.collection {
    padding: 8rem 1.5rem;
    background-color: var(--color-stone-100);
}

.collection__header {
    text-align: center;
    margin-bottom: 5rem;
}

.collection__eyebrow {
    font-size: 0.8125rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-stone-500);
    margin-bottom: 1rem;
}

.collection__heading {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--color-stone-900);
}

.collection__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.collection__item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: var(--color-stone-200);
}

.collection__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.collection__item:hover img {
    transform: scale(1.05);
}

.collection__item-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.12);
    transition: background-color 0.5s ease;
}

.collection__item:hover .collection__item-overlay {
    background-color: rgba(0,0,0,0.22);
}

.collection__item-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: var(--color-white);
}

.collection__item-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.collection__item-subtitle {
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 300;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
    padding: 8rem 1.5rem;
}

.contact__inner {
    text-align: center;
}

.contact__eyebrow {
    font-size: 0.8125rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-stone-500);
    margin-bottom: 1.5rem;
}

.contact__heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 4rem;
    color: var(--color-stone-900);
    line-height: 1.2;
}

.contact__form {
    text-align: left;
}

.contact__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact__field {
    display: flex;
    flex-direction: column;
}

.contact__label {
    display: block;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-stone-500);
    margin-bottom: 0.5rem;
}

.contact__input,
.contact__textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-stone-300);
    padding: 0.75rem 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-stone-900);
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
    color: var(--color-stone-400);
}

.contact__input:focus,
.contact__textarea:focus {
    border-bottom-color: var(--color-stone-900);
}

.contact__textarea {
    resize: none;
}

.contact__submit-wrap {
    text-align: center;
    padding-top: 2rem;
    margin-top: 1rem;
}

.contact__submit {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--color-stone-900);
    color: var(--color-white);
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background-color 0.2s ease;
}

.contact__submit:hover {
    background-color: #2c2826;
}

.contact__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-notice {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.form-notice--success {
    color: #4a7c59;
    display: block;
}

.form-notice--error {
    color: #c0392b;
    display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--color-stone-900);
    color: var(--color-stone-400);
    padding: 4rem 1.5rem;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.site-footer__logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-white);
    font-weight: 400;
}

.site-footer__social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.site-footer__social a {
    color: var(--color-stone-400);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.site-footer__social a:hover {
    color: var(--color-white);
}

.site-footer__social svg {
    width: 1.25rem;
    height: 1.25rem;
}

.site-footer__copy {
    font-size: 0.875rem;
    font-weight: 300;
}

/* ============================================================
   RESPONSIVE — TABLET & DESKTOP
   ============================================================ */
@media (min-width: 768px) {
    /* Nav */
    .site-nav__links { display: flex; }
    .site-nav__hamburger { display: none; }

    /* Story */
    .story__grid {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }

    /* Collection */
    .collection__grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Stagger effect: items 2 and 4 shift down */
    .collection__item:nth-child(2),
    .collection__item:nth-child(4) {
        margin-top: 4rem;
    }

    /* Contact row */
    .contact__row {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer */
    .site-footer__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    /* Story */
    .story__grid {
        gap: 9rem;
    }
}
