/* ========================================
   ÉLAN — Modern Fashion Brand
   Design: Editorial / Magazine aesthetic
   Palette: Warm beige, cream, charcoal
   ======================================== */

:root {
    --color-bg:        #f7f3ee;
    --color-bg-warm:   #ede7dd;
    --color-bg-dark:   #1a1a1a;
    --color-text:      #2c2c2c;
    --color-text-light:#8a837a;
    --color-accent:    #c9a96e;
    --color-accent-dark:#b08d4a;
    --color-white:     #ffffff;
    --color-border:    #ddd6cc;

    --font-display:    'Fraunces', serif;
    --font-body:       'DM Sans', sans-serif;

    --section-pad:     clamp(60px, 8vw, 120px);
    --side-pad:        clamp(20px, 5vw, 80px);
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== Announcement Bar ===== */
.announcement-bar {
    background: var(--color-bg-dark);
    color: var(--color-accent);
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ===== Navigation ===== */
.nav-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.4s, box-shadow 0.4s;
    padding: 18px 0;
}
.nav-bar.scrolled {
    background: rgba(247,243,238,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--color-border);
}
.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--side-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--color-bg-dark);
    transition: color 0.3s;
}
.nav-bar:not(.scrolled) .logo { color: var(--color-white); }
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
    transition: color 0.3s;
    position: relative;
}
.nav-bar:not(.scrolled) .nav-links a { color: var(--color-white); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a i { font-size: 20px; }
.nav-links--right { gap: 20px; }
.nav-links--right a {
    position: relative;
}
.cart-count {
    position: absolute;
    top: -6px; right: -10px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.menu-toggle { display: none; }
.menu-toggle i { font-size: 28px; }

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}
.hero-image {
    position: absolute;
    inset: 0;
}
.hero-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.12); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--side-pad);
}
.hero-season {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
    font-weight: 500;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    line-height: 1.05;
    color: var(--color-white);
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: clamp(15px, 1.5vw, 18px);
    color: rgba(255,255,255,0.75);
    max-width: 420px;
    line-height: 1.7;
    margin-bottom: 32px;
    font-weight: 300;
}
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.35s ease;
}
.btn--light {
    background: var(--color-white);
    color: var(--color-bg-dark);
}
.btn--light:hover {
    background: var(--color-accent);
    color: var(--color-white);
}
.btn--dark {
    background: var(--color-bg-dark);
    color: var(--color-white);
}
.btn--dark:hover {
    background: var(--color-accent-dark);
}
.btn--full { width: 100%; justify-content: center; }
.btn i { transition: transform 0.3s; }
.btn:hover i { transform: translateX(4px); }

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 10px;
}
.section-label--light { color: var(--color-white); opacity: 0.7; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text);
}

/* ===== Collection ===== */
.collection {
    padding: var(--section-pad) var(--side-pad);
    max-width: 1400px;
    margin: 0 auto;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-grid--wide {
    gap: 32px;
}
.product-card { position: relative; }
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--color-bg-warm);
}
.product-image img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-image img {
    transform: scale(1.08);
}
.product-tag {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--color-bg-dark);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
}
.quick-add {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(26,26,26,0.9);
    backdrop-filter: blur(8px);
    color: var(--color-white);
    padding: 14px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .quick-add {
    transform: translateY(0);
}
.product-info { padding: 16px 4px 8px; }
.product-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}
.product-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

/* ===== Brand Story ===== */
.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    background: var(--color-bg-warm);
}
.story-image {
    overflow: hidden;
}
.story-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.story:hover .story-image img {
    transform: scale(1.03);
}
.story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 6vw, 80px);
}
.story-content .section-title {
    margin-bottom: 20px;
}
.story-text {
    font-size: 15px;
    line-height: 1.85;
    color: var(--color-text-light);
    margin-bottom: 36px;
    max-width: 440px;
}
.story-stats {
    display: flex;
    gap: 40px;
}
.stat {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--color-accent-dark);
    line-height: 1.1;
}
.stat-number span { font-size: 24px; }
.stat-label {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ===== New Arrivals ===== */
.new-arrivals {
    padding: var(--section-pad) var(--side-pad);
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== Newsletter ===== */
.newsletter {
    background: var(--color-bg-dark);
    padding: var(--section-pad) var(--side-pad);
    text-align: center;
}
.newsletter-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 32px;
}
.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto 16px;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input:focus { border-color: var(--color-accent); }
.newsletter-form .btn { border: none; flex-shrink: 0; }
.newsletter-note {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* ===== Footer ===== */
.footer {
    background: var(--color-bg-warm);
    padding: 60px var(--side-pad) 24px;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 8px;
}
.footer-col--logo p {
    font-size: 14px;
    color: var(--color-text-light);
}
.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
    font-size: 14px;
    color: var(--color-text-light);
    transition: color 0.3s;
}
.footer-col ul a:hover { color: var(--color-accent-dark); }
.social-icons {
    display: flex;
    gap: 16px;
}
.social-icons a {
    font-size: 22px;
    color: var(--color-text-light);
    transition: color 0.3s;
}
.social-icons a:hover { color: var(--color-accent-dark); }
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 20px;
}
.footer-bottom p {
    font-size: 12px;
    color: var(--color-text-light);
    text-align: center;
}

/* ===== Cart Drawer ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--color-bg);
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}
.cart-header h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
}
.cart-close { font-size: 24px; color: var(--color-text); }
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.cart-empty {
    text-align: center;
    color: var(--color-text-light);
    margin-top: 60px;
    font-size: 14px;
}
.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.cart-item-img {
    width: 80px; height: 100px;
    object-fit: cover;
    background: var(--color-bg-warm);
}
.cart-item-details { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.cart-item-price { font-size: 14px; color: var(--color-text-light); }
.cart-item-remove {
    font-size: 12px;
    color: var(--color-accent-dark);
    margin-top: 8px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-body);
}
.cart-item-remove:hover { text-decoration: underline; }
.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--color-border);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ===== Animations / Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .story { grid-template-columns: 1fr; min-height: auto; }
    .story-image { aspect-ratio: 16/9; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .product-grid { grid-template-columns: 1fr; gap: 16px; }
    .product-image { aspect-ratio: 1; }
    .product-grid--wide { grid-template-columns: 1fr; }
    .story-stats { flex-direction: column; gap: 20px; }
    .footer-inner { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form .btn { width: 100%; }
}
