/* ----------------------------------- */
/* 1. Global & Utility Styles */
/* ----------------------------------- */

:root {
    --color-primary: #333333; /* Near Black / Deep Charcoal for text */
    --color-secondary: #9A8C98; /* Muted Lavender/Taupe for accents */
    --color-accent: #C9AD9D; /* Rose Gold/Nude for highlights */
    --color-background: #FFFFFF; /* Clean White */
    --color-light-bg: #F8F8F8; /* Off-White/Cream for subtle separation */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-primary);
    line-height: 1.6;
    background-color: var(--color-background);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.cta-button {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background-color: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

.primary-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

/* ----------------------------------- */
/* 2. Header & Navigation */
/* ----------------------------------- */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-light-bg);
    position: sticky; /* Keeps the menu visible while scrolling */
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

/* ----------------------------------- */
/* 3. Hero Section (Responsiveness Focus) */
/* ----------------------------------- */

.hero-section {
    position: relative;
    width: 100%;
    height: 80vh; /* Takes up 80% of the viewport height */
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent background for readability */
    padding: 2rem;
    max-width: 500px;
    text-align: left;
}

.hero-headline {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-subtext {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ----------------------------------- */
/* 4. Collection Grid */
/* ----------------------------------- */

.collection-grid-section {
    padding: 5rem 5%;
    background-color: var(--color-light-bg);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 20px;
}

.collection-item {
    position: relative;
    height: 400px; /* Uniform height for visual consistency */
    display: block;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Placeholder Background Images - Replace with your actual image paths in HTML classes */
.frocks { background-image: url('images/collection-frocks.jpg'); }
.denim { background-image: url('images/collection-denim.jpg'); }
.tops { background-image: url('images/collection-tops.jpg'); }

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    color: var(--color-background);
    padding: 1rem;
    text-align: center;
    transition: background 0.3s ease;
}

.collection-item:hover .collection-overlay {
    background: rgba(var(--color-accent), 0.7); /* Accent color on hover */
}

.collection-overlay h3 {
    margin: 0;
    font-size: 1.4rem;
}


/* ----------------------------------- */
/* 5. Product Cards & New Arrivals */
/* ----------------------------------- */

.new-arrivals-section {
    padding: 5rem 5%;
}

.product-carousel {
    display: flex;
    overflow-x: auto; /* Enables horizontal scrolling for the cards */
    gap: 25px;
    padding-bottom: 2rem; /* Space for the scroll bar */
}

.product-card {
    min-width: 280px; /* Fixed width for card size */
    background-color: var(--color-background);
    border: 1px solid #eee;
    text-align: center;
    flex-shrink: 0; /* Prevents items from shrinking */
}

.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.product-info {
    padding: 1rem 0.5rem;
}

.product-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-price {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.view-all-link {
    display: block;
    text-align: center;
    margin-top: 2rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ----------------------------------- */
/* 6. Brand Story & Footer */
/* ----------------------------------- */

.brand-story-section {
    background-color: var(--color-light-bg);
    padding: 4rem 5%;
    text-align: center;
}

.story-content {
    max-width: 700px;
    margin: 0 auto;
}

.story-headline {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.main-footer {
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 3rem 5%;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for links */
    gap: 40px;
    margin-bottom: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-column a {
    color: #ccc;
    display: block;
    margin-bottom: 0.5rem;
}

.newsletter-form input, .subscribe-btn {
    padding: 0.5rem;
    border: none;
}

.newsletter-form input {
    margin-right: -4px; /* Align button perfectly */
}

.subscribe-btn {
    background-color: var(--color-accent);
    color: var(--color-primary);
    cursor: pointer;
}


/* ----------------------------------- */
/* 7. Mobile Responsiveness (Media Queries) */
/* ----------------------------------- */

@media (max-width: 768px) {
    
    .main-header {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    .main-nav li {
        margin: 5px 0;
    }

    .hero-section {
        height: 60vh;
    }

    .hero-content {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        padding: 1.5rem;
        text-align: center;
        max-width: 100%;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .collection-grid {
        grid-template-columns: 1fr; /* Stack collections vertically on mobile */
    }

    .footer-links {
        grid-template-columns: 1fr; /* Stack footer columns vertically */
        text-align: center;
    }
}

/* CONTACT PAGE REVISIONS FOR BRANCHES */
.branch-locations-grid {
    display: grid;
    /* 3 columns on desktop: two branches + one for general contact */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-bottom: 4rem;
}

.location-card {
    background-color: var(--color-light-bg);
    padding: 2rem;
    border: 1px solid #eee;
    text-align: left;
}

.location-headline {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.location-card p {
    margin-bottom: 1.5rem;
}

.contact-detail-row {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.contact-detail-row strong {
    font-weight: 700;
    display: inline-block;
    min-width: 70px; /* Aligns the data points */
    margin-right: 5px;
}

/* Style for the smaller button on the location cards */
.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Mobile Responsiveness for Contact Page */
@media (max-width: 992px) {
    /* Change to 2 columns on medium screens */
    .branch-locations-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    .general-contact {
        /* Makes the third column span both on 2-column layout */
        grid-column: span 2; 
    }
}

@media (max-width: 768px) {
    /* Stack columns vertically on small screens */
    .branch-locations-grid {
        grid-template-columns: 1fr; 
    }
    .general-contact {
        grid-column: span 1; 
    }
}

/* ABOUT US PAGE SPECIFIC STYLES */
.about-page-content {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.story-hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.story-hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    margin-top: 2rem;
}

/* Mission/Vision Section (Image/Text Split) */
.mission-vision-section {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 5rem;
}

.mission-text {
    flex: 1;
    padding: 2rem;
}

.mission-image {
    flex: 1;
}

.image-half {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.sub-headline {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-accent); /* Use your accent color */
    margin-bottom: 1rem;
}

/* Value Cards Grid */
.value-proposition-section {
    padding: 3rem 0;
    text-align: center;
}

.value-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 2rem;
}

.value-card {
    padding: 1.5rem;
    border: 1px solid var(--color-light-bg);
    background-color: var(--color-background);
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.value-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.value-card .icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.value-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Founder Quote Section */
.founder-section {
    padding: 4rem 5%;
    background-color: var(--color-light-bg);
    margin: 4rem 0;
    text-align: center;
}

.founder-quote {
    font-style: italic;
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    color: var(--color-primary);
    border-left: 4px solid var(--color-accent);
    padding-left: 20px;
    text-align: left;
}

.founder-quote cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-secondary);
}

.about-cta-section {
    text-align: center;
    padding-bottom: 3rem;
}

/* Mobile Responsiveness for About Page */
@media (max-width: 768px) {
    .mission-vision-section {
        flex-direction: column; /* Stack image and text vertically */
    }
    .value-cards-grid {
        grid-template-columns: 1fr; /* Stack value cards vertically */
    }
    .mission-text, .mission-image {
        padding: 0;
    }
    .founder-quote {
        font-size: 1.2rem;
        padding-left: 15px;
    }
    .secondary-btn {
        margin-left: 0 !important; /* Override inline style */
        margin-top: 10px;
    }
}