/* ==========================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================== */
   :root {
    /* Colors */
    --clr-bg-main: #FAFAF8;     /* warm oat */
    --clr-bg-warm: #F2EFEB;     /* slightly darker oat for sections */
    --clr-text-main: #2D2A26;   /* deep charcoal/brown */
    --clr-text-muted: #6B655E;  /* warm grey */
    --clr-accent-gold: #C9A25E; /* elegant gold */
    --clr-accent-dark: #A58042;
    --clr-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-soft: 0 10px 40px rgba(45, 42, 38, 0.05);
    --shadow-hover: 0 20px 50px rgba(45, 42, 38, 0.12);
}

/* ==========================================
   RESET & GLOBAL STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--clr-text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-spacing {
    padding: 120px 0;
}

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

.bg-warm {
    background-color: var(--clr-bg-warm);
}

.bg-dark {
    background-color: var(--clr-text-main);
    color: var(--clr-bg-main);
}

/* ==========================================
   TYPOGRAPHY SPECIFICS
   ========================================== */
.eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--clr-accent-gold);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
}

h1 em {
    font-style: italic;
    color: var(--clr-accent-gold);
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--clr-text-muted);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--clr-text-main);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: #1a1816;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-text-main);
    border: 1px solid var(--clr-text-muted);
}

.btn-secondary:hover {
    border-color: var(--clr-text-main);
    background-color: rgba(45, 42, 38, 0.05);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-text-main);
    border: 1px solid var(--clr-text-main);
}

.btn-outline:hover {
    background-color: var(--clr-text-main);
    color: var(--clr-white);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--clr-text-main);
    border: 1px solid rgba(255,255,255,0.5);
    font-weight: 600;
}

.btn-glass:hover {
    background: var(--clr-white);
    transform: translateY(-2px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--clr-accent-gold);
    transition: var(--transition-fast);
}

.link-arrow:hover {
    color: var(--clr-accent-dark);
    transform: translateX(4px);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo-link {
    position: relative;
    width: 150px;
    height: 100%;
}

.nav-logo {
    position: absolute;
    top: 5px;
    left: 0;
    height: 180px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
    z-index: 10;
    
    /* This drops the logo's solid background, perfectly blending it into the header */
    mix-blend-mode: multiply;
}

.navbar.scrolled .nav-logo {
    height: 100px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--clr-accent-gold);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* Forces content to respect top padding */
    padding-top: 260px; /* Absolutely forces hero content below the massive logo */
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-image-wrapper {
    position: relative;
    height: 700px;
    width: 100%;
    border-radius: 200px 200px 0 0;
    overflow: hidden;
}

.image-accent-blob {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(201, 162, 94, 0.2), rgba(201, 162, 94, 0.05));
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

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

/* ==========================================
   STORY SECTION
   ========================================== */
.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.story-image-grid {
    position: relative;
    height: 600px;
}

.story-img-main {
    width: 80%;
    height: 90%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
}

.story-img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 60%;
    object-fit: cover;
    border-radius: 4px;
    border: 10px solid var(--clr-bg-main);
    box-shadow: var(--shadow-hover);
}

.highlight-text {
    font-size: 1.125rem;
    color: var(--clr-text-main);
    font-weight: 500;
    font-style: italic;
    border-left: 3px solid var(--clr-accent-gold);
    padding-left: 1.5rem;
    margin-top: 2rem;
}

/* ==========================================
   COLLECTION SECTION
   ========================================== */
.section-header {
    max-width: 600px;
    margin: 0 auto 5rem auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--clr-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 42, 38, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 2rem;
}

.product-desc {
    font-size: 0.9375rem;
    margin: 1rem 0;
    height: 60px; /* clamp height */
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-text-main);
}

/* ==========================================
   FEATURES / CRAFTSMANSHIP
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    text-align: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--clr-bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    transition: var(--transition-fast);
}

.feature-item:hover .icon-circle {
    background: var(--clr-accent-gold);
    color: var(--clr-white);
    transform: scale(1.1);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding-top: 100px;
}

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

.footer-logo {
    height: 150px;
    filter: invert(1); /* Turns dark graphics light, and light background dark */
    mix-blend-mode: screen; /* Drops the dark background onto the dark footer */
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
}

.footer h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--clr-white);
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul a {
    color: rgba(255,255,255,0.7);
}

.footer ul a:hover {
    color: var(--clr-accent-gold);
}

.qr-code-wrapper {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 1rem;
}

.qr-code {
    width: 120px;
    height: 120px;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.animate-up, .animate-in {
    opacity: 0;
    visibility: hidden;
}

/* Setup initial states for JS intersection observer */
.animate-up.is-visible {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    visibility: visible;
}

.animate-in.is-visible {
    animation: fadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    visibility: visible;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 992px) {
    .hero-container, .story-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-image-wrapper {
        height: 500px;
        order: -1; /* image on top for mobile */
    }

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

    .nav-links {
        display: none; /* simple mobile hide for now, could add hamburger */
    }
}
