/**
 * OMT Praxis Seeger - Subpages Stylesheet
 * Architecture: Custom CSS3 
 * Description: Layout definitions for subpages (hero adjustments, forms, job boards)
 */

/* ==========================================================================
   01. SUBPAGE HERO & BACKGROUND
   ========================================================================== */

/* Subpage Hero Header Adjustments */
.subpage-hero {
    height: 55vh; 
    min-height: 400px;
    position: relative;
    /* Overflow visible is critical here to allow the sticky nav to break out */
    overflow: visible; 
}

/* Background containment */
.subpage-hero .background {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    overflow: hidden; 
    z-index: 0;
}

/* Static Background Image with subtle breathing effect */
.subpage-bg-image {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Effect */
    animation: kenBurns 15s ease-in-out infinite alternate; 
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* ==========================================================================
   02. SUBPAGE TITLE CENTERING
   ========================================================================== */

.subpage-title-container {
    position: absolute;
    top: 50%; 
    left: 0;
    width: 100%;
    transform: translateY(-50%); 
    text-align: center;
    z-index: 50;
    margin: 0; 
}

.subpage-title-container h1 span.color-background {
    background-color: transparent;
    color: var(--text-light, #ffffff);
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
    font-size: 2.8rem; 
    letter-spacing: 3px;
    text-transform: uppercase;
}

.subpage-title-container h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--color-gold, #d9c270);
    margin: 15px auto 0 auto;
}

/* ==========================================================================
   03. STICKY NAVIGATION (SUBPAGE SPECIFIC FIXES)
   ========================================================================== */

/* Remove transform constraints that block fixed positioning */
.subpage-hero,
.subpage-hero > .inner {
    transform: none;
    perspective: none;
    filter: none;
    will-change: auto;
}

/* Base state: Nav sits at the bottom of the hero image */
body:not(.is-sticky) .subpage-hero .sticky-nav-wrapper {
    position: absolute;
    bottom: 0;
    top: auto;
    left: 0;
    width: 100%;
    z-index: 100;
}

/* Liquid Glass Effect Override for Subpages */
body.is-sticky .subpage-hero .sticky-nav-wrapper {
    position: fixed;
    top: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 99999; 
    
    transform: none;
    border-radius: 0 0 35px 35px;
    
    background: linear-gradient(
        to bottom, 
        rgba(252, 248, 227, 0.85) 0%, 
        rgba(252, 248, 227, 0.4) 100%
    ); 
    
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    
    border: none;
    border-bottom: 1px solid rgba(217, 194, 112, 0.2);
    border-left: 1px solid rgba(252, 248, 227, 0.5);
    border-right: 1px solid rgba(252, 248, 227, 0.5);
    
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.05), 
        inset 0 -1px 3px rgba(252, 248, 227, 0.6), 
        inset 0 10px 20px rgba(0, 0, 0, 0.02);
        
    padding: 12px 0;
    animation: slideDownGlass 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* ==========================================================================
   04. HERO SLIDER INTEGRATION (SUBPAGES)
   ========================================================================== */

/* Force slider into the 55vh header */
.subpage-hero .hero-slider,
.subpage-hero .hero-slider .slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: grid;
}

.subpage-hero .hero-slider .slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   05. EXTENDED SCROLL ANIMATIONS
   ========================================================================== */

.reveal-left { opacity: 0; transform: translateX(-60px); transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(60px); transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }

.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal-scale.active { opacity: 1; transform: scale(1); }

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ==========================================================================
   06. TEAM CARDS & 3D EFFECTS
   ========================================================================== */

.team-owner-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 60px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.team-owner-card,
.team-member-card {
    position: relative;
    perspective: 1200px; 
    text-align: center;
    overflow: visible; 
}

.team-owner-card { width: 100%; max-width: 500px; }
.team-member-card { flex: 0 1 calc(50% - 40px); min-width: 280px; max-width: 400px; }

.wv-link-elm {
    text-decoration: none;
    display: block;
    transform-style: preserve-3d;
    will-change: transform;
    border-radius: 20px;
    transition: box-shadow 0.3s ease-out, transform 0.1s ease-out;
    background: transparent;
}

/* Enhanced Glow Effect */
.team-owner-card:hover .wv-link-elm,
.team-member-card:hover .wv-link-elm {
    box-shadow: 
        0 0 0 4px var(--color-pastel, #FCF8E3), 
        0 0 60px 20px rgba(252, 248, 227, 0.8);
    z-index: 10;
}

.team-owner-card img,
.team-member-card img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
}

/* 3D Text Effect */
.team-owner-card h2,
.team-member-card h2,
.team-role {
    transform: translateZ(50px); 
    display: block;
    backface-visibility: hidden;
}

.team-owner-card h2 {
    margin-top: 25px;
    font-size: 1.4rem;
}

.team-role {
    color: var(--color-gold, #d9c270);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-owner-card:hover h2 strong,
.team-member-card:hover h2 strong {
    color: var(--color-gold-hover, #c2ad62);
}

/* ==========================================================================
   07. PREMIUM APPLICATION FORM (FLOATING LABELS)
   ========================================================================== */

.premium-application-wrapper {
    max-width: 1100px;
    margin: 80px auto;
    background: var(--bg-card, #ffffff);
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

.application-split-container {
    display: flex;
    flex-wrap: wrap;
}

/* Left Column: Emotional Pitch */
.application-info {
    flex: 1;
    min-width: 350px;
    padding: 70px 50px;
    background: linear-gradient(135deg, rgba(217, 194, 112, 0.08) 0%, rgba(255,255,255,0) 100%);
    border-right: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.application-info h2 {
    font-size: 3rem;
    color: var(--text-dark, #222222);
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.application-info h2::after {
    content: none;
}

.application-info p {
    font-size: 1.15rem;
    color: var(--text-main, #555555);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Contact Hint Pill */
.contact-hints .hint-box {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card, #ffffff);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.contact-hints .hint-box:hover {
    transform: translateY(-3px);
}

.hint-box svg { width: 20px; height: 20px; fill: var(--color-gold, #d9c270); }
.hint-box span { color: var(--text-main, #555555); font-size: 1.05rem; }
.hint-box strong { color: var(--text-dark, #222222); }

/* Right Column: Form Area */
.application-form {
    flex: 1.2;
    min-width: 400px;
    padding: 70px 60px;
    background: var(--bg-card, #ffffff);
}

/* Floating Labels Mechanism */
.floating-input-group {
    position: relative;
    margin-bottom: 25px;
}

.floating-input-group input,
.floating-input-group textarea {
    width: 100%;
    padding: 24px 20px 10px 20px; 
    background-color: var(--bg-main, #f9f9f9);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--text-dark, #222222);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

.floating-input-group textarea {
    min-height: 140px;
    resize: vertical;
}

.floating-input-group label {
    position: absolute;
    left: 20px;
    top: 20px;
    color: var(--text-muted, #888888);
    font-size: 1.05rem;
    font-weight: 500;
    pointer-events: none; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.floating-input-group input:focus,
.floating-input-group textarea:focus,
.floating-input-group input:not(:placeholder-shown),
.floating-input-group textarea:not(:placeholder-shown) {
    background-color: var(--bg-card, #ffffff);
    border-color: var(--color-gold, #d9c270);
    box-shadow: 0 10px 20px rgba(217, 194, 112, 0.1);
    outline: none;
}

.floating-input-group input:focus + label,
.floating-input-group textarea:focus + label,
.floating-input-group input:not(:placeholder-shown) + label,
.floating-input-group textarea:not(:placeholder-shown) + label {
    top: 6px;
    font-size: 0.75rem;
    color: var(--color-gold, #d9c270);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Drag & Drop File Zone */
.premium-file-drop {
    position: relative;
    border: 2px dashed rgba(0,0,0,0.15);
    border-radius: 12px;
    background-color: var(--bg-main, #f9f9f9);
    padding: 35px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 35px;
}

.premium-file-drop:hover, .premium-file-drop.dragover {
    border-color: var(--color-gold, #d9c270);
    background-color: rgba(217, 194, 112, 0.05);
    transform: translateY(-2px);
}

.premium-file-drop input[type="file"] {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer; z-index: 10;
}

.drop-content {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    pointer-events: none;
}

.drop-content svg { width: 40px; height: 40px; fill: var(--color-gold, #d9c270); }
.drop-content span { color: var(--text-muted, #666666); font-size: 0.95rem; line-height: 1.5; }
.drop-content strong { color: var(--text-dark, #222222); font-size: 1.1rem; }

.form-submit-btn { 
    width: 100%; 
    justify-content: center; 
    padding: 20px; 
    font-size: 1.1rem; 
}

/* ==========================================================================
   08. PREMIUM JOB GRID DESIGN
   ========================================================================== */

.premium-job-grid-section {
    max-width: 1100px;
    margin: 0 auto 60px auto;
}

.job-grid-header {
    margin-bottom: 60px;
}

.quick-facts-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.fact-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-card, #ffffff);
    padding: 12px 22px;
    border-radius: 50px;
    border: 1px solid rgba(217, 194, 112, 0.4);
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}

.fact-badge:hover {
    transform: translateY(-3px);
    background-color: rgba(217, 194, 112, 0.05);
}

.fact-badge svg { width: 18px; height: 18px; fill: var(--color-gold, #d9c270); }
.fact-badge span { font-size: 0.95rem; font-weight: 700; color: #333333; }

.job-grid-columns {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.job-col-card {
    flex: 1;
    background: var(--bg-card, #ffffff);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.col-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 20px;
}

.col-icon {
    width: 50px;
    height: 50px;
    background: rgba(217, 194, 112, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-icon svg {
    width: 24px; height: 24px; fill: var(--color-gold, #d9c270);
}

.col-header h3 {
    font-size: 1.6rem;
    margin: 0;
    color: var(--text-dark, #222222);
}

.col-header h3::after { content: none; }

.job-grid-benefits {
    margin-top: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.benefit-card {
    background: var(--bg-card, #ffffff);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--color-gold, #d9c270);
    box-shadow: 0 15px 35px rgba(217, 194, 112, 0.1);
}

.benefit-card h4 {
    font-size: 1.25rem;
    color: var(--text-dark, #222222);
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-muted, #666666);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   09. RESPONSIVE BEHAVIOR FOR SUBPAGES
   ========================================================================== */

@media screen and (max-width: 850px) {
    .application-split-container { flex-direction: column; }
    .application-info { padding: 50px 30px; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.03); }
    .application-form { padding: 50px 30px; min-width: auto; }
    .job-grid-columns { flex-direction: column; }
}

@media screen and (max-width: 768px) {
    .subpage-hero { height: 40vh; min-height: 300px; }
    .subpage-bg-image { background-attachment: scroll; animation: none; transform: scale(1.05); }
    .subpage-title-container h1 span.color-background { font-size: 1.8rem; }
}