:root {
    --rf-black: #161616;
    --rf-gray-100: #f4f4f4;
    --rf-gray-90: #262626;
    --rf-gray-80: #393939;
    --rf-gray-30: #c6c6c6;
    --rf-gray-20: #e0e0e0;
    --rf-white: #ffffff;
    --rf-blue: #0f62fe;
    --rf-blue-hover: #0353e9;
    --rf-red: #da1e28;
    --rf-focus: #ffffff;
    --rf-header-height: 3rem;
    --rf-container: 70rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    background: var(--rf-white);
    color: var(--rf-black);
    font-size: 16px;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

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

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100000;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    margin: 0;
    clip: auto;
    background: var(--rf-blue);
    color: var(--rf-white);
    text-decoration: none;
}

/* Carbon button fallbacks */
.cds--btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}

.cds--btn--primary {
    background: var(--rf-blue);
    color: var(--rf-white);
}

.cds--btn--primary:hover {
    background: var(--rf-blue-hover);
}

.cds--btn--tertiary {
    background: transparent;
    color: var(--rf-blue);
    border-color: var(--rf-blue);
}

.cds--btn--tertiary:hover {
    background: var(--rf-blue);
    color: var(--rf-white);
}

.cds--btn--sm {
    min-height: 2rem;
    padding: 0 0.75rem;
}

.cds--link {
    color: var(--rf-blue);
    text-decoration: none;
}

.cds--link:hover {
    text-decoration: underline;
}

/* Header */
.rf-header {
    position: sticky;
    top: 0;
    z-index: 9000;
    background: var(--rf-black);
    color: var(--rf-white);
    border-bottom: 1px solid var(--rf-gray-80);
}

.rf-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--rf-header-height);
    padding: 0 1rem;
}

.rf-header__brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.rf-header__brand img,
.rf-footer__col--brand img {
    max-height: 2rem;
    width: auto;
}

.rf-header__logo {
    color: var(--rf-white);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.rf-header__menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    background: transparent;
    color: var(--rf-white);
    cursor: pointer;
}

.rf-header__menu-toggle:hover,
.rf-header__menu-toggle:focus {
    background: var(--rf-gray-90);
}

.rf-header__nav {
    flex: 1 1 auto;
    min-width: 0;
}

.rf-header__menu {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: var(--rf-header-height);
}

.rf-header__menu-item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.rf-header__menu-link,
.rf-header__submenu-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 1rem;
    color: var(--rf-white);
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
}

.rf-header__menu-link:hover,
.rf-header__menu-link:focus,
.rf-header__submenu-link:hover,
.rf-header__submenu-link:focus {
    background: var(--rf-gray-90);
    color: var(--rf-white);
}

.rf-header__menu-link:focus-visible,
.rf-header__submenu-link:focus-visible,
.rf-header__action:focus-visible,
.rf-search__submit:focus-visible,
.rf-hero__control:focus-visible,
.rf-hero__dot:focus-visible {
    outline: 2px solid var(--rf-focus);
    outline-offset: -2px;
}

.rf-header__caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

.rf-header__submenu .rf-header__caret {
    transform: rotate(-90deg);
}

/* Dropdowns */
.rf-header__submenu {
    position: absolute;
    top: var(--rf-header-height);
    left: 0;
    z-index: 9100;
    min-width: 16rem;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background: var(--rf-gray-90);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: none;
}

.rf-header__submenu--level-2 {
    top: 0;
    left: 100%;
}

.rf-header__menu-item.is-open > .rf-header__submenu,
.rf-header__menu-item:hover > .rf-header__submenu,
.rf-header__menu-item:focus-within > .rf-header__submenu {
    display: block;
}

.rf-header__submenu .rf-header__menu-item {
    display: block;
}

.rf-header__submenu-link {
    display: block;
    padding: 0.625rem 1rem;
}

/* Header actions */
.rf-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.rf-header__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 3rem;
    height: var(--rf-header-height);
    padding: 0 0.75rem;
    border: 0;
    background: transparent;
    color: var(--rf-white);
    text-decoration: none;
    cursor: pointer;
}

.rf-header__action:hover,
.rf-header__action:focus {
    background: var(--rf-gray-90);
}

/* Search */
.rf-search {
    position: relative;
    display: flex;
    align-items: center;
    height: 2rem;
    background: var(--rf-gray-90);
    border-bottom: 1px solid var(--rf-gray-80);
}

.rf-search__input {
    width: 12rem;
    height: 2rem;
    padding: 0 2.25rem 0 0.75rem;
    border: 0;
    background: transparent;
    color: var(--rf-white);
    font-size: 0.875rem;
}

.rf-search__input::placeholder {
    color: var(--rf-gray-30);
}

.rf-search__input:focus {
    outline: 2px solid var(--rf-focus);
    outline-offset: -2px;
}

.rf-search__submit {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2rem;
    border: 0;
    background: transparent;
    color: var(--rf-white);
    cursor: pointer;
}

.rf-search__submit:hover {
    background: var(--rf-gray-80);
}

/* Language switcher */
.rf-lang {
    position: relative;
}

.rf-lang__toggle {
    font-size: 0.875rem;
}

.rf-lang__menu {
    position: absolute;
    top: var(--rf-header-height);
    right: 0;
    z-index: 9200;
    min-width: 10rem;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background: var(--rf-gray-90);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: none;
}

.rf-lang.is-open .rf-lang__menu,
.rf-lang:hover .rf-lang__menu,
.rf-lang:focus-within .rf-lang__menu {
    display: block;
}

.rf-lang__link {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--rf-white);
    font-size: 0.875rem;
    text-decoration: none;
}

.rf-lang__link:hover,
.rf-lang__link:focus {
    background: var(--rf-gray-80);
}

.rf-lang__link.is-current {
    font-weight: 600;
}

/* Quote badge */
.rf-header__quote {
    position: relative;
}

.rf-header__quote-count {
    position: absolute;
    top: 0.35rem;
    right: 0.25rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    border-radius: 0.5rem;
    background: var(--rf-red);
    color: var(--rf-white);
    font-size: 0.6875rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Main */
.rf-main {
    min-height: 60vh;
}

/* Hero */
.rf-hero {
    position: relative;
    overflow: hidden;
    background: var(--rf-black);
    color: var(--rf-white);
}

.rf-hero__viewport {
    overflow: hidden;
}

.rf-hero__track {
    display: flex;
    transition: transform 0.5s ease;
}

.rf-hero__slide {
    position: relative;
    min-width: 100%;
    min-height: 24rem;
    display: grid;
    align-items: center;
    background: var(--rf-black);
}

.rf-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.rf-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--rf-container);
    margin: 0 auto;
    padding: 4rem 1rem;
}

.rf-hero__title {
    margin: 0 0 1rem;
    max-width: 50rem;
    font-size: 2.625rem;
    line-height: 1.1;
    font-weight: 300;
}

.rf-hero__description {
    margin: 0 0 1.5rem;
    max-width: 45rem;
    font-size: 1.25rem;
    color: var(--rf-gray-30);
}

.rf-hero__controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rf-hero__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--rf-gray-80);
    background: rgba(22, 22, 22, 0.75);
    color: var(--rf-white);
    cursor: pointer;
}

.rf-hero__control:hover {
    background: var(--rf-gray-90);
}

.rf-hero__dots {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.rf-hero__dot {
    width: 0.75rem;
    height: 0.75rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--rf-white);
    background: transparent;
    cursor: pointer;
}

.rf-hero__dot.is-active {
    background: var(--rf-white);
}

/* Sections */
.rf-section {
    padding: 4rem 1rem;
    background: var(--rf-white);
}

.rf-section--alt {
    background: var(--rf-gray-100);
}

.rf-section__inner {
    max-width: var(--rf-container);
    margin: 0 auto;
}

.rf-section__title {
    margin: 0 0 1.5rem;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 300;
}

/* Cards */
.rf-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.rf-card {
    display: flex;
    flex-direction: column;
    background: var(--rf-white);
    border: 1px solid var(--rf-gray-20);
    transition: box-shadow 0.2s ease;
}

.rf-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.rf-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--rf-gray-20);
}

.rf-card__image--placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #c6c6c6 100%);
}

.rf-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
}

.rf-card__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.rf-card__text {
    margin: 0 0 1rem;
    color: #525252;
    font-size: 0.875rem;
}

.rf-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

/* Quote page */
.rf-quote__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.rf-quote__table th,
.rf-quote__table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--rf-gray-20);
    text-align: left;
    vertical-align: middle;
}

.rf-quote__table th {
    font-size: 0.875rem;
    font-weight: 600;
}

.rf-quote__empty {
    color: #525252;
}

.rf-quote__notice {
    color: #525252;
    font-size: 0.875rem;
}

/* Footer */
.rf-footer {
    background: var(--rf-black);
    color: var(--rf-gray-30);
    padding: 3rem 1rem;
}

.rf-footer__inner {
    max-width: var(--rf-container);
    margin: 0 auto;
}

.rf-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.rf-footer__site-name {
    margin: 0 0 0.75rem;
    color: var(--rf-white);
    font-size: 1rem;
    font-weight: 600;
}

.rf-footer__widget-title {
    margin: 0 0 0.75rem;
    color: var(--rf-white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rf-footer a {
    color: #78a9ff;
    text-decoration: none;
}

.rf-footer a:hover {
    text-decoration: underline;
}

.rf-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rf-gray-80);
    font-size: 0.75rem;
}

.rf-footer__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Content pages */
.rf-content {
    max-width: 50rem;
}

.rf-page-title {
    margin: 0 0 1.5rem;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 300;
}

.rf-page-content p {
    margin: 0 0 1rem;
}

.rf-list__item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--rf-gray-20);
}

.rf-list__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.rf-list__title a {
    color: var(--rf-black);
    text-decoration: none;
}

.rf-list__title a:hover {
    color: var(--rf-blue);
}

/* Responsive */
@media (max-width: 1100px) {
    .rf-header__menu-toggle {
        display: inline-flex;
    }

    .rf-header__nav {
        position: fixed;
        top: var(--rf-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9000;
        overflow: auto;
        background: var(--rf-black);
        display: none;
    }

    .rf-header__nav.is-open {
        display: block;
    }

    .rf-header__menu {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }

    .rf-header__menu-item {
        display: block;
    }

    .rf-header__menu-link,
    .rf-header__submenu-link {
        display: flex;
        width: 100%;
        padding: 0.875rem 1rem;
    }

    .rf-header__submenu {
        position: static;
        box-shadow: none;
        background: var(--rf-gray-90);
    }

    .rf-header__submenu--level-2 {
        left: 0;
        background: var(--rf-gray-80);
    }

    .rf-header__menu-item.is-open > .rf-header__submenu {
        display: block;
    }

    .rf-search__input {
        width: 8rem;
    }
}

@media (max-width: 700px) {
    .rf-hero__title {
        font-size: 2rem;
    }

    .rf-hero__description {
        font-size: 1rem;
    }

    .rf-section {
        padding: 3rem 1rem;
    }

    .rf-section__title {
        font-size: 1.5rem;
    }

    .rf-header__search {
        display: none;
    }
}