/* =========================================================
   RP SKY POOL
   UI / UX POLISH
   Loaded after home.css + header-v2.css
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

:root {
    --rp-navy: #061f38;
    --rp-navy-2: #082b4d;
    --rp-blue: #155aa8;
    --rp-cyan: #45a9c5;
    --rp-gold: #d29a38;
    --rp-gold-dark: #bd8428;

    --rp-text: #17304b;
    --rp-muted: #66788a;
    --rp-light: #f5f8fb;
    --rp-border: #e4eaf0;

    --rp-radius: 2px;

    --rp-shadow:
        0 18px 50px rgba(6, 31, 56, 0.10);

    --rp-shadow-hover:
        0 28px 70px rgba(6, 31, 56, 0.16);
}


html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}


body {
    overflow-x: hidden;
    background: #ffffff;
    color: var(--rp-text);
}


/* Prevent accidental horizontal overflow */

html,
body,
main,
section,
header,
footer {
    max-width: 100%;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container,
.rp-header-container {
    width: min(100% - 48px, 1380px);
    margin-left: auto !important;
    margin-right: auto !important;
}


/* =========================================================
   LOGO INTRO
   ========================================================= */

#rp-logo-intro {
    position: fixed !important;

    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    min-height: 100vh !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    background: #ffffff !important;

    z-index: 999999 !important;

    overflow: hidden !important;

    opacity: 1;
    visibility: visible;

    pointer-events: all;

    transition:
        opacity 0.85s ease,
        visibility 0.85s ease;
}


/*
   Large clean logo
*/

#rp-intro-logo {
    display: block !important;

    width: min(82vw, 1250px) !important;

    max-width: 1250px !important;

    height: auto !important;

    object-fit: contain;

    opacity: 1;

    transform: scale(1);

    transition:
        opacity 0.65s ease,
        transform 0.8s cubic-bezier(.22,.61,.36,1);
}


/*
   Intro closing state

   IMPORTANT:
   Your current JS adds:
   .rp-intro-finished
*/

#rp-logo-intro.rp-intro-finished {
    opacity: 0 !important;
    visibility: hidden !important;

    pointer-events: none !important;
}


#rp-logo-intro.rp-intro-finished #rp-intro-logo {
    opacity: 0 !important;

    transform: scale(1.035);
}


/* =========================================================
   TOP BAR
   ========================================================= */

.rp-topbar {
    position: relative;
    z-index: 1000;

    width: 100%;

    background:
        linear-gradient(
            90deg,
            #041a30 0%,
            #06243e 50%,
            #041a30 100%
        );

    color: #ffffff;

    border-bottom: 1px solid rgba(255,255,255,.05);
}


.rp-topbar .rp-header-container {
    min-height: 58px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.rp-location,
.rp-contact {
    display: flex;

    align-items: center;

    gap: 28px;
}


.rp-location span,
.rp-contact a,
.rp-social a {
    font-size: 14px;

    line-height: 1;

    color: rgba(255,255,255,.94);

    white-space: nowrap;
}


.rp-location span {
    position: relative;
}


.rp-location span::before {
    color: var(--rp-gold);
}


.rp-contact a {
    transition: color .25s ease;
}


.rp-contact a:hover,
.rp-social a:hover {
    color: #f0bd5b;
}


.rp-social {
    display: flex;

    align-items: center;

    gap: 13px;
}


.rp-social a {
    font-weight: 600;
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

.rp-main-header {
    position: relative;

    z-index: 900;

    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #edf0f3;

    box-shadow:
        0 8px 30px rgba(5, 30, 50, .04);
}


.rp-nav-wrapper {
    min-height: 118px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;
}


/* Logo */

.rp-logo {
    display: flex;

    align-items: center;

    flex-shrink: 0;
}


.rp-logo img {
    display: block;

    width: 158px;

    height: auto;

    object-fit: contain;

    transition:
        transform .3s ease;
}


.rp-logo:hover img {
    transform: translateY(-1px);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.rp-navigation {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 4px;

    height: 100%;
}


.rp-navigation > a,
.rp-dropdown-link {
    position: relative;

    display: flex;

    align-items: center;

    gap: 7px;

    min-height: 118px;

    padding: 0 17px;

    color: #092847;

    font-size: 16px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        color .25s ease,
        background .25s ease;
}


.rp-navigation > a:hover,
.rp-dropdown-link:hover {
    color: var(--rp-blue);
}


/* Active line */

.rp-navigation > a.active::after,
.rp-nav-dropdown > .rp-dropdown-link.active::after {
    content: "";

    position: absolute;

    left: 17px;
    right: 17px;

    bottom: 0;

    height: 3px;

    background: var(--rp-gold);
}


/* Dropdown arrow */

.rp-dropdown-link span {
    font-size: 12px;

    color: #688096;

    transform: translateY(-1px);

    transition:
        transform .25s ease;
}


.rp-nav-dropdown:hover .rp-dropdown-link span {
    transform: translateY(2px);
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.rp-nav-dropdown {
    position: relative;

    height: 100%;

    display: flex;

    align-items: stretch;
}


.rp-dropdown-menu {
    position: absolute;

    top: calc(100% + 1px);

    left: 50%;

    width: 285px;

    padding: 10px;

    transform:
        translate(-50%, 12px);

    background: #ffffff;

    border: 1px solid #e8edf2;

    box-shadow:
        0 22px 55px rgba(4, 30, 52, .15);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;
}


.rp-nav-dropdown:hover .rp-dropdown-menu,
.rp-nav-dropdown:focus-within .rp-dropdown-menu {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translate(-50%, 0);
}


.rp-dropdown-menu a {
    display: flex;

    align-items: center;

    min-height: 45px;

    padding: 10px 14px;

    color: #17304b;

    font-size: 14px;

    font-weight: 600;

    border-bottom: 1px solid #f0f3f6;

    transition:
        background .2s ease,
        color .2s ease,
        padding .2s ease;
}


.rp-dropdown-menu a:last-child {
    border-bottom: 0;
}


.rp-dropdown-menu a:hover {
    background: #f5f8fb;

    color: var(--rp-blue);

    padding-left: 19px;
}


/* =========================================================
   HEADER CTA
   ========================================================= */

.rp-header-cta {
    min-height: 68px !important;

    margin-left: 12px;

    padding:
        0 28px !important;

    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    gap: 13px;

    background:
        linear-gradient(
            135deg,
            #d9a342,
            #c68d2d
        ) !important;

    color: #ffffff !important;

    border-radius: 3px;

    box-shadow:
        0 10px 25px rgba(197, 140, 43, .20);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.rp-header-cta:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #e0aa49,
            #c18725
        ) !important;

    box-shadow:
        0 16px 34px rgba(197, 140, 43, .28);
}


.rp-header-cta span {
    font-size: 19px;

    transition:
        transform .25s ease;
}


.rp-header-cta:hover span {
    transform: translateX(4px);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    width: 100%;

    min-height: min(760px, calc(100vh - 176px));

    overflow: hidden;

    background: var(--rp-navy);
}


.hero-slider,
.hero-slide,
.hero-image,
.hero-overlay {
    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;
}


.hero-slider {
    overflow: hidden;
}


.hero-slide {
    background-position: center center;

    background-size: cover;

    background-repeat: no-repeat;

    opacity: 0;

    transform: scale(1.03);

    transition:
        opacity 1s ease,
        transform 6s ease;
}


.hero-slide.active {
    opacity: 1;

    transform: scale(1);
}


/* Hero overlay */

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(3, 22, 41, .96) 0%,
            rgba(4, 30, 52, .87) 34%,
            rgba(4, 30, 52, .58) 57%,
            rgba(4, 30, 52, .16) 100%
        );

    z-index: 1;
}


/* Hero content */

.hero-content {
    position: relative;

    z-index: 2;

    min-height: inherit;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding-top: 100px;

    padding-bottom: 75px;
}


/* Eyebrow */

.eyebrow {
    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 27px;

    color: #f0b84e;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.eyebrow::after {
    content: "";

    width: 42px;

    height: 1px;

    background: #d9a342;
}


/* Hero heading */

.hero h1 {
    max-width: 850px;

    margin: 0;

    color: #ffffff;

    font-family:
        "DM Serif Display",
        Georgia,
        serif;

    font-size:
        clamp(58px, 5.2vw, 88px);

    line-height: .98;

    font-weight: 400;

    letter-spacing: -1.5px;
}


.hero h1 em {
    color: #ffffff;

    font-style: normal;
}


.hero-copy {
    max-width: 720px;

    margin-top: 34px;

    color: rgba(255,255,255,.88);

    font-size: 18px;

    line-height: 1.75;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.hero-actions {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 13px;

    margin-top: 34px;
}


.gold-btn,
.outline-btn {
    min-height: 56px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 0 25px;

    font-size: 14px;

    font-weight: 800;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease,
        border-color .25s ease;
}


.gold-btn {
    background: #d29a38;

    color: #ffffff;

    border: 1px solid #d29a38;

    box-shadow:
        0 12px 28px rgba(210,154,56,.20);
}


.gold-btn:hover {
    background: #c58d2c;

    transform: translateY(-2px);

    box-shadow:
        0 18px 35px rgba(210,154,56,.28);
}


.gold-btn span {
    font-size: 18px;

    transition:
        transform .25s ease;
}


.gold-btn:hover span {
    transform: translateX(4px);
}


.outline-btn {
    color: #ffffff;

    border: 1px solid rgba(255,255,255,.55);

    background: rgba(255,255,255,.03);
}


.outline-btn:hover {
    color: #ffffff;

    background: rgba(255,255,255,.10);

    border-color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   HERO SLIDER CONTROLS
   ========================================================= */

.hero-bottom {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 60px;
}


.slider-dots {
    display: flex;

    align-items: center;

    gap: 9px;
}


.slider-dot {
    width: 38px;

    height: 3px;

    padding: 0;

    border: 0;

    background: rgba(255,255,255,.35);

    cursor: pointer;

    transition:
        width .25s ease,
        background .25s ease;
}


.slider-dot.active {
    width: 62px;

    background: #d8a03d;
}


.slider-dots span {
    margin-left: 10px;

    color: rgba(255,255,255,.70);

    font-size: 12px;

    letter-spacing: 2px;
}


.hero-arrows {
    display: flex;

    gap: 8px;
}


.hero-arrows button {
    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(255,255,255,.40);

    background: rgba(4,25,44,.25);

    color: #ffffff;

    font-size: 27px;

    cursor: pointer;

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}


.hero-arrows button:hover {
    background: #d29a38;

    border-color: #d29a38;

    transform: translateY(-2px);
}


/* =========================================================
   TRUST STRIP
   ========================================================= */

.trust-strip {
    position: relative;

    z-index: 5;

    background: #ffffff;

    border-bottom: 1px solid var(--rp-border);

    box-shadow:
        0 8px 25px rgba(5,30,50,.04);
}


.trust-grid {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    min-height: 118px;
}


.trust-grid > div {
    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 20px 24px;

    border-right: 1px solid var(--rp-border);
}


.trust-grid > div:first-child {
    border-left: 1px solid var(--rp-border);
}


.trust-grid b {
    margin-bottom: 6px;

    color: var(--rp-navy);

    font-size: 16px;

    font-weight: 800;
}


.trust-grid span {
    color: var(--rp-muted);

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
    position: relative;

    width: 100%;

    padding:
        clamp(80px, 8vw, 120px) 0;

    overflow: hidden;
}


.section-label {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;

    color: var(--rp-gold-dark);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2.5px;

    text-transform: uppercase;
}


.section-label::after {
    content: "";

    width: 32px;

    height: 1px;

    background: var(--rp-gold);
}


.section h2 {
    color: var(--rp-navy);

    font-family:
        "DM Serif Display",
        Georgia,
        serif;

    font-size:
        clamp(42px, 4vw, 62px);

    line-height: 1.08;

    font-weight: 400;

    letter-spacing: -.5px;
}


.section p {
    color: var(--rp-muted);

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   IMAGE CARDS
   ========================================================= */

.image-stack img,
.solution-card img,
.project-card img {
    display: block;

    width: 100%;

    height: auto;

    object-fit: cover;
}


.image-stack,
.solution-card,
.project-card {
    overflow: hidden;
}


/* =========================================================
   CARD HOVER
   ========================================================= */

.solution-card,
.project-card {
    background: #ffffff;

    border: 1px solid var(--rp-border);

    box-shadow:
        0 8px 30px rgba(5,30,50,.05);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}


.solution-card:hover,
.project-card:hover {
    transform: translateY(-7px);

    border-color: #d7e0e8;

    box-shadow:
        var(--rp-shadow-hover);
}


/* =========================================================
   FORM UI
   ========================================================= */

input,
select,
textarea {
    width: 100%;

    min-height: 52px;

    padding: 13px 16px;

    border: 1px solid #dce4eb;

    background: #ffffff;

    color: var(--rp-text);

    border-radius: 2px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


textarea {
    min-height: 135px;

    resize: vertical;
}


input:focus,
select:focus,
textarea:focus {
    border-color: #80a8c8;

    box-shadow:
        0 0 0 3px rgba(21,90,168,.08);
}


input::placeholder,
textarea::placeholder {
    color: #91a0ae;
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.rp-mobile-toggle {
    width: 48px;

    height: 48px;

    display: none;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

    border: 1px solid #dce4eb;

    background: #ffffff;

    cursor: pointer;
}


.rp-mobile-toggle span {
    width: 22px;

    height: 2px;

    background: var(--rp-navy);

    transition:
        transform .25s ease,
        opacity .25s ease;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .container,
    .rp-header-container {
        width: min(100% - 36px, 1180px);
    }


    .rp-navigation > a,
    .rp-dropdown-link {
        padding-left: 11px;

        padding-right: 11px;

        font-size: 15px;
    }


    .rp-logo img {
        width: 145px;
    }


    .rp-header-cta {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }


    .hero h1 {
        font-size: clamp(52px, 5.5vw, 74px);
    }


    .trust-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .container,
    .rp-header-container {
        width: min(100% - 30px, 700px);
    }


    /* Topbar */

    .rp-topbar .rp-header-container {
        min-height: auto;

        padding-top: 12px;

        padding-bottom: 12px;

        flex-direction: column;

        align-items: center;

        gap: 10px;
    }


    .rp-location,
    .rp-contact {
        flex-wrap: wrap;

        justify-content: center;

        gap: 12px 18px;
    }


    .rp-location span,
    .rp-contact a,
    .rp-social a {
        font-size: 12px;
    }


    /* Header */

    .rp-nav-wrapper {
        min-height: 82px;

        gap: 15px;
    }


    .rp-logo img {
        width: 132px;
    }


    .rp-navigation {
        display: none;
    }


    .rp-mobile-toggle {
        display: flex;
    }


    /* Hero */

    .hero {
        min-height: 700px;
    }


    .hero-content {
        padding-top: 75px;

        padding-bottom: 55px;
    }


    .hero h1 {
        font-size: clamp(48px, 10vw, 66px);

        line-height: 1;
    }


    .hero-copy {
        font-size: 16px;

        line-height: 1.7;

        max-width: 620px;
    }


    .hero-bottom {
        margin-top: 45px;
    }


    /* Trust */

    .trust-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .trust-grid > div {
        min-height: 100px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .container,
    .rp-header-container {
        width: calc(100% - 28px);
    }


    /* Intro */

    #rp-intro-logo {
        width: 88vw !important;
    }


    /* Header */

    .rp-topbar .rp-header-container {
        align-items: flex-start;
    }


    .rp-location,
    .rp-contact {
        justify-content: flex-start;
    }


    .rp-contact {
        width: 100%;
    }


    .rp-main-header {
        position: relative;
    }


    .rp-nav-wrapper {
        min-height: 76px;
    }


    .rp-logo img {
        width: 125px;
    }


    /* Hero */

    .hero {
        min-height: 680px;
    }


    .hero-content {
        justify-content: center;

        padding-top: 55px;

        padding-bottom: 40px;
    }


    .eyebrow {
        margin-bottom: 20px;

        font-size: 10px;

        letter-spacing: 2px;
    }


    .eyebrow::after {
        width: 25px;
    }


    .hero h1 {
        font-size: clamp(43px, 12vw, 58px);

        letter-spacing: -1px;
    }


    .hero-copy {
        margin-top: 25px;

        font-size: 15px;

        line-height: 1.65;
    }


    .hero-actions {
        flex-direction: column;

        align-items: stretch;

        margin-top: 28px;
    }


    .gold-btn,
    .outline-btn {
        width: 100%;
    }


    .hero-bottom {
        margin-top: 40px;
    }


    .hero-arrows button {
        width: 42px;

        height: 42px;
    }


    /* Trust */

    .trust-grid {
        grid-template-columns: 1fr;
    }


    .trust-grid > div {
        border-left: 0 !important;

        border-right: 0;

        border-bottom: 1px solid var(--rp-border);
    }


    .trust-grid > div:last-child {
        border-bottom: 0;
    }


    /* Sections */

    .section {
        padding:
            70px 0;
    }


    .section h2 {
        font-size: 43px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: .01ms !important;

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;
    }

}