/* ==========================================================
   IES Lab - University of Oklahoma inspired frontend theme
   Place this file AFTER frontend/css/style.css in the layout.
   Palette:
   OU Crimson #841617 | Dark Crimson #4e0002 | Black #000000
   Dark Gray #323232 | Light Gray #f0f0f0 | White #ffffff
   Sky #bdcde3 | Leaf #86a57d | Stone #beb4a5
   ========================================================== */

:root {
    --ou-crimson: #841617;
    --ou-dark-crimson: #4e0002;
    --ou-black: #000000;
    --ou-dark-gray: #323232;
    --ou-light-gray: #f0f0f0;
    --ou-white: #ffffff;
    --ou-cream: #f8f4e3;
    --ou-sky: #bdcde3;
    --ou-leaf: #86a57d;
    --ou-stone: #beb4a5;

    --ies-ink: #111111;
    --ies-ink-soft: #323232;
    --ies-muted: #616161;
    --ies-paper: #f7f7f5;
    --ies-line: #dedede;
    --ies-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    --ies-shadow-crimson: 0 18px 55px rgba(132, 22, 23, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ies-paper);
    color: var(--ies-ink);
    font-size: 16px;
}

p {
    color: var(--ies-muted);
}

h1, .h1, h2, .h2, h3, .h3,
h4, .h4, h5, .h5, h6, .h6 {
    color: var(--ies-ink);
    text-transform: none;
    letter-spacing: -0.02em;
}

a {
    color: var(--ou-crimson);
}

a:hover,
a:focus {
    color: var(--ou-dark-crimson);
}

/* Core theme color overrides */
.text-color,
.color-one,
.section-kicker {
    color: var(--ou-crimson) !important;
}

.bg-primary,
.btn-main,
.btn-transparent,
.service .card:before,
.inner-box .image .overlay-box:before,
.inner-box .image .overlay-box:after,
.post-navigation a.current,
.sidebar-widget .list-group li a span.count,
.tags a:hover,
.widget.widget-tag ul li a:hover {
    background: var(--ou-crimson) !important;
    border-color: var(--ou-crimson) !important;
}

.btn {
    border-radius: 2px;
    letter-spacing: 0.04em;
}

.btn-main,
.btn-transparent {
    color: var(--ou-white) !important;
    box-shadow: 0 12px 28px rgba(132, 22, 23, 0.22);
}

.btn-main:hover,
.btn-transparent:hover {
    background: var(--ou-dark-crimson) !important;
    border-color: var(--ou-dark-crimson) !important;
    color: var(--ou-white) !important;
}

.btn-main-border,
.btn-outline-main {
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    background: transparent !important;
    color: var(--ou-white) !important;
}

.btn-main-border:hover,
.btn-outline-main:hover {
    border-color: var(--ou-crimson) !important;
    background: var(--ou-crimson) !important;
    color: var(--ou-white) !important;
}

.bg-gray,
.bg-light-soft {
    background: var(--ou-light-gray) !important;
}

/* Header */
.lab-site-header.navigation,
.navigation {
    position: absolute;
    width: 100%;
    z-index: 9999;
}

.lab-site-header .header-top,
.header-top {
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 9px 0;
}

.lab-site-header .header-top-info a,
.lab-site-header .header-top-socials a,
.header-top .header-top-info a,
.header-top .header-top-socials a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

.lab-site-header .header-top-info a:hover,
.lab-site-header .header-top-socials a:hover,
.header-top .header-top-info a:hover,
.header-top .header-top-socials a:hover {
    color: var(--ou-white);
}

.lab-site-header .main-nav,
.navbar {
    background: rgba(0, 0, 0, 0.56) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    padding: 12px 0 !important;
}

.lab-brand {
    display: flex !important;
    align-items: center;
    gap: 13px;
    min-width: 260px;
}

.lab-logo-mark {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ou-crimson);
    color: var(--ou-white);
    border-radius: 2px;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    box-shadow: 0 14px 32px rgba(132, 22, 23, 0.35);
}

.lab-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.lab-logo-title {
    color: var(--ou-white);
    font-family: "Montserrat", sans-serif;
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.lab-logo-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    margin-top: 3px;
}

.navbar .navbar-link:not(.quote-btn) {
    color: rgba(255, 255, 255, 0.94);
    font-size: 16px;
    font-weight: 800;
    padding: 0.55rem 0.82rem;
    border-radius: 2px;
}

.navbar .navbar-link:not(.quote-btn):hover,
.navbar .navbar-link:not(.quote-btn):focus,
.navbar .navbar-link:not(.quote-btn).is-active {
    color: var(--ou-white) !important;
    background: var(--ou-crimson) !important;
}

.quote-btn {
    background: var(--ou-crimson) !important;
    color: var(--ou-white) !important;
    border-radius: 2px;
}

.quote-btn:hover {
    background: var(--ou-white) !important;
    color: var(--ou-crimson) !important;
}

.navbar-burger {
    color: var(--ou-white);
    background: var(--ou-crimson);
    border-color: var(--ou-crimson);
}

/* Hero / page title */
.slider.lab-hero,
.slider,
.page-title {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.90) 0%, rgba(78, 0, 2, 0.76) 42%, rgba(0, 0, 0, 0.66) 100%),
        url("../images/bg/banner-1.jpg") no-repeat center center;
    background-size: cover;
}

.slider.lab-hero:before,
.slider:before,
.page-title:before {
    background: transparent !important;
}

.lab-hero {
    min-height: 92vh;
    padding: 215px 0 130px;
    display: flex;
    align-items: center;
}

.lab-eyebrow,
.slider span {
    color: rgba(255, 255, 255, 0.78) !important;
    letter-spacing: 0.22em !important;
    font-weight: 800;
}

.lab-hero h1,
.slider h1 {
    color: var(--ou-white);
    max-width: 920px;
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.lab-hero-lead,
.slider p {
    width: auto !important;
    max-width: 760px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.2rem;
    line-height: 1.9;
}

.lab-hero-meta {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.05rem;
    line-height: 1.8;
}

.lab-hero-meta strong {
    color: var(--ou-white);
}

/* Sections */
.section {
    padding: 95px 0;
}

.section-kicker {
    display: inline-block;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 12px;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #4f4f4f;
}

/* Cards */
.lab-card,
.summary-card,
.project-card,
.experience-card,
.skill-group-card,
.timeline-content,
.achievement-feature,
.service .card {
    background: var(--ou-white);
    border: 1px solid var(--ies-line) !important;
    box-shadow: var(--ies-shadow) !important;
}

.lab-card {
    height: 100%;
    border-radius: 2px;
    padding: 32px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lab-card:hover {
    transform: translateY(-6px);
    border-color: rgba(132, 22, 23, 0.35) !important;
    box-shadow: var(--ies-shadow-crimson) !important;
}

.lab-card i,
.summary-card i {
    color: var(--ou-crimson);
    font-size: 2.3rem;
    margin-bottom: 18px;
    display: inline-block;
}

.lab-card h4 {
    margin-bottom: 12px;
}

.lab-card p {
    margin-bottom: 0;
}

/* CTA */
.lab-cta {
    background: var(--ou-white);
}

.lab-cta-box {
    background: linear-gradient(135deg, var(--ou-crimson), var(--ou-dark-crimson) 48%, var(--ou-black));
    border-radius: 2px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.16);
}

.lab-cta-box h2,
.lab-cta-box p {
    color: var(--ou-white);
}

.lab-cta-box .section-kicker {
    color: rgba(255, 255, 255, 0.78) !important;
}

.lab-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* About / profile pages */
.page-subtitle {
    color: rgba(255, 255, 255, 0.82);
}

.profile-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.highlight-card {
    background: var(--ou-white);
    border-left: 4px solid var(--ou-crimson);
    border-radius: 2px;
    padding: 22px;
    box-shadow: var(--ies-shadow);
}

.timeline-year,
.exp-date {
    color: var(--ou-crimson);
}

.timeline-content:before {
    background: var(--ou-crimson);
    box-shadow: 0 0 0 6px rgba(132, 22, 23, 0.14);
}

.about-rich-text a {
    color: var(--ou-crimson);
}

/* Projects */
.project-card {
    border-radius: 2px;
}

.project-card:hover {
    box-shadow: var(--ies-shadow-crimson) !important;
}

.project-badge {
    background: var(--ou-light-gray);
    color: var(--ies-ink);
}

.project-role {
    background: rgba(132, 22, 23, 0.10);
    color: var(--ou-crimson);
}

/* Forms */
input[type=email]:focus,
input[type=password]:focus,
input[type=text]:focus,
input[type=tel]:focus,
textarea:focus,
.input:focus {
    border-color: var(--ou-crimson) !important;
}

.contact-form-wrap .input-group .input,
.contact-form-wrap .input-group-2 textarea {
    border-color: #e5e5e5;
    background: #fafafa;
}

/* Footer */
.footer,
.footer.lab-footer {
    background: var(--ou-black) !important;
    border-top: 5px solid var(--ou-crimson);
}

.footer h3,
.footer h4,
.footer h5,
.footer.lab-footer h3,
.footer.lab-footer h5 {
    color: var(--ou-white);
}

.footer p,
.footer li,
.footer .copyright,
.footer.lab-footer p,
.footer.lab-footer li,
.footer.lab-footer .copyright {
    color: rgba(255, 255, 255, 0.78);
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a,
.footer-socials li a {
    color: rgba(255, 255, 255, 0.82);
}

.footer-menu a:hover,
.footer-socials li a:hover {
    color: var(--ou-white);
    text-decoration: none;
}

.footer-btm {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

/* Mobile */
@media (max-width: 1215px) {
    .navbar .navbar-link:not(.quote-btn) {
        font-size: 15px;
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }
}

@media (max-width: 1023px) {
    .navbar .navbar-menu {
        background: var(--ou-black);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar .navbar-menu .navbar-item {
        text-align: left;
    }

    .lab-logo-subtitle {
        display: none;
    }

    .lab-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .header-top .header-top-info a {
        display: inline-block;
        padding-right: 12px;
        font-size: 12px;
    }

    .lab-hero {
        min-height: 86vh;
        padding: 150px 0 90px;
    }

    .lab-hero h1,
    .slider h1 {
        font-size: 2.55rem;
        line-height: 1.15;
    }

    .lab-hero-lead,
    .slider p {
        font-size: 1.02rem;
    }

    .lab-logo-mark {
        width: 42px;
        height: 42px;
    }

    .lab-logo-title {
        font-size: 1.05rem;
    }

    .profile-highlights {
        grid-template-columns: 1fr;
    }

    .lab-cta-box {
        padding: 32px 24px;
    }
}
