/* ==============================
   Extracted from app/views/themes/default/home.php
   Formerly inline <style> blocks + style="" attributes.
   ============================== */

/* ---- Home contact popup modal ---- */
.home-contact-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 25, 0.70);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: homeContactFadeIn .25s ease;
}
.home-contact-overlay.active {
    display: flex;
}
@keyframes homeContactFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.home-contact-popup {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.15);
    position: relative;
    animation: homeContactSlideUp .3s cubic-bezier(.34,1.56,.64,1);
    padding: 34px 28px 24px;
}
@keyframes homeContactSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
.home-contact-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(0,0,0,.06);
    border: none;
    color: #333;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}
.home-contact-close:hover {
    background: var(--theme-color, #0E3719);
    color: #fff;
}
.home-contact-popup-header {
    text-align: center;
    margin-bottom: 18px;
}
.home-contact-popup-header .sec-subtitle {
    font-size: 14px;
}
.home-contact-popup-header h3 {
    margin: 6px 0 10px;
    font-size: 26px;
}
.home-contact-popup-header p {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}
.home-contact-popup .form-group {
    margin-bottom: 16px;
}
.home-contact-popup input,
.home-contact-popup select,
.home-contact-popup textarea {
    height: 50px;
    padding: 0 18px;
    font-size: 15px;
}
.home-contact-popup textarea {
    height: 90px;
    padding-top: 14px;
}
.home-contact-popup .form-style6 .vs-btn {
    height: 50px;
    line-height: 50px;
    font-size: 15px;
}
.home-contact-popup .form-messages {
    margin: 10px 0 0;
    font-size: 13px;
}
@media (max-width: 480px) {
    .home-contact-popup { padding: 28px 20px 18px; max-width: 360px; }
}

/* NOTE: The hero carousel (LayerSlider) layers and the #rcapModal/#rcapMsg
   initial display:none intentionally keep their inline style="" attributes in
   home.php. LayerSlider reads element.style.top/left/width/height/fontSize
   directly (not computed/class-based CSS) to position and animate each
   layer, and the reCAPTCHA-style modal's own JS-injected stylesheet
   (assets/frontend/js/rcap.js) sets ".rcap-overlay{display:flex}" unconditionally,
   so only an inline style (which always wins over a stylesheet rule of equal
   specificity, regardless of load order) reliably keeps it hidden until JS
   opens it. Moving those to classes here breaks both features. */

/* ---- Hero: mobile fallback (below 991px) ---- */
.vs-hero-mobile { display: none; }
@media (max-width: 991px) {
    .vs-hero-wrapper .vs-hero-carousel { display: none !important; }
    .vs-hero-mobile {
        display: flex;
        align-items: center;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 100px 0 60px;
        text-align: center;
        box-sizing: border-box;
    }
}
.vs-hero-mobile .vs-hero-mobile-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.vs-hero-mobile .sec-subtitle {
    display: block;
    margin-bottom: 14px;
    font-size: 17px;
    color: #121f38;
    font-family: "DM Sans", sans-serif;
}
.vs-hero-mobile h1 {
    font-family: "Marcellus", serif;
    font-size: clamp(32px, 8.5vw, 48px);
    line-height: 1.25;
    color: #121f38;
    margin: 0 0 20px;
}
.vs-hero-mobile p {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
    margin: 0 0 32px;
}
.vs-hero-mobile .vs-hero-mobile-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 0;
}
@media (max-width: 480px) {
    .vs-hero-mobile { padding: 90px 0 50px; }
    .vs-hero-mobile .vs-hero-mobile-btns { gap: 14px; }
}

/* ---- Mobile-only image slider below hero ---- */
.vs-hero-mobile-slider { display: none; }
@media (max-width: 991px) {
    .vs-hero-mobile-slider {
        display: block;
        padding: 0 0 60px;
    }
    .vs-hero-mobile-slider .container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}
.hero-mobile-slide {
    position: relative;
    /* max-width: 320px; */
    margin: 0 auto;
    aspect-ratio: 907 / 896;
}
.hero-mobile-slide-glow {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 58%;
    aspect-ratio: 1 / 1;
    background: var(--theme-color, #0E3719);
    opacity: 0.18;
    border-radius: 50%;
    filter: blur(18px);
    transform: translate(-50%, 15%);
    z-index: 0;
}
.hero-mobile-slide img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    display: block;
    margin: 0 auto;
}
.hero-mobile-slide-caption {
    position: relative;
    z-index: 1;
    max-width: 280px;
    margin: 14px auto 0;
    text-align: center;
    font-family: "Marcellus", serif;
    font-size: 19px;
    color: #121f38;
}
.hero-mobile-slide-caption:before {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin: 0 auto 12px;
    border-radius: 2px;
    background: var(--theme-color, #0E3719);
}
.hero-mobile-carousel {
    position: relative;
}
.vs-hero-mobile-slider.arrow-wrap .slick-arrow {
    --icon-size: 42px;
    --icon-font-size: 15px;
    --pos-x: 4px;
    background-color: var(--white-color);
    color: var(--theme-color);
    box-shadow: 0 6px 18px rgba(18, 31, 56, 0.18);
    opacity: 1;
    visibility: visible;
}
.vs-hero-mobile-slider.arrow-wrap .slick-arrow:hover {
    background-color: var(--theme-color);
    color: var(--white-color);
}
@media (max-width: 480px) {
    .vs-hero-mobile-slider { padding-bottom: 40px; }
}

/* ---- Trust bar ---- */
.trust-bar-section {
    background: linear-gradient(90deg, var(--theme-color), var(--theme-color-dark));
    padding: 34px 0;
}
.trust-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
}
.trust-item {
    flex: 1 1 220px; display: flex; align-items: center; justify-content: center;
    gap: 16px; padding: 12px 24px; position: relative; text-align: left;
}
.trust-item + .trust-item:before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 34px; background: rgba(255, 255, 255, 0.25);
}
.trust-icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%; background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.55); color: var(--white-color); font-size: 20px;
    transition: all ease 0.3s;
}
.trust-item:hover .trust-icon { background: var(--white-color); color: var(--theme-color); transform: scale(1.08); }
.trust-text { font-family: var(--body-font); font-weight: 600; font-size: 15px; color: var(--white-color); line-height: 1.4; }
@media (max-width: 991px) {
    .trust-bar-section { position: relative; z-index: 2; }
    .trust-item { flex: 1 1 45%; }
    .trust-item:nth-child(odd):before { display: none; }
}
@media (max-width: 767px) {
    .trust-item {
        flex: 1 1 100%; justify-content: center; text-align: center;
        flex-direction: column; gap: 10px; padding: 16px;
    }
    .trust-item:before { display: none !important; }
    .trust-item:not(:last-child) { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
}

/* ---- Popular services cards ---- */
.popular-service-card {
    display: block; background: var(--white-color); border-radius: 18px; overflow: hidden;
    box-shadow: 0 15px 40px rgba(18, 31, 56, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.popular-service-card:hover { transform: translateY(-8px); box-shadow: 0 25px 55px rgba(18, 31, 56, 0.16); }
.popular-service-img { width: 100%; aspect-ratio: 4 / 3.3; overflow: hidden; }
.popular-service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.popular-service-card:hover .popular-service-img img { transform: scale(1.08); }
.popular-service-content { padding: 28px 26px 32px; text-align: center; }
.popular-service-title { font-size: 22px; margin-bottom: 10px; transition: color 0.3s ease; }
.popular-service-card:hover .popular-service-title { color: var(--theme-color); }
.popular-service-text { color: #6f6c6c; font-size: 14.5px; line-height: 1.7; margin-bottom: 0; }

/* ---- Pillar (Learn/Get Pampered) section ---- */
.pillar-section {
    position: relative; background-size: cover; background-position: center; background-repeat: no-repeat;
}
.pillar-section-overlay {
    position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 12, 20, 0.88), rgba(18, 12, 20, 0.82)); z-index: 0;
}
.pillar-section > .container { position: relative; z-index: 1; }
.pillar-section .sec-subtitle { color: var(--theme-color); }
.pillar-section .sec-title { color: var(--white-color); }
.pillar-row { position: relative; }
.pillar-card {
    position: relative; overflow: hidden; width: 100%;
    background: var(--white-color); border-radius: 20px;
    box-shadow: 0 15px 40px rgba(18, 31, 56, 0.08); padding: 54px 40px 44px; text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pillar-card:before {
    content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px;
    background: var(--theme-color); transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.pillar-card:hover:before { transform: scaleX(1); }
.pillar-card:hover { transform: translateY(-8px); box-shadow: 0 25px 55px rgba(18, 31, 56, 0.16); }
.pillar-index {
    position: absolute; top: 6px; right: 22px; font-family: var(--title-font);
    font-size: 70px; line-height: 1; color: var(--theme-color); opacity: 0.08;
    transition: opacity 0.35s ease;
}
.pillar-card:hover .pillar-index { opacity: 0.15; }
.pillar-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px;
    border-radius: 50%; background: transparent; border: 2px solid var(--theme-color);
    color: var(--theme-color); font-size: 32px; margin-bottom: 24px; position: relative; z-index: 1;
    transition: all ease 0.35s;
}
.pillar-card:hover .pillar-icon { background: var(--theme-color); color: var(--white-color); transform: rotate(-8deg); }
.pillar-title { position: relative; z-index: 1; font-size: 26px; margin-bottom: 16px; }
.pillar-rule {
    display: inline-block; width: 42px; height: 3px; margin: 0 0 20px; border-radius: 2px;
    background: var(--theme-color); opacity: 0.35;
}
.pillar-text { position: relative; z-index: 1; color: #6f6c6c; font-size: 15px; line-height: 1.8; margin-bottom: 28px; }
.pillar-cta {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 14px;
    font-family: var(--body-font); font-weight: 700; font-size: 13.5px; color: var(--title-color);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.pillar-cta-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; background: var(--theme-color); color: var(--white-color); font-size: 13px;
    transition: all ease 0.3s;
}
.pillar-cta:hover .pillar-cta-icon { transform: translateX(5px); }
.pillar-or {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
    width: 60px; height: 60px; border-radius: 50%; background: var(--white-color);
    border: 2px solid var(--smoke-color); box-shadow: 0 10px 25px rgba(18, 31, 56, 0.1);
    align-items: center; justify-content: center; font-family: var(--title-font); font-style: italic;
    font-size: 17px; color: var(--theme-color);
}
.pillar-or-mobile { text-align: center; margin-top: 20px; margin-bottom: -28px; }
.pillar-or-mobile span {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 50%; background: var(--white-color); border: 2px solid var(--smoke-color);
    font-family: var(--title-font); font-style: italic; font-size: 15px; color: var(--theme-color);
    box-shadow: 0 8px 20px rgba(18, 31, 56, 0.1);
}

/* ---- Hero CTA button pair — size, alignment, hover consistency ---- */

/* Reliable icon-text vertical centering within each button */
.vs-hero-wrapper .vs-btn.style9 {
    display: inline-flex;
    align-items: center;
}

/* Smooth icon colour transition for both buttons */
.vs-hero-wrapper .vs-btn.style9 i {
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Dark button icon on hover: match the light button's hover icon state
   (theme-colour fill covers the button; icon bg should blend in, not pop as a white box) */
.vs-hero-wrapper .vs-btn.style9.dark:hover i {
    background-color: var(--theme-color);
    color: var(--white-color);
}

/* Mobile button row: vertically centre the two buttons on the cross-axis */
.vs-hero-mobile .vs-hero-mobile-btns {
    align-items: center;
}

/* ---- Testimonials ---- */
.testi-bg-lightgreen {
    background-color: var(--secondary-color);
}
.testi-bg-lightgreen .testi-style2 {
    background-color: var(--white-color);
}
