/* =========================================
   HOME PAGE - NEW DESIGN
========================================= */

.section-space {
    padding-block: 105px;
}

.hero-section {
    position: relative;
    min-height: 650px;
    padding: 75px 0 95px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 12% 12%, rgba(43,141,131,.11), transparent 35%),
        linear-gradient(120deg, #f8f7f0 0%, #f2f5ed 55%, #eaf2ec 100%);
}

.hero-background-shape {
    position: absolute;
    border: 1px solid rgba(23,100,94,.1);
    border-radius: 50%;
    pointer-events: none;
}

.hero-shape-one {
    width: 500px;
    height: 500px;
    top: -290px;
    right: -120px;
}

.hero-shape-two {
    width: 650px;
    height: 650px;
    bottom: -500px;
    left: -180px;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    align-items: center;
    gap: 55px;
}

.hero-content {
    padding: 15px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: #317c72;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(23,100,94,.12);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38a99b;
    box-shadow: 0 0 0 4px rgba(56,169,155,.13);
}

.hero-content h1 {
    margin: 27px 0 20px;
    color: #173b37;
    font-size: clamp(38px, 4.2vw, 60px);
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: -2px;
}

.hero-content h1 span,
.hero-content h1 strong {
    display: block;
}

.hero-content h1 span {
    color: #64847b;
    font-weight: 500;
}

.hero-content h1 strong {
    color: #19736a;
    font-weight: 900;
}

.hero-description {
    max-width: 490px;
    margin: 0;
    color: #6e7d77;
    font-size: 14px;
    line-height: 2.3;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    margin-top: 31px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 21px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, #25877d, #14534e);
    box-shadow: 0 10px 22px rgba(23,100,94,.18);
}

.button-primary:hover {
    box-shadow: 0 14px 28px rgba(23,100,94,.26);
}

.button-outline {
    color: #315c55;
    background: rgba(255,255,255,.6);
    border: 1px solid #d6e3dc;
}

.button-light {
    color: #16433e;
    background: #fff;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 43px;
    color: #8a9991;
    font-size: 10px;
}

.trust-line {
    width: 34px;
    height: 1px;
    background: #9bb6aa;
}

/* 3D SLIDER */

.hero-visual {
    min-width: 0;
    padding: 12px 0 0;
}

.slider-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    margin-bottom: 18px;
    color: #5d746c;
    font-size: 11px;
    font-weight: 700;
}

.slider-counter {
    color: #9aaba3;
    font-size: 10px;
    letter-spacing: 2px;
    direction: ltr;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: clamp(285px, 32vw, 390px);
    perspective: 1200px;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
}

.carousel-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.hero-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,1);
    border-radius: 19px;
    background: #dce6df;
    box-shadow: 0 18px 42px rgba(18,55,49,.19);
    transform-style: preserve-3d;
    transition:
        transform .72s cubic-bezier(.2,.75,.25,1),
        opacity .6s ease,
        filter .6s ease,
        box-shadow .6s ease;
    will-change: transform;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(9,31,28,.78), transparent 58%);
    pointer-events: none;
}

.slide-overlay {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 18px 20px;
    color: white;
}

.slide-overlay > span {
    align-self: end;
    color: rgba(255,255,255,.7);
    font-size: 12px;
    direction: ltr;
}

.slide-overlay small {
    display: block;
    color: rgba(255,255,255,.75);
    font-size: 9px;
}

.slide-overlay h3 {
    margin: 2px 0 0;
    color: white;
    font-size: 16px;
    font-weight: 800;
}

.hero-slide.is-active {
    z-index: 5;
    opacity: 1;
    filter: none;
    box-shadow: 0 24px 55px rgba(18,55,49,.28);
    transform: translate(-50%, -50%) translateZ(75px) scale(1);
}

.hero-slide.is-prev {
    z-index: 4;
    opacity: .82;
    filter: saturate(.75);
    transform: translate(calc(-50% - 47%), -50%) rotateY(-25deg) scale(.77);
}

.hero-slide.is-next {
    z-index: 4;
    opacity: .82;
    filter: saturate(.75);
    transform: translate(calc(-50% + 47%), -50%) rotateY(25deg) scale(.77);
}

.hero-slide.is-far {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.5);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 8px 0;
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.slider-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #b8c9c1;
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}

.slider-dot.active {
    width: 24px;
    background: #247c72;
}

.slider-arrows {
    display: flex;
    gap: 8px;
}

.slider-arrows button {
    width: 37px;
    height: 37px;
    border: 1px solid #d5e1da;
    border-radius: 11px;
    color: #286a61;
    background: rgba(255,255,255,.75);
    font-size: 18px;
    cursor: pointer;
    transition: color .2s, background .2s, transform .2s;
}

.slider-arrows button:hover {
    color: white;
    background: #1d7067;
    transform: translateY(-2px);
}

.hero-bottom-note {
    position: absolute;
    z-index: 2;
    bottom: 23px;
    left: max(32px, calc((100% - 1180px) / 2));
    display: flex;
    align-items: center;
    gap: 9px;
    color: #93a39a;
    font-size: 10px;
}

.hero-bottom-note span {
    width: 24px;
    height: 1px;
    background: #9db5a8;
}

/* SECTION HEADINGS */

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
}

.section-kicker {
    display: block;
    margin-bottom: 8px;
    color: #368b7f;
    font-size: 11px;
    font-weight: 700;
}

.section-heading h2 {
    margin: 0;
    color: #183b36;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.5;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 5px;
    color: #347d72;
    border-bottom: 1px solid #c6ddd3;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* SERVICES */

.services-section {
    background: #fffefa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}

.service-card {
    position: relative;
    min-height: 240px;
    padding: 25px 22px;
    overflow: hidden;
    background: #f8f8f1;
    border: 1px solid #ebeee6;
    border-radius: 18px;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    background: #f0f6ef;
    box-shadow: var(--shadow);
}

.service-number {
    color: #a2b5a9;
    font-size: 10px;
    letter-spacing: 1px;
}

.service-symbol {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin: 23px 0 15px;
    color: #24786e;
    background: #e2f0e9;
    border-radius: 16px;
    font-size: 25px;
}

.service-card h3 {
    margin: 0 0 7px;
    color: #24463f;
    font-size: 15px;
    font-weight: 800;
}

.service-card p {
    margin: 0;
    color: #84918a;
    font-size: 10px;
    line-height: 2.1;
}

.service-arrow {
    position: absolute;
    left: 20px;
    bottom: 17px;
    color: #6a9a8c;
    font-size: 18px;
    opacity: 0;
    transform: translate(5px, -5px);
    transition: .25s ease;
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* ABOUT PREVIEW */

.about-preview-section {
    background: #f3f4ed;
}

.about-preview {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 85px;
}

.about-decoration {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(58,145,127,.25), transparent 48%),
        #173d38;
    border-radius: 25px;
}

.about-decoration::before,
.about-decoration::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
}

.about-decoration::after {
    width: 330px;
    height: 330px;
}

.about-monogram {
    position: relative;
    z-index: 1;
    color: #f3f0e4;
    font-size: 150px;
    font-weight: 900;
    line-height: 1;
}

.about-monogram span {
    color: #8fc9ae;
}

.about-caption {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    color: #9dc1b3;
    font-size: 8px;
    letter-spacing: 2px;
    direction: ltr;
}

.about-preview-content h2 {
    margin: 0 0 20px;
    color: #173b36;
    font-size: clamp(25px, 3vw, 37px);
    line-height: 1.8;
}

.about-preview-content h2 span {
    color: #328477;
}

.about-preview-content p {
    max-width: 530px;
    margin: 0 0 27px;
    color: #74827b;
    font-size: 13px;
    line-height: 2.5;
}

/* PORTFOLIO */

.portfolio-preview-section {
    background: #fffefa;
}

.portfolio-intro {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 35px 42px;
    background: #f3f5ee;
    border: 1px solid #e9eee5;
    border-radius: 23px;
}

.portfolio-intro p {
    max-width: 550px;
    margin: 0;
    color: #75847c;
    font-size: 14px;
    line-height: 2.4;
}

.portfolio-cta {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 13px 18px;
    color: white;
    background: #1b635b;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* CONTACT BANNER */

.contact-banner-section {
    padding: 0 0 30px;
}

.contact-banner {
    position: relative;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 50px;
    overflow: hidden;
    color: white;
    background: linear-gradient(115deg, #153d38, #1c7166);
    border-radius: 24px;
}

.contact-banner > div:first-child {
    position: relative;
    z-index: 2;
}

.contact-banner > div:first-child > span {
    color: #a6d3c4;
    font-size: 11px;
}

.contact-banner h2 {
    margin: 8px 0 0;
    font-size: clamp(22px, 3vw, 31px);
    font-weight: 800;
    line-height: 1.7;
}

.contact-banner .button {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.contact-banner-decoration {
    position: absolute;
    left: 30%;
    top: -115px;
    color: rgba(255,255,255,.055);
    font-size: 350px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

/* TABLET */

@media (max-width: 1000px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-content h1 {
        font-size: clamp(37px, 6vw, 54px);
    }

    .hero-description {
        max-width: 600px;
    }

    .hero-visual {
        width: 100%;
        max-width: 760px;
        margin: auto;
    }

    .hero-carousel {
        height: clamp(290px, 48vw, 410px);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-preview {
        gap: 40px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .section-space {
        padding-block: 65px;
    }

    .hero-section {
        min-height: auto;
        padding: 12px 0 75px;
    }

    .hero-container {
        gap: 12px;
    }

    .hero-content {
        padding: 0;
    }

    .eyebrow {
        margin-top: 0;
        font-size: 9px;
        padding: 7px 11px;
    }

    .hero-content h1 {
        margin: 20px 0 13px;
        font-size: clamp(34px, 9vw, 43px);
        line-height: 1.55;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 12px;
        line-height: 2.2;
    }

    .hero-actions {
        gap: 9px;
        margin-top: 22px;
    }

    .button {
        min-height: 44px;
        gap: 12px;
        padding-inline: 14px;
        font-size: 10px;
    }

    .hero-trust {
        margin-top: 23px;
        font-size: 9px;
    }

    .hero-visual {
        width: calc(100% + 18px);
        margin-right: -9px;
    }

    .slider-heading {
        padding-inline: 12px;
        margin-bottom: 12px;
    }

    .hero-carousel {
        height: clamp(220px, 65vw, 285px);
        perspective: 850px;
    }

    .hero-slide {
        width: 76%;
        border-width: 3px;
        border-radius: 14px;
    }

    .hero-slide.is-active {
        transform: translate(-50%, -50%) translateZ(35px) scale(1);
    }

    .hero-slide.is-prev {
        transform: translate(calc(-50% - 42%), -50%) rotateY(-27deg) scale(.72);
    }

    .hero-slide.is-next {
        transform: translate(calc(-50% + 42%), -50%) rotateY(27deg) scale(.72);
    }

    .slide-overlay {
        padding: 11px 12px;
    }

    .slide-overlay h3 {
        font-size: 11px;
    }

    .slide-overlay small {
        font-size: 8px;
    }

    .slide-overlay > span {
        font-size: 9px;
    }

    .slider-controls {
        padding-top: 13px;
    }

    .slider-arrows button {
        width: 33px;
        height: 33px;
    }

    .hero-bottom-note {
        bottom: 23px;
        left: 18px;
        font-size: 8px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 13px;
        margin-bottom: 23px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .service-card {
        min-height: 210px;
        padding: 17px 14px;
        border-radius: 15px;
    }

    .service-symbol {
        width: 43px;
        height: 43px;
        margin: 17px 0 11px;
        font-size: 21px;
        border-radius: 13px;
    }

    .service-card h3 {
        font-size: 12px;
    }

    .service-card p {
        font-size: 9px;
        line-height: 1.9;
    }

    .service-arrow {
        opacity: 1;
        left: 12px;
        bottom: 10px;
        font-size: 14px;
    }

    .about-preview {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-decoration {
        min-height: 230px;
        border-radius: 19px;
    }

    .about-monogram {
        font-size: 105px;
    }

    .about-caption {
        font-size: 7px;
    }

    .about-preview-content h2 {
        font-size: 24px;
        line-height: 1.9;
    }

    .about-preview-content p {
        font-size: 11px;
        line-height: 2.3;
    }

    .portfolio-intro {
        min-height: auto;
        flex-direction: column;
        align-items: start;
        padding: 25px 20px;
        gap: 20px;
        border-radius: 18px;
    }

    .portfolio-intro p {
        font-size: 11px;
    }

    .contact-banner {
        min-height: 230px;
        align-items: start;
        flex-direction: column;
        justify-content: center;
        padding: 28px 22px;
        gap: 18px;
        border-radius: 19px;
    }

    .contact-banner h2 {
        font-size: 22px;
    }

    .contact-banner-decoration {
        left: 4%;
        top: -55px;
        font-size: 230px;
    }

    .contact-banner .button {
        min-height: 42px;
    }
}

@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-carousel {
        height: 215px;
    }

    .services-grid {
        gap: 8px;
    }

    .service-card {
        padding-inline: 11px;
    }
}

/* MOBILE CAROUSEL - PREVENT SLIDE OVERLAP */
@media (max-width: 600px) {

    .carousel-stage {
        isolation: isolate;
    }

    .hero-slide {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .hero-slide.is-active {
        z-index: 20 !important;
        overflow: hidden;
        transform: translate(-50%, -50%) translateZ(45px) scale(1);
    }

    .hero-slide.is-prev {
        z-index: 2 !important;
        transform:
            translate(calc(-50% - 68%), -50%)
            rotateY(-25deg)
            scale(.68);
    }

    .hero-slide.is-next {
        z-index: 2 !important;
        transform:
            translate(calc(-50% + 68%), -50%)
            rotateY(25deg)
            scale(.68);
    }

    .hero-slide.is-far {
        z-index: 0 !important;
        opacity: 0;
        pointer-events: none;
    }
}


/* MOBILE SLIDER - FRONT LANDSCAPE, REAR PORTRAIT */
@media (max-width: 600px) {

    .hero-carousel {
        isolation: isolate;
    }

    .carousel-stage {
        isolation: isolate;
        transform-style: flat !important;
    }

    .hero-slide {
        transform-style: flat !important;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transition:
            transform .72s cubic-bezier(.2,.75,.25,1),
            width .72s ease,
            height .72s ease,
            opacity .6s ease,
            box-shadow .6s ease;
    }

    .hero-slide img {
        object-fit: cover !important;
        object-position: center;
    }

    .hero-slide.is-active {
        z-index: 30 !important;
        width: 82% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        opacity: 1 !important;
        overflow: hidden;
        transform: translate(-50%, -50%) scale(1) !important;
        box-shadow: 0 18px 42px rgba(18,55,49,.3) !important;
    }

    .hero-slide.is-prev,
    .hero-slide.is-next {
        z-index: 1 !important;
        width: 22% !important;
        height: 72% !important;
        aspect-ratio: auto !important;
        opacity: .55 !important;
        overflow: hidden;
        border: 3px solid #fff !important;
        border-radius: 14px;
        box-shadow: 0 10px 25px rgba(18,55,49,.25) !important;
    }

    .hero-slide.is-prev {
        left: 13% !important;
        transform: translate(-50%, -50%) !important;
    }

    .hero-slide.is-next {
        left: 87% !important;
        transform: translate(-50%, -50%) !important;
    }

    .hero-slide.is-prev .slide-overlay,
    .hero-slide.is-next .slide-overlay {
        display: none;
    }

    .hero-slide.is-far {
        z-index: 0 !important;
        opacity: 0 !important;
        pointer-events: none;
    }
}
