/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
   :root {
    /* Brand Colors */
    --clr-olive: #808b68;
    --clr-olive-light: #b0ba9e;
    --clr-olive-dark: #5a6642;
    --clr-charcoal: #485338;
    --clr-white: #ffffff;
    --clr-light: #f4f6ec;
    --clr-border: #e6e9e0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;

    /* Shadows & Transitions */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(51, 54, 49, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: var(--space-md);
    color: #555;
    font-weight: 300;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--space-xxl) 0;
}

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

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

.mt-2 { margin-top: var(--space-lg); }
.mt-3 { margin-top: var(--space-xl); }

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--clr-olive-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--clr-white);
    color: var(--clr-charcoal);
}

.btn-secondary:hover {
    background-color: var(--clr-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-charcoal);
    color: var(--clr-charcoal);
}

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

.btn-outline-light {
    background-color: transparent;
    border-color: var(--clr-white);
    color: var(--clr-white);
}

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

.btn-link {
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    position: relative;
    display: inline-block;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--clr-olive);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.icon-small {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--clr-border);
    z-index: 1000;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.navbar.scrolled {
    padding: 0.2rem 0;
    box-shadow: var(--shadow-sm);
}

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

.brand-logo {
    height: 80px;
    width: auto;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

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

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--clr-charcoal);
    position: relative;
}

.nav-links a:hover {
    color: var(--clr-olive);
}

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

.nav-actions a, .mobile-menu-btn {
    color: var(--clr-charcoal);
    display: flex;
    align-items: center;
}

.nav-actions a:hover {
    color: var(--clr-olive);
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: block;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--clr-white);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-menu.active {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .mobile-menu-btn { display: none; }
    .mobile-menu { display: none !important; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Offset for nav */
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-position: center 20%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(247,248,245,0.8) 100%);
}

.hero-content {
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   New Arrivals
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

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

@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: 1.5rem; }
}

.product-card {
    group: product;
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 3/4;
    margin-bottom: 1rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
}

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

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

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-olive-dark);
    display: block;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--clr-charcoal);
}

/* ==========================================================================
   Shop By Category
   ========================================================================== */
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    height: auto;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 300px;
        gap: 1.5rem;
    }
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    display: block;
    aspect-ratio: 1;
}

@media (min-width: 768px) {
    .category-card { aspect-ratio: auto; }
    
    .category-card.large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.category-card img {
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.category-overlay h3 {
    color: var(--clr-white);
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

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

/* ==========================================================================
   Featured Collection
   ========================================================================== */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.featured-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.featured-content {
    padding-right: 2rem;
}

.featured-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Brand Story
   ========================================================================== */
.story-container {
    max-width: 800px;
}

.story-container h2 {
    color: var(--clr-olive-dark);
}

.story-container p {
    font-size: 1.25rem;
    line-height: 1.8;
}

/* ==========================================================================
   Fashion Editorial Banner
   ========================================================================== */
.editorial-banner {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 54, 49, 0.4);
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
    color: var(--clr-white);
    padding: 0 1.5rem;
}

.banner-content h2 {
    color: var(--clr-white);
}

.banner-content p {
    color: var(--clr-white);
    opacity: 0.9;
    font-size: 1.125rem;
}

/* ==========================================================================
   Instagram Section
   ========================================================================== */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .insta-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.insta-grid img {
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition);
}

.insta-grid img:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Visit Our Store
   ========================================================================== */
.store-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .store-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.store-address {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    color: var(--clr-olive-dark);
    margin-bottom: 1rem;
}

.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-section {
    background-color: var(--clr-olive);
    color: var(--clr-white);
    padding: var(--space-xxl) 0;
}

.cta-section h2 {
    color: var(--clr-white);
}

.cta-section p {
    color: var(--clr-light);
    opacity: 0.9;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-olive-dark);
    color: var(--clr-white);
    padding: var(--space-xxl) 0 2rem;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand .footer-logo {
    height: 90px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand .brand-text-footer {
    font-family: var(--font-heading);
    color: var(--clr-white);
}

.brand-tagline {
    color: var(--clr-olive-light);
    font-style: italic;
}

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

.footer-links ul {
    list-style: none;
}

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

.footer a {
    color: #ccc;
}

.footer a:hover {
    color: var(--clr-olive-light);
}

.footer p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--clr-olive);
    color: var(--clr-white);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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