/*-----------------------------------------------------------------------------------
    Selberry - Home Page Styles
    Loaded only on the home page (resources/views/welcome.blade.php), after main.css.
    Colours follow the Selberry logo gradient: #63A04A (leaf) > #2E7D44 (mid) > #076342 (deep).
-----------------------------------------------------------------------------------*/

:root {
    --theme: #2E7D44;
    --theme-2: #076342;
    --theme-2dark: #0A4A32;
    --theme-3: #B8DC8E;
    --header: #0B3A28;
    --text-3: #0B3A28;
    --sb-leaf: #63A04A;
    --sb-tint: #F1F7EC;
    --sb-dark: #0E1F17;
    --sb-star: #F5B300;
}

/* The transparent header over the hero is in header.css (all pages since 2026-10-21) */

/* Round "About Us" button */
.sb-home .sb-circle-btn {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 1px solid rgb(0 0 0 / 45%);
    color: var(--header);
    font-weight: 500;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    transition: all 0.4s ease-in-out;
}
.sb-home .sb-circle-btn:hover {
    background: var(--sb-grad);
    border-color: #0B3A28;
    color: var(--white);
}

/*---------------- Full-screen hero slider ----------------*/
.sb-home .sb-hero {
    margin: 0;
    border-radius: 0;
}
.sb-home .sb-hero .hero-2 {
    height: 100vh;
    /* min-height: 640px; */
    padding: 0;
    display: flex;
    align-items: center;
}
.sb-home .sb-hero .hero-2 .container {
    width: 100%;
}
.sb-home .sb-hero .hero-2::before {
    border-radius: 0;
    background: linear-gradient(90deg, rgb(0 0 0 / 88%) 0%, rgb(0 0 0 / 60%) 45%, rgba(4, 24, 16, 0.1) 80%);
}
/* Hero slide change (Aleric portfolio-horizontal style): slides move right to left with a parallax offset on the picture and the text; no zoom */
.sb-home .sb-hero .swiper-wrapper {
    will-change: transform;
}
.sb-home .sb-hero .swiper-slide {
    overflow: hidden;
    backface-visibility: hidden;
}
.sb-home .sb-hero .hero-2 .hero-bg {
    transition: none;
}
.sb-home .sb-hero .swiper-slide.swiper-slide-active .hero-bg {
    transform: scale(1);
}
.sb-home .sb-hero .hero-2 .hero-bg {
    background-color: var(--theme-2);
}
.sb-home .sb-hero .hero-content {
    text-align: left;
    padding-top: 90px;
}
.sb-home .sb-hero .hero-content h4 {
    color: var(--theme-3);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.sb-home .sb-hero .hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    line-height: 1.7;
    max-width: 560px;
}
@media (max-width: 1399px) {
    .sb-home .sb-hero .hero-content h4 {
        font-size: 12px;
        font-weight: 500;
    }
    .sb-home .sb-hero .hero-content p {
        font-size: 15px;
    }
}
.sb-home .sb-hero .hero-content .hero-button {
    margin-top: 35px;
}

.sb-home .sb-hero .arrow-button .array-prev,
.sb-home .sb-hero .arrow-button .array-next {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sb-home .sb-hero .arrow-button .array-prev {
    left: 30px;
}
.sb-home .sb-hero .arrow-button .array-next {
    right: 30px;
}
.sb-home .sb-hero .arrow-button .array-prev:hover,
.sb-home .sb-hero .arrow-button .array-next:hover {
    background: var(--sb-grad-light);
    border-color: var(--theme-3);
    color: var(--header);
}
@media (min-width: 992px) and (max-width: 1399px) {
    .sb-home .sb-hero .arrow-button {
        display: block;
    }
}
.sb-home .sb-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    gap: 10px;
    width: auto !important;
}
.sb-home .sb-hero-dots .swiper-pagination-bullet {
    width: 34px;
    height: 3px;
    border-radius: 0;
    background: var(--white);
    opacity: 0.5;
    margin: 0;
    transition: all 0.4s ease-in-out;
}
.sb-home .sb-hero-dots .swiper-pagination-bullet-active {
    width: 64px;
    background: var(--sb-grad-light);
    opacity: 1;
}
@media (max-width: 767px) {
    .sb-home .sb-hero .hero-2 {
        height: 50vh;
        /* min-height: 560px; */
    }
    .sb-home .sb-hero .hero-content {
        padding-top: 40px;
    }
    .sb-home .sb-hero .hero-2::before {
        background: rgba(4, 24, 16, 0.62);
    }
    .sb-home .sb-hero .hero-content p {
        font-size: 14px;
    }
    .sb-home .sb-hero .hero-content .hero-button {
        display: none;
    }
}

/*---------------- About (dark) ----------------*/
.sb-home .sb-about {
    background-color: #F4F5EC;
}
.sb-home .sb-about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
}
.sb-home .sb-about-image-2 img {
    height: 460px;
}
@media (min-width: 992px) {
    .sb-home .sb-about-image-2 {
        transform: translateY(60px);
    }
}
.sb-home .sb-about-text {
    padding: 0 10px;
}
.sb-home .sb-about-text p {
    line-height: 1.8;
}
.sb-home .sb-about-text p + p {
    margin-top: 15px;
}

/*---------------- Why choose us (circle hub) ----------------*/

.sb-home .sb-why-intro p {
    line-height: 1.8;
    margin-bottom: 25px;
}
.sb-home .sb-why-hub {
    display: grid;
    grid-template-columns: 1fr 420px 1fr;
    gap: 60px;
    align-items: stretch;
}
.sb-home .sb-why-col {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 40px;
}
.sb-home .sb-why-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}
.sb-home .sb-why-col-left .sb-why-item {
    flex-direction: row-reverse;
    text-align: right;
}
.sb-home .sb-why-item .icon {
    flex: none;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sb-leaf) 0%, var(--theme) 50%, var(--theme-2) 100%);
    color: var(--white);
    font-size: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 7px var(--sb-tint);
    transition: transform 0.5s ease-in-out;
}
.sb-home .sb-why-item:hover .icon {
    transform: rotateY(180deg);
}
.sb-home .sb-why-item .num {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--sb-leaf);
}
.sb-home .sb-why-item h4 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--header);
}
@media (max-width: 1399px) {
    .sb-home .sb-why-item h4 {
        font-size: 20px;
    }
}
.sb-home .sb-why-item p {
    font-size: 15px;
    margin: 0;
    line-height: 1.7;
}
.sb-home .sb-why-center {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sb-home .sb-why-circle {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 10px solid var(--theme-3);
    background-size: cover;
    background-position: center;
}
.sb-home .sb-why-circle::before {
    content: "";
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    border: 2px dashed var(--sb-leaf);
    animation: sb-why-spin 50s linear infinite;
}
.sb-home .sb-why-badge {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 10px 22px;
    border-radius: 40px;
    background: var(--white);
    color: var(--header);
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(7, 99, 66, 0.2);
}
.sb-home .sb-why-badge i {
    color: var(--sb-leaf);
    margin-right: 6px;
}
@keyframes sb-why-spin {
    to {
        transform: rotate(360deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    .sb-home .sb-why-circle::before {
        animation: none;
    }
}
@media (max-width: 1399px) {
    .sb-home .sb-why-hub {
        grid-template-columns: 1fr 360px 1fr;
        gap: 50px;
    }
}
@media (max-width: 1199px) {
    .sb-home .sb-why-hub {
        grid-template-columns: 1fr 300px 1fr;
        gap: 40px;
    }
    .sb-home .sb-why-item {
        gap: 16px;
    }
    .sb-home .sb-why-item .icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    .sb-home .sb-why-item h4 {
        font-size: 20px;
    }
    .sb-home .sb-why-item p {
        font-size: 15px;
    }
}
@media (max-width: 991px) {
    .sb-home .sb-why-head {
        margin-bottom: 50px;
    }
    .sb-home .sb-why-hub {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }
    .sb-home .sb-why-center {
        grid-column: 1 / -1;
        order: -1;
        width: 320px;
        max-width: 100%;
        margin: 0 auto 20px;
    }
    .sb-home .sb-why-col {
        display: contents;
    }
    .sb-home .sb-why-item,
    .sb-home .sb-why-col-left .sb-why-item {
        flex-direction: row;
        text-align: left;
        display: block;
    }
    .sb-home .sb-why-item .icon {
        margin-bottom: 20px;
    }
    .sb-home .sb-why-item .num {
        display: none;
    }
}
@media (max-width: 575px) {
    .sb-home .sb-why-hub {
        grid-template-columns: 1fr;
    }
    .sb-home .sb-why-center {
        width: 260px;
    }
}

/*---------------- Collection (dark editorial grid) ----------------*/
.sb-home .sb-collection {
    background: var(--sb-grad);
}
.sb-home .sb-collection-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 70px;
}
.sb-home .sb-collection-head h2 {
    color: var(--white);
    font-size: 110px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 30px;
}
@media (max-width: 1399px) {
    .sb-home .sb-collection-head h2 {
        font-size: 90px;
    }
}
.sb-home .sb-collection-head h2 .line {
    display: inline-block;
    width: 140px;
    height: 3px;
    background-color: var(--white);
}
.sb-home .sb-collection-head p {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.7;
}
.sb-home .sb-collection-row + .sb-collection-row {
    margin-top: 70px;
}
.sb-home .sb-col-item {
    display: block;
}
.sb-home .sb-col-img img {
    border-radius: 16px;
    transition: filter 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.sb-home .sb-col-img-lg {
    height: 400px;
}
.sb-home .sb-col-img-sm {
    height: 280px;
}
.sb-home .sb-col-img-full {
    height: 500px;
}
.sb-home .sb-col-item:hover .sb-col-img img {
    filter: brightness(1.1);
    transform: translateY(-6px);
}
.sb-home .sb-col-item h3 {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 22px 0 12px;
    transition: color 0.4s ease-in-out;
}
.sb-home .sb-col-item:hover h3 {
    color: var(--theme-3);
}
.sb-home .sb-col-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sb-home .sb-col-tags li {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 4px 14px;
    font-size: 12px;
    color: var(--white);
}
.sb-home .sb-col-cta p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 25px;
}
.sb-home .sb-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    background: var(--sb-grad-light);
    color: var(--header);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s ease-in-out;
}
.sb-home .sb-pill-btn:hover {
    background: var(--white);
    color: var(--header);
}
@media (min-width: 992px) {
    .sb-home .sb-col-item-down {
        margin-top: 80px;
    }
}
@media (max-width: 1199px) {
    .sb-home .sb-collection-head h2 {
        font-size: 80px;
    }
}
@media (max-width: 991px) {
    .sb-home .sb-collection-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .sb-home .sb-collection-row + .sb-collection-row,
    .sb-home .sb-collection-row > div + div {
        margin-top: 50px;
    }
    .sb-home .sb-col-img-lg,
    .sb-home .sb-col-img-sm,
    .sb-home .sb-col-img-full {
        height: 300px;
    }
}
@media (max-width: 575px) {
    /* the big COLLECTION word must fit small phones (it was 406px wide on a 288px screen) */
    .sb-home .sb-collection-head h2 {
        font-size: clamp(30px, 10vw, 52px);
        gap: 16px;
    }
    .sb-home .sb-collection-head h2 .line {
        width: clamp(24px, 8vw, 60px);
    }
    .sb-home .sb-col-img-lg,
    .sb-home .sb-col-img-sm,
    .sb-home .sb-col-img-full {
        height: 240px;
    }
}

/*---------------- Video with popup button ----------------*/
.sb-home .sb-video-section .container-fluid {
    padding: 0 15px;
}
.sb-home .sb-video-box {
    position: relative;
    height: 720px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sb-grad);
}
@media only screen and (max-width: 1366px) {
    .sb-home .sb-video-box {
        height: 520px;
    }
}
.sb-home .sb-video-box .sb-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sb-home .sb-video-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(4, 24, 16, 0.55);
}
.sb-home .sb-video-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 0 20px;
    text-align: center;
}
.sb-home .sb-video-content span {
    color: var(--theme-3);
    font-weight: 500;
}
.sb-home .sb-video-content span i {
    margin-right: 6px;
}
.sb-home .sb-video-content h2 {
    color: var(--white);
    font-size: 96px;
    line-height: 1;
    margin: 20px 0 25px;
}
@media only screen and (max-width: 1366px) {
    .sb-home .sb-video-content h2 {
        font-size: 60px;
    }
}
.sb-home .sb-video-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 1.8;
}
.sb-home .sb-play-btn {
    position: relative;
    width: 96px;
    height: 96px;
    margin-top: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(4.4499998093px);
    color: #fff;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease-in-out;
}
.sb-home .sb-play-btn::before,
.sb-home .sb-play-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    animation: sbPulse 2.4s linear infinite;
}
.sb-home .sb-play-btn::after {
    animation-delay: 1.2s;
}
.sb-home .sb-play-btn:hover {
    background: var(--sb-grad-light);
    color: var(--header);
}
@keyframes sbPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}
@media (max-width: 991px) {
    .sb-home .sb-video-box {
        height: 560px;
    }
    .sb-home .sb-video-content h2 {
        font-size: 56px;
    }
}

/*---------------- Process steps (theme feature-bg section) ----------------*/
.sb-home .feature-bg-item-style-2 .icon i {
    font-size: 60px;
    color: var(--header);
    display: inline-block;
    transition: all 0.4s ease-in-out;
}
.sb-home .feature-bg-item-style-2:hover .icon i {
    transform: scaleX(-1);
}

/*---------------- Testimonials (WhatsApp chat screenshots) ----------------*/
.sb-home .sb-testimonial {
    background-color: var(--sb-tint);
}
.sb-home .sb-testi-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}
.sb-home .sb-testi-left {
    max-width: 620px;
}
.sb-home .sb-testi-left p {
    margin: 20px 0 0;
    line-height: 1.8;
}
.sb-home .sb-testi-tools {
    display: flex;
    align-items: center;
    gap: 40px;
}
.sb-home .sb-testi-rating {
    display: flex;
    align-items: center;
    gap: 16px;
}
.sb-home .sb-testi-rating h3 {
    font-size: 56px;
    color: var(--theme);
}
.sb-home .sb-testi-rating span {
    font-size: 14px;
}
.sb-home .stars {
    color: var(--sb-star);
    display: flex;
    gap: 3px;
}
.sb-home .sb-slider-nav {
    display: flex;
    gap: 12px;
}
.sb-home .sb-slider-nav button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(11, 58, 40, 0.25);
    background: transparent;
    color: var(--header);
    font-size: 18px;
    transition: all 0.4s ease-in-out;
}
.sb-home .sb-slider-nav button:hover {
    background: var(--sb-grad);
    border-color: #0B3A28;
    color: var(--white);
}
.sb-home .sb-testi-slider {
    padding: 20px 0 30px;
}
.sb-home .sb-testi-slider .swiper-slide {
    height: auto;
}
.sb-home .sb-chat-shot {
    position: relative;
    display: block;
    transition: transform 0.4s ease-in-out;
}
.sb-home .sb-chat-shot:hover {
    transform: translateY(-8px);
}
.sb-home .sb-chat-shot img {
    display: block;
    width: 100%;
    height: auto;
    /* filter: drop-shadow(0 18px 28px rgba(6, 40, 27, 0.22)); */
}
.sb-home .sb-chat-shot .zoom {
    position: absolute;
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%) scale(0.8);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--sb-grad);
    color: var(--white);
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease-in-out;
}
.sb-home .sb-chat-shot:hover .zoom {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}
.sb-home .sb-testi-progress.swiper-pagination-progressbar {
    position: relative;
    height: 3px;
    margin-top: 10px;
    background: rgba(11, 58, 40, 0.1);
}
.sb-home .sb-testi-progress .swiper-pagination-progressbar-fill {
    background: var(--sb-grad);
}
@media (max-width: 991px) {
    .sb-home .sb-testi-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .sb-home .sb-chat-shot .zoom {
        opacity: 1;
        transform: translateX(-50%) scale(0.85);
        bottom: 10%;
    }
}
@media (max-width: 575px) {
    .sb-home .sb-testi-tools {
        gap: 24px;
        flex-wrap: wrap;
    }
    .sb-home .sb-testi-slider .swiper-slide {
        width: 300px;
    }
}

/*---------------- Blog ----------------*/
.sb-home .sb-blog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}
.sb-home .sb-blog-card {
    display: block;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 15px 40px rgba(6, 40, 27, 0.08);
}
.sb-home .sb-blog-img {
    position: relative;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.sb-home .sb-blog-card-lg .sb-blog-img {
    height: 340px;
}
.sb-home .sb-blog-img .tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 16px;
    border-radius: 30px;
    background: var(--sb-grad);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
}
.sb-home .sb-blog-body {
    padding: 30px;
}
.sb-home .sb-blog-body .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
}
.sb-home .sb-blog-body .meta i {
    color: var(--theme);
    margin-right: 6px;
}
.sb-home .sb-blog-body h3 {
    font-size: 26px;
    line-height: 1.35;
    margin: 12px 0;
    transition: color 0.4s ease-in-out;
    /* title: 2 lines, then "..." */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.sb-home .sb-blog-body p {
    line-height: 1.7;
    margin-bottom: 18px;
}
.sb-home .sb-blog-body p.excerpt {
    /* paragraph: 2 lines, then "..." */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.sb-home .sb-blog-body .read-more {
    color: var(--theme);
    font-weight: 600;
}
.sb-home .sb-blog-body .read-more i {
    margin-left: 8px;
    transition: margin 0.4s ease-in-out;
}
.sb-home .sb-blog-card:hover h3 {
    color: var(--theme);
}
.sb-home .sb-blog-card:hover .read-more i {
    margin-left: 14px;
}
.sb-home .sb-blog-list {
    height: 100%;
    display: grid;
    gap: 24px;
}
.sb-home .sb-blog-card-row {
    display: flex;
}
.sb-home .sb-blog-card-row .sb-blog-img {
    flex: 0 0 42%;
    min-height: 230px;
}
.sb-home .sb-blog-card-row .sb-blog-body {
    flex: 1;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sb-home .sb-blog-card-row .sb-blog-body h3 {
    font-size: 21px;
}
@media (max-width: 767px) {
    .sb-home .sb-blog-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .sb-home .sb-blog-card-row {
        flex-direction: column;
    }
    .sb-home .sb-blog-card-row .sb-blog-img {
        flex-basis: auto;
        height: 220px;
    }
    .sb-home .sb-blog-card-lg .sb-blog-img {
        height: 240px;
    }
}
