/* =====================================================
   All Precision Analytics - Main Stylesheet
   REBRAND: An Equitable Data Analytics Company
   ===================================================== */

/* =====================================================
   Font Face Declarations - Proxima Nova
   Using system-available weights with web-safe fallbacks
   ===================================================== */

@font-face {
    font-family: 'ProximaNova';
    src: local('Proxima Nova Regular'), local('ProximaNova-Regular');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ProximaNova';
    src: local('Proxima Nova Semibold'), local('ProximaNova-Semibold');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ProximaNova';
    src: local('Proxima Nova Bold'), local('ProximaNova-Bold');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =====================================================
   CSS Custom Properties (Variables)
   ===================================================== */

:root {
    /* Brand Colors */
    --red: #ed0908;
    --blue: #1a77a7;
    --off-white: #f3f1f0;
    --off-black: #353535;
    --peachy: #e38d8b;
    --grey: #979797;
    --muted-red: #cc343b;
    --light-blue: #84c4db;

    /* Semantic Mappings */
    --primary-color: #1a77a7;
    --accent-color: #ed0908;
    --text-color: #353535;
    --background-color: #f3f1f0;
    --highlight-color: #ffffff;
    --light-gray: #f3f1f0;
    --medium-gray: #e9ecef;
    --dark-gray: #353535;

    /* Font Settings */
    --body-font: 'ProximaNova', 'proxima-nova', Arial, sans-serif;
    --heading-font: 'ProximaNova', 'proxima-nova', Arial, sans-serif;
}

/* =====================================================
   Base Styles
   ===================================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--off-white);
    margin: 0;
    padding: 0;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 0;
    color: var(--off-black);
}

h1 { font-weight: 700; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
h4, h5 { font-weight: 600; }

p {
    color: var(--off-black);
}

a {
    color: var(--blue);
    transition: color 0.2s ease;
}

a:hover {
    color: #135d85;
}

/* =====================================================
   Layout Components
   ===================================================== */

.container {
    max-width: 1200px;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--off-white);
}

.section-white {
    background-color: #ffffff;
}

/* =====================================================
   Bootstrap Overrides
   ===================================================== */

.bg-primary {
    background-color: var(--blue) !important;
}

.text-primary {
    color: var(--blue) !important;
}

.bg-dark {
    background-color: var(--off-black) !important;
}

/* =====================================================
   Buttons
   ===================================================== */

.btn {
    border-radius: 4px;
    font-family: var(--body-font);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: none;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--muted-red) !important;
    border-color: var(--muted-red) !important;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--red) !important;
    border-color: var(--red) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 9, 8, 0.3);
    color: #fff;
}

.btn-secondary {
    background-color: var(--blue) !important;
    border-color: var(--blue) !important;
    color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #135d85 !important;
    border-color: #135d85 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 119, 167, 0.3);
    color: #fff;
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--blue) !important;
    color: var(--blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--off-black);
}

.btn:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* =====================================================
   Forms
   ===================================================== */

.form-control,
.form-select {
    border-radius: 4px;
    border: 1px solid #d1cfce;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: var(--body-font);
    transition: all 0.2s ease;
    background-color: #fff;
    color: var(--off-black);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 119, 167, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--off-black);
    font-size: 0.9rem;
}

textarea.form-control {
    resize: vertical;
}

/* =====================================================
   Cards
   ===================================================== */

.card {
    border-radius: 8px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 12px rgba(53, 53, 53, 0.08);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(53, 53, 53, 0.12);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(53, 53, 53, 0.05);
    color: var(--off-black);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* =====================================================
   Navigation
   ===================================================== */

.navbar {
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    background-color: #fff !important;
    border-bottom: 1px solid rgba(53, 53, 53, 0.08);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--off-black) !important;
}

.navbar-brand img {
    transition: transform 0.2s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem;
    color: var(--off-black) !important;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--blue) !important;
}

.nav-link.active {
    color: var(--blue) !important;
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 16px rgba(53, 53, 53, 0.12);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background: #fff;
}

.dropdown-item {
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    color: var(--off-black);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(26, 119, 167, 0.08);
    color: var(--blue);
    padding-left: 1.5rem;
}

.dropdown-header {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(53, 53, 53, 0.08);
}

/* =====================================================
   Modals
   ===================================================== */

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(53, 53, 53, 0.2);
}

.modal-header {
    border-bottom: 1px solid var(--medium-gray);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--off-black);
}

/* =====================================================
   Hero Section
   ===================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--off-black) 0%, #1a1a1a 50%, #2a2a2a 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    color: #fff;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 119, 167, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(132, 196, 219, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    border-radius: 50%;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1,
.hero-section h2,
.hero-section p {
    color: #fff;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
}

.hero-tagline {
    color: var(--light-blue) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* =====================================================
   Equity Statement Section
   ===================================================== */

.equity-section {
    background-color: #fff;
    padding: 4rem 0;
    border-bottom: 3px solid var(--blue);
}

.equity-section .lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--off-black);
    max-width: 800px;
    margin: 0 auto;
}

/* =====================================================
   Approach Section
   ===================================================== */

.approach-box {
    padding: 2.5rem 2rem;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(53, 53, 53, 0.06);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid transparent;
}

.approach-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(53, 53, 53, 0.1);
    border-top-color: var(--blue);
}

.approach-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-blue);
    opacity: 0.3;
    margin-bottom: 1rem;
    line-height: 1;
}

.approach-box h3 {
    color: var(--off-black);
    margin-bottom: 1rem;
}

.approach-box p {
    color: var(--grey);
    font-size: 0.95rem;
    margin: 0;
}

/* =====================================================
   Solutions Section
   ===================================================== */

.solution-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(53, 53, 53, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(53, 53, 53, 0.12);
}

.solution-card .card-body {
    padding: 1.75rem;
}

.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.solution-card p {
    font-size: 0.95rem;
    color: var(--grey);
}

/* Solution Image Carousel */
.solution-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: var(--off-white);
}

.solution-carousel .carousel-inner {
    border-radius: 8px 8px 0 0;
}

.solution-carousel .carousel-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.solution-carousel .carousel-control-prev,
.solution-carousel .carousel-control-next {
    width: 36px;
    height: 36px;
    background: rgba(53, 53, 53, 0.6);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.solution-card:hover .carousel-control-prev,
.solution-card:hover .carousel-control-next {
    opacity: 1;
}

.solution-carousel .carousel-control-prev {
    left: 10px;
}

.solution-carousel .carousel-control-next {
    right: 10px;
}

.solution-carousel .carousel-indicators {
    margin-bottom: 0.5rem;
}

.solution-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
}

.solution-carousel .carousel-indicators button.active {
    background-color: #fff;
}

/* =====================================================
   Scholarship Section
   ===================================================== */

.scholarship-hero {
    background: linear-gradient(135deg, var(--blue) 0%, #135d85 100%);
    color: #fff;
    padding: 5rem 0;
    position: relative;
}

.scholarship-hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(132, 196, 219, 0.2) 0%, transparent 70%);
    top: -50px;
    right: 10%;
    border-radius: 50%;
}

.scholarship-hero h1,
.scholarship-hero p {
    color: #fff;
}

.scholarship-criteria {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(53, 53, 53, 0.06);
    border-left: 4px solid var(--blue);
}

.scholarship-form-section {
    background: #fff;
    padding: 5rem 0;
}

/* =====================================================
   Certifications Section
   ===================================================== */

.certifications-section {
    background: #fff;
    padding: 4rem 0;
    border-top: 1px solid rgba(53, 53, 53, 0.08);
    border-bottom: 1px solid rgba(53, 53, 53, 0.08);
}

.cert-logo {
    max-height: 80px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.cert-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.cert-carousel .carousel-item {
    padding: 1rem 0;
}

.cert-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--grey);
    border: none;
}

.cert-carousel .carousel-indicators button.active {
    background-color: var(--blue);
}

/* =====================================================
   YouTube Section
   ===================================================== */

.youtube-section {
    background: var(--off-white);
    padding: 4rem 0;
}

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(53, 53, 53, 0.12);
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* =====================================================
   Credentials Section
   ===================================================== */

.credential-item {
    padding: 1.25rem;
    text-align: center;
}

.credential-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.credential-item strong {
    font-size: 0.95rem;
    color: var(--off-black);
    display: block;
    margin-bottom: 0.25rem;
}

.credential-item small {
    font-size: 0.85rem;
    color: var(--grey);
}

/* =====================================================
   CTA Section
   ===================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--off-black) 0%, #2a2a2a 100%);
    color: #fff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 119, 167, 0.1) 0%, transparent 70%);
    bottom: -100px;
    right: -50px;
    border-radius: 50%;
}

.cta-section h2,
.cta-section p {
    color: #fff;
}

/* =====================================================
   Footer
   ===================================================== */

footer {
    background-color: var(--off-black);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

footer h5 {
    color: #fff;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--light-blue);
}

footer .footer-links a {
    display: block;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* =====================================================
   Industry Display (Hero) - Decorative Cycling Text
   ===================================================== */

.industry-selector-wrapper {
    display: inline-block;
    position: relative;
}

/* The decorative display element */
.hero-industry-display {
    font-family: var(--heading-font);
    font-size: inherit;
    font-weight: 700;
    color: var(--light-blue);
    background-color: rgba(132, 196, 219, 0.1);
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    padding: 0.4rem 1.5rem;
    cursor: default;
    pointer-events: none;
    user-select: none;
    min-width: 320px;
    max-width: 100%;
    text-align: center;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* =====================================================
   Loading Overlay
   ===================================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(53, 53, 53, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    color: #fff;
}

/* =====================================================
   Badges
   ===================================================== */

.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: var(--body-font);
}

.badge.bg-primary {
    background-color: var(--blue) !important;
}

/* =====================================================
   Step Indicators (Scholarship Form)
   ===================================================== */

.form-step-indicator {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--medium-gray);
    transition: background 0.3s ease;
}

.step-dot.active {
    background: var(--blue);
}

.step-dot.completed {
    background: var(--muted-red);
}

/* =====================================================
   Utility Classes
   ===================================================== */

.text-muted {
    color: var(--grey) !important;
}

.text-red {
    color: var(--muted-red);
}

.text-blue {
    color: var(--blue);
}

.text-light-blue {
    color: var(--light-blue);
}

.bg-off-white {
    background-color: var(--off-white);
}

.bg-white {
    background-color: #fff;
}

.border-blue {
    border-color: var(--blue) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(53, 53, 53, 0.06) !important;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--muted-red);
    margin: 1rem auto;
    border-radius: 2px;
}

/* =====================================================
   Responsive Design
   ===================================================== */

@media (max-width: 992px) {
    .hero-industry-display {
        min-width: 280px;
        font-size: 1.25rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        min-height: 500px;
    }

    .section {
        padding: 3rem 0;
    }

    .approach-box {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .hero-industry-display {
        min-width: 240px;
        font-size: 1.1rem;
        padding: 0.35rem 0.75rem;
    }

    .solution-carousel .carousel-item img {
        height: 200px;
    }

    .scholarship-hero {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
        min-height: 450px;
    }

    .container {
        padding: 0 1rem;
    }

    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }

    .hero-industry-display {
        min-width: auto;
        max-width: 100%;
        font-size: 1rem;
        padding: 0.35rem 0.75rem;
    }

    .approach-number {
        font-size: 2.5rem;
    }

    .credential-icon {
        font-size: 1.5rem;
    }

    .cert-logo {
        max-height: 50px;
        max-width: 100px;
    }

    .solution-carousel .carousel-item img {
        height: 180px;
    }
}

/* =====================================================
   Accessibility
   ===================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--off-black);
    color: #fff;
    padding: 0.75rem 1.5rem;
    z-index: 10000;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* =====================================================
   Print Styles
   ===================================================== */

@media print {
    .navbar,
    .btn,
    .loading-overlay,
    .youtube-section,
    .cert-carousel {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .section {
        page-break-inside: avoid;
    }

    .hero-section {
        background: #fff !important;
        color: #000 !important;
    }

    .hero-section h1,
    .hero-section p {
        color: #000 !important;
    }
}
