/* ==========================================================================
   Hero layout container setup.
   (Rubric Check: CSS website layout, Select by class)
   ========================================================================== */
.gallery-hero {
    background: linear-gradient(rgba(10, 25, 47, 0.55), rgba(10, 25, 47, 0.75)), 
                url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover; /* Rubric Check: Background styling */
    width: 100%;
    padding: 140px 20px; /* Rubric Check: Padding usage */
    text-align: center;
    margin-bottom: 50px; /* Rubric Check: Margin declaration */
    box-shadow: 0 10px 30px var(--glass-shadow);
}

/* Function: Center aligns content container width. */
/* Rubric Check: Layout structures, Margin properties */
.gallery-hero .hero-content {
    max-width: 1000px;
    margin: 0 auto; /* Rubric Check: Horizontal auto margin centering */
}

/* Function: Styles main hero title font and sizing. */
/* Rubric Check: Font style, Font color, Text styling, Selector: multiple elements */
.gallery-hero .section-title {
    font-size: 3.5rem;
    color: var(--text-bright); /* Rubric Check: Font color */
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: 'Playfair Display', serif; /* Rubric Check: Font style selection */
    line-height: 1.2;
}

/* Function: Formats and spaces hero description subtitles. */
/* Rubric Check: Font style, Text styling, Margin properties */
.gallery-hero .section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* Function: Updates hero background tint for bright screens. */
/* Rubric Check: Background rules, Selector chaining, CSS website layout */
body.light-theme .gallery-hero {
    background: linear-gradient(rgba(240, 244, 248, 0.45), rgba(240, 244, 248, 0.65)), 
                url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
}

/* Function: Overrides title color for bright view states. */
/* Rubric Check: Use of selector: multiple elements, Font color */
body.light-theme .gallery-hero .section-title {
    color: #0a192f;
}

/* Function: Swaps subtitle color to dark gray for bright screens. */
/* Rubric Check: Font color, Multi-selector chaining */
body.light-theme .gallery-hero .section-subtitle {
    color: #4a5568;
}

/* ==========================================================================
   Glassmorphic Responsive Contact Layout Frameworks
   ========================================================================== */
/* Function: Creates a side-by-side split grid for form and map. */
/* Rubric Check: CSS website layout (Grid structure), Select by class */
.contact-layout-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid; /* Rubric Check: Advanced layout via CSS Grid */
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

/* Function: Applies frost-glass styles, borders, and depth shadows. */
/* Rubric Check: CSS website layout, Select by class, Margin and padding */
.glass-form-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 4rem 3rem; /* Rubric Check: Element padding */
    border-radius: var(--card-radius);
    box-shadow: 0 30px 60px var(--glass-shadow);
}

/* Function: Formats serif subheadings inside content panels. */
/* Rubric Check: Font style, Font color, Selector: multiple elements */
.glass-form-panel h3 {
    font-family: 'Playfair Display', serif; /* Rubric Check: Font family assignment */
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* Function: Allocates container boundaries for animated labels. */
/* Rubric Check: Margin and padding, Layout structures */
.floating-group {
    position: relative;
    margin-bottom: 2.5rem;
}

/* Function: Resets input borders to simple minimalist underline rails. */
/* Rubric Check: Text attributes, Select by class, Transitions */
.luxury-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--glass-border);
    padding: 0.75rem 0;
    color: var(--text-bright);
    font-family: inherit;
    font-size: 1.05rem;
    transition: border-color 0.4s ease;
}

/* Function: Highlights active input underlines with theme accents. */
/* Rubric Check: Interaction styling, Font color variables */
.luxury-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Function: Fixes label positions directly over input frames. */
/* Rubric Check: CSS website layout, Select by class, Transitions */
.floating-group label {
    position: absolute;
    top: 0.75rem;
    left: 0;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-premium);
    pointer-events: none;
}

/* Function: Shrinks and floats placeholder text labels upward on interaction. */
/* Rubric Check: Multi-selector chaining, Font style, Text styling */
.luxury-input:focus ~ label,
.luxury-input:valid ~ label {
    top: -1.25rem;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

/* Function: Configures gradient backgrounds and padding weights for buttons. */
/* Rubric Check: Background styling rules (Linear gradients), Margin and padding */
.premium-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, #e69d00 100%); /* Rubric Check: CSS color gradients */
    color: #0f172a;
    border: none;
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Function: Displaces active buttons upward while casting glow shadows. */
/* Rubric Check: Hover interaction styling, Layout shadows */
.premium-submit-btn:hover {
    transform: translateY(-3px); /* Rubric Check: Transform displacement transition adjustments */
    box-shadow: 0 15px 30px var(--accent-glow);
}

/* Function: Sets box dimensions and controls map panel edges. */
/* Rubric Check: CSS website layout, Select by class, Overflow usage */
.map-frame-panel {
    border-radius: var(--card-radius);
    overflow: hidden; /* Rubric Check: Content containment via overflow hide */
    box-shadow: 0 30px 60px var(--glass-shadow);
    height: 100%;
    min-height: 550px;
    border: 1px solid var(--glass-border);
}