/* Modern Locomotivation Styles - Shared across all modernized pages */

/* Custom container for 90% width */
.custom-container {
    width: 90%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header container to match navigation width */
.header-container {
    width: 90%;
    margin: 0 auto;
}

/* Gradient header system */
.header-gradient {
    background: linear-gradient(135deg, #8B5A96 0%, #ee1188 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    min-height: 180px;
    display: flex;
    align-items: center;
}

.header-gradient h1 {
    font-size: 2.3rem !important;
    font-weight: 600 !important;
    color: white !important;
    background: transparent !important;
    margin: 0 !important;
    text-align: left !important;
    padding-left: 0 !important;
}

.header-gradient p {
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
}

/* Header gradient button styling */
.header-gradient .btn-light {
    background: white !important;
    color: #333 !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.header-gradient .btn-light:hover {
    background: #000 !important;
    color: white !important;
    transform: scale(1.05) !important;
}

.header-gradient .btn-outline-light {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
    transition: all 0.3s ease !important;
}

.header-gradient .btn-outline-light:hover {
    background: #000 !important;
    color: white !important;
    border-color: #000 !important;
    transform: scale(1.05) !important;
}

/* Semantic Typography Hierarchy - Professional Font-Size Scale */
h1 {
    font-size: 2.3rem !important;  /* 36.8px - Main page titles */
}

h2 {
    font-size: 1.6rem !important;  /* 25.6px - Major sections/card headers - Administrative pages - override Bootstrap */
}

/* Simple class-based customer page override */
.public h2 {
    font-size: 1.9rem !important;
}

/* TEST RULE - should appear in computed styles */
.customer-page h2 {
    font-size: 1.9rem !important;
    background-color: red !important;
}

/* Customer-facing pages - Enhanced H2 for marketing engagement - NUCLEAR OPTION */
html body.customer-page main.custom-container div.row div.col-lg-6 h2.mb-4,
html body.customer-page main.custom-container h2.mb-4,  
html body.customer-page .custom-container h2.mb-4,
html body.customer-page main h2,
html body.customer-page h2,
html body.customer-page h2.mb-4,
.customer-page h2,
body.customer-page h2,
.cta-section h2,
.cta-section-apprentice h2 {
    font-size: 1.9rem !important;  /* 30.4px - Enhanced prominence for customer engagement */
}

h3 {
    font-size: 1.4rem !important;  /* 22.4px - Sub-sections within cards */
}

h4 {
    font-size: 1.2rem !important;  /* 19.2px - Detail sections */
}

h5 {
    font-size: 1.1rem !important;  /* 17.6px - Minor headings */
}

h6 {
    font-size: 1rem !important;    /* 16px - Smallest headings (base font) */
}

/* Legacy style cleanup */
h1, h2, h3, h4, h5, h6 {
    background-color: transparent !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    color: #333 !important;
}

/* Breadcrumb spacing */
.breadcrumb-item + .breadcrumb-item::before {
    content: "> " !important;
    color: #ee1188 !important;
}

/* Modern card styling */
.modern-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #8B5A96;
    height: 100%;
    margin-bottom: 2rem;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Modern icon styling */
.modern-icon {
    font-size: 2.5rem;
    color: #8B5A96;
    margin-bottom: 1rem;
    float: left;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.modern-card .card-body {
    overflow: hidden;
}

.modern-card .card-title {
    margin-top: 0;
}

/* Section titles with proper text wrapping */
.section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    color: #ee1188 !important;
    display: flex !important;
    align-items: flex-start !important;
    line-height: 1.2 !important;
}

.section-title i {
    margin-right: 12px;
    font-size: 24px;
    color: #ee1188;
    flex-shrink: 0;
}

.section-title span {
    flex: 1;
    word-wrap: break-word;
}

/* CTA Sections */
.cta-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: -3rem;
}

.cta-section h2 {
    color: white !important;
}

.cta-section .btn {
    background: white;
    color: #333;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.cta-section .btn:hover {
    background: #000;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-section .btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-section .btn-outline-light:hover {
    background: #000;
    color: white;
    border-color: #000;
    transform: scale(1.05);
}

/* Apprentice CTA Section */
.cta-section-apprentice {
    background: linear-gradient(135deg, #8B5A96 0%, #ee1188 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.cta-section-apprentice h2 {
    color: white !important;
}

.cta-section-apprentice .btn {
    background: white;
    color: #333;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.cta-section-apprentice .btn:hover {
    background: #ee1188;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-section-apprentice .btn-outline-dark {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-section-apprentice .btn-outline-dark:hover {
    background: #ee1188;
    color: white;
    border-color: #ee1188;
    transform: scale(1.05);
}

/* Quote styling */
.quote-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #ee1188;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Hero image styling */
.hero-image {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Reduce gap between main content and CTA sections */
main.custom-container {
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Standardized Navigation Logo - Override any conflicting styles with maximum specificity */
nav.modern-nav .nav-brand img {
    height: 100px !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: content-box !important;
}

nav.modern-nav .nav-brand:hover img {
    filter: drop-shadow(0 4px 8px rgba(139, 90, 150, 0.3)) !important;
}

nav.modern-nav .nav-brand {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-left: 0 !important;
    margin-top: 20px !important;
    flex-shrink: 0 !important;
}

nav.modern-nav .nav-brand:hover {
    transform: scale(1.05) !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* CTA Button Mobile Spacing */
    .cta-section .btn,
    .cta-section-apprentice .btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 1rem auto !important;
    }
    
    /* Last button should not have bottom margin */
    .cta-section .btn:last-of-type,
    .cta-section-apprentice .btn:last-of-type {
        margin-bottom: 0 !important;
    }
    
    /* Stack buttons vertically with proper spacing */
    .cta-section,
    .cta-section-apprentice {
        padding: 2.5rem 1rem;
    }
    
    /* Ensure buttons are touch-friendly */
    .cta-section .btn,
    .cta-section-apprentice .btn {
        padding: 14px 30px;
        font-size: 16px;
        min-height: 48px;
    }
}

/* ==================== FORM TOGGLE/SWITCH STYLING ==================== */
/* Standard Bootstrap form-switch with brand colours, no checkmark */

.form-switch .form-check-input,
.form-switch .form-check-input[type="checkbox"] {
    width: 2.5rem !important;
    height: 1.25rem !important;
    transform: none !important;
    margin-top: 0.125em !important;
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(0,0,0,0.25)'/%3e%3c/svg%3e") !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(0,0,0,0.25)'/%3e%3c/svg%3e") !important;
}

.form-switch .form-check-input:checked,
.form-switch .form-check-input[type="checkbox"]:checked {
    background-color: #ee1188 !important;
    border-color: #ee1188 !important;
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
    --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}

.form-switch .form-check-input:focus {
    border-color: #ee1188 !important;
    box-shadow: 0 0 0 0.25rem rgba(238, 17, 136, 0.25) !important;
}

/* Hide the ::after checkmark that Bootstrap adds to checkboxes */
.form-switch .form-check-input::after,
.form-switch .form-check-input:checked::after {
    display: none !important;
    content: none !important;
}