/*
Theme Name: Editorial Chic
Theme URI: https://yourdomain.com
Description: A modern, fashion-focused child theme built on the Genesis Framework.
Author: Your Name
Author URI: https://yourdomain.com
Version: 1.0.0
Template: genesis
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: editorial-chic
*/
/*
--- Basic Genesis Styles Import ---
We import the parent theme's stylesheet so we don't have to rewrite everything.
*/
@import url("../genesis/style.css");

/*
--- Custom Child Theme Styles Start Here ---
*/

body {
    background-color: #ffffff;
    font-family: 'Playfair Display', serif; /* Use an elegant font */
    color: #111111;
}

/* -------------------------------------- */
/* 1. GLOBAL LAYOUT AND CENTERING */
/* -------------------------------------- */

/* CRITICAL FIX: Standard Genesis Wrap/Layout Reset
This ensures all content is centered and contained within a maximum width. */
.wrap {
    max-width: 1200px; 
    margin: 0 auto; /* Centers the container horizontally */
    padding-right: 20px;
    padding-left: 20px;
    clear: both; 
}

/* Ensure the main content area respects the wrap */
.content {
    width: 100%;
    float: none; /* Crucial to clear any default Genesis float rules */
}


/* -------------------------------------- */
/* 2. HEADER AND TITLE */
/* -------------------------------------- */

.site-header {
    border-bottom: 1px solid #eeeeee;
    padding: 20px 0;
}

/* Site Title Formatting (Text Logo) */
.title-area {
    text-align: center;
    padding: 20px 0;
}

.site-title {
    margin: 0;
    padding: 0;
    display: block; 
}

.site-title a {
    font-family: 'Playfair Display', serif; 
    font-size: 3rem; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px; /* Wide spacing is key to the editorial look */
    text-decoration: none;
    color: #111111; 
    display: inline-block;
    padding-bottom: 5px;
}

.site-title a:hover {
    color: #666666; 
    opacity: 0.9;
}

@media only screen and (max-width: 600px) {
    .site-title a {
        font-size: 2rem;
        letter-spacing: 3px;
    }
}


/* -------------------------------------- */
/* 3. PRIMARY NAVIGATION */
/* -------------------------------------- */

.nav-primary {
    width: 100%;
    text-align: center; 
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 15px 0;
    margin-bottom: 40px; 
}

/* Target the UL and LI elements for horizontal display */
.nav-primary .genesis-nav-menu {
    list-style-type: none !important; 
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block; 
}

.nav-primary .genesis-nav-menu li {
    display: inline-block !important; 
    margin: 0 18px; 
    padding: 0;
}

.nav-primary .genesis-nav-menu a {
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Playfair Display', serif; 
    font-size: 0.95rem;
    letter-spacing: 1.5px; 
    padding: 5px 0;
    display: block;
    color: #111111;
    transition: all 0.2s ease-in-out;
}

.nav-primary .genesis-nav-menu a:hover,
.nav-primary .genesis-nav-menu .current-menu-item a {
    color: #666666; 
    border-bottom: 2px solid #111111;
}


/* -------------------------------------- */
/* 4. HERO SECTION AND BUTTONS */
/* -------------------------------------- */

.editorial-hero-wrap {
    width: 100%;
    min-height: 500px;
    background-color: #f8f8f8;
    background-image: url('assets/images/hero-default.jpg');
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center; 
    justify-content: center; /* Centers the content block horizontally */
    margin-bottom: 40px; 
}

.editorial-hero-content {
    background: rgba(255, 255, 255, 0.85); 
    padding: 40px;
    max-width: 500px;
    text-align: center;
    margin: 0 auto;
}

.editorial-hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-top: 0;
    text-transform: uppercase;
}

.primary-button {
    display: inline-block;
    padding: 12px 25px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: background 0.3s;
}

.primary-button:hover {
    background: #666666;
    color: #ffffff;
}

/* -------------------------------------- */
/* 5. CONTACT PAGE STYLING */
/* -------------------------------------- */

.contact-page-wrap {
    max-width: 900px; 
    margin: 0 auto; /* Centers the block */
    padding: 40px 20px;
    text-align: center;
}

.contact-title {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-subtitle {
    margin-bottom: 50px;
    color: #666;
}

.contact-form-section, .contact-info-section {
    max-width: 800px;
    margin: 0 auto 60px; /* Centers internal sections */
    padding: 30px;
    border: 1px solid #f0f0f0;
    text-align: left; 
}


/* -------------------------------------- */
/* 6. LOOKBOOK GRID STYLING */
/* -------------------------------------- */

.lookbook-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px; 
    margin-top: 40px;
}

.lookbook-grid-item {
    position: relative; 
    overflow: hidden;
    line-height: 0; 
}

.lookbook-grid-item a {
    display: block;
    text-decoration: none;
}

.lookbook-grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.lookbook-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.lookbook-grid-item a:hover .lookbook-overlay {
    opacity: 1;
}

.lookbook-overlay h2 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media only screen and (max-width: 600px) {
    .lookbook-archive-grid {
        grid-template-columns: 1fr; 
    }
    .lookbook-overlay h2 {
        font-size: 1.5rem;
    }
    .site-title a {
        font-size: 2rem;
        letter-spacing: 3px;
    }
}


/* -------------------------------------- */
/* 7. FOOTER WIDGETS */
/* -------------------------------------- */

.footer-widgets-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    padding: 60px 0;
    border-top: 1px solid #eeeeee;
    margin-top: 40px;
    text-align: left;
}

.footer-widgets-wrap .widget {
    padding: 0;
}

.footer-widgets-wrap .widget-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 5px;
}

@media only screen and (max-width: 800px) {
    .footer-widgets-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }
}

/*
--- Single Lookbook Specific Styles ---
*/

/* Ensure the full width visual section breaks out of the main wrap */
.lookbook-visual {
    width: 100%;
    margin-bottom: 40px;
}

.lookbook-visual img {
    display: block;
    width: 100%;
    height: auto;
}

/* Style the title and content section */
.lookbook-title {
    text-align: center;
    font-size: 4.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    padding-top: 40px;
}

.lookbook-description {
    /* Limit the width of the content area for better readability (like a magazine) */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Style for the Taxonomy Meta Block */
.lookbook-tax-meta {
    border-top: 1px solid #eeeeee;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center; 
}

.lookbook-tax-meta span {
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 5px;
}

/*
--- Custom Logo Styling (Image) ---
*/
.custom-logo-link img {
    /* Ensures the image doesn't exceed the site width */
    max-width: 100%; 
    height: auto;
    /* Centers the logo if it's smaller than its container */
    display: block; 
    margin: 0 auto;
}

.title-area {
    /* Increase padding to accommodate larger logo */
    padding: 30px 0; 
}

/* Ensure the image logo itself is clickable and doesn't have list dots */
.custom-logo-link {
    display: block;
    text-align: center;
}

/*
--- GLOBAL CONTENT CENTERING FIX ---
This ensures all content inside the site wrapper is centered and contained.
*/
.wrap {
    max-width: 1200px; /* Adjust as needed, but 1200px is a good standard */
    margin: 0 auto;    /* CRITICAL: Centers the container horizontally */
    padding-right: 20px;
    padding-left: 20px;
    clear: both;
}

/* Ensure the main content area inside the wrap takes full width and doesn't float */
.content {
    width: 100%;
    float: none; /* Crucial to clear any default Genesis float rules */
}

/*
--- Single Lookbook Taxonomy Meta ---
*/
.lookbook-tax-meta {
    border-top: 1px solid #eeeeee;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center; /* Center meta information */
}

.lookbook-tax-meta span {
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 5px;
}