:root {
    --rf-red: #e2231a;
    --rf-red-dark: #9e1109;
    --rf-red-light: #f5453b;
    /* lighter red — for red text/borders on dark backgrounds (WCAG AA) */
    --rf-black: #141414;
    --rf-gray: #5a5a5a;
    --rf-light: #f5f5f5;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Alfa Slab One", serif;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rf-black);
}

a {
    color: var(--rf-red);
}

.eyebrow {
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rf-red);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-rf {
    background-color: var(--rf-red);
    border: 2px solid var(--rf-red);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    padding: 0.75rem 1.75rem;
    transition: all 0.25s ease;
}

.btn-rf:hover,
.btn-rf:focus {
    background-color: var(--rf-red-dark);
    border-color: var(--rf-red-dark);
    color: #fff;
}

.btn-rf-outline {
    background-color: transparent;
    border: 2px solid var(--rf-red-light);
    color: var(--rf-red-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    padding: 0.75rem 1.75rem;
    transition: all 0.25s ease;
}

.btn-rf-outline:hover,
.btn-rf-outline:focus {
    background-color: var(--rf-red);
    color: #fff;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.navbar {
    padding: 0.5rem 0;
}

.navbar-brand img {
    object-fit: contain;
    height: auto;
}

.navbar-nav .nav-link {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--rf-black);
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--rf-red);
}

.navbar-toggler {
    border-color: var(--rf-red);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(226, 35, 26, 0.25);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--rf-black) 0%, #2a2a2a 55%, var(--rf-red-dark) 100%);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--rf-red);
}

.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-head {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-dark {
    background-color: var(--rf-black);
    color: rgba(255, 255, 255, 0.85);
}

.section-dark h2 {
    color: #fff;
}

.section-dark .eyebrow {
    color: var(--rf-red-light);
}

/* Service cards */
.service-card {
    background-color: #fff;
    border: 1px solid #ececec;
    border-top: 4px solid var(--rf-red);
    border-radius: 6px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

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

.service-card p {
    color: var(--rf-gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.stat {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
}

.stat-num {
    display: block;
    font-family: "Alfa Slab One", serif;
    font-size: 2rem;
    color: var(--rf-red);
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

/* Careers CTA */
.careers-cta {
    background: linear-gradient(135deg, var(--rf-red) 0%, var(--rf-red-dark) 100%);
    color: #fff;
}

.careers-cta h2 {
    color: #fff;
}

.careers-cta .eyebrow {
    color: #fff;
}

.careers-cta .btn-rf {
    background-color: #fff;
    border-color: #fff;
    color: var(--rf-red);
}

.careers-cta .btn-rf:hover {
    background-color: var(--rf-black);
    border-color: var(--rf-black);
    color: #fff;
}

/* Contact form */
.contact-form .form-control {
    border-radius: 4px;
    padding: 0.7rem 1rem;
}

.contact-form .form-control:focus {
    border-color: var(--rf-red);
    box-shadow: 0 0 0 0.2rem rgba(226, 35, 26, 0.2);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background-color: var(--rf-black);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 0;
}

.footer-logo {
    max-width: 200px;
    background-color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.site-footer p {
    font-size: 0.95rem;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-copyright a:hover {
    color: #fff;
}

.footer-legal {
    font-size: 0.85rem;
}

.footer-credit {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Back to top */
.totop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: var(--rf-red);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.totop:hover {
    background-color: var(--rf-red-dark);
    color: #fff;
}

.totop.show {
    display: flex;
}

@media (max-width: 991px) {
    .navbar-nav {
        padding-top: 1rem;
    }
    .stats {
        margin-top: 2rem;
    }
}
