/* --- CSS VARIABLES & GLOBAL STYLES --- */
:root {
    --color-peach: #FFCAB1;
    --color-blue: #69A2B0;
    --color-green: #659157;
    --color-dark: #2c2c2c;
    --color-light: #fdfaf7;
    --color-white: #ffffff;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-s: 1rem;
    --spacing-m: 2rem;
    --spacing-l: 4rem;
    --spacing-xl: 6rem;

    --transition-fast: 0.3s ease-in-out;
    --transition-slow: 0.6s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.2;
}

h1 { font-size: 4rem; margin-bottom: var(--spacing-s); }
h2 { font-size: 2.5rem; margin-bottom: var(--spacing-m); }
h3 { font-size: 1.3rem; margin-bottom: var(--spacing-s); }
p { margin-bottom: var(--spacing-s); max-width: 65ch; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-l);
}

/* --- BUTTONS & REUSABLE COMPONENTS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-blue);
    color: var(--color-white);
    border-color: var(--color-blue);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--color-blue);
}

.btn-secondary {
    background-color: var(--color-light);
    color: var(--color-dark);
    border-color: var(--color-light);
}
.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-light);
}


/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-s) 0;
    transition: background-color var(--transition-fast), padding var(--transition-fast);
    background-color: rgba(253, 250, 247, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-m);
}

.main-nav a {
    position: relative;
    padding: var(--spacing-xs) 0;
    font-weight: 500;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background-color: var(--color-dark);
    transition: all 0.2s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 2px;
    background-color: var(--color-dark);
    transition: all 0.2s ease-in-out;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }


/* --- SECTION 1: HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--color-white);
    text-align: center;
    padding: 0;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Image 1, hero background: A moody, atmospheric shot of a classic landscape or interior. */
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    animation: zoom-in-slow 20s infinite alternate;
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero h1 { color: var(--color-white); }
.hero p {
    font-size: 1.25rem;
    max-width: 60ch;
    margin-bottom: var(--spacing-m);
}
@keyframes zoom-in-slow {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}


/* --- SECTION 2: ETHOS --- */
/* --- Redesigned Section 2: Ethos --- */
.ethos { 
    background-color: var(--color-white); 
    padding: var(--spacing-xl) 0;
}
.ethos-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12-column grid for precise placement */
    align-items: center;
    min-height: 600px;
}

.ethos-visuals {
    grid-column: 1 / 9; /* Visuals take up the left ~70% */
    grid-row: 1 / 2;
    position: relative;
    height: 100%;
}

.ethos-frame {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100%;
    height: 100%;
    z-index: 1;
}
/* Creating the corner border effect for a sophisticated frame */
.ethos-frame::before,
.ethos-frame::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-style: solid;
    border-color: var(--color-green);
}
.ethos-frame::before {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
}
.ethos-frame::after {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
}

.ethos-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 90%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    z-index: 2;
}

.ethos-secondary-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45%;
    height: 55%;
    object-fit: cover;
    border-radius: 4px;
    border: 8px solid var(--color-light);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 3;
}

.ethos-content {
    grid-column: 7 / 13; /* Text starts from the middle and goes to the end */
    grid-row: 1 / 2;
    background: var(--color-light);
    padding: var(--spacing-l);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-radius: 4px;
    z-index: 4; /* Ensures text is on top of everything */
}
.ethos-content p:last-child {
    margin-bottom: 0;
}

/* --- Redesigned Ethos: RESPONSIVE --- */

/* Tablet view: Simplify the overlap */
@media (max-width: 992px) {
    .ethos-container {
        min-height: auto;
    }
    .ethos-content {
        grid-column: 6 / 13;
        padding: var(--spacing-m);
    }
    .ethos-main-image {
        width: 90%;
    }
    .ethos-secondary-image {
        width: 50%;
    }
}

/* Mobile view: Stack elements for readability */
@media (max-width: 768px) {
    .ethos-container {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .ethos-visuals {
        position: relative;
        width: 100%;
        height: 400px; /* Give a fixed height to contain the absolute images */
        margin-bottom: -50px; /* Pull the text block up to create a slight overlap */
    }
    .ethos-content {
        position: relative;
        width: 100%;
        padding: var(--spacing-m);
        z-index: 5; /* Ensure it stays on top on mobile */
    }
    .ethos-frame {
        display: none; /* Hide the decorative frame on mobile as it becomes too busy */
    }
}
/* --- SECTION 3: FEATURED COLLECTIONS --- */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-m);
}
.collection-card {
    background-color: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.card-image { height: 400px; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-content { padding: var(--spacing-m); }
.card-content p { font-size: 0.9rem; margin-bottom: var(--spacing-s); }
.card-content span { font-weight: 500; color: var(--color-blue); }

/* --- SECTION 4: HERITAGE TEASER --- */
.heritage-teaser {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 70vh;
    color: var(--color-light);
}
.heritage-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Image: Black and white photo of a tailor's hands at work. */
    background-image: linear-gradient(to right, rgba(44,44,44,0.8) 0%, rgba(44,44,44,0.3) 100%), url('images/heritage-bg.webp');
    background-size: cover;
    background-position: center;
}
.heritage-content { position: relative; }
.heritage-text-box {
    background-color: rgba(105, 162, 176, 0.8); /* Glassmorphism effect using the blue */
    backdrop-filter: blur(10px);
    padding: var(--spacing-l);
    border-radius: 4px;
    max-width: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.heritage-text-box h2, .heritage-text-box h3 { color: var(--color-light); }
.sub-heading {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-peach);
}

/* --- SECTION 5: LOOKBOOK PREVIEW --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: var(--spacing-s);
}
.gallery-item { border-radius: 4px; overflow: hidden; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.large {
    grid-column: 2 / span 2;
    grid-row: 1 / span 2;
}
.gallery-cta {
    text-align: center;
    margin-top: var(--spacing-l);
}

/* --- SECTION 6: PHILOSOPHY --- */
.philosophy { background-color: var(--color-white); }
.philosophy-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}
.philosophy-content { flex: 1; }
.philosophy-image-wrapper {
    flex: 0.8;
    position: relative;
}
.philosophy-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--color-green);
    border-radius: 4px;
    z-index: 1;
}
.philosophy-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    position: relative;
    z-index: 2;
}

/* --- SECTION 7: NEWSLETTER --- */
.newsletter-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-l);
    background-color: var(--color-peach);
    padding: var(--spacing-l);
    border-radius: 8px;
}
.newsletter-content { flex: 1.5; }
.newsletter-form {
    display: flex;
    margin-top: var(--spacing-m);
}
.newsletter-form input {
    flex-grow: 1;
    padding: 12px;
    border: 2px solid var(--color-dark);
    border-radius: 4px 0 0 4px;
    background-color: var(--color-light);
    font-family: var(--font-body);
}
.newsletter-form button { border-radius: 0 4px 4px 0; }
.newsletter-image-stack {
    flex: 1;
    position: relative;
    min-height: 250px;
}
.newsletter-image-stack img {
    position: absolute;
    width: 60%;
    border-radius: 4px;
    border: 5px solid var(--color-white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.newsletter-image-stack .img-top {
    top: 0;
    left: 0;
    transform: rotate(-8deg);
    z-index: 2;
}
.newsletter-image-stack .img-bottom {
    bottom: 0;
    right: 0;
    transform: rotate(5deg);
    z-index: 1;
}

/* --- COLLECTIONS PAGE STYLES --- */

/* --- Section 1: Collection Hero --- */
.collection-hero {
    background-color: var(--color-light);
    padding-top: calc(var(--spacing-xl) + 80px); /* Add space for fixed header */
}
.collection-hero-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-l);
}
.hero-text-content {
    flex: 1;
}
.hero-image-container {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: -10px 10px 0 var(--color-blue);
}
.page-title {
    font-size: 4.5rem;
}
.subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-green);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-m);
}

/* --- Section 2: Gentleman's Focus --- */
.gentleman-focus {
    background-color: var(--color-white);
}
.focus-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-l) auto;
}
.gentleman-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 280px);
    gap: var(--spacing-m);
    grid-template-areas: 
        "main detail1"
        "main lifestyle";
}
.gentleman-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
}
.main-feature {
    grid-area: main;
}
.detail-shot-1 {
    grid-area: detail1;
}
.lifestyle-shot {
    grid-area: lifestyle;
}
/* A fourth image can be added here if needed by adjusting the grid */
.detail-shot-2 {
    display: none; /* Hiding for a 3-image layout, can be activated */
}

/* --- Section 3: Lady's Focus --- */
.lady-focus {
    position: relative;
    color: var(--color-dark);
}
.lady-focus-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-peach);
    clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 85%);
    z-index: 1;
}
.lady-focus-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--spacing-l);
}
.lady-focus-content {
    flex: 1;
}
.lady-focus-images {
    flex: 1.2;
    position: relative;
    height: 500px;
}
.lady-focus-images img {
    border-radius: 4px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    position: absolute;
    object-fit: cover;
}
.lady-image-1 {
    width: 70%;
    height: 80%;
    top: 0;
    left: 0;
}
.lady-image-2 {
    width: 50%;
    height: 60%;
    bottom: 0;
    right: 0;
    border: 5px solid var(--color-light);
}

/* --- Section 4: Essentials Edit --- */
.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}
.tab-buttons {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: var(--spacing-m);
}
.tab-btn {
    padding: var(--spacing-s) var(--spacing-m);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    transform: translateY(2px);
    transition: all var(--transition-fast);
}
.tab-btn.active {
    border-color: var(--color-green);
    color: var(--color-green);
}
.tab-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-l);
    animation: fadeIn 0.6s;
}
.tab-content.active {
    display: grid;
}
.tab-content img {
    border-radius: 4px;
    width: 100%;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Section 5: Material Story --- */
.material-story {
    background-image: linear-gradient(rgba(253,250,247,0.9), rgba(253,250,247,0.9)), url('images/material-bg.webp'); /* Image of fine fabric/wool */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}
.material-content {
    max-width: 800px;
}

/* --- Section 6: Accessories Atelier --- */
.accessories-atelier { background-color: var(--color-white); }
.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-m);
}
.accessory-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 400px;
}
.accessory-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.accessory-card:hover img {
    transform: scale(1.05);
}
.accessory-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: var(--spacing-l) var(--spacing-m) var(--spacing-m);
    color: var(--color-white);
    transform: translateY(100%);
    transition: transform var(--transition-fast);
}
.accessory-card:hover .accessory-overlay {
    transform: translateY(0);
}
.accessory-overlay h3 { color: var(--color-white); }
.accessory-text-card {
    background-color: var(--color-light);
    padding: var(--spacing-l);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.accessory-text-card a {
    font-weight: 500;
    color: var(--color-blue);
    margin-top: var(--spacing-s);
}

/* --- Section 7: Lookbook CTA --- */
.lookbook-cta {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/lookbook-bg.webp'); /* Compelling lifestyle image */
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--color-white);
}
.lookbook-cta-content h2 { color: var(--color-white); }
.lookbook-cta-content p {
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-m);
}


/* --- COLLECTIONS PAGE: RESPONSIVE --- */
@media (max-width: 992px) {
    .page-title { font-size: 3.5rem; }
    .collection-hero-container { flex-direction: column; }
    
    .lady-focus-container { flex-direction: column; }
    .lady-focus-images { width: 100%; }

    .gentleman-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: 
        "main"
        "detail1"
        "lifestyle";
    }
}

@media (max-width: 768px) {
    .page-title { font-size: 3rem; text-align: center;}
    .subtitle { text-align: center; }
    .hero-text-content p { text-align: center; }
    
    .lady-focus-bg { clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%); }
    .lady-focus-images { height: 400px; display: none; }
    .lady-image-1 { width: 80%; height: 70%; }
    .lady-image-2 { width: 60%; height: 50%; }

    .tab-content { grid-template-columns: 1fr; }
    .tab-content img { order: -1; margin-bottom: var(--spacing-m); height: 400px; object-fit: cover; }
    .tab-buttons { flex-wrap: wrap; }
    
    .material-story { background-attachment: scroll; } /* Parallax doesn't work well on mobile */
}

/* --- FOR MEN PAGE STYLES --- */

/* --- Section 1: Men's Hero --- */
/* --- Redesigned Section 1: Men's Hero --- */
.men-hero {
    position: relative; /* Context for absolute positioned children */
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, var(--color-light) 60%, #f7f4f1 100%); /* Subtle gradient background */
    padding: calc(var(--spacing-l) + 80px) 0; /* Vertical padding */
    overflow: hidden; /* Contains the decorative bg text */
}

.men-hero-container {
    position: relative;
    z-index: 3;
}

.men-hero-content-box {
    background-color: var(--color-white);
    padding: var(--spacing-l);
    max-width: 600px;
    border-left: 4px solid var(--color-blue);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-radius: 0 4px 4px 0;
}

.hero-overline {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-green);
    margin-bottom: var(--spacing-s);
}

.men-hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 2;
    /* This creates a soft fade on the left edge of the image */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%);
}

.men-hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.men-hero-bg-text {
    position: absolute;
    bottom: -2rem;
    right: 2rem;
    font-family: var(--font-heading);
    font-size: 10rem;
    font-weight: 700;
    color: #000;
    opacity: 0.04;
    z-index: 1;
    user-select: none;
    pointer-events: none;
}

/* --- Redesigned Men's Hero: RESPONSIVE --- */

/* Tablet view */
@media (max-width: 992px) {
    .men-hero {
        min-height: auto;
    }
    .men-hero-bg-image {
        width: 65%;
    }
    .men-hero-bg-text {
        font-size: 8rem;
    }
}

/* Mobile view */
@media (max-width: 768px) {
    .men-hero {
        background: var(--color-light);
        padding: calc(var(--spacing-m) + 80px) 0;
    }
    .men-hero-bg-image {
        /* On mobile, make the image a full background with low opacity */
        width: 100%;
        opacity: 0.1;
        mask-image: none; /* Remove the mask */
        z-index: 1;
    }
    .men-hero-container {
        width: 100%;
    }
    .men-hero-content-box {
        max-width: 100%;
        /* Make the box semi-transparent to hint at the background image */
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
        box-shadow: none;
        padding: var(--spacing-m);
        margin: 0 var(--spacing-s); /* Add some margin */
    }
    .men-hero-bg-text {
        display: none; /* Hide the decorative text on mobile to reduce clutter */
    }
}

/* --- Section 2: Men's Categories --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-m);
}
.category-card {
    position: relative;
    height: 350px;
    border-radius: 4px;
    overflow: hidden;
    display: block;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.category-card:hover img {
    transform: scale(1.05);
}
.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-m);
    transition: background var(--transition-fast);
}
.category-card:hover .category-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.category-card-overlay h3 {
    color: var(--color-white);
    transform: translateY(10px);
    opacity: 0;
    transition: all var(--transition-fast);
}
.category-card:hover .category-card-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

/* --- Section 3: The Anatomy of a Suit --- */
.suit-anatomy { background-color: var(--color-white); }
.section-subtitle {
    text-align: center;
    max-width: 70ch;
    margin: -1rem auto var(--spacing-l);
}
.anatomy-layout {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    margin-top: var(--spacing-l);
}
.anatomy-image {
    max-width: 400px;
}
.anatomy-point {
    position: absolute;
    max-width: 250px;
    padding: var(--spacing-s);
    background: var(--color-light);
    border-left: 3px solid var(--color-green);
}
.anatomy-point h4 { font-size: 1.1rem; }
.anatomy-point p { font-size: 0.9rem; margin-bottom: 0; }

.point-1 { top: 10%; right: 15%; }
.point-2 { top: 35%; left: 15%; }
.point-3 { bottom: 20%; right: 10%; }

/* --- Section 4: Casual Focus --- */
/* --- Redesigned Section 4: Casual Focus --- */
.casual-focus {
    background-color: var(--color-light);
}

.casual-focus-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Give text slightly more space */
    align-items: center;
    gap: var(--spacing-l);
}

.casual-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-s);
    height: 600px; /* A fixed height for the gallery container */
}

.gallery-v-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.gallery-v-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), opacity 0.4s ease, filter 0.4s ease;
}

.item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-m);
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: var(--color-white);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.item-caption h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
}

.item-caption span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- INTERACTIVITY RULES --- */

/* On hovering the gallery container, dim all images */
.casual-gallery:hover .gallery-v-item img {
    opacity: 0.6;
    filter: grayscale(70%);
}

/* On hovering a specific item, bring its image to full focus and scale it */
.casual-gallery .gallery-v-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* On hovering a specific item, reveal its caption */
.casual-gallery .gallery-v-item:hover .item-caption {
    transform: translateY(0);
    opacity: 1;
}

/* --- Redesigned Casual Focus: RESPONSIVE --- */

/* Tablet view */
@media (max-width: 992px) {
    .casual-focus-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-m);
    }
    .casual-gallery {
        /* Change to a horizontal layout for tablet */
        grid-template-columns: repeat(3, 1fr);
        height: 250px;
    }
    .casual-text {
        text-align: center;
    }
}

/* Mobile view */
@media (max-width: 768px) {
    .casual-gallery {
        height: 200px;
    }
    .item-caption {
        padding: var(--spacing-s);
    }
    .item-caption h4 {
        font-size: 1rem;
    }
    .item-caption span {
        display: none; /* Hide the smaller text on mobile to declutter */
    }
}

/* --- Section 5: Material Spotlight --- */
.material-spotlight {
    position: relative;
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
}
.spotlight-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}
.tweed .spotlight-bg {
    /* Image: Close-up of Harris Tweed fabric. */
    background-image: linear-gradient(rgba(44,44,44,0.7), rgba(44,44,44,0.7)), url('images/tweed-bg.webp');
}
.spotlight-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
}
.spotlight-content {
    background-color: rgba(101, 145, 87, 0.8); /* Glassmorphism Green */
    backdrop-filter: blur(8px);
    padding: var(--spacing-l);
    max-width: 50%;
    border-radius: 4px;
}
.spotlight-content h2, .spotlight-content h3 {
    color: var(--color-white);
}

/* --- Section 6: Men's Accessories --- */
/* --- Redesigned Section 6: Men's Accessories (Slider) --- */
.men-accessories { 
    background-color: var(--color-white); 
}

.accessory-slider {
    position: relative;
}

.slider-viewport {
    overflow: hidden;
    border-radius: 4px;
}

.slider-track {
    display: flex;
    width: 300%; /* 100% * number of slides */
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); /* Smooth easing */
}

.slide {
    width: 100%;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-l);
    background-color: var(--color-light);
}

.slide-image {
    height: 500px;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Animation for the image */
    transform: scale(1.1);
    opacity: 0;
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide-content {
    padding-right: var(--spacing-l);
}

.slide-content h3,
.slide-content p,
.slide-content .btn {
    /* Animation for the text content */
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Active Slide Animations --- */
.slide.is-active .slide-image img {
    transform: scale(1);
    opacity: 1;
}

.slide.is-active .slide-content h3 {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}
.slide.is-active .slide-content p {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}
.slide.is-active .slide-content .btn {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.4s;
}

/* --- Navigation & Pagination --- */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all var(--transition-fast);
    z-index: 10;
}
.slider-btn:hover {
    background-color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}
.slider-btn.prev { left: -25px; }
.slider-btn.next { right: -25px; }
.slider-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--color-dark);
}

.slider-pagination {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-s);
}
.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.pagination-dot:hover {
    background-color: var(--color-blue);
}
.pagination-dot.is-active {
    background-color: var(--color-green);
    transform: scale(1.2);
}

/* --- Slider Responsive --- */
@media(max-width: 992px) {
    .slide {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .slide-image { height: 350px; }
    .slide-content {
        padding: var(--spacing-m);
    }
}
@media(max-width: 768px) {
    .slider-btn.prev { left: 10px; }
    .slider-btn.next { right: 10px; }
}

/* --- Section 7: Styling CTA --- */
.styling-cta {
    position: relative;
    text-align: center;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    min-height: 60vh;
}
.styling-cta-bg {
    position: absolute;
    inset: 0;
    /* Image 12: An atmospheric shot of a classic, well-organized walk-in closet. */
    background-image: url('images/styling-bg.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}
.styling-cta-container {
    position: relative;
    z-index: 2;
}
.cta-box {
    background-color: rgba(253, 250, 247, 0.9); /* Opaque background for readability */
    padding: var(--spacing-l);
    max-width: 700px;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
}
.cta-box p {
    margin: 0 auto var(--spacing-m);
}


/* --- FOR MEN PAGE: RESPONSIVE --- */
@media (max-width: 992px) {
    .men-hero-container { flex-direction: column-reverse; }
    .men-hero-text { text-align: center; }

    .category-grid { grid-template-columns: 1fr 1fr; }

    .anatomy-layout { flex-direction: column; min-height: auto; }
    .anatomy-point { position: static; max-width: 100%; margin-bottom: var(--spacing-m); }

    .casual-focus-container { flex-direction: column; }
    .casual-images { width: 100%; margin-bottom: var(--spacing-l); }
    
    .spotlight-content { max-width: 80%; }
    .accessories-showcase { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .category-grid { grid-template-columns: 1fr; }
    .spotlight-content { max-width: 100%; }
}

/* --- FOR WOMEN PAGE STYLES --- */

/* --- Section 1: Women's Hero --- */
.women-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 0;
}
.women-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.women-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.women-hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
}
.women-hero-content {
    background-color: rgba(253, 250, 247, 0.9); /* Opaque background */
    backdrop-filter: blur(5px);
    padding: var(--spacing-l);
    max-width: 50%;
    border-radius: 4px;
}
.women-hero-content .page-title {
    color: var(--color-dark);
}

/* --- Section 2: Core Silhouettes --- */
.core-silhouettes { background-color: var(--color-white); }
.silhouette-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: var(--spacing-m);
    align-items: start;
    grid-template-areas:
        "text image1"
        "image2 image3";
}
.silhouette-text { grid-area: text; }
.silhouette-image-1 { grid-area: image1; }
.silhouette-image-2 { grid-area: image2; }
.silhouette-image-3 { grid-area: image3; }

.silhouette-container img {
    border-radius: 4px;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- Section 3: Fabric Focus - Silk --- */
.fabric-focus-silk {
    background-color: var(--color-light);
}
.fabric-focus-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-l);
}
.fabric-focus-image {
    flex: 1;
}
.fabric-focus-image img {
    width: 100%;
    height: 400px;
    border-radius: 4px;
    box-shadow: 10px 10px 0 var(--color-peach);
}
.fabric-focus-text {
    flex: 1.2;
}

/* --- Section 4: The Art of the Drape --- */
/* --- Redesigned Section 4: The Art of the Drape --- */
.drape-gallery-section { 
    background-color: var(--color-white); 
}

.drape-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 300px); /* Define row height */
    gap: var(--spacing-m);
}

.drape-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

/* Make the first item larger by spanning two rows */
.drape-item--large {
    grid-row: span 2;
}

.drape-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    /* Smooth transitions for hover effects */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
}

.drape-item-overlay {
    position: absolute;
    inset: 0; /* Cover the entire parent */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-m);
    
    /* Gradient ensures text is readable against any image */
    background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, transparent 70%);
    
    /* Initial hidden state */
    opacity: 0;
    
    /* Smooth transition for the overlay's appearance */
    transition: opacity 0.4s ease;
}

.drape-item-overlay h3,
.drape-item-overlay p {
    color: var(--color-white);
    /* Initial state for text animation */
    transform: translateY(10px);
    transition: transform 0.4s ease 0.1s; /* Add a slight delay to the text animation */
}

.drape-item-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* --- INTERACTIVE HOVER STATES --- */

/* Reveal the overlay on hover */
.drape-item:hover .drape-item-overlay {
    opacity: 1;
}

/* Animate the text into view on hover */
.drape-item:hover .drape-item-overlay h3,
.drape-item:hover .drape-item-overlay p {
    transform: translateY(0);
}

/* Scale and darken the image on hover to make the overlay pop */
.drape-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}


/* --- Redesigned Drape Gallery: RESPONSIVE --- */
@media (max-width: 768px) {
    .drape-gallery {
        /* Stack all items vertically on mobile */
        grid-template-columns: 1fr;
        grid-template-rows: auto; /* Let each item define its own height */
    }
    .drape-item,
    .drape-item--large {
        /* Reset grid spanning for stacked layout */
        grid-row: auto;
        grid-column: auto;
        height: 400px; /* Give a consistent height to all items on mobile */
    }
}

/* --- Section 5: Desk to Dusk --- */
.desk-to-dusk {
    background-color: var(--color-light);
    padding: 0;
}
.desk-to-dusk-container {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1fr;
    align-items: center;
}
.desk-image img, .dusk-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    max-height: 70vh;
}
.dusk-text {
    background-color: #fefaf8;
    text-align: center;
    padding: var(--spacing-l);
}

/* --- Section 6: Women's Accessories --- */
.women-accessories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-l);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.women-accessory-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: var(--spacing-s);
}
.women-accessory-item h3 {
    margin-bottom: var(--spacing-xs);
}

/* --- Section 7: Women's Lookbook CTA --- */
.women-lookbook-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/women-lookbook-bg.webp'); /* Aspirational lifestyle image */
    background-size: cover;
    background-position: center;
}
.women-cta-box {
    background-color: var(--color-peach);
    padding: var(--spacing-l);
    border-radius: 4px;
    text-align: center;
    max-width: 600px;
}
.women-cta-box h2 {
    color: var(--color-dark);
}

/* --- FOR WOMEN PAGE: RESPONSIVE --- */
@media (max-width: 992px) {
    .women-hero-content { max-width: 70%; }

    .silhouette-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "image1"
            "image2"
            "image3";
    }

    .fabric-focus-container { flex-direction: column; }
    
    .drape-gallery { grid-template-columns: 1fr; }

    .desk-to-dusk-container { grid-template-columns: 1fr; }
    .desk-image, .dusk-image { max-height: 400px; }
}

@media (max-width: 768px) {
    .women-hero { min-height: 70vh; align-items: flex-end; padding-bottom: var(--spacing-l); }
    .women-hero-content { max-width: 100%; }

    .women-accessories-grid { grid-template-columns: 1fr; }
}


/* --- HERITAGE PAGE STYLES --- */

/* --- Section 1: Heritage Hero --- */
.heritage-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/heritage-hero.webp'); /* Old, grand library/study */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.heritage-hero-content {
    max-width: 800px;
}

/* --- Section 2: Founding Vision --- */
.founding-vision { background-color: var(--color-white); }
.founding-vision-container {
    display: flex;
    gap: var(--spacing-l);
    align-items: center;
}
.vision-images {
    flex: 1;
    position: relative;
    height: 450px;
}
.vision-images img {
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: absolute;
    object-fit: cover;
    border: 8px solid var(--color-light);
}
.founder-portrait {
    width: 65%;
    height: 70%;
    top: 0;
    left: 0;
    z-index: 2;
}
.founder-workshop {
    width: 70%;
    height: 75%;
    bottom: 0;
    right: 0;
    z-index: 1;
}
.vision-text {
    flex: 1.2;
}

/* --- Section 3: Timeline --- */
/* --- Redesigned Section 3: Timeline (Accordion) --- */
.timeline-section {
    background-color: var(--color-light);
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #ddd;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-m) 0;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
}
.accordion-header h3 {
    margin: 0;
    font-size: 1.5rem;
    transition: color var(--transition-fast);
}

.accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: var(--spacing-m);
}
.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background-color: var(--color-dark);
    transform: translate(-50%, -50%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-panel {
    /* The magic for smooth height animation */
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.accordion-item.is-open .accordion-panel {
    grid-template-rows: 1fr;
}

/* This inner div is required for the grid animation to work correctly */
.accordion-panel-content {
    min-height: 0;
    padding-bottom: var(--spacing-l);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-l);
}
.accordion-panel-content > p,
.accordion-panel-content .accordion-image {
    /* Initial state for content fade-in animation */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.accordion-image img {
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    width: 100%;
}

/* --- Active State Styling --- */
.accordion-item.is-open .accordion-header h3 {
    color: var(--color-blue);
}
.accordion-item.is-open .accordion-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Sequential animation for content inside the open panel */
.accordion-item.is-open .accordion-panel-content > p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}
.accordion-item.is-open .accordion-panel-content > .accordion-image {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* --- Accordion Responsive --- */
@media(max-width: 768px) {
    .accordion-header h3 { font-size: 1.2rem; }
    .accordion-panel-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-m);
    }
    .accordion-panel-content .accordion-image {
        grid-row: 1; /* Move image to the top on mobile */
    }
    
}

@media(max-width: 992px) {
    .vision-images img 
    {
        position: relative;
        top: 0;
        left: 0;
        height: 400px;
        width: 100%;
        object-fit: cover;
    }
    
}

/* --- Section 4: Artisan's Focus --- */
.artisan-focus {
    position: relative;
    color: var(--color-white);
    display: flex;
    align-items: center;
    min-height: 70vh;
}
.artisan-focus-bg {
    position: absolute;
    inset: 0;
    /* Image: Close-up B&W photo of tailor's hands at work. */
    background-image: linear-gradient(rgba(44,44,44,0.6), rgba(44,44,44,0.6)), url('images/artisan-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}
.artisan-focus-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}
.artisan-text-box {
    background: rgba(105, 162, 176, 0.8); /* Glassmorphism Blue */
    backdrop-filter: blur(8px);
    padding: var(--spacing-l);
    max-width: 800px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}
.artisan-text-box h2 { color: var(--color-white); }

/* --- Section 5: Process Flow --- */
.process-flow { background-color: var(--color-white); }
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-m);
    text-align: center;
}
.process-step img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto var(--spacing-m);
    border: 5px solid var(--color-light);
    box-shadow: 0 0 0 3px var(--color-peach);
}

/* --- Section 6: Signature Icons --- */
.signature-icons { background-color: var(--color-light); }
.icon-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-l);
    margin-bottom: var(--spacing-l);
}
.icon-item.reverse {
    flex-direction: row-reverse;
}
.icon-image {
    flex: 1;
}
.icon-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.icon-text {
    flex: 1;
}

/* --- Section 7: Future of Heritage --- */
.future-heritage {
    background-color: var(--color-dark);
    color: var(--color-light);
    text-align: center;
}
.future-heritage-content {
    max-width: 800px;
}
.future-heritage-content h2 {
    color: var(--color-peach);
}

/* --- HERITAGE PAGE: RESPONSIVE --- */
@media (max-width: 992px) {
    .founding-vision-container { flex-direction: column; }
    .vision-images { width: 100%; }
    .icon-item, .icon-item.reverse { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .timeline::after { left: 10px; }
    .timeline-item { width: 100%; padding-left: var(--spacing-l); padding-right: 0; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-dot { left: 0; }
    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
        left: 0;
    }

    .process-grid { grid-template-columns: 1fr; }
    
    .artisan-focus-bg, .heritage-hero { background-attachment: scroll; }
}

/* --- MISSION PAGE STYLES --- */

/* --- Section 1: Mission Hero --- */
.mission-hero {
    background-color: var(--color-light);
    padding-top: calc(var(--spacing-xl) + 80px); /* Space for header */
}
.mission-hero-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-l);
}
.mission-hero-text {
    flex: 1.2;
}
.mission-hero-image {
    flex: 1;
    max-height: 500px;
    overflow: hidden;
    border-radius: 4px;
}
.mission-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Section 2: Mission Pillars --- */
/* --- Redesigned Section 2: Mission Pillars (Slider) --- */
.mission-pillars { 
    background-color: var(--color-white); 
    padding-bottom: var(--spacing-xl);
}

.pillars-slider {
    position: relative;
    padding: var(--spacing-m) 0;
}

.slider-container {
    overflow: hidden;
    position: relative;
    height: 550px;
}

.slider-stage {
    display: flex;
    align-items: center;
    height: 100%;
    position: absolute;
    left: 5%; /* Center the stage initially */
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.pillar-slide {
    width: 450px; /* Fixed width for each slide */
    margin: 0 var(--spacing-m);
    flex-shrink: 0;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), 
                opacity 0.6s ease, 
                filter 0.6s ease;
}
.pillar-slide-content {
    background-color: var(--color-light);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: var(--spacing-l);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.pillar-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: var(--spacing-m);
}
.pillar-slide h3 { color: var(--color-blue); }

.pillar-number {
    position: absolute;
    top: -2rem;
    left: 0;
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--color-dark);
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

/* --- Active vs. Inactive Slide States --- */
.pillar-slide {
    transform: scale(0.85);
    opacity: 0.6;
    filter: blur(1px);
}
.pillar-slide.is-active {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
    z-index: 2;
}

.pillar-slide h3,
.pillar-slide p {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.pillar-slide.is-active h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}
.pillar-slide.is-active p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}


/* --- Navigation --- */
.slider-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-m);
    margin-top: var(--spacing-m);
}

.slider-nav {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
}
.slider-nav:hover {
    background-color: var(--color-light);
    border-color: var(--color-blue);
}
.slider-nav svg { width: 24px; height: 24px; }

.slider-dots { display: flex; gap: var(--spacing-s); }
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.dot:hover { background-color: var(--color-blue); }
.dot.is-active {
    background-color: var(--color-green);
    transform: scale(1.3);
}

/* --- Slider Responsive --- */
@media(max-width: 768px) {
    .pillar-slide { width: 300px; margin: 0 10px; }
    .pillar-slide-content { padding: var(--spacing-m); }
    .pillar-number { font-size: 6rem; top: -1rem; }
}
/* --- Section 3: Sustainability Focus --- */
.sustainability-focus {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-dark);
}
.sustainability-bg {
    position: absolute;
    inset: 0;
    /* Image: A pristine forest or natural landscape. */
    background-image: url('images/sustain-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.2;
    z-index: 1;
}
.sustainability-content {
    position: relative;
    z-index: 2;
}
.sustainability-box {
    background-color: rgba(255, 250, 247, 0.9);
    padding: var(--spacing-l);
    border-radius: 4px;
    max-width: 800px;
    margin: 0 auto;
    border-top: 5px solid var(--color-green);
}

/* --- Section 4: Artisan's Alliance --- */
.artisan-alliance { background-color: var(--color-white); }
.alliance-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-m);
}
.gallery-text-block {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    padding-right: var(--spacing-m);
}
.alliance-gallery figure {
    border-radius: 4px;
    overflow: hidden;
    height: 250px;
}
.alliance-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Section 5: Longevity Promise --- */
.longevity-promise { background-color: var(--color-light); }
.longevity-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-l);
}
.longevity-text { flex: 1; }
.longevity-images {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-s);
}
.longevity-images img {
    border-radius: 4px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.longevity-image-1 {
    grid-row: 1 / 3;
    align-self: end;
    margin-bottom: -2rem; /* Overlap effect */
}
.longevity-image-2 {
    grid-row: 2 / 4;
    align-self: start;
    margin-top: -2rem; /* Overlap effect */
    border: 5px solid var(--color-light);
}

/* --- Section 6: The K&J Foundation --- */
/* --- Redesigned Section 6: The K&J Foundation --- */
.foundation-focus {
    background-color: var(--color-green);
    padding: var(--spacing-xl) 0;
    overflow: hidden; /* Important for containing the slide-in animations */
}

.foundation-container {
    max-width: 1300px; /* Allow a slightly wider container for this layout */
}

.foundation-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Text gets slightly more space */
    align-items: center;
    gap: var(--spacing-m);
}

.foundation-text-content {
    background-color: var(--color-light);
    color: var(--color-dark);
    padding: var(--spacing-l);
    border-radius: 4px;
    position: relative;
    z-index: 2;
    /* Create a slight overlap effect by pulling it out of the container */
    margin-left: -5%; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.foundation-quote {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-style: italic;
    margin: var(--spacing-m) 0;
    padding-left: var(--spacing-m);
    border-left: 3px solid var(--color-peach);
    color: var(--color-dark);
}

.foundation-pillars-list {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-m);
}
.foundation-pillars-list li {
    position: relative;
    padding-left: var(--spacing-m);
    margin-bottom: var(--spacing-s);
}
.foundation-pillars-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: bold;
}

.foundation-image-wrapper {
    position: relative;
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
}
.foundation-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
}

.foundation-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Redesigned Foundation: RESPONSIVE --- */
@media (max-width: 992px) {
    .foundation-layout {
        grid-template-columns: 1fr; /* Stack the columns */
    }
    .foundation-text-content {
        margin-left: 0; /* Reset the overlap */
        margin-bottom: var(--spacing-m);
    }
}

@media (max-width: 768px) {
    .foundation-focus {
        padding: var(--spacing-l) 0;
    }
    .foundation-text-content {
        padding: var(--spacing-m);
    }
    .foundation-quote {
        font-size: 1.5rem;
    }
    .foundation-image-wrapper {
        height: 350px;
    }
}
/* --- Section 7: Invitation CTA --- */
.invitation-cta { background-color: var(--color-white); }
.invitation-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-l);
    background-color: var(--color-peach);
    padding: var(--spacing-l);
    border-radius: 8px;
}
.invitation-images {
    flex: 0.8;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-s);
}
.invitation-images img {
    width: 100%;
    border-radius: 4px;
    border: 5px solid var(--color-white);
}
.invitation-text {
    flex: 1.2;
}

/* --- MISSION PAGE: RESPONSIVE --- */
@media (max-width: 992px) {
    .mission-hero-container { flex-direction: column; }
    .pillars-grid { grid-template-columns: 1fr; }
    .alliance-gallery { grid-template-columns: 1fr 1fr; }
    .gallery-text-block { grid-column: 1 / -1; grid-row: 1; padding: 0 0 var(--spacing-m) 0; }
    .longevity-container { flex-direction: column-reverse; }
}

@media (max-width: 768px) {
    .sustainability-bg { background-attachment: scroll; }
    .alliance-gallery { grid-template-columns: 1fr; }
    .invitation-container { flex-direction: column; }
    .invitation-images
    {
        display: flex;
        flex-direction: column;
    }

    .invitation-images img
    {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }
    .invitation-images {
        display: flex;
        width: 100%;
    }
}

/* --- LOOKBOOK PAGE STYLES --- */

/* --- Section 1: Lookbook Hero --- */
.lookbook-hero {
    min-height: 95vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    padding-bottom: var(--spacing-l);
}
.lookbook-hero-bg {
    position: absolute;
    inset: 0;
    /* Image 1: Cinematic, high-quality shot of a landscape with a person. */
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/lookbook-hero-bg.webp');
    background-size: cover;
    background-position: center;
    animation: zoom-in-slow 25s infinite alternate; /* Reusing hero animation */
}
.lookbook-hero-content {
    position: relative;
    z-index: 2;
}

/* --- Section 2: Lookbook Intro --- */
.lookbook-intro { background-color: var(--color-light); }
.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* --- Section 3: Parallax Showcase --- */
.parallax-showcase {
    padding: var(--spacing-xl) 0;
    min-height: 90vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}
.parallax-showcase.look-one {
    /* Image 2: Man in a sharp overcoat in a city. */
    background-image: url('images/parallax-bg.webp');
}
.showcase-box {
    background: rgba(253, 250, 247, 0.85);
    backdrop-filter: blur(8px);
    padding: var(--spacing-l);
    border-radius: 4px;
    max-width: 45%;
    border-left: 5px solid var(--color-blue);
}

/* --- Section 4: Asymmetric Gallery --- */
.lookbook-gallery { background-color: var(--color-white); }
.gallery-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: var(--spacing-m);
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-s);
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}
.gallery-item:hover .gallery-item-caption {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section 5: Split Focus --- */
.split-focus { background-color: var(--color-light); }
.split-focus-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-l);
}
.split-image-content img { border-radius: 4px; width: 100%; height: 400px; object-fit: cover;}
.detail-inset-image {
    width: 50%;
    border-radius: 4px;
    margin-top: var(--spacing-m);
    border: 5px solid var(--color-white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Section 6: Shop The Look --- */
.shop-the-look { background-color: var(--color-white); }
.shop-look-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-l);
    align-items: start;
}
.shop-look-main-image img { border-radius: 4px; width: 100%; height: 400px; object-fit: cover; }
.shop-look-products h3 { margin-bottom: var(--spacing-s); }
.shop-look-products > p { margin-bottom: var(--spacing-m); }

.product-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-s);
    background: var(--color-light);
    padding: var(--spacing-s);
    border-radius: 4px;
    margin-bottom: var(--spacing-s);
}
.product-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}
.product-info { flex-grow: 1; }
.shop-link {
    font-weight: 500;
    color: var(--color-blue);
    font-size: 0.9rem;
}

/* --- Section 7: Closing CTA --- */
.lookbook-closing {
    background-image: linear-gradient(rgba(44,44,44,0.7), rgba(44,44,44,0.7)), url('images/closing-bg.webp'); /* Moody closing image */
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--color-white);
}
.closing-content { max-width: 700px; }
.closing-content h2 { color: var(--color-white); }
.closing-content p {
    margin: 0 auto var(--spacing-m);
}

/* --- LOOKBOOK PAGE: RESPONSIVE --- */
@media (max-width: 992px) {
    .parallax-showcase { background-attachment: scroll; } /* Disable parallax on tablet/mobile */
    .showcase-box { max-width: 70%; }
    .gallery-layout { grid-template-columns: 1fr 1fr; }
    .gallery-item.large { grid-column: span 2; }
    .split-focus-container { grid-template-columns: 1fr; }
    .shop-look-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .showcase-box { max-width: 100%; }
    .gallery-layout { grid-template-columns: 1fr; grid-auto-rows: 300px; }
    .gallery-item.large { grid-column: span 1; grid-row: span 1; }
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding-top: var(--spacing-l);
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-l);
    padding-bottom: var(--spacing-l);
}
.footer-column h4 {
    font-family: var(--font-heading);
    color: var(--color-peach);
    margin-bottom: var(--spacing-s);
}
.footer-column p, .footer-column li {
    font-size: 0.9rem;
    opacity: 0.8;
}
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: var(--spacing-xs); }
.footer-links a:hover { opacity: 1; color: var(--color-peach); }
.social-icons { display: flex; gap: var(--spacing-s); }
.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-light);
    border-radius: 50%;
    opacity: 0.8;
    transition: all var(--transition-fast);
}
.social-icons a:hover {
    background-color: var(--color-peach);
    border-color: var(--color-peach);
    color: var(--color-dark);
    opacity: 1;
    transform: scale(1.1);
}
.footer-bottom {
    text-align: center;
    padding: var(--spacing-s);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* --- ANIMATIONS ON SCROLL --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.fade-in { transform: translateY(30px); }
.animate-on-scroll.slide-in-left { transform: translateX(-50px); }
.animate-on-scroll.slide-in-right { transform: translateX(50px); }
.animate-on-scroll.slide-in-up { transform: translateY(50px); }
.animate-on-scroll.zoom-in { transform: scale(0.9); }

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Delay classes for staggered animations */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }


/* --- RESPONSIVE DESIGN --- */

/* Tablets */
@media (max-width: 1020px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 70%;
        height: 100vh;
        background-color: var(--color-light);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right var(--transition-fast);
        padding-top: var(--spacing-xl);
    }
    .main-nav.active { right: 0; }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-m);
    }

    .ethos-container { flex-direction: column; text-align: center; }
    .collection-grid { grid-template-columns: 1fr; }
    .heritage-text-box { max-width: 80%; }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery-item.large { grid-column: 1 / -1; grid-row: auto; height: 400px; }
    
    .philosophy-container { flex-direction: column-reverse; }
    .newsletter-container {  flex-direction: column; text-align: center; }
    .newsletter-image-stack
    {
        display: none;
    }
    .newsletter-image-stack { margin-top: var(--spacing-l); }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
    section { padding: var(--spacing-l) 0; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    .ethos-image img { box-shadow: 5px 5px 0 var(--color-peach); }
    .heritage-text-box { max-width: 100%; padding: var(--spacing-m); }
    .gallery-grid { display: flex; flex-direction: column; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
    .newsletter-form { flex-direction: column; gap: var(--spacing-s); }
    .newsletter-form button, .newsletter-form input { border-radius: 4px; }
}

/* --- LEGAL PAGES STYLES (Privacy Policy, Terms) --- */
.legal-hero {
    background-color: var(--color-light);
    padding: calc(var(--spacing-l) + 80px) 0 var(--spacing-l);
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.legal-page-title {
    font-size: 3rem;
}

.legal-page-subtitle {
    font-size: 1.1rem;
    color: var(--color-dark);
    opacity: 0.8;
    margin-top: var(--spacing-xs);
}

.legal-content {
    background-color: var(--color-white);
    padding: var(--spacing-xl) 0;
}

.legal-content-container {
    max-width: 800px; /* Optimal reading width */
}

.legal-content article {
    margin-bottom: var(--spacing-l);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-s);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--color-peach);
}

.legal-content p, 
.legal-content li {
    line-height: 1.8;
    color: #444;
}

.legal-content ul {
    list-style-position: outside;
    padding-left: var(--spacing-m);
    margin-top: var(--spacing-s);
}

.last-updated {
    font-style: italic;
    color: #666;
    margin-bottom: var(--spacing-l);
}

@media (max-width: 768px) {
    .legal-page-title {
        font-size: 2.5rem;
    }
    .legal-content {
        padding: var(--spacing-l) 0;
    }
}

/* --- UTILITY & THANK YOU PAGE STYLES --- */
.utility-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-light) 0%, #f9f6f3 100%);
    padding: var(--spacing-m);
}

.thank-you-main {
    width: 100%;
}

.thank-you-box {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: var(--spacing-l);
    border-radius: 4px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 5px solid var(--color-blue);
}

.thank-you-box .logo {
    display: inline-block;
    margin-bottom: var(--spacing-s);
    font-size: 2rem;
}

.thank-you-box h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-s);
}

.thank-you-box p {
    max-width: 45ch;
    margin: 0 auto var(--spacing-m);
    line-height: 1.8;
}

.thank-you-box .btn {
    margin-top: var(--spacing-s);
}


/* --- Checkmark Animation --- */
.checkmark-container {
    margin-bottom: var(--spacing-m);
}
.checkmark-svg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--color-green);
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px var(--color-green);
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--color-green);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}