/*
 * Home Page Template styles for Richfolds.
 * New homepage sections use the rf-h1- prefix.
 * The rf-hs8- section is preserved because it is still used by single-services.php.
 */

:root {
    --richfolds-h2-size: clamp(2rem, 4.2vw, 3.25rem);
    --richfolds-section-line-width: 2.4rem;
    --richfolds-section-line-opacity: 0.65;
    --rf-h1-color-primary: #004c61;
    --rf-h1-color-primary-soft: #1a657d;
    --rf-h1-color-primary-ink: #001f29;
    --rf-h1-color-secondary: #00687b;
    --rf-h1-color-tertiary: #134b60;
    --rf-h1-color-inverse-surface: #1c333e;
    --rf-h1-color-surface: #f4faff;
    --rf-h1-color-surface-low: #e7f6ff;
    --rf-h1-color-surface-card: #ffffff;
    --rf-h1-color-surface-strong: #cee6f4;
    --rf-h1-color-text: #051e28;
    --rf-h1-color-text-muted: #40484c;
    --rf-h1-color-line: #bfc8cd;
    --rf-h1-color-highlight: #baeaff;
    --rf-h1-color-highlight-dim: #8fd0eb;
    --rf-h1-color-services-start: #0f2027;
    --rf-h1-color-services-end: #203a43;
    --rf-h1-shadow-soft: 0 24px 60px rgba(5, 30, 40, 0.12);
    --rf-h1-shadow-card: 0 18px 46px rgba(5, 30, 40, 0.14);
    --rf-h1-font-headline: 'Plus Jakarta Sans', sans-serif;
    --rf-h1-font-body: 'Inter', sans-serif;
}

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

.rf-h1-page {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(186, 234, 255, 0.46), transparent 30%),
        linear-gradient(180deg, #f9fdff 0%, var(--rf-h1-color-surface) 46%, #eef7fc 100%);
    color: var(--rf-h1-color-text);
    font-family: var(--rf-h1-font-body);
    overflow: clip;
}

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

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

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

.rf-h1-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--rf-h1-font-body);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #00e0ff;
}

.rf-h1-section-label::before {
    content: "";
    width: var(--richfolds-section-line-width);
    height: 1px;
    background: currentColor;
    opacity: var(--richfolds-section-line-opacity);
}

.rf-h1-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.rf-h1-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.7rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    font-family: var(--rf-h1-font-headline);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rf-h1-button:hover,
.rf-h1-button:focus {
    transform: translateY(-1px);
}

.rf-h1-button--primary {
    background: linear-gradient(135deg, #0b6b86 0%, #084f67 100%);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(0, 76, 97, 0.18);
}

.rf-h1-page a.rf-h1-button--primary,
.rf-h1-page a.rf-h1-button--primary:visited,
.rf-h1-page a.rf-h1-button--primary:hover,
.rf-h1-page a.rf-h1-button--primary:focus,
.rf-h1-page a.rf-h1-cta-button--glow,
.rf-h1-page a.rf-h1-cta-button--glow:visited,
.rf-h1-page a.rf-h1-cta-button--glow:hover,
.rf-h1-page a.rf-h1-cta-button--glow:focus {
    color: #ffffff !important;
}

.rf-h1-button--primary:hover,
.rf-h1-button--primary:focus {
    box-shadow: 0 22px 44px rgba(0, 76, 97, 0.24);
}

.rf-h1-button--secondary {
    background: #ffffff;
    border-color: rgba(112, 120, 125, 0.32);
    color: var(--rf-h1-color-text);
    box-shadow: 0 12px 28px rgba(5, 30, 40, 0.06);
}

.rf-h1-button--secondary:hover,
.rf-h1-button--secondary:focus {
    background: #f8fcff;
    border-color: rgba(0, 76, 97, 0.22);
}

.rf-h1-button__icon,
.rf-h1-stat-icon,
.rf-h1-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rf-h1-button__icon svg,
.rf-h1-stat-icon svg,
.rf-h1-check-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.rf-h1-page a.rf-h1-button--primary .rf-h1-button__icon,
.rf-h1-page a.rf-h1-button--primary .rf-h1-button__icon svg,
.rf-h1-page a.rf-h1-cta-button--glow .rf-h1-button__icon,
.rf-h1-page a.rf-h1-cta-button--glow .rf-h1-button__icon svg {
    color: currentColor;
    stroke: currentColor;
}

#rf-h1-hero {
    position: relative;
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    padding: clamp(5.5rem, 8vw, 7.5rem) 0 clamp(4.5rem, 7vw, 6rem);
}

.rf-h1-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.rf-h1-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 76, 97, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 76, 97, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

.rf-h1-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rf-h1-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(134, 228, 254, 0.7);
    color: #005365;
    font-family: var(--rf-h1-font-body);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.rf-h1-hero-badge::before {
    content: "";
    width: var(--richfolds-section-line-width);
    height: 1px;
    background: currentColor;
    opacity: var(--richfolds-section-line-opacity);
}

.rf-h1-hero-title {
    margin: 0;
    font-family: var(--rf-h1-font-headline);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.rf-h1-hero-title span {
    color: var(--rf-h1-color-primary);
}

.rf-h1-hero-text {
    max-width: 38rem;
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.75;
    color: var(--rf-h1-color-text-muted);
}

.rf-h1-hero-media {
    position: relative;
}

.rf-h1-hero-figure {
    position: relative;
    width: min(100%, 36rem);
    margin-left: auto;
    aspect-ratio: 1 / 1;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: var(--rf-h1-shadow-soft);
    transform: rotate(3deg);
    transition: transform 0.6s ease;
}

.rf-h1-hero-figure:hover {
    transform: rotate(0deg);
}

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

.rf-h1-hero-figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(0, 76, 97, 0.36), transparent 58%);
}

.rf-h1-hero-stat {
    position: absolute;
    left: clamp(0rem, 2vw, 1rem);
    bottom: -2rem;
    width: min(18rem, calc(100% - 2rem));
    padding: 1.5rem;
    border: 1px solid rgba(191, 200, 205, 0.35);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--rf-h1-shadow-card);
    backdrop-filter: blur(12px);
}

.rf-h1-hero-stat-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.95rem;
}

.rf-h1-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--rf-h1-color-primary-soft);
    color: #ffffff;
}

.rf-h1-stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rf-h1-color-text-muted);
}

.rf-h1-stat-value {
    display: block;
    font-family: var(--rf-h1-font-headline);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rf-h1-color-primary);
}

.rf-h1-stat-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--rf-h1-color-text-muted);
}

#rf-h1-about {
    position: relative;
    padding: clamp(6rem, 10vw, 8rem) 0;
}

.rf-h1-about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.rf-h1-about-media {
    position: relative;
    min-height: 34rem;
}

.rf-h1-about-main {
    position: relative;
    z-index: 1;
    width: min(82%, 31rem);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 2rem;
    box-shadow: var(--rf-h1-shadow-soft);
    border: 1px solid rgba(191, 200, 205, 0.18);
}

.rf-h1-about-main img,
.rf-h1-about-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rf-h1-about-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 30, 40, 0.2), transparent 45%);
}

.rf-h1-about-secondary {
    position: absolute;
    right: 0;
    bottom: -2.4rem;
    z-index: 2;
    width: min(58%, 20rem);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 999px 999px 1rem 1rem;
    border: 4px solid rgba(255, 255, 255, 0.96);
    box-shadow: var(--rf-h1-shadow-card);
}

.rf-h1-about-badge {
    position: absolute;
    top: -1.2rem;
    right: 4rem;
    z-index: 3;
    padding: 1.3rem 1.4rem;
    border-radius: 1rem;
    background: var(--rf-h1-color-primary-soft);
    box-shadow: 0 20px 40px rgba(0, 76, 97, 0.2);
}

.rf-h1-about-badge strong {
    display: block;
    font-family: var(--rf-h1-font-headline);
    font-size: 2.35rem;
    line-height: 1;
    color: #ffffff;
}

.rf-h1-about-badge span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.35;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.rf-h1-about-copy {
    display: flex;
    flex-direction: column;
    gap: 1.7rem;
}

.rf-h1-about-heading {
    display: grid;
    gap: 0.8rem;
}

.rf-h1-about-title {
    margin: 0;
    font-family: var(--rf-h1-font-headline);
    font-size: var(--richfolds-h2-size);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.rf-h1-about-title span {
    color: var(--rf-h1-color-primary-soft);
}

.rf-h1-about-subtitle {
    margin: 0;
    max-width: 34rem;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--rf-h1-color-text-muted);
}

.rf-h1-about-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.6rem;
    padding: 1.7rem;
    border: 1px solid rgba(191, 200, 205, 0.18);
    border-radius: 1rem;
    background: rgba(231, 246, 255, 0.8);
}

.rf-h1-about-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rf-h1-check-icon {
    width: 1.55rem;
    height: 1.55rem;
    color: var(--rf-h1-color-primary);
}

.rf-h1-about-check span {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--rf-h1-color-text);
}

.rf-h1-about-text {
    margin: 0;
    max-width: 38rem;
    font-size: 1rem;
    line-height: 1.82;
    color: var(--rf-h1-color-text-muted);
}

#rf-h1-services {
    position: relative;
    padding: clamp(4.5rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, var(--rf-h1-color-services-start), var(--rf-h1-color-services-end));
    color: #ffffff;
}

.rf-h1-services-head {
    max-width: 44rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.rf-h1-services-label {
    display: inline-flex;
    justify-content: center;
}

.rf-h1-services-title {
    margin: 1rem 0 1rem;
    font-family: var(--rf-h1-font-headline);
    font-size: var(--richfolds-h2-size);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.rf-h1-services-text {
    margin: 0 auto;
    max-width: 38rem;
    font-size: 1rem;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.8);
}

.rf-h1-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.rf-h1-service-card {
    padding: 1.55rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.rf-h1-service-card:hover,
.rf-h1-service-card:focus-within {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(143, 208, 235, 0.36);
}

.rf-h1-service-card h3 {
    margin: 0 0 0.75rem;
    font-family: var(--rf-h1-font-headline);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: #00e0ff;
}

.rf-h1-service-card p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.84);
}

#rf-h1-editor {
    padding: 4rem 0 6rem;
}

.rf-h1-editor__body {
    padding: 2rem;
    border: 1px solid rgba(191, 200, 205, 0.22);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(5, 30, 40, 0.06);
}

.rf-h1-editor__body > :first-child {
    margin-top: 0;
}

.rf-h1-editor__body > :last-child {
    margin-bottom: 0;
}

.rf-h1-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(.4, 0, .2, 1), transform 0.65s cubic-bezier(.4, 0, .2, 1);
}

.rf-h1-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.rf-h1-reveal--delay-2 {
    transition-delay: 0.16s;
}

#rf-h1-testimonials {
    position: relative;
    padding: 7rem 0 6rem;
    background: var(--rf-h1-color-surface-low);
    overflow: hidden;
}

#rf-h1-testimonials::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 76, 97, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.rf-h1-testi-section .rf-h1-container {
    position: relative;
    z-index: 1;
}

.rf-h1-testi-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.rf-h1-testi-eyebrow {
    justify-content: center;
}

.rf-h1-testi-title {
    margin: 1rem 0 0;
    font-family: var(--rf-h1-font-headline);
    font-size: var(--richfolds-h2-size);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--rf-h1-color-text);
}

.rf-h1-testi-title em {
    font-style: normal;
    color: var(--rf-h1-color-primary);
}

.rf-h1-testi-stage-wrap {
    position: relative;
    padding: 2rem 0 2.5rem;
    overflow: visible;
}

.rf-h1-testi-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.rf-h1-testi-card {
    position: absolute;
    width: clamp(300px, 45vw, 460px);
    padding: 2.25rem;
    border: 1px solid var(--rf-h1-color-line);
    border-radius: 1.5rem;
    background: var(--rf-h1-color-surface-card);
    transition:
        transform 0.55s cubic-bezier(.4, 0, .2, 1),
        opacity 0.55s cubic-bezier(.4, 0, .2, 1),
        filter 0.55s ease,
        box-shadow 0.55s ease;
    will-change: transform, opacity;
    user-select: none;
    cursor: pointer;
    box-shadow: none;
}

.rf-h1-testi-card[data-pos="0"] {
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: none;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 76, 97, 0.1);
}

.rf-h1-testi-card[data-pos="1"] {
    transform: translateX(clamp(220px, 32vw, 380px)) scale(0.85);
    opacity: 0.4;
    filter: blur(1px);
    z-index: 5;
}

.rf-h1-testi-card[data-pos="-1"] {
    transform: translateX(clamp(-380px, -32vw, -220px)) scale(0.85);
    opacity: 0.4;
    filter: blur(1px);
    z-index: 5;
}

.rf-h1-testi-card[data-pos="2"] {
    transform: translateX(clamp(380px, 58vw, 600px)) scale(0.7);
    opacity: 0.15;
    z-index: 2;
}

.rf-h1-testi-card[data-pos="-2"] {
    transform: translateX(clamp(-600px, -58vw, -380px)) scale(0.7);
    opacity: 0.15;
    z-index: 2;
}

.rf-h1-testi-card[data-pos="3"],
.rf-h1-testi-card[data-pos="-3"] {
    opacity: 0;
    transform: translateX(0) scale(0.6);
    pointer-events: none;
}

.rf-h1-testi-quote-mark {
    margin-bottom: -1rem;
    font-family: Georgia, serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--rf-h1-color-primary);
    opacity: 0.15;
}

.rf-h1-testi-tag {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(0, 76, 97, 0.12);
    border-radius: 9999px;
    background: var(--rf-h1-color-surface-low);
    color: var(--rf-h1-color-primary);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rf-h1-testi-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 1.25rem;
}

.rf-h1-testi-star {
    display: inline-flex;
}

.rf-h1-testi-stars svg {
    width: 14px;
    height: 14px;
}

.rf-h1-testi-text {
    margin-bottom: 1.5rem;
    color: var(--rf-h1-color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.rf-h1-testi-divider {
    height: 1px;
    margin-bottom: 1.25rem;
    background: var(--rf-h1-color-line);
    opacity: 0.5;
}

.rf-h1-testi-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rf-h1-testi-avatar {
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 2px solid var(--rf-h1-color-highlight);
    border-radius: 9999px;
}

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

.rf-h1-testi-name {
    color: var(--rf-h1-color-text);
    font-size: 0.95rem;
    font-weight: 700;
}

.rf-h1-testi-role {
    color: var(--rf-h1-color-text-muted);
    font-size: 0.8rem;
}

.rf-h1-testi-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rf-h1-testi-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--rf-h1-color-line);
    border-radius: 9999px;
    background: var(--rf-h1-color-surface-card);
    color: var(--rf-h1-color-text);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.rf-h1-testi-button:hover,
.rf-h1-testi-button:focus {
    border-color: var(--rf-h1-color-primary);
    background: var(--rf-h1-color-surface-strong);
    transform: translateY(-1px);
}

.rf-h1-testi-button svg {
    width: 1.1rem;
    height: 1.1rem;
}

.rf-h1-testi-dots {
    display: flex;
    gap: 8px;
}

.rf-h1-testi-dot {
    padding: 0;
    border: 0;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: var(--rf-h1-color-line);
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.rf-h1-testi-dot.is-active {
    width: 24px;
    background: var(--rf-h1-color-primary);
}

.rf-h1-testi-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--rf-h1-color-line);
}

.rf-h1-testi-trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--rf-h1-color-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.rf-h1-testi-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    color: var(--rf-h1-color-primary);
}

.rf-h1-testi-trust-icon svg {
    width: 100%;
    height: 100%;
}

#rf-h1-cta {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(135deg, #005b7c, #000000);
    overflow: hidden;
}

.rf-h1-cta-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.rf-h1-cta-particle {
    position: absolute;
    font-family: var(--rf-h1-font-headline);
    font-weight: 800;
    color: rgba(143, 208, 235, 0.07);
    white-space: nowrap;
    user-select: none;
    animation-name: rf-h1-cta-drift;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes rf-h1-cta-drift {
    from {
        transform: translateY(110vh);
    }

    to {
        transform: translateY(-20vh);
    }
}

.rf-h1-cta-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.rf-h1-cta-copy,
.rf-h1-cta-commitments {
    position: relative;
    z-index: 1;
}

.rf-h1-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.3rem 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--rf-h1-color-highlight-dim);
}

.rf-h1-cta-eyebrow::before {
    content: "";
    width: var(--richfolds-section-line-width);
    height: 1px;
    background: currentColor;
    opacity: var(--richfolds-section-line-opacity);
}

.rf-h1-cta-title {
    margin: 0 0 1.25rem;
    font-family: var(--rf-h1-font-headline);
    font-size: var(--richfolds-h2-size);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.rf-h1-cta-title span {
    color: var(--rf-h1-color-highlight-dim);
}

.rf-h1-cta-text {
    max-width: 30rem;
    margin: 0 0 2.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
}

.rf-h1-cta-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-bottom: 2.5rem;
}

.rf-h1-cta-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.rf-h1-cta-inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: var(--rf-h1-color-highlight-dim);
}

.rf-h1-cta-inline-icon svg,
.rf-h1-cta-commitment-icon svg {
    width: 100%;
    height: 100%;
}

.rf-h1-cta-button--glow {
    background: linear-gradient(135deg, #0b6b86 0%, #084f67 100%);
    animation: rf-h1-cta-glow-pulse 3s ease-in-out infinite;
}

@keyframes rf-h1-cta-glow-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 104, 123, 0.4);
    }

    50% {
        box-shadow: 0 0 30px 6px rgba(0, 104, 123, 0.35);
    }
}

.rf-h1-cta-button--ghost {
    border-color: rgba(255, 255, 255, 0.35);
    background: #ffffff;
    color: var(--rf-h1-color-text);
    box-shadow: 0 12px 28px rgba(5, 30, 40, 0.12);
}

.rf-h1-cta-button--ghost:hover,
.rf-h1-cta-button--ghost:focus {
    background: #f4faff;
    border-color: rgba(255, 255, 255, 0.65);
}

.rf-h1-cta-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.rf-h1-cta-commitments {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.rf-h1-cta-commitment {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.375rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.rf-h1-cta-commitment:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(143, 208, 235, 0.2);
    transform: translateX(6px);
}

.rf-h1-cta-commitment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--rf-h1-color-primary), var(--rf-h1-color-secondary));
    color: #ffffff;
}

.rf-h1-cta-commitment-title {
    margin: 0;
    font-family: var(--rf-h1-font-headline);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.rf-h1-cta-commitment-text {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 1024px) {
    .rf-h1-hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(24rem, 0.9fr);
    }

    .rf-h1-about-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .rf-h1-cta-grid {
        display: grid;
        grid-template-columns: 1fr 1px 1fr;
        align-items: center;
        gap: 0;
    }

    .rf-h1-cta-divider {
        width: 1px;
        height: 60%;
        margin: 0 3rem;
        background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
    }
}

@media (max-width: 1100px) {
    .rf-h1-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    #rf-h1-testimonials {
        padding: 5rem 0;
    }

    .rf-h1-testi-card {
        width: 85vw;
        padding: 1.75rem;
    }

    .rf-h1-testi-stage {
        min-height: 440px;
    }

    .rf-h1-testi-card[data-pos="1"] {
        transform: translateX(82vw) scale(0.85);
        opacity: 0.3;
    }

    .rf-h1-testi-card[data-pos="-1"] {
        transform: translateX(-82vw) scale(0.85);
        opacity: 0.3;
    }

    .rf-h1-testi-card[data-pos="2"],
    .rf-h1-testi-card[data-pos="-2"] {
        opacity: 0;
    }

    #rf-h1-hero {
        min-height: auto;
        padding-top: 5rem;
    }

    .rf-h1-hero-copy {
        order: 2;
    }

    .rf-h1-hero-media {
        order: 1;
    }

    .rf-h1-hero-figure {
        width: 100%;
        margin-left: 0;
        transform: none;
    }

    .rf-h1-hero-stat {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        margin-top: 1.25rem;
    }

    .rf-h1-about-media {
        min-height: auto;
        padding-bottom: 7rem;
    }

    .rf-h1-about-main {
        width: min(100%, 32rem);
    }

    .rf-h1-about-secondary {
        right: 0;
        bottom: 0;
        width: min(52%, 16rem);
    }

    .rf-h1-about-badge {
        right: 1.2rem;
    }
}

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

    .rf-h1-testi-header {
        margin-bottom: 2.75rem;
    }

    .rf-h1-testi-title {
        font-size: var(--richfolds-h2-size);
    }

    .rf-h1-testi-controls {
        gap: 1rem;
    }

    .rf-h1-testi-trust {
        gap: 1rem 1.5rem;
        margin-top: 3rem;
        padding-top: 1.75rem;
    }

    .rf-h1-button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .rf-h1-button {
        width: 100%;
    }

    .rf-h1-about-checks,
    .rf-h1-services-grid {
        grid-template-columns: 1fr;
    }

    .rf-h1-about-media {
        padding-bottom: 0;
    }

    .rf-h1-about-secondary,
    .rf-h1-about-badge {
        position: relative;
        right: auto;
        bottom: auto;
        top: auto;
        width: min(100%, 18rem);
        margin-top: 1.2rem;
    }

    .rf-h1-about-secondary {
        border-radius: 1rem;
    }

    .rf-h1-about-badge {
        width: fit-content;
    }

    .rf-h1-editor__body {
        padding: 1.4rem;
    }

    #rf-h1-cta {
        padding: 5rem 0;
    }
}

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

    .rf-h1-about-title,
    .rf-h1-services-title {
        font-size: var(--richfolds-h2-size);
    }
}

/* home_contact.php */
.rf-hs8-boxed-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

@media screen and (min-width: 1920px) {
    .rf-hs8-boxed-container {
        max-width: 1440px;
    }
}

.rf-hs8-contact-section {
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
        url('https://the-tahki-institute.websitepro.hosting/wp-content/uploads/2026/03/nature-scaled.webp');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    padding-top: 140px;
    padding-bottom: 250px;
    position: relative;
    margin-top: 0;
}

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

.rf-hs8-subtitle {
    font-family: 'Bodoni Moda', serif;
    color: #916c2b;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rf-hs8-subtitle::before {
    content: "";
    width: var(--richfolds-section-line-width);
    height: 1px;
    background: currentColor;
    opacity: var(--richfolds-section-line-opacity);
}

.rf-hs8-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--richfolds-h2-size);
    color: #333;
    margin: 0;
    line-height: 1.1;
}

.rf-hs8-header-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin: 0;
    padding-top: 20px;
}

.rf-hs8-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    position: relative;
    z-index: 10;
    transform: translateY(40px);
}

.rf-hs8-form-wrapper {
    background-color: #fff;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.rf-hs8-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #17425e;
    margin: 0 0 10px;
    text-align: center;
    text-transform: uppercase;
}

.rf-hs8-form-desc {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.rf-hs8-input-group {
    position: relative;
    margin-bottom: 20px;
}

.rf-hs8-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 14px;
}

.rf-hs8-input {
    width: 100%;
    padding: 15px 15px 15px 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.rf-hs8-input:focus {
    outline: none;
    border-color: #17425e;
}

select.rf-hs8-input {
    padding-left: 15px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

textarea.rf-hs8-input {
    padding-left: 15px;
    min-height: 120px;
    resize: vertical;
}

.rf-hs8-submit-btn {
    width: 100%;
    background-color: #17425e;
    color: #fff;
    border: none;
    padding: 18px;
    font-family: 'Bodoni Moda', serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.rf-hs8-submit-btn:hover {
    background-color: #916c2b;
}

.rf-hs8-map-wrapper {
    position: relative;
    z-index: 1;
    background-color: #eee;
    margin-top: 60px;
    margin-left: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rf-hs8-map-iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

@media screen and (max-width: 991px) {
    .rf-hs8-contact-section {
        padding-top: 100px;
        padding-bottom: 150px;
    }

    .rf-hs8-header-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }

    .rf-hs8-title {
        font-size: var(--richfolds-h2-size);
    }

    .rf-hs8-content-grid {
        grid-template-columns: 1fr;
        transform: translateY(0);
    }

    .rf-hs8-map-wrapper {
        margin-top: 0;
        margin-left: 0;
        height: 400px;
    }
}

@media screen and (max-width: 479px) {
    .rf-hs8-contact-section {
        background-attachment: scroll;
    }

    .rf-hs8-form-wrapper {
        padding: 30px 20px;
    }

    .rf-hs8-form-title {
        font-size: 28px;
    }
}
