/*
 * Single Services template styles for Richfolds.
 */

.rf-sv1-hero {
    position: relative;
    min-height: 0;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: var(--rf-sv1-hero-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    box-shadow: 0 2px 5px #0003;
}

.rf-sv1-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(7, 19, 28, 0.46), rgba(7, 19, 28, 0.46)),
        linear-gradient(rgba(7, 19, 28, 0.12), rgba(7, 19, 28, 0.56));
}

.rf-sv1-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 9rem 1.5rem 6rem;
}

.rf-sv1-content {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.rf-sv1-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: 'Bodoni Moda', serif;
    font-size: 1rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: #ffbf4e;
    margin-bottom: 2rem;
}

.rf-sv1-kicker::before,
.rf-sv1-kicker::after {
    content: "";
    width: 42px;
    height: 1px;
    background-color: rgba(255, 191, 78, 0.88);
}

.rf-sv1-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    line-height: 1.06;
    text-transform: uppercase;
    color: #ffbf4e;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.rf-sv1-decor-line {
    width: min(35%, 480px);
    height: 2px;
    margin: 1.2rem auto 0;
    background-image: linear-gradient(to right, transparent, #ffbf4e 50%, transparent);
    box-shadow: 0 1px 6px #00000061;
}

.rf-sv2-page {
    background: #ffffff;
}

.rf-sv2-section {
    padding: 72px 0 40px;
}

.rf-sv2-boxed-container {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

.rf-sv2-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, 340px);
    gap: 42px;
    align-items: stretch;
}

.rf-sv2-article {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    align-self: start;
}

.rf-sv2-header {
    margin-bottom: 28px;
}

.rf-sv2-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 45px;
    line-height: 1.14;
    color: #1f4b68;
}

.rf-sv2-media {
    margin-bottom: 34px;
}

.rf-sv2-image {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
    object-fit: cover;
}

.rf-sv2-body {
    max-width: 860px;
    font-family: 'Roboto', sans-serif;
    color: #515760;
    font-size: 18px;
    line-height: 1.75;
}

.rf-sv2-body > :first-child {
    margin-top: 0;
}

.rf-sv2-body > :last-child {
    margin-bottom: 0;
}

.rf-sv2-body h2,
.rf-sv2-body h3,
.rf-sv2-body h4,
.rf-sv2-body h5,
.rf-sv2-body h6 {
    margin: 1.8em 0 0.65em;
    font-family: 'Playfair Display', serif;
    color: #17425e;
    line-height: 1.2;
}

.rf-sv2-body h2 {
    font-size: 24px;
}

.rf-sv2-body h3 {
    font-size: 22px;
}

.rf-sv2-body p,
.rf-sv2-body ul,
.rf-sv2-body ol,
.rf-sv2-body blockquote {
    margin: 0 0 1.55rem;
}

.rf-sv2-body a {
    color: #0b5563;
}

.rf-sv2-sidebar {
    padding-left: 18px;
    border-left: 1px solid #e5e7eb;
    align-self: stretch;
}

.rf-sv2-sidebar-card {
    background: #e8e2d8;
    padding: 18px 14px 14px;
    position: sticky;
    top: 118px;
}

.rf-sv2-sidebar-title {
    margin: 0 0 1.2rem;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    line-height: 1.1;
    color: #1f2937;
}

.rf-sv2-links-group + .rf-sv2-links-group {
    margin-top: 1.2rem;
}

.rf-sv2-links-heading {
    margin: 0 0 0.65rem;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #1f2937;
}

.rf-sv2-links {
    font-family: 'Roboto', sans-serif;
    color: #374151;
}

.rf-sv2-links--menu .rf-sv2-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rf-sv2-menu-item--depth-0 + .rf-sv2-menu-item--depth-0 {
    margin-top: 1rem;
}

.rf-sv2-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rf-sv2-menu-link {
    text-decoration: none;
}

.rf-sv2-menu-link--parent {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.2;
    color: #1f2937;
}

.rf-sv2-menu-link--child {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: #1f2937;
}

.rf-sv2-menu-link--parent:hover,
.rf-sv2-menu-link--parent:focus,
.rf-sv2-menu-link--child:hover,
.rf-sv2-menu-link--child:focus {
    color: #d0a13c;
}

.rf-sv2-menu-toggle {
    border: 0;
    background: transparent;
    color: #1f2937;
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rf-sv2-menu-toggle svg {
    width: 16px;
    height: 16px;
    display: block;
    transition: transform 0.2s ease;
}

.rf-sv2-menu-item.is-open > .rf-sv2-menu-row .rf-sv2-menu-toggle svg {
    transform: rotate(180deg);
}

.rf-sv2-menu-submenu {
    display: none;
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0 0 0 10px;
}

.rf-sv2-menu-item.is-open > .rf-sv2-menu-submenu {
    display: block;
}

.rf-sv2-menu-item--depth-1 + .rf-sv2-menu-item--depth-1 {
    margin-top: 0.34rem;
}

.rf-sv2-menu-item.current-menu-item > .rf-sv2-menu-link--child,
.rf-sv2-menu-item.current-menu-parent > .rf-sv2-menu-row > .rf-sv2-menu-link--parent,
.rf-sv2-menu-item.current-menu-ancestor > .rf-sv2-menu-row > .rf-sv2-menu-link--parent,
.rf-sv2-menu-item.is-current-branch > .rf-sv2-menu-row > .rf-sv2-menu-link--parent,
.rf-sv2-menu-item.is-current-branch > .rf-sv2-menu-link--child {
    color: #d0a13c;
}

.rf-sv2-links .wpcf-posts,
.rf-sv2-links ul,
.rf-sv2-links ol,
.rf-sv2-fallback-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rf-sv2-links li,
.rf-sv2-links .wpcf-post-item,
.rf-sv2-fallback-links li {
    margin: 0 0 0.42rem;
}

.rf-sv2-links article,
.rf-sv2-links .post,
.rf-sv2-links .entry,
.rf-sv2-links .wpcf-post {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0 0 0.42rem;
}

.rf-sv2-links a,
.rf-sv2-fallback-links a {
    color: #1f2937;
    text-decoration: none;
}

.rf-sv2-links a:hover,
.rf-sv2-links a:focus,
.rf-sv2-fallback-links a:hover,
.rf-sv2-fallback-links a:focus,
.rf-sv2-fallback-links .is-current > a {
    color: #d0a13c;
}

.rf-sv2-links img,
.rf-sv2-links figure,
.rf-sv2-links .entry-summary,
.rf-sv2-links .post-thumbnail {
    display: none;
}

.rf-sv2-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background: #123f5b;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
}

.rf-sv2-cta:hover,
.rf-sv2-cta:focus {
    background: #0b5563;
    color: #ffffff;
}

.rf-sv2-map-wrap {
    margin-top: 16px;
    overflow: hidden;
}

.rf-sv2-map {
    width: 100%;
    height: 170px;
    border: 0;
    display: block;
}

@media (max-width: 1024px) {
    .rf-sv2-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rf-sv2-sidebar {
        padding-left: 0;
        border-left: 0;
    }

    .rf-sv2-sidebar-card {
        position: static;
        top: auto;
    }

    .rf-sv2-image {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .rf-sv1-hero {
        height: 78vh;
    }

    .rf-sv1-inner {
        padding: 8.5rem 1.25rem 5rem;
    }

    .rf-sv1-kicker {
        gap: 10px;
        font-size: 0.82rem;
        letter-spacing: 0.28em;
    }

    .rf-sv1-kicker::before,
    .rf-sv1-kicker::after {
        width: 24px;
    }

    .rf-sv2-section {
        padding: 56px 0 32px;
    }

    .rf-sv2-boxed-container {
        padding: 0 18px;
    }

    .rf-sv2-title {
        font-size: 36px;
    }

    .rf-sv2-body {
        font-size: 17px;
    }
}
