/* ==========================================================================
   BRAND PAGES & SELECTION FLIGHT STYLES - Avelion Yachting
   ========================================================================== */

.site-main { 
    padding-top: 0 !important; 
}

.brand-page { 
    background: var(--navy); 
    color: var(--fg); 
    overflow: hidden; 
    padding-top: 84px; /* Matches --header-h to start exactly under the header */
}

/* Brand Section (Split screen layout) */
.brand-section {
    display: flex;
    min-height: 85vh;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    transition: border-color 0.6s var(--ease-soft);
}

.brand-section:hover {
    border-top-color: rgba(212, 194, 161, 0.2);
}

@media (max-width: 992px) {
    .brand-section { 
        flex-direction: column; 
    }
    .brand-section.reverse { 
        flex-direction: column; 
    }
}

.brand-media { 
    flex: 1.3; 
    background-size: cover; 
    background-position: center; 
    min-height: 45vh; 
    transition: transform 1.8s var(--ease-soft);
}

.brand-section:hover .brand-media {
    transform: scale(1.04);
}

.brand-info { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    padding: clamp(2.5rem, 6vw, 5.5rem); 
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0) 100%), var(--bg-2); 
    position: relative;
    z-index: 2;
}

.brand-title-outline {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(245, 246, 248, 0.85);
    text-transform: uppercase;
    margin-bottom: 1rem;
    transition: all 0.8s var(--ease-soft);
    letter-spacing: 0.02em;
}

.brand-section:hover .brand-title-outline {
    color: var(--gold);
    -webkit-text-stroke: 1.5px var(--gold);
    text-shadow: 0 0 40px rgba(212, 194, 161, 0.35);
}

/* Specific size adjustment for Posillipo title */
.brand-posillipo .brand-title-outline {
    font-size: clamp(2.5rem, 4vw, 4rem);
}

.brand-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 1.5rem;
}

.brand-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 3rem;
}

/* Slanted Buttons */
.btn-slanted-list { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    align-items: flex-start; 
}

.btn-slanted {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 14px 38px;
    background: var(--gold);
    color: var(--navy) !important;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    transform: skewX(-12deg);
    transition: all 0.5s var(--ease-soft);
    overflow: hidden;
    border: 1px solid var(--gold);
}

.btn-slanted span { 
    transform: skewX(12deg); 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    z-index: 2; 
}

.btn-slanted::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(12deg);
    transition: none;
    z-index: 1;
}

.btn-slanted:hover { 
    background: #FFFFFF; 
    border-color: #FFFFFF;
    transform: skewX(-12deg) translateX(6px); 
    box-shadow: 0 10px 25px rgba(212, 194, 161, 0.3); 
}

.btn-slanted:hover::before {
    animation: shine 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes shine {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

.reverse .brand-media { 
    order: 2; 
}
.reverse .brand-info { 
    order: 1; 
}

@media (max-width: 992px) {
    .reverse .brand-media { 
        order: unset; 
    }
    .reverse .brand-info { 
        order: unset; 
    }
}

/* ==========================================================================
   SPLIT BRAND SELECTION SCREEN
   ========================================================================== */
.split-selection {
    display: flex;
    height: 100vh;
    width: 100%;
    background: var(--navy);
    overflow: hidden;
}

@media (max-width: 768px) {
    .split-selection { 
        flex-direction: column; 
    }
}

.selection-brand {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    overflow: hidden;
    transition: flex 0.8s var(--ease-soft);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.selection-brand:last-child { 
    border-right: none; 
}

.selection-brand:hover {
    flex: 1.25;
}

/* Glowing gold header line on hover */
.selection-brand::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s var(--ease-soft);
    z-index: 4;
    box-shadow: 0 0 15px var(--gold);
}

.selection-brand:hover::after {
    transform: scaleX(1);
}

.selection-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 1.8s var(--ease-soft), filter 0.8s var(--ease-soft);
    filter: brightness(0.3) grayscale(0.4);
}

.selection-brand:hover .selection-media {
    transform: scale(1.06);
    filter: brightness(0.55) grayscale(0);
}

.selection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 8, 15, 0.1) 0%, rgba(5, 8, 15, 0.95) 100%);
    z-index: 2;
}

.selection-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 3.5rem clamp(2rem, 4vw, 4.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    background: rgba(5, 8, 15, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.8s var(--ease-soft);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.selection-brand:hover .selection-content {
    background: rgba(5, 8, 15, 0.55);
    border-color: rgba(212, 194, 161, 0.25);
    box-shadow: 
      0 30px 60px rgba(0, 0, 0, 0.55),
      0 0 35px rgba(212, 194, 161, 0.08);
    transform: translateY(-5px);
}

.brand-logo-svg {
    height: 85px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.05));
    transition: transform 0.8s var(--ease-soft), filter 0.8s var(--ease-soft);
}

.selection-brand:hover .brand-logo-svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(212, 194, 161, 0.55));
}

.selection-cta {
    display: inline-block;
    padding: 14px 40px;
    background: rgba(212, 194, 161, 0.04);
    border: 1px solid rgba(212, 194, 161, 0.25);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.6s var(--ease-soft);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50px;
}

.selection-brand:hover .selection-cta {
    background: var(--gold);
    color: var(--navy) !important;
    border-color: var(--gold);
    box-shadow: 0 0 25px rgba(212, 194, 161, 0.4);
    transform: translateY(-2px);
}
