/* ==========================================================================
   Beacon FinTalent Styles
   ========================================================================== */

/* Custom Font Family - Beacon FinTalent */
@font-face {
    font-family: 'Beacon FinTalent';
    src: url('../fonts/GothamNarrow-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Beacon FinTalent';
    src: url('../fonts/GothamNarrow-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Beacon FinTalent';
    src: url('../fonts/GothamNarrow-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Beacon FinTalent';
    src: url('../fonts/GothamNarrow-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Brand Colors */
:root {
    --primary-blue: #102649;
    --primary-orange: #d75735;
    --secondary-blue: #004A87;
    --light-gray: #F8F9FA;
    --text-muted: #6c757d;
    --white: #ffffff;
}

/* PRIORITY 1: Exclude FontAwesome icons from custom font - HIGHEST PRIORITY */
i[class*="fa"]:before,
i[class*="fa"]:after,
[class*="fa-"]:before,
[class*="fa-"]:after,
[class*="fas"]:before,
[class*="fas"]:after,
[class*="far"]:before,
[class*="far"]:after,
[class*="fab"]:before,
[class*="fab"]:after,
[class*="fal"]:before,
[class*="fal"]:after,
[class*="fad"]:before,
[class*="fad"]:after,
.fa,
.fas,
.far,
.fab,
.fal,
.fad,
i.fa,
i.fas,
i.far,
i.fab,
i.fal,
i.fad,
i[class*="fa-"],
i[class*="fas"],
i[class*="far"],
i[class*="fab"],
i[class*="fal"],
i[class*="fad"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 900 !important;
}

/* Base Styles - Apply to everything except FontAwesome */
*:not([class*="fa"]):not(i[class*="fa"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad) {
    font-family: 'Beacon FinTalent' !important;
}

body {
    font-family: 'Beacon FinTalent' !important;
    line-height: 1.6;
    color: var(--primary-blue);
    font-weight: 400;
}

/* Ensure all text elements use the custom font except icons */
h1:not([class*="fa"]), h2:not([class*="fa"]), h3:not([class*="fa"]), h4:not([class*="fa"]), h5:not([class*="fa"]), h6:not([class*="fa"]),
p:not([class*="fa"]), span:not([class*="fa"]), div:not([class*="fa"]), a:not([class*="fa"]), li:not([class*="fa"]), ul:not([class*="fa"]), ol:not([class*="fa"]),
button:not([class*="fa"]), input:not([class*="fa"]), textarea:not([class*="fa"]), select:not([class*="fa"]),
.btn:not([class*="fa"]), .nav-link:not([class*="fa"]), .navbar-brand:not([class*="fa"]),
.accordion-button:not([class*="fa"]), .card-body:not([class*="fa"]),
.footer:not([class*="fa"]), .form-control:not([class*="fa"]),
.list-group-item:not([class*="fa"]), .dropdown-item:not([class*="fa"]),
.alert:not([class*="fa"]), .badge:not([class*="fa"]), .breadcrumb:not([class*="fa"]),
.carousel-caption:not([class*="fa"]), .modal-body:not([class*="fa"]),
.tooltip:not([class*="fa"]), .popover:not([class*="fa"]) {
    font-family: 'Beacon FinTalent' !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Beacon FinTalent' !important;
    font-weight: 700;
}

h1 {
    font-weight: 800 !important;
}

h2 {
    font-weight: 700 !important;
}

h3 {
    font-weight: 700 !important;
}

h4 {
    font-weight: 600 !important;
}

h5 {
    font-weight: 600 !important;
}

h6 {
    font-weight: 500 !important;
}

/* Paragraphs and text elements */
p, span, div, li {
    font-family: 'Beacon FinTalent' !important;
    font-weight: 400;
}

/* Links */
a {
    font-family: 'Beacon FinTalent' !important;
    font-weight: 500;
}

/* Buttons */
.btn, button {
    font-family: 'Beacon FinTalent' !important;
    font-weight: 600;
}

/* Form elements */
input, textarea, select, .form-control {
    font-family: 'Beacon FinTalent' !important;
    font-weight: 400;
}

/* Navigation */
.navbar, .nav-link, .navbar-brand {
    font-family: 'Beacon FinTalent' !important;
}

.nav-link {
    font-weight: 500 !important;
}

/* Bootstrap components */
.card, .modal, .accordion, .alert {
    font-family: 'Beacon FinTalent' !important;
}

.card-title {
    font-weight: 600 !important;
}

.card-text {
    font-weight: 400 !important;
}

/* HubSpot form elements */
.hs-form, .hs-form * {
    font-family: 'Beacon FinTalent' !important;
}

.hs-input, .hs-button, .hsfc-Button {
    font-family: 'Beacon FinTalent' !important;
}

/* Timeline elements */
.timeline *, .step-content *, .step-title {
    font-family: 'Beacon FinTalent' !important;
}

/* Footer elements */
footer, footer * {
    font-family: 'Beacon FinTalent' !important;
}

.fw-bold, .font-weight-bold {
    font-weight: 700 !important;
}

.fw-bolder {
    font-weight: 800 !important;
}

.fw-light {
    font-weight: 300 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

/* Override any potential conflicting fonts */
.text-primary, .text-muted, .text-dark, .text-white {
    font-family: 'Beacon FinTalent' !important;
}

/* Special classes that might have different fonts */
.lead {
    font-family: 'Beacon FinTalent' !important;
    font-weight: 400;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Beacon FinTalent' !important;
    font-weight: 800;
}

/* Ensure third-party elements use our font except icons */
[class*="fa-"], [class*="fas"], [class*="far"], [class*="fab"], [class*="fal"], [class*="fad"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
}

/* Make sure all text content uses our font */
.container *, .row *, .col * {
    font-family: 'Beacon FinTalent' !important;
}

/* Remove default text decoration */
a {
    text-decoration: none;
}

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

.btnmaincolor {
    background: var(--primary-orange);
    border: none;
    border-radius: 4px;
    color: var(--white);
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 12px 24px;
}

.btnmaincolor:hover {
    background: #003a6e;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 74, 135, 0.3);
}

/* ==========================================================================
   Typography
   ========================================================================== */

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

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

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

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

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

.metrics-card {
    background-color: var(--light-gray);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.metric-number {
    color: var(--primary-orange);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.metric-title {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.metric-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   Office Locations
   ========================================================================== */

.office-location {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
}

.office-title {
    color: var(--primary-blue);
    font-weight: 600;
    border-bottom: 3px solid var(--primary-orange);
    padding-bottom: 8px;
    margin-bottom: 16px;
    display: inline-block;
}

.office-location p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.office-location a {
    color: var(--primary-orange);
    font-weight: 500;
}

.office-location a:hover {
    color: var(--primary-blue);
}

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

.feature-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    height: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card h6 {
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

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

.service-highlight {
    background: var(--primary-orange);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.service-highlight:hover {
    transform: scale(1.05);
}

.service-detail-card {
    background: var(--light-gray);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
}

.service-detail-header {
    background: var(--primary-orange);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}

.service-detail-body {
    padding: 1.5rem;
}

.service-detail-body ul {
    padding-left: 1rem;
}

.service-detail-body li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Forms & HubSpot Overrides
   ========================================================================== */

.hs-form-frame {
    width: 100%;
}

/* HubSpot form button styling */
.hsfc-Button {
    width: 100% !important;
    background: var(--primary-orange) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.hsfc-Button:hover {
    background: #c44a2c !important;
    transform: translateY(-2px) !important;
}

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

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

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

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

footer {
    background: var(--primary-blue) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-orange) !important;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

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

.bg-light-gray {
    background-color: var(--light-gray) !important;
}

/* Spacing utilities */
.py-section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .py-section {
        padding: 3rem 0;
    }
}

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

@media (max-width: 991px) {
    .metrics-card {
        margin-bottom: 1rem;
    }

    .office-location iframe {
        height: 200px;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 8rem 0 !important;
    }

    .service-highlight {
        margin-bottom: 1rem;
    }

    .office-location {
        text-align: center;
    }

    .office-location .row > div {
        margin-bottom: 1rem;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

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

@media print {
    .navbar,
    footer,
    .btn,
    .hs-form-frame {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none !important;
    }
}
