/* ==========================================================================
   CSS Variables for Theming
   ========================================================================== */
:root {
    --primary-bg: #F9F7F5; /* Warm, creamy off-white */
    --text-main: #2C2C2C; /* Deep charcoal for high contrast, softer than black */
    --text-muted: #6A6A6A;
    --accent: #CFA670; /* Soft gold/brass tone */
    --accent-hover: #B88E5A;
    --white: #FFFFFF;
    --dark-bg: #1A1A1A;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Only hide cursor on devices with fine pointer (mouse) */
@media (pointer: fine) {
    * {
        cursor: none;
    }
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--text-main);
    color: var(--white);
    z-index: 10000;
    font-size: 0.9rem;
}

.skip-link:focus {
    top: 1rem;
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-main);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-main);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Interactive state for cursor */
.cursor-hover {
    width: 60px;
    height: 60px;
    background-color: rgba(207, 166, 112, 0.1);
    border-color: var(--accent);
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.section-subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

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

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

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

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

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

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

.arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.btn:hover .arrow-icon {
    transform: translateX(5px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar.scrolled {
    background-color: rgba(249, 247, 245, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled .nav-link, 
.navbar.scrolled .logo, 
.navbar.scrolled .icon-link {
    color: var(--text-main);
}

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

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

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.6rem;
    color: var(--white);
    font-style: italic;
    letter-spacing: 2px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.logo-m {
    font-size: 2.6rem;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent) 0%, #e8c88a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo {
    font-size: 1.6rem;
    font-style: italic;
    letter-spacing: 2px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.footer-logo .logo-m {
    font-size: 2.6rem;
    -webkit-text-fill-color: transparent;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-link {
    color: var(--white);
    font-size: 1.1rem;
    position: relative;
}

.icon-link:hover {
    color: var(--accent);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: 700;
    font-family: var(--font-body);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .hamburger-line {
    background-color: var(--text-main);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    background-color: rgba(249, 247, 245, 0.98);
    backdrop-filter: blur(10px);
}

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

.mobile-link {
    padding: 1rem 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-link:hover {
    color: var(--accent);
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-header h3 {
    font-size: 1.3rem;
    font-style: italic;
}

.cart-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-main);
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.cart-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 3rem 0;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-item-qty button {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    width: 28px;
    height: 28px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-qty span {
    font-size: 0.9rem;
    min-width: 1.2rem;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: underline;
    align-self: flex-start;
    margin-top: 0.25rem;
}

.cart-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cart-checkout {
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}

.hero-content {
    color: var(--white);
    padding: 0 2rem;
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    opacity: 0.7;
}

.scroll-indicator p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    50% { top: 20px; opacity: 0; }
    100% { top: 6px; opacity: 0; }
}

/* ==========================================================================
   Collections Section
   ========================================================================== */
.collections {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.product-card {
    position: relative;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    margin-bottom: 1.5rem;
}

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

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

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

.product-card:hover .product-overlay {
    opacity: 1;
    transform: translateY(0);
}

.btn-quick-add {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.9);
}

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

.product-name {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.product-notes {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.product-price {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-main);
}

.link-view-all {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 4px;
}

.link-view-all:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.view-all-wrap {
    margin-top: 4rem;
}

/* ==========================================================================
   Parallax Quote Section
   ========================================================================== */
.parallax-quote {
    position: relative;
    padding: 10rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.7);
    z-index: -1;
}

.quote-content {
    max-width: 800px;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.quote-author {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

/* ==========================================================================
   Story Section
   ========================================================================== */
.story {
    padding: 8rem 2rem;
    background-color: var(--white);
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6rem;
}

.story-image-wrap {
    flex: 1;
    position: relative;
}

.story-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    z-index: 2;
    position: relative;
}

.story-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    z-index: 1;
}

.story-content {
    flex: 1;
}

.story-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.story-content .btn {
    margin-top: 1.5rem;
}

/* ==========================================================================
   Why Us Section
   ========================================================================== */
.why-us {
    background-color: var(--white);
    padding: 8rem 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.why-us-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}

.why-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
}

.why-icon svg {
    width: 100%;
    height: 100%;
}

.why-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.why-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 4rem 2rem;
}

.footer-minimal {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
}

.footer-copy {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .story-container {
        flex-direction: column;
        gap: 4rem;
    }
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .hero-title {
        font-size: 3rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .parallax-quote {
        padding: 6rem 2rem;
    }
    .quote-text {
        font-size: 1.8rem;
    }
    .why-us-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    /* Disable custom cursor on mobile */
    .cursor-dot, .cursor-outline {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
}
