/*
 * Home Page Template styles for Richfolds.
 * The template now renders a single hero block from templates/blocks/home_h1_hero.php.
 */

:root {
    --rf-h1-font-body: 'Inter', sans-serif;
    --rf-h1-heading-size: 4rem;
    --rf-h1-section-heading-size: 2.5rem;
}

.rf-h1-page,
.rf-h1-page * {
    box-sizing: border-box;
}

.rf-h1-page {
    position: relative;
    background: #000000;
    color: #ffffff;
    font-family: var(--rf-h1-font-body);
}

.rf-h1-page a {
    color: inherit;
    text-decoration: none;
}

.rf-h1-page img {
    display: block;
    max-width: 100%;
}

.rf-h1-container {
    width: min(100%, 1300px);
    margin: 0 auto;
    padding: 0 50px;
}

#rf-h1-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #000000;
}

#rf-h1-hero .rf-h1-bg-image,
#rf-h1-hero .rf-h1-overlay {
    position: absolute;
    inset: 0;
}

#rf-h1-hero .rf-h1-bg-image {
    z-index: 0;
    background-position: center;
    background-size: cover;
    transition: background-image 0.6s ease-in-out;
}

#rf-h1-hero .rf-h1-overlay {
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.rf-h1-hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.rf-h1-content {
    max-width: 600px;
}

.rf-h1-title {
    margin: 0 0 25px;
    color: #ffffff;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
}

.rf-h1-description {
    max-width: 38rem;
    margin: 0 0 40px;
    color: #bdc3c7;
    font-size: 1.1rem;
    line-height: 1.6;
}

.rf-h1-btn {
    display: inline-flex;
    align-items: center;
    padding: 18px 35px;
    border-radius: 50px;
    background: #007a7a;
    color: #ffffff;
    font-weight: 600;
    line-height: 1;
    transition: all 0.3s ease;
}

.rf-h1-page a.rf-h1-btn,
.rf-h1-page a.rf-h1-btn:visited,
.rf-h1-page a.rf-h1-btn:hover,
.rf-h1-page a.rf-h1-btn:focus {
    color: #ffffff;
}

.rf-h1-btn:hover,
.rf-h1-btn:focus-visible {
    background: #009191;
    transform: translateY(-2px);
}

.rf-h1-btn:hover .rf-h1-icon,
.rf-h1-btn:focus-visible .rf-h1-icon {
    transform: translateX(2px);
}

.rf-h1-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 15px;
    overflow: hidden;
    border-radius: 50%;
    background: #ffffff;
    color: #007a7a;
    transition: transform 0.3s ease;
}

.rf-h1-icon svg {
    width: 18px;
    height: 18px;
}

.rf-h1-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
}

.rf-h1-thumbs {
    display: flex;
    gap: 12px;
}

.rf-h1-thumb {
    display: block;
    width: 80px;
    height: 80px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.rf-h1-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rf-h1-thumb.is-active,
.rf-h1-thumb.active {
    border-color: #007a7a;
    opacity: 1;
    transform: scale(1.05);
}

.rf-h1-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.rf-h1-nav-arrow:hover,
.rf-h1-nav-arrow:focus-visible {
    border-color: #007a7a;
    background: #007a7a;
}

.rf-h1-explore-link {
    color: #ffffff;
}

.rf-h1-page a.rf-h1-explore-link,
.rf-h1-page a.rf-h1-explore-link:visited,
.rf-h1-page a.rf-h1-explore-link:hover,
.rf-h1-page a.rf-h1-explore-link:focus {
    color: #ffffff;
}

.rf-h1-explore-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
}

.rf-h1-rotating-svg {
    width: 100%;
    height: 100%;
    animation: rf-h1-rotate-text 10s linear infinite;
}

.rf-h1-rotating-svg text {
    fill: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.rf-h1-arrow-center {
    position: absolute;
    font-size: 30px;
    line-height: 1;
    animation: rf-h1-bounce-arrow 2s infinite ease-in-out;
}

@keyframes rf-h1-rotate-text {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rf-h1-bounce-arrow {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

@media (max-width: 900px) {
    #rf-h1-hero {
        min-height: auto;
    }

    #rf-h1-hero .rf-h1-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.48) 100%);
    }

    .rf-h1-hero-container {
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        padding-top: 5rem;
        padding-bottom: 4rem;
        text-align: center;
    }

    .rf-h1-content {
        max-width: 100%;
    }

    .rf-h1-title {
        font-size: 3rem;
    }

    .rf-h1-slider-wrapper {
        justify-content: center;
        margin-top: 48px;
    }

    .rf-h1-explore-wrap {
        width: 140px;
        height: 140px;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .rf-h1-container {
        padding: 0 1.25rem;
    }

    .rf-h1-title {
        font-size: 2.65rem;
    }

    .rf-h1-description {
        font-size: 1rem;
    }

    .rf-h1-slider-wrapper {
        gap: 10px;
        margin-top: 40px;
    }

    .rf-h1-thumbs {
        max-width: calc(100vw - 9rem);
        overflow-x: auto;
        padding: 0.25rem;
    }

    .rf-h1-thumb {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;
    }

    .rf-h1-nav-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 479px) {
    .rf-h1-title {
        font-size: 2.35rem;
    }

    .rf-h1-thumb {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .rf-h1-explore-wrap {
        width: 120px;
        height: 120px;
    }
}

.rf-expertise-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 130px 0;
    scroll-margin-top: 120px;
    background: #ffffff;
    color: #2a3535;
    font-family: 'Outfit', var(--rf-h1-font-body);
}

.rf-expertise-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='11' y='11' width='28' height='28' fill='none' stroke='%23007a7a' stroke-width='0.35' opacity='0.14' transform='rotate(45 25 25)'/%3E%3C/svg%3E");
    background-size: 50px 50px;
    pointer-events: none;
}

.rf-exp-container {
    position: relative;
    z-index: 1;
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 0 60px;
}

.rf-exp-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 80px;
}

.rf-exp-title {
    margin: 0;
    color: #1a202c;
    font-family: var(--rf-h1-font-body);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
}

.rf-exp-title em {
    color: #007a7a;
    font-style: italic;
}

.rf-exp-header-right p {
    margin: 0 0 24px;
    color: #64748b;
    font-family: var(--rf-h1-font-body);
    font-size: 1.1rem;
    line-height: 1.6;
}

.rf-exp-header-right p:last-of-type {
    margin-bottom: 24px;
}

.rf-panels-row {
    display: flex;
    gap: 3px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.rf-panel {
    position: relative;
    overflow: hidden;
    height: 520px;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    transition: flex-grow 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s ease;
}

.rf-panel.rf-expanded {
    flex-grow: 2.4;
}

.rf-panel.rf-collapsed {
    flex-grow: 0.6;
}

.rf-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7) brightness(0.8);
    transition: transform 0.7s ease, filter 0.5s ease;
}

.rf-panel:hover img,
.rf-panel:focus-within img {
    transform: scale(1.06);
    filter: saturate(1) brightness(0.85);
}

.rf-panel-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 35%, rgba(13, 21, 21, 0.85) 100%);
}

.rf-panel-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 32px 28px;
    transform: translateY(14px);
    transition: transform 0.5s ease;
}

.rf-panel:hover .rf-panel-content,
.rf-panel:focus-within .rf-panel-content {
    transform: translateY(0);
}

.rf-panel-tag {
    margin: 0 0 8px;
    color: #009a9a;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s 0.1s ease, transform 0.4s 0.1s ease;
}

.rf-panel:hover .rf-panel-tag,
.rf-panel:focus-within .rf-panel-tag {
    opacity: 1;
    transform: translateY(0);
}

.rf-panel-title {
    margin: 0;
    color: #ffffff;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.25;
}

.rf-panel-desc {
    max-height: 0;
    overflow: hidden;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    line-height: 1.7;
    transition: max-height 0.5s ease, margin 0.5s ease;
}

.rf-panel:hover .rf-panel-desc,
.rf-panel:focus-within .rf-panel-desc {
    max-height: 120px;
}

@keyframes rf-fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rf-anim-in {
    animation: rf-fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (max-width: 1024px) {
    .rf-exp-header {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rf-exp-title {
        font-size: 3rem;
    }

    .rf-panels-row {
        flex-direction: column;
    }

    .rf-panel {
        height: 280px;
        flex: none;
    }

    .rf-panel.rf-expanded {
        height: 400px;
        flex: none;
    }

    .rf-panel.rf-collapsed {
        height: 200px;
        flex: none;
    }
}

@media (max-width: 768px) {
    .rf-expertise-section {
        padding: 90px 0;
    }

    .rf-exp-container {
        padding: 0 24px;
    }

    .rf-exp-title {
        font-size: 2.2rem;
    }
}

.rf-process-section {
    position: relative;
    z-index: 1;
    padding: 100px 0 120px;
    background: radial-gradient(circle at 50% 0%, rgba(0, 168, 150, 0.1) 0%, #050d10 60%);
    color: #ffffff;
    font-family: var(--rf-h1-font-body);
}

.rf-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.rf-process-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 80px;
}

.rf-header-content {
    max-width: 650px;
}

.rf-process-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #00a896;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.rf-process-badge::before {
    content: "\2756";
    font-size: 1rem;
}

.rf-process-title {
    margin: 0 0 20px;
    color: #ffffff;
    font-family: var(--rf-h1-font-body);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: capitalize;
}

.rf-process-desc {
    margin: 0;
    color: #8f9ea5;
    font-size: 1.1rem;
    line-height: 1.6;
}

.rf-main-btn {
    display: inline-block;
    padding: 16px 35px;
    border-radius: 8px;
    background: #00a896;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.rf-h1-page a.rf-main-btn,
.rf-h1-page a.rf-main-btn:visited,
.rf-h1-page a.rf-main-btn:hover,
.rf-h1-page a.rf-main-btn:focus {
    color: #ffffff;
}

.rf-main-btn:hover,
.rf-main-btn:focus-visible {
    background: #008f7f;
    box-shadow: 0 10px 20px rgba(0, 168, 150, 0.2);
    transform: translateY(-2px);
}

.rf-process-timeline-wrapper {
    position: relative;
    margin-top: 40px;
}

.rf-timeline-dashed-line {
    position: absolute;
    top: 15px;
    right: 5%;
    left: 5%;
    z-index: 0;
    height: 1px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.rf-process-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.rf-step-col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.rf-step-node {
    position: relative;
    z-index: 2;
    padding: 6px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background-color: #050d10;
    color: #e0e0e0;
    font-size: 0.85rem;
    font-weight: 500;
}

.rf-step-line {
    width: 1px;
    border-left: 1px dashed rgba(255, 255, 255, 0.2);
    transition: height 0.3s ease;
}

.rf-step-col:nth-child(odd) .rf-step-line {
    height: 40px;
}

.rf-step-col:nth-child(even) .rf-step-line {
    height: 120px;
}

.rf-step-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    background: #121c21;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.rf-step-card:hover,
.rf-step-card:focus-within {
    border-color: rgba(0, 168, 150, 0.4);
    transform: translateY(-5px);
}

.rf-step-num {
    margin-bottom: 20px;
    background: linear-gradient(180deg, #00a896 0%, rgba(0, 168, 150, 0.1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
}

.rf-step-heading {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.25;
}

.rf-step-text {
    margin: 0 0 30px;
    color: #8f9ea5;
    font-size: 0.95rem;
    line-height: 1.6;
}

.rf-step-btn {
    width: 100%;
    margin-top: auto;
    align-self: flex-start;
    padding: 12px 24px;
    border-radius: 8px;
    background: rgba(0, 168, 150, 0.1);
    color: #00a896;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.rf-h1-page a.rf-step-btn,
.rf-h1-page a.rf-step-btn:visited {
    color: #00a896;
}

.rf-h1-page a.rf-step-btn:hover,
.rf-h1-page a.rf-step-btn:focus {
    color: #ffffff;
}

.rf-step-btn:hover,
.rf-step-btn:focus-visible {
    background: #00a896;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .rf-process-title {
        font-size: 2.8rem;
    }

    .rf-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 20px;
    }

    .rf-step-col:nth-child(odd) .rf-step-line,
    .rf-step-col:nth-child(even) .rf-step-line {
        height: 40px;
    }

    .rf-timeline-dashed-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .rf-process-section {
        padding: 60px 0;
    }

    .rf-process-section .rf-container {
        padding: 0 24px;
    }

    .rf-process-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 50px;
    }

    .rf-process-title {
        margin-bottom: 15px;
        font-size: 2.2rem;
    }

    .rf-process-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rf-timeline-dashed-line {
        display: block;
        top: 0;
        left: 20px;
        width: 1px;
        height: 100%;
        border-top: 0;
        border-left: 1px dashed rgba(255, 255, 255, 0.2);
    }

    .rf-step-col {
        flex-direction: row;
        align-items: flex-start;
    }

    .rf-step-node {
        position: absolute;
        top: 20px;
        left: 0;
        padding: 5px 12px;
        font-size: 0.75rem;
    }

    .rf-step-line {
        display: none;
    }

    .rf-step-card {
        margin-left: 50px;
        padding: 30px 20px;
    }

    .rf-step-num {
        font-size: 4rem;
    }
}

.rf-solutions-section {
    position: relative;
    padding: 120px 0;
    background: #ffffff;
    color: #1a202c;
}

.rf-solutions-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(20, 160, 152, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.rf-solutions-section .rf-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: start;
    max-width: 1320px;
}

.rf-left-col {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
}

.rf-sol-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 24px;
    padding: 0;
    color: #14a098;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.rf-sol-eyebrow::before {
    content: "\2756";
    margin-right: 8px;
    font-size: 1rem;
}

.rf-sol-title {
    margin: 0 0 24px;
    color: #1a202c;
    font-family: var(--rf-h1-font-body);
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.rf-sol-desc {
    margin: 0 0 40px;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.6;
}

.rf-sol-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
    padding: 8px 8px 8px 24px;
    border-radius: 50px;
    background: #14a098;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.rf-h1-page a.rf-sol-btn,
.rf-h1-page a.rf-sol-btn:visited,
.rf-h1-page a.rf-sol-btn:hover,
.rf-h1-page a.rf-sol-btn:focus {
    color: #ffffff;
}

.rf-sol-btn:hover,
.rf-sol-btn:focus-visible {
    background: #10807a;
    transform: translateY(-2px);
}

.rf-sol-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0b1414;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.rf-sol-btn:hover .rf-sol-btn-icon,
.rf-sol-btn:focus-visible .rf-sol-btn-icon {
    transform: translateX(2px);
}

.rf-sol-btn-icon svg {
    width: 14px;
    height: 14px;
}

.rf-btn-teal {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    width: fit-content;
    padding: 8px 8px 8px 24px;
    border-radius: 50px;
    background: #00a896;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.rf-h1-page a.rf-btn-teal,
.rf-h1-page a.rf-btn-teal:visited,
.rf-h1-page a.rf-btn-teal:hover,
.rf-h1-page a.rf-btn-teal:focus {
    color: #ffffff;
}

.rf-btn-teal:hover,
.rf-btn-teal:focus-visible {
    background: #008f7f;
    transform: translateY(-2px);
}

.rf-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #022b2b;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.rf-btn-icon svg {
    width: 16px;
    height: 16px;
}

.rf-btn-teal:hover .rf-btn-icon,
.rf-btn-teal:focus-visible .rf-btn-icon {
    transform: rotate(45deg);
}

.rf-right-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.rf-sol-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 520px;
    overflow: hidden;
    margin: 0;
    border: 1px solid #1c2b2b;
    border-radius: 8px;
    background: #0b1414;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rf-sol-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.rf-sol-card:hover .rf-sol-card-bg,
.rf-sol-card:focus-within .rf-sol-card-bg {
    transform: scale(1.05);
}

.rf-sol-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, #0a4f4b 0%, rgba(10, 79, 75, 0.85) 40%, rgba(10, 79, 75, 0.2) 75%, transparent 100%);
}

.rf-sol-card-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    width: 100%;
    padding: 48px;
}

.rf-sol-card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.rf-sol-card-icon-wrap svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rf-sol-card-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.25;
}

.rf-sol-card-subtitle {
    margin: 0 0 8px;
    color: #6ee7de;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rf-sol-card-desc {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

.rf-sol-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rf-sol-card-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.rf-sol-card-list li svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: none;
    stroke: #6ee7de;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1024px) {
    .rf-solutions-section .rf-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .rf-left-col {
        position: relative;
        top: 0;
        max-width: 600px;
    }

    .rf-sol-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .rf-sol-card-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px;
    }

    .rf-sol-card-icon-wrap {
        margin-bottom: 16px;
    }

    .rf-sol-title {
        font-size: 2.2rem;
    }
}

.rf-services-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    scroll-margin-top: 120px;
    background: #eef2f3;
    color: #111111;
    font-family: var(--rf-h1-font-body);
}

.rf-services-section .rf-container {
    position: relative;
}

.rf-services-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.rf-services-header .rf-header-left {
    max-width: 700px;
}

.rf-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #00a896;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.rf-badge::before {
    content: "\2756";
    font-size: 1rem;
}

.rf-title {
    margin: 0 0 20px;
    color: #1a202c;
    font-family: var(--rf-h1-font-body);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
}

.rf-desc {
    margin: 0;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

.rf-carousel-wrapper {
    position: relative;
    width: 100%;
}

.rf-carousel-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.rf-carousel-track::-webkit-scrollbar {
    display: none;
}

.rf-nav-arrow {
    position: absolute;
    top: calc(50% - 20px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    color: #00a896;
    cursor: pointer;
    font-size: 20px;
    transform: translateY(-50%);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.rf-nav-arrow:hover,
.rf-nav-arrow:focus-visible {
    border-color: #00a896;
    background: #00a896;
    color: #ffffff;
}

.rf-nav-arrow.prev {
    left: -25px;
}

.rf-nav-arrow.next {
    right: -25px;
}

.rf-services-section .rf-card {
    display: flex;
    flex: 0 0 calc(25% - 18.75px);
    flex-direction: column;
    margin: 0;
    padding: 40px 30px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rf-services-section .rf-card:hover,
.rf-services-section .rf-card:focus-within {
    box-shadow: 0 15px 35px rgba(0, 168, 150, 0.08);
    transform: translateY(-5px);
}

.rf-services-section .rf-card-title {
    min-height: 3.9rem;
    margin: 0;
    color: #1a202c;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.rf-icon-sphere {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 35px auto;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 10%, #e0f2f1 60%, #b2dfdb 100%);
    box-shadow: inset -5px -5px 15px rgba(0, 168, 150, 0.1), 0 8px 15px rgba(0, 0, 0, 0.05);
}

.rf-icon-sphere i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #00a896;
    font-size: 28px;
    line-height: 1;
}

.rf-services-section .rf-card-desc {
    margin: auto 0 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.rf-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.rf-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: width 0.3s ease, border-radius 0.3s ease, background-color 0.3s ease;
}

.rf-dot.active {
    width: 35px;
    border-radius: 5px;
    background: #00a896;
}

@media (max-width: 1200px) {
    .rf-services-section .rf-card {
        flex-basis: calc(33.333% - 16.66px);
    }

    .rf-title {
        font-size: 3rem;
    }
}

@media (max-width: 900px) {
    .rf-services-section .rf-card {
        flex-basis: calc(50% - 12.5px);
    }

    .rf-services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .rf-carousel-dots {
        display: none;
    }
}

@media (max-width: 600px) {
    .rf-services-section {
        padding: 60px 0;
    }

    .rf-services-section .rf-container {
        padding: 0 20px;
    }

    .rf-services-section .rf-card {
        flex-basis: 100%;
    }

    .rf-title {
        font-size: 2.2rem;
    }

    .rf-services-section .rf-card-title {
        min-height: auto;
    }

    .rf-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .rf-nav-arrow.prev {
        left: -5px;
    }

    .rf-nav-arrow.next {
        right: -5px;
    }
}

.rf-contact-section {
    position: relative;
    overflow-x: hidden;
    padding: 100px 0;
    background-color: #081215;
    background-image: radial-gradient(circle at 0% 50%, rgba(0, 168, 150, 0.05) 0%, transparent 50%);
    color: #ffffff;
    font-family: var(--rf-h1-font-body);
}

.rf-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.rf-contact-info-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
    padding: 40px 0;
}

.rf-map-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: 120%;
    height: 120%;
    background-image: url('https://bexon.themejunction.net/wp-content/uploads/2025/07/map.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.rf-map-dot {
    position: absolute;
    z-index: 1;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 15px 4px rgba(255, 255, 255, 0.3);
}

.rf-map-dot-1 {
    top: 35%;
    left: 20%;
}

.rf-map-dot-2 {
    top: 40%;
    left: 70%;
}

.rf-map-dot-3 {
    top: 75%;
    left: 35%;
}

.rf-contact-info-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.rf-contact-section .rf-badge {
    margin-bottom: 20px;
    padding: 6px 16px;
    border: 1px solid rgba(0, 168, 150, 0.2);
    border-radius: 4px;
    background: rgba(0, 168, 150, 0.1);
    color: #00a896;
}

.rf-contact-section .rf-title {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 3.5rem;
    line-height: 1.1;
}

.rf-contact-section .rf-title span {
    color: #00a896;
}

.rf-subtitle {
    margin: 0 0 30px;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.3;
}

.rf-contact-details {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(26, 36, 39, 0.6);
    backdrop-filter: blur(10px);
}

.rf-contact-details p {
    margin: 0 0 15px;
    color: #a0abb0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.rf-contact-details p:last-child {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.rf-contact-details strong {
    color: #00a896;
    font-size: 1.2rem;
    font-weight: 600;
}

.rf-contact-details a,
.rf-contact-details a:visited,
.rf-contact-details a:hover,
.rf-contact-details a:focus {
    color: #00a896;
}

.rf-form-card {
    position: relative;
    z-index: 2;
    padding: 50px;
    border-radius: 8px;
    background-color: #1f2a2e;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.rf-form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.rf-form-group {
    position: relative;
    flex: 1;
}

.rf-form-group.full-width {
    margin-bottom: 30px;
}

.rf-form-control {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-bottom-color 0.3s ease, color 0.3s ease;
}

.rf-form-control::placeholder {
    color: #8c9ba1;
}

.rf-form-control:focus {
    border-bottom-color: #00a896;
}

select.rf-form-control {
    color: #8c9ba1;
    cursor: pointer;
    appearance: none;
}

select.rf-form-control.is-selected,
select.rf-form-control:focus,
select.rf-form-control:valid {
    color: #ffffff;
}

select.rf-form-control option {
    padding: 10px;
    background-color: #1f2a2e;
    color: #ffffff;
}

.rf-select-wrapper {
    position: relative;
}

.rf-select-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    border-top: 6px solid #8c9ba1;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    pointer-events: none;
    transform: translateY(-50%);
}

textarea.rf-form-control {
    min-height: 80px;
    margin-bottom: 10px;
    resize: vertical;
}

.rf-contact-section .rf-btn-teal {
    margin-top: 20px;
    padding: 12px 12px 12px 28px;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
}

.rf-contact-section .rf-btn-teal:hover,
.rf-contact-section .rf-btn-teal:focus-visible {
    box-shadow: 0 8px 20px rgba(0, 168, 150, 0.2);
}

@media (max-width: 1024px) {
    .rf-contact-grid {
        gap: 40px;
    }

    .rf-contact-section .rf-title {
        font-size: 2.8rem;
    }

    .rf-form-card {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .rf-contact-section {
        padding: 60px 0;
    }

    .rf-contact-grid {
        grid-template-columns: 1fr;
    }

    .rf-contact-info-wrapper {
        min-height: auto;
        padding: 20px 0 40px;
    }

    .rf-map-bg {
        width: 150%;
        opacity: 0.1;
    }

    .rf-form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .rf-form-group,
    .rf-form-group.full-width {
        margin-bottom: 30px;
    }
}

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