/* ==========================================================================
   ENSEIGNES HERO BANNER
   ========================================================================== */
.enseignes-hero-section {
    width: 100%;
    margin-top: 72px; /* Clears the fixed/sticky navbar */
    background-color: #d1972b; /* Warm ochre backdrop matching the photo */
    overflow: hidden;
}

.enseignes-hero-img-box {
    width: 100%;
    height: calc(100vh - 70px);
    position: relative;
}

.enseignes-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media (max-width: 991px) {
    .enseignes-hero-img-box {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .enseignes-hero-section {
        margin-top: 60px;
    }
    .enseignes-hero-img-box {
        height: 200px;
    }
    .directory-section-wrapper {
        padding-top: 35px;
    }
}

/* ==========================================================================
   ENSEIGNES DIRECTORY SPECIFIC STYLES
   ========================================================================== */
.directory-section-wrapper {
    padding-top: 130px;
    background-color: #ffffff;
    min-height: 80vh;
}

.directory-header-row {
    text-align: left;
}

.directory-gold-tag {
    display: block;
    font-family: 'Aileron', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #c5a85c;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-align: left;
}

.directory-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.8rem;
    color: var(--color-navy-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

/* ==========================================================================
   ALPHABET FILTER TRACK (RESPONSIVE & MOBILE TOUCH SCROLL)
   ========================================================================== */
.alphabet-nav-wrapper {
    width: 100%;
    border-bottom: 2px solid #e5c986;
    padding-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c5a85c transparent;
}

.alphabet-nav-wrapper::-webkit-scrollbar {
    height: 3px;
    display: block;
}

.alphabet-nav-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.alphabet-nav-wrapper::-webkit-scrollbar-thumb {
    background-color: #c5a85c;
    border-radius: 4px;
}

.alphabet-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    gap: 12px;
    padding: 0 4px;
}

.alphabet-letter-btn {
    background: transparent;
    border: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #0b2240;
    padding: 4px 6px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.alphabet-letter-btn:hover {
    color: #c5a85c;
}

.alphabet-letter-btn.active {
    color: #c5a85c;
    font-weight: 600;
}

@media (max-width: 576px) {
    .alphabet-track {
        gap: 8px;
    }
    
    .alphabet-letter-btn {
        font-size: 1.35rem;
        padding: 2px 4px;
    }
}

/* ==========================================================================
   ALPHABET FILTER TRACK (DESKTOP: FULL SPAN | MOBILE: CLEAN WRAP)
   ========================================================================== */

/* --- Default / Desktop Styling --- */
.alphabet-nav-wrapper {
    width: 100%;
    border-bottom: 2px solid #e5c986;
    padding-bottom: 12px;
}

.alphabet-track {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Spans letters evenly across the full width */
    width: 100%;                     /* Fills the entire row */
    gap: 0;
    margin: 0;
    padding: 0;
}

.alphabet-letter-btn {
    background: transparent;
    border: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #0b2240;
    padding: 0 4px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.alphabet-letter-btn:hover {
    color: #c5a85c;
}

.alphabet-letter-btn.active {
    color: #c5a85c;
    font-weight: 600;
}


/* --- Mobile & Tablet Overrides (<= 768px) --- */
@media (max-width: 768px) {
    .alphabet-nav-wrapper {
        padding-bottom: 16px;
    }

    .alphabet-track {
        display: flex;
        flex-wrap: wrap;                 /* Wraps onto multiple rows on phones */
        justify-content: space-between;  /* Keeps spacing balanced across each row */
        gap: 12px 14px;                  /* Clean vertical and horizontal breathing room */
    }

    .alphabet-letter-btn {
        font-size: 1.5rem;
        padding: 4px 6px;
        flex-shrink: 0;
    }
}

/* ==========================================================================
   BRANDS PHOTO GRID COMPONENT
   ========================================================================== */
.brands-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.brand-photo-card {
    position: relative;
    aspect-ratio: 1 / 1.5;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background-color: #0b2240;
    transition: transform 0.3s ease;
}

.brand-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.brand-photo-name {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 2.8rem;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    margin: 0;
    pointer-events: none;
}

.brand-photo-card:hover .brand-card-bg {
    transform: scale(1.08);
}

.brand-photo-card:hover .brand-photo-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.btn-discover-more-pill {
    background-color: #0b2240;
    color: #d1b87a;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 55px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-discover-more-pill:hover {
    background-color: #071424;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Grid Breakpoints */
@media (max-width: 991px) {
    .brands-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .brand-photo-name {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .brands-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .brand-photo-name {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
    }
}

/* ==========================================================================
   PLUS D'INSPIRATION BEIGE SECTION
   ========================================================================== */
.inspiration-beige-section {
    background-color: #e8d0b5; /* Warm sand/beige backdrop */
    width: 100%;
}

.inspiration-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--color-navy-primary, #0b2240);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.inspiration-portrait-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Portrait aspect ratio */
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.inspiration-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspiration-portrait-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(11, 34, 64, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: background-color 0.3s ease;
}

.inspiration-portrait-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.inspiration-portrait-card:hover .inspiration-portrait-img {
    transform: scale(1.06);
}

.inspiration-portrait-card:hover .inspiration-portrait-overlay {
    background-color: rgba(11, 34, 64, 0.15);
}

@media (max-width: 991px) {
    .inspiration-heading {
        font-size: 1.7rem;
    }
    .inspiration-portrait-text {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
}
/* --- ALPHABET FILTER WRAP FOR MOBILE --- */
@media (max-width: 768px) {
    .alphabet-nav-wrapper {
        overflow: visible !important;
        border-bottom: 2px solid #e5c986;
        padding-bottom: 15px;
    }

    .alphabet-track {
        display: flex !important;
        flex-wrap: wrap !important; /* Allows letters to wrap cleanly */
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;   /* Cancels out any 720px blowout */
        gap: 10px 14px !important; /* Vertical and horizontal spacing */
    }

    .alphabet-letter-btn {
        font-size: 1.4rem !important;
        padding: 4px 6px !important;
        flex-shrink: 0;
        line-height: 1;
    }
}

@media (max-width: 576px) {
    .inspiration-heading {
        font-size: 1.4rem;
    }
    .inspiration-portrait-text {
        font-size: 1.1rem;
    }
}