:root {
    --rlm-black: #111111;
    --rlm-ink: #242424;
    --rlm-muted: #6f7175;
    --rlm-light: #f5f5f3;
    --rlm-line: #dedbd6;
    --rlm-copper: #b07a3f;
    --rlm-copper-dark: #8a5b2c;
    --rlm-white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

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

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes softSheen {
    from {
        transform: translateX(-140%);
    }
    to {
        transform: translateX(140%);
    }
}

@keyframes tileReveal {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.98);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

body {
    margin: 0;
    background: var(--rlm-light);
    color: var(--rlm-ink);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.alert {
    margin-top: 1rem;
    border-radius: 8px;
}

.alert-dismissible {
    padding-right: 3.75rem;
}

.alert-dismissible .close {
    position: absolute;
    top: 0.7rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.08);
    color: var(--rlm-ink);
    opacity: 0.8;
    transition: background-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.alert-dismissible .close:hover,
.alert-dismissible .close:focus-visible {
    background: rgba(17, 17, 17, 0.14);
    opacity: 1;
    transform: translateY(-1px);
}

.alert-dismissible .close::before,
.alert-dismissible .close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.95rem;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    content: "";
}

.alert-dismissible .close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.alert-dismissible .close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.alert-dismissible .close span[aria-hidden="true"] {
    display: none;
}

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

a {
    color: inherit;
}

a:hover {
    color: var(--rlm-copper-dark);
}

.site-navbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--rlm-line);
    backdrop-filter: blur(12px);
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-wordmark {
    color: var(--rlm-black);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.navbar-nav .nav-link {
    color: var(--rlm-ink);
    font-weight: 600;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    position: relative;
    transition: color 180ms ease;
}

.navbar-nav .nav-link::after {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.25rem;
    height: 2px;
    background: var(--rlm-copper);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus-visible::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border-color: var(--rlm-line);
}

.btn-copper,
.btn-copper:focus {
    background: var(--rlm-copper);
    border-color: var(--rlm-copper);
    color: var(--rlm-white);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn-copper::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 42%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    content: "";
    transform: translateX(-140%);
}

.btn-copper:hover {
    background: var(--rlm-copper-dark);
    border-color: var(--rlm-copper-dark);
    color: var(--rlm-white);
    transform: translateY(-1px);
}

.btn-copper:hover::before {
    animation: softSheen 760ms ease;
}

.btn-outline-dark {
    border-color: var(--rlm-black);
    color: var(--rlm-black);
    font-weight: 700;
}

.btn-outline-dark:hover {
    background: var(--rlm-black);
    color: var(--rlm-white);
}

.content_module {
    padding: 0;
}

.content_module > br {
    display: none;
}

.rlm-hero {
    background:
        linear-gradient(110deg, rgba(17, 17, 17, 0.94), rgba(17, 17, 17, 0.82)),
        radial-gradient(circle at 80% 20%, rgba(176, 122, 63, 0.24), transparent 34%);
    color: var(--rlm-white);
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.rlm-hero .eyebrow,
.rlm-hero h1,
.rlm-hero .lead,
.rlm-hero p,
.rlm-hero .btn {
    animation: heroFadeUp 700ms ease both;
}

.rlm-hero h1 {
    animation-delay: 90ms;
}

.rlm-hero .lead {
    animation-delay: 170ms;
}

.rlm-hero .btn {
    animation-delay: 250ms;
}

.rlm-hero-logo {
    width: min(560px, 100%);
    max-height: 320px;
    object-fit: contain;
    padding: 1.25rem;
    background: var(--rlm-white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22);
    animation: heroFadeUp 760ms ease 220ms both, logoFloat 5s ease-in-out 1.1s infinite;
}

.eyebrow {
    color: var(--rlm-copper);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rlm-hero h1 {
    color: var(--rlm-white);
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
}

.rlm-hero .lead {
    color: rgba(255, 255, 255, 0.86);
    max-width: 720px;
}

.section-pad {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-title {
    color: var(--rlm-black);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
}

.section-text {
    color: var(--rlm-muted);
    font-size: 1.06rem;
}

.feature-pill {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem 1rem;
    background: var(--rlm-white);
    border: 1px solid var(--rlm-line);
    border-radius: 8px;
    font-weight: 700;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-pill:hover {
    border-color: rgba(176, 122, 63, 0.42);
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.08);
    transform: translateY(-2px);
}

.feature-pill i,
.service-card i,
.guarantee-card i,
.contact-card i {
    color: var(--rlm-copper);
}

.service-card,
.guarantee-card,
.contact-card {
    height: 100%;
    border: 1px solid var(--rlm-line);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(17, 17, 17, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover,
.guarantee-card:hover,
.contact-card:hover {
    border-color: rgba(176, 122, 63, 0.44);
    box-shadow: 0 24px 52px rgba(17, 17, 17, 0.11);
    transform: translateY(-5px);
}

.section-pad {
    animation: heroFadeUp 620ms ease both;
    animation-timeline: view();
    animation-range: entry 0% cover 24%;
}

.service-card .card-title,
.guarantee-card .card-title {
    color: var(--rlm-black);
    font-weight: 800;
}

.soft-band {
    background: var(--rlm-white);
}

.dark-band {
    background: var(--rlm-black);
    color: var(--rlm-white);
}

.dark-band h2,
.dark-band h3 {
    color: var(--rlm-white);
}

.dark-band .section-text {
    color: rgba(255, 255, 255, 0.74);
}

.reviews-band {
    background: linear-gradient(180deg, var(--rlm-white), var(--rlm-light));
}

.review-card {
    height: 100%;
    border: 1px solid var(--rlm-line);
    border-radius: 8px;
    box-shadow: 0 22px 48px rgba(17, 17, 17, 0.08);
}

.review-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(176, 122, 63, 0.12);
    color: var(--rlm-copper-dark);
    font-size: 1.45rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    color: var(--rlm-copper);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--rlm-white);
    border: 1px solid var(--rlm-line);
    border-radius: 8px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 18px 38px rgba(17, 17, 17, 0.07);
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: #cfcac2;
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--rlm-copper);
    box-shadow: 0 0 0 0.18rem rgba(176, 122, 63, 0.22);
}

.contact-form {
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.contact-form:hover {
    box-shadow: 0 24px 52px rgba(17, 17, 17, 0.1);
    transform: translateY(-2px);
}

.site-footer {
    background: #090909;
    color: rgba(255, 255, 255, 0.82);
    padding: 2.5rem 0;
}

.site-footer a {
    color: var(--rlm-white);
    text-decoration: none;
}

.site-footer a:hover {
    color: #d8b17b;
}

.footer-brand {
    color: var(--rlm-white);
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.footer-login {
    margin: 0.5rem 0 0.25rem;
    font-size: 0.78rem;
    opacity: 0.64;
}

.footer-login br {
    display: none;
}

.footer-login .login {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-weight: 500;
}

.footer-login .login:hover {
    color: #d8b17b;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
        gap: 0.25rem;
    }

    .navbar-nav .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .brand-wordmark {
        font-size: 0.86rem;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .rlm-hero {
        padding-top: 3rem;
    }
}

@supports not (animation-timeline: view()) {
    .section-pad {
        animation: none;
    }
}

@supports (animation-timeline: view()) {
    .feature-pill,
    .service-card,
    .guarantee-card,
    .review-card,
    .contact-card,
    .contact-form {
        animation: tileReveal 680ms ease both;
        animation-timeline: view();
        animation-range: entry 0% cover 28%;
    }

    .row > [class*="col-"]:nth-child(2) .feature-pill,
    .row > [class*="col-"]:nth-child(2) .service-card,
    .row > [class*="col-"]:nth-child(2) .guarantee-card,
    .row > [class*="col-"]:nth-child(2) .review-card,
    .row > [class*="col-"]:nth-child(2) .contact-card {
        animation-range: entry 4% cover 30%;
    }

    .row > [class*="col-"]:nth-child(3) .service-card,
    .row > [class*="col-"]:nth-child(3) .guarantee-card,
    .row > [class*="col-"]:nth-child(3) .contact-card {
        animation-range: entry 8% cover 32%;
    }

    .row > [class*="col-"]:nth-child(4) .feature-pill,
    .row > [class*="col-"]:nth-child(4) .service-card,
    .row > [class*="col-"]:nth-child(4) .guarantee-card,
    .row > [class*="col-"]:nth-child(4) .contact-card {
        animation-range: entry 12% cover 34%;
    }

    .row > [class*="col-"]:nth-child(5) .service-card,
    .row > [class*="col-"]:nth-child(5) .contact-card {
        animation-range: entry 16% cover 36%;
    }

    .row > [class*="col-"]:nth-child(6) .service-card,
    .row > [class*="col-"]:nth-child(6) .contact-card {
        animation-range: entry 20% cover 38%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .section-pad {
        animation: none !important;
    }

    .feature-pill,
    .service-card,
    .guarantee-card,
    .review-card,
    .contact-card,
    .contact-form {
        animation: none !important;
        filter: none !important;
    }
}
