/* Public chrome: header, logo, footer, and shared responsive layout.
   Royal blue is unchanged. Admin pages do not load this file. */

:root {
    --sp-blue: #002366;
    --sp-blue-mid: #003d99;
    --sp-blue-deep: #001433;
    --sp-ink: #16325c;
    --sp-muted: #4d6488;
    --sp-line: rgba(0, 35, 102, 0.12);
    --sp-paper: #f4f7fb;
    --sp-font: "Source Sans 3", "Segoe UI", sans-serif;
    --sp-display: "Fraunces", Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sp-font);
    color: var(--sp-ink);
    background: #fff;
    overflow-x: hidden;
}

.page-wrapper {
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main[role="main"] {
    padding-bottom: 0 !important;
    flex: 1 0 auto;
}

img,
video,
svg,
iframe,
canvas {
    max-width: 100%;
}

iframe {
    width: 100%;
    height: min(450px, 70vw);
}

/* Skip the template preloader so the page is usable as soon as it paints. */
.preloader {
    display: none !important;
}

.preloader__image {
    display: none !important;
}

.sp-loader {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    animation: sp-spin 0.8s linear infinite;
}

@keyframes sp-spin {
    to { transform: rotate(360deg); }
}

/* Logo lockup */
.sp-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    min-width: 0;
}

.sp-logo__mark {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: block;
}

.sp-logo__mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sp-logo__heart { fill: #002366; }
.sp-logo__hand { stroke: #4169e1; }
.sp-logo__house { fill: #fff; stroke: #d5deea; }
.sp-logo__window { fill: #d6e4f7; }
.sp-logo__panes { stroke: #fff; }

.sp-logo--light .sp-logo__heart { fill: #d6e6ff; }
.sp-logo--light .sp-logo__hand { stroke: #7eaaef; }
.sp-logo--light .sp-logo__house { fill: #fff; stroke: #fff; }
.sp-logo--light .sp-logo__window { fill: #002366; }
.sp-logo--light .sp-logo__panes { stroke: #d6e6ff; }

.sp-logo__words {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
}

.sp-logo__name {
    font-family: var(--sp-display);
    font-weight: 560;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--sp-blue);
    white-space: nowrap;
}

.sp-logo__sub {
    margin-top: 0.22rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sp-blue-mid);
    white-space: nowrap;
}

.sp-logo--light .sp-logo__name,
.sp-logo--light .sp-logo__sub {
    color: #fff;
}

.sp-logo--light .sp-logo__sub {
    color: #c5d8ff;
}

.sp-logo__custom {
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Header */
.sp-header.main-header {
    position: relative;
    z-index: 40;
    background: #fff;
    box-shadow: 0 1px 0 var(--sp-line);
}

.sp-header .topbar {
    display: block !important;
    background: var(--sp-blue) !important;
    color: #fff;
}

.sp-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 42px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.sp-topbar__identity {
    margin: 0;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sp-topbar__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 1rem;
}

.sp-topbar__meta a,
.sp-header .topbar__left > a,
.sp-header .topbar__right > a {
    color: #fff !important;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sp-topbar__meta a:hover {
    color: #d6e6ff !important;
}

.sp-header .topbar__left > a:not(:last-of-type)::after,
.sp-header .topbar__social {
    display: none !important;
}

.sp-nav__bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 84px;
}

.sp-header .logo-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex: 0 1 auto;
    width: auto;
}

.sp-header .main-menu__list {
    margin-left: auto !important;
    margin-right: 0 !important;
    border-right: 0 !important;
    padding-right: 0 !important;
    gap: 0.35rem;
}

.sp-header .main-menu__list > li,
.stricky-header .main-menu__list > li,
.stricky-header .main-menu__list > li + li {
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    margin-left: 0 !important;
}

/* Sticky header uses a cloned menu, so it needs the same bar layout as the main header. */
.stricky-header.stricky-fixed {
    background: #fff !important;
    z-index: 1000;
    box-shadow: 0 10px 28px rgba(0, 35, 102, 0.1);
}

.stricky-header .sticky-header__content > .container,
.stricky-header .sp-nav__bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 76px;
    width: 100%;
}

.stricky-header .logo-box {
    display: flex;
    align-items: center;
    width: auto !important;
    flex: 0 0 auto;
}

.stricky-header .sp-nav__toggle,
.stricky-header .mobile-nav__toggler {
    display: none !important;
}

.stricky-header .main-menu__list {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto !important;
    margin-right: 0 !important;
    border: 0 !important;
    padding: 0 !important;
}

.stricky-header .main-menu__list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    color: var(--sp-blue);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    line-height: 1.2;
}

.stricky-header .main-menu__list > li > a:hover,
.stricky-header .main-menu__list > li.current > a {
    background: #e8f0ff;
    color: var(--sp-blue);
}

.stricky-header .sp-header-actions,
.stricky-header .main-header__info {
    display: flex !important;
    align-items: center;
    margin-left: 0.25rem;
}

.sp-header .main-menu__list > li > a {
    font-family: var(--sp-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--sp-blue);
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
}

.sp-header .main-menu__list > li > a:hover,
.sp-header .main-menu__list > li.current > a {
    color: var(--sp-blue);
    background: #e8f0ff;
}

.sp-header .main-menu__list li ul {
    border-radius: 14px;
    border: 1px solid var(--sp-line);
    box-shadow: 0 16px 40px rgba(0, 35, 102, 0.12);
    padding: 0.4rem;
    min-width: 200px;
}

.sp-header .main-menu__list li ul li a {
    border-radius: 10px;
    font-weight: 600;
    color: var(--sp-blue);
}

.sp-header-actions {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.sp-refer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    background: var(--sp-blue);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    border: 2px solid var(--sp-blue);
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sp-refer-btn:hover {
    background: var(--sp-blue-mid);
    border-color: var(--sp-blue-mid);
    color: #fff !important;
    transform: translateY(-1px);
}

.sp-refer-btn--light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

.sp-refer-btn--light:hover {
    background: #fff;
    color: var(--sp-blue) !important;
    border-color: #fff;
}

.sp-nav__toggle {
    display: none;
    width: 46px;
    height: 46px;
    margin-left: 0.5rem;
    padding: 0;
    border: 1px solid var(--sp-line);
    border-radius: 12px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.sp-nav__toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--sp-blue);
    border-radius: 2px;
}

.sp-header .mobile-nav__toggler:before {
    content: none !important;
}

/* Footer */
.sp-footer {
    background: var(--sp-blue-deep);
    color: #d5e2f7;
    margin-top: auto;
}

.sp-footer__main {
    padding: 3.5rem 0 2.5rem;
}

.sp-footer__grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
    gap: 2rem 2.5rem;
}

.sp-footer h2 {
    margin: 0 0 0.9rem;
    color: #fff;
    font-family: var(--sp-display);
    font-size: 1.25rem;
    font-weight: 560;
}

.sp-footer__brand p {
    margin: 1rem 0 0;
    max-width: 34rem;
    color: #d5e2f7 !important;
    font-size: 1.02rem;
    line-height: 1.6;
}

.sp-footer__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.15rem 0 0;
    padding: 0;
    list-style: none;
}

.sp-footer__facts li {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sp-footer__col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-footer__col li + li {
    margin-top: 0.45rem;
}

.sp-footer__col a,
.sp-footer__col span {
    color: #d5e2f7;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.45;
}

.sp-footer__col a:hover {
    color: #fff;
}

.sp-footer__contact a,
.sp-footer__contact span {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.sp-footer__contact i {
    width: 1rem;
    margin-top: 0.2rem;
    color: #9ec5ff;
    text-align: center;
}

.sp-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 0 1.15rem;
}

.sp-footer__bar-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.sp-footer__bar p {
    margin: 0;
    color: #b7c9e6 !important;
    font-size: 0.9rem;
}

/* Mobile drawer */
.mobile-nav__content {
    background: var(--sp-blue-deep) !important;
    padding-top: 1.5rem;
}

.mobile-nav__content .logo-box .sp-logo {
    max-width: calc(100% - 52px);
}

.mobile-nav__container .logo-box,
.mobile-nav__container .sp-header-actions,
.mobile-nav__container .main-header__info,
.mobile-nav__container .sp-nav__toggle {
    display: none !important;
}

.mobile-nav__content .main-menu__list li a {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}

.mobile-nav__content .main-menu__list li a:hover {
    color: #d6e6ff;
}

.mobile-nav__close {
    top: 22px;
    border: 0;
    background: transparent;
    width: 42px;
    height: 42px;
}

.sp-mobile-refer {
    width: calc(100% - 8px);
    margin: 0.25rem 0 1.25rem;
}

.mobile-nav__contact a {
    color: #d5e2f7;
}

.mobile-nav__contact i {
    color: #9ec5ff;
}

/* Shared page rhythm */
.page-header-title {
    font-family: var(--sp-display);
    font-size: clamp(2rem, 4vw, 3.1rem) !important;
    line-height: 1.15;
    text-wrap: balance;
}

.page-header-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem) !important;
    max-width: 40rem;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.5;
}

.page-header-section {
    padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem) !important;
}

.section-padding {
    padding: clamp(3rem, 6vw, 5.5rem) 0 !important;
}

.section-padding h2,
.about-heading,
.section_heading_title_big,
.block-title h2 {
    font-family: var(--sp-display);
    text-wrap: balance;
}

.thm-btn,
.contact-submit-btn {
    border-radius: 999px !important;
    background: var(--sp-blue) !important;
    border-color: var(--sp-blue) !important;
}

.look-around-page__title {
    color: var(--sp-blue) !important;
    font-family: var(--sp-display);
}

.contact-form .form-control,
.auth-card .form-control {
    border-radius: 12px;
    min-height: 48px;
    border-color: var(--sp-line);
}

.contact-form textarea.form-control {
    min-height: 140px;
}

.contact-cards-section .row {
    row-gap: 1rem;
}

/* Home sections breathe on small screens */
@media (max-width: 1199px) {
    :root {
        --section-padding: 3rem 0;
        --section-padding-lg: 3.25rem 0;
    }

    .sp-topbar__identity {
        font-size: 0.72rem;
    }

    .sp-nav__bar,
    .sp-header .main-menu .logo-box {
        width: 100%;
        min-height: 72px;
    }

    .sp-nav__toggle,
    .sp-header .mobile-nav__toggler {
        display: inline-flex !important;
    }

    .stricky-header {
        display: block;
    }

    .stricky-header.stricky-fixed {
        z-index: 990;
    }

    .stricky-header .main-menu__list,
    .stricky-header .sp-header-actions,
    .stricky-header .main-header__info {
        display: none !important;
    }

    .stricky-header .sp-nav__toggle,
    .stricky-header .mobile-nav__toggler {
        display: inline-flex !important;
    }

    .stricky-header .logo-box {
        width: 100% !important;
        justify-content: space-between;
    }

    .stricky-header .sp-nav__bar,
    .stricky-header .sticky-header__content > .container {
        min-height: 68px;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .sp-header .main-header__info,
    .sp-header-actions {
        display: none !important;
    }

    .page-header-title {
        letter-spacing: 0 !important;
    }
}

@media (max-width: 767px) {
    #home-page-sections .main-slider__nav,
    #home-page-sections .main-slider .swiper-button-prev,
    #home-page-sections .main-slider .swiper-button-next {
        display: none !important;
    }

    #home-page-sections .main-slider .hero-content-col,
    #home-page-sections .hero-video-section .hero-content-col {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .sp-footer__grid {
        grid-template-columns: 1fr 1fr;
        justify-items: center;
    }

    .sp-footer__brand,
    .sp-footer__contact {
        grid-column: 1 / -1;
    }

    .sp-footer__brand,
    .sp-footer__col,
    .sp-footer__bar,
    .sp-footer__bar-inner {
        width: 100%;
        text-align: center;
    }

    .sp-footer__brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .sp-footer__facts {
        justify-content: center;
    }

    .sp-footer__col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .sp-footer__contact a,
    .sp-footer__contact span {
        justify-content: center;
        text-align: center;
    }

    .sp-footer__bar-inner {
        flex-direction: column;
        align-items: center;
    }

    .sp-topbar__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .sp-topbar__meta a span {
        display: none;
    }

    .sp-logo__name {
        font-size: 1.05rem;
    }

    .sp-logo__mark {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }
}

@media (max-width: 560px) {
    .sp-topbar__identity {
        letter-spacing: 0.02em;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .sp-header .main-menu__list > li > a {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        font-size: 0.92rem;
    }
}
