/*
  DESMARÉ MAISON - Ultra Luxury Edition
  Inspired by Chanel, Hermès, Bottega Veneta
  Understated sophistication, quiet luxury
  ==========================================
*/

/* ========================================
   FONTS - Classic Luxury Pairing
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
    /* Hermès-inspired palette */
    --noir: #1a1a1a;
    --charcoal: #2d2d2d;
    --graphite: #4a4a4a;
    --silver: #8c8c8c;
    --pearl: #e8e6e1;
    --ivory: #f8f7f4;
    --blanc: #ffffff;

    /* Accent - subtle warm gold like Bottega */
    --gold: #b8a88a;
    --gold-light: #d4c9b5;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Jost', 'Helvetica Neue', sans-serif;

    /* Spacing - generous, breathing room */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Transitions - slow, deliberate */
    --ease-luxury: cubic-bezier(0.25, 0.1, 0.25, 1);
    --duration-slow: 0.8s;
    --duration-medium: 0.5s;
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--charcoal);
    background-color: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--gold-light);
    color: var(--noir);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========================================
   TYPOGRAPHY - Refined & Restrained
   ======================================== */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 0.08em;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: 0.06em;
}

h3 {
    font-size: 1.125rem;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

p {
    max-width: 55ch;
    color: var(--graphite);
}

.text-sm {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

.section {
    padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-2xl) 0;
    }
}

/* ========================================
   NAVIGATION - Minimal, Hermès-style
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    transition: all var(--duration-medium) var(--ease-luxury);
}

.nav.scrolled {
    background: rgba(248, 247, 244, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--pearl);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--noir);
}

.nav-links {
    display: none;
    list-style: none;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--graphite);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--noir);
    transition: width var(--duration-medium) var(--ease-luxury);
}

.nav-links a:hover::after {
    width: 100%;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--noir);
    transition: all var(--duration-medium) var(--ease-luxury);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* Mobile menu */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--ivory);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-slow) var(--ease-luxury);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.1em;
    color: var(--noir);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--duration-medium) var(--ease-luxury);
}

.mobile-nav.active a {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav a:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-nav a:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-nav a:nth-child(4) {
    transition-delay: 0.25s;
}

/* ========================================
   HERO - Editorial, Full-bleed
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    background: linear-gradient(180deg, var(--ivory) 0%, var(--pearl) 100%);
    position: relative;
}

.hero-brand {
    margin-bottom: var(--space-sm);
}

.hero-brand span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: var(--space-xs);
}

.hero h1 {
    color: var(--noir);
    margin-bottom: var(--space-md);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-style: italic;
    font-weight: 400;
    color: var(--graphite);
    margin-bottom: var(--space-lg);
}

.hero-cta {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--noir);
    padding: 1rem 2.5rem;
    border: 1px solid var(--noir);
    transition: all var(--duration-medium) var(--ease-luxury);
}

.hero-cta:hover {
    background: var(--noir);
    color: var(--blanc);
}

/* Scroll indicator - subtle */
.scroll-hint {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.scroll-hint span {
    font-size: 0.625rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--silver);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--silver), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* ========================================
   INTRO / ABOUT - Chanel-inspired
   ======================================== */
.intro {
    background: var(--blanc);
}

.intro-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.intro h2 {
    color: var(--noir);
    margin-bottom: var(--space-md);
}

.intro-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto var(--space-md);
}

.intro p {
    margin: 0 auto var(--space-sm);
    line-height: 2;
}

.intro p:last-of-type {
    margin-bottom: 0;
}

/* ========================================
   COLLECTION - Bottega Grid
   ======================================== */
.collection {
    background: var(--ivory);
}

.collection-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.collection-header h2 {
    color: var(--noir);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-md);
    }
}

.product {
    text-align: center;
}

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    margin-bottom: var(--space-md);
    overflow: hidden;
    background: var(--pearl);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-luxury);
}

.product:hover .product-image img {
    transform: scale(1.03);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background var(--duration-medium) var(--ease-luxury);
}

.product:hover .product-overlay {
    background: rgba(26, 26, 26, 0.15);
}

.product-overlay span {
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--blanc);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--duration-medium) var(--ease-luxury);
}

.product:hover .product-overlay span {
    opacity: 1;
    transform: translateY(0);
}

.product-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    color: var(--noir);
    margin-bottom: var(--space-xs);
}

.product-subtitle {
    font-size: 0.8125rem;
    color: var(--silver);
    letter-spacing: 0.05em;
}

/* ========================================
   VALUES - Hermès Philosophy
   ======================================== */
.values {
    background: var(--blanc);
}

.values-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.values-header h2 {
    color: var(--noir);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
}

.value {
    text-align: center;
    padding: var(--space-md);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    stroke: var(--gold);
    stroke-width: 1;
    fill: none;
}

.value h3 {
    color: var(--noir);
    margin-bottom: var(--space-sm);
    font-size: 0.75rem;
}

.value p {
    margin: 0 auto;
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* ========================================
   TESTIMONIALS - Whispered Elegance
   ======================================== */
.testimonials {
    background: var(--noir);
    color: var(--pearl);
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.testimonials-header h2 {
    color: var(--pearl);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial {
    text-align: center;
    padding: var(--space-md);
}

.testimonial blockquote {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.9;
    color: var(--pearl);
    margin-bottom: var(--space-md);
}

.testimonial blockquote::before {
    content: '"';
    display: block;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.testimonial cite {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-style: normal;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--silver);
}

/* ========================================
   NEWSLETTER - Refined CTA
   ======================================== */
.newsletter {
    background: var(--ivory);
}

.newsletter-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    color: var(--noir);
    margin-bottom: var(--space-sm);
}

.newsletter p {
    margin: 0 auto var(--space-lg);
    color: var(--graphite);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

@media (min-width: 480px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--noir);
    background: var(--blanc);
    border: 1px solid var(--pearl);
    outline: none;
    transition: border-color var(--duration-medium) var(--ease-luxury);
}

.newsletter-input::placeholder {
    color: var(--silver);
}

.newsletter-input:focus {
    border-color: var(--gold);
}

.newsletter-btn {
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--blanc);
    background: var(--noir);
    border: 1px solid var(--noir);
    cursor: pointer;
    transition: all var(--duration-medium) var(--ease-luxury);
}

.newsletter-btn:hover {
    background: transparent;
    color: var(--noir);
}

/* ========================================
   FOOTER - Understated
   ======================================== */
.footer {
    background: var(--noir);
    color: var(--silver);
    padding: var(--space-lg) 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.25em;
    color: var(--pearl);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.footer-links a {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--silver);
    transition: color var(--duration-medium) var(--ease-luxury);
}

.footer-links a:hover {
    color: var(--pearl);
}

.footer-copy {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    color: var(--graphite);
}

/* ========================================
   UTILITIES & ACCESSIBILITY
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}