/*
==================================================
Hero
==================================================
*/


.hero__content {

    position: relative;

    max-width: 760px;

    z-index: 2;

}

.hero__eyebrow {

    display: inline-block;

    margin-bottom: 1rem;

    font-size: .9rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .12em;

}

.hero__title {

    margin-bottom: 2rem;

    line-height: .92;

    letter-spacing: -0.05em;

    text-wrap: balance;

    font-size:clamp(4rem,7vw,6.4rem);

}

.hero__text {

    max-width:34rem;

    font-size:1.15rem;

    line-height:1.8;

    color:#555;

}

.hero__actions {

    display: flex;

    flex-wrap: wrap;

    gap: 1rem;

    align-items: center;

    margin-top: 2rem;

}

/*
==================================================
Hero Layout
==================================================
*/

.hero__grid{

    display:grid;

    grid-template-columns:minmax(0,1fr) minmax(420px,.95fr);

    gap:3rem;

    align-items:center;

}

.hero__media {

    display: flex;

    justify-content: flex-end;

    align-items: center;

}

.hero__image {

    position: relative;

    width: 100%;

    overflow: hidden;

    margin: 0;

    isolation: isolate;

    border-radius: 22px;

    box-shadow: none;

    aspect-ratio: 3 / 4;

}

.hero__image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .6s ease;

}

.hero__image::before {

    content: "";

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,
            #ffffff 0%,
            rgba(255,255,255,.92) 20%,
            rgba(255,255,255,.55) 38%,
            rgba(255,255,255,0) 58%
        );

    pointer-events: none;

    z-index: 1;

}

/* Mobile */

@media (max-width: 768px) {

    .hero__grid {

        grid-template-columns: 1fr;

        gap: 1rem;

    }

    .hero__content {

        order: 1;

    }

    .hero__media {

        order: 2;

    }

    .hero__image {

        transform: none;

        max-width: 100%;

    }

}

/* Reference layout below Featured Work */
.home .services,
.home .why-us {
    padding: 5.5rem 0;
    background: #fff;
}

.home .why-us {
    padding-top: 1rem;
}

.home .services .section-heading,
.home .why-us .section-heading {
    margin-bottom: 3rem;
}

.home .services__grid,
.home .why-us__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
}

.home .service-card,
.home .why-card {
    min-width: 0;
    padding: .5rem 1.75rem 1.5rem;
    border: 0;
    border-right: 1px solid #e5e5e5;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home .service-card:last-child,
.home .why-card:last-child {
    border-right: 0;
}

.home .service-card__icon,
.home .why-card__icon {
    display: block;
    min-height: 2.5rem;
    margin-bottom: .85rem;
    color: #111;
    font-family: Georgia, serif;
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1;
}

.home .service-card h3,
.home .why-card h3 {
    margin: 0 0 .45rem;
    color: #111;
    font-family: "Lato", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.home .service-card p,
.home .why-card p {
    color: #222;
    font-family: "Lato", Arial, sans-serif;
    font-size: .82rem;
    line-height: 1.5;
}

.home .testimonials {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
    background: #111 url("../images/webp/front-page-testimonials.webp") center 52% / cover no-repeat;
}

.home .testimonials::before {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(0, 0, 0, .66);
}

.home .testimonials .container {
    position: relative;
}

.home .testimonials__grid {
    display: block;
    margin: 0;
}

.home .testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.home .testimonial-card__quote {
    display: block;
    margin-bottom: -.4rem;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 3rem;
    line-height: 1;
}

.home .testimonial-card__text {
    color: #fff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
    font-weight: 500;
    line-height: 1.12;
}

.home .testimonial-card__name {
    margin-top: 1rem;
    color: #d3ad63;
    font-family: "Lato", Arial, sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.home .testimonial-card__name span {
    display: block;
    margin-top: .25rem;
    color: #fff;
    font-size: .65rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.home .cta {
    padding: 1.75rem 0;
    background: #fff;
}

.home .cta__box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    text-align: left;
}

.home .cta__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid #111;
    border-radius: 7px;
    font-size: 1.5rem;
}

.home .cta__copy {
    flex: 1;
}

.home .cta__title {
    margin: 0 0 .15rem;
    color: #111;
    font-family: "Lato", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.home .cta__text {
    max-width: none;
    margin: 0;
    color: #333;
    font-family: "Lato", Arial, sans-serif;
    font-size: .85rem;
    line-height: 1.45;
}

.home .cta__buttons {
    display: block;
}

.home .cta .button {
    min-width: 130px;
    min-height: 42px;
    border-radius: 4px;
    font-size: .8rem;
}

body.home.dark-mode .services,
body.home.dark-mode .why-us,
body.home.dark-mode .cta {
    background: #121212;
}

body.home.dark-mode .service-card,
body.home.dark-mode .why-card {
    border-color: #363636;
}

body.home.dark-mode .service-card__icon,
body.home.dark-mode .why-card__icon,
body.home.dark-mode .service-card h3,
body.home.dark-mode .why-card h3,
body.home.dark-mode .service-card p,
body.home.dark-mode .why-card p,
body.home.dark-mode .cta__title,
body.home.dark-mode .cta__text {
    color: #f6f4ef;
}

body.home.dark-mode .cta__icon {
    color:#f6f4ef;
    border-color: #f6f4ef;
}

@media (max-width: 768px) {
    .home .services,
    .home .why-us {
        padding: 3.75rem 0;
    }

    .home .why-us {
        padding-top: 0;
    }

    .home .services__grid,
    .home .why-us__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 0;
    }

    .home .service-card,
    .home .why-card {
        padding: .25rem 1rem 1.25rem;
    }

    .home .service-card:nth-child(2),
    .home .why-card:nth-child(2) {
        border-right: 0;
    }

    .home .service-card:nth-child(-n + 2),
    .home .why-card:nth-child(-n + 2) {
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 1.5rem;
    }

    body.home.dark-mode .service-card:nth-child(-n + 2),
    body.home.dark-mode .why-card:nth-child(-n + 2) {
        border-color: #363636;
    }

    .home .testimonials {
        padding: 3.5rem 0;
    }

    .home .cta {
        padding: 1.25rem 0;
    }

    .home .cta__box {
        flex-wrap: wrap;
        gap: .8rem;
    }

    .home .cta__copy {
        flex-basis: calc(100% - 54px);
    }

    .home .cta .button {
        width: 100%;
        margin-top: .5rem;
    }

    .home .cta__icon{
        display:none;
    }
}

@media (hover: hover) {

    .hero__image:hover img {

        transform: scale(1.03);

    }

}

.hero{

    min-height:88vh;

    display:flex;

    align-items:center;

    padding:120px 0 60px;

}

/*
==================================================
Trust Section
==================================================
*/

.trust {

    padding: 1rem 0;

}

.trust__grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 2rem;

    border-top: 1px solid #ececec;

    border-bottom: 1px solid #ececec;

    padding: 1rem 0;

    margin:0;

}

.trust__item {

    text-align: center;

}

.trust__number {

    display: block;

    margin-bottom: .5rem;

    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 700;

    line-height: 1;

}

.trust__label {

    display: block;

    color: #777;

    font-size: .95rem;

    letter-spacing: .04em;

}

@media (max-width:768px){

    .trust {

        padding: 2rem 0;

    }

    .trust__grid{

        grid-template-columns: repeat(2,1fr);

        gap:1rem;

    }

}

/*
==================================================
Services
==================================================
*/

.services{

    padding:1rem 0 5rem;

}

.section-heading{

    max-width:700px;

    margin:0 auto 4rem;

    text-align:center;

}

.section-heading__eyebrow{

    display:inline-block;

    margin-bottom:1rem;

    font-size:.85rem;

    font-weight:600;

    letter-spacing:.16em;

    text-transform:uppercase;

}

.section-heading__title{

    margin-bottom:1.5rem;

}

.section-heading__text{

    color:#666;

}

.services__grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:1.5rem;
    margin-top:1rem;
}

.service-card{

    border:1px solid #ececec;

    border-radius:28px;

    overflow:hidden;

    background:#fff;

}

.service-card__image{

    aspect-ratio:4/3;

    overflow:hidden;

    margin:0;

}

.service-card__image img{

    aspect-ratio:4/3;

    object-fit:cover;

    display:block;

}

.service-card__content{

    padding:1rem;

}

.service-card__content h3{

    margin-bottom:.75rem;

}

.service-card__content p{

    margin-bottom:1.5rem;

    color:#666;

}

.service-card__content a{

    text-decoration:none;

    font-weight:600;

    color:#111;

}


@media (max-width:768px){

.services__grid{

    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1rem;

}

.service-card h3{

    font-size:1.35rem;

}

.service-card__content{

    padding:1rem;

}

}

/* ==========================
   Portfolio
========================== */

.portfolio{
    padding:2rem 0;
}

.portfolio__grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:1rem;
    margin-top:3rem;
}

.portfolio-card{
    position:relative;
    overflow:hidden;
    border-radius:20px;
    display:block;
    aspect-ratio:4/3;
}

.portfolio-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .5s ease;
}

.portfolio-card__overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:2rem;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.15),
        transparent
    );
    color:#fff;
}

.portfolio-card:hover img{
    transform:scale(1.06);
}

.portfolio-card__category{
    font-size:.8rem;
    text-transform:uppercase;
    letter-spacing:2px;
    opacity:.8;
}

.portfolio-card h3{
    margin-top:.5rem;
    color:#fff;
}

.portfolio__footer{
    text-align:center;
    margin-top:3rem;
}

@media (max-width:992px){

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

}

@media (max-width:768px){

.portfolio__grid{

    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1rem;

}

.portfolio-card{

    aspect-ratio:1/1;

}

.portfolio-card h3{

    font-size:1.4rem;

}

}


/* WHY US */

.why-us{
    padding:3rem 0;
}

.why-us__grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:1.5rem;
    margin-top:3rem;
}

.why-card{
    background:#fff;
    border:1px solid #ececec;
    border-radius:20px;
    padding:2rem;
    transition:.3s;
}

.why-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 50px rgba(0,0,0,.08);
}

.why-card h3{
    margin-bottom:1rem;
}

@media(max-width:768px){

.why-us__grid{

    grid-template-columns:repeat(2,1fr);

}

}

/* Testimonials */

.testimonials{
    padding:3rem 0;
}

.testimonials__grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:1.5rem;
    margin-top:3rem;
}

.testimonial-card{

    background:#fff;

    border:1px solid #ececec;

    border-radius:20px;

    padding:2rem;

    transition:.3s;

}

.testimonial-card:hover{

    transform:translateY(-6px);

    box-shadow:0 15px 40px rgba(0,0,0,.08);

}

.testimonial-card__stars{

    color:#c9a96e;

    font-size:1.2rem;

    margin-bottom:1rem;

}

.testimonial-card__text{

    line-height:1.8;

    color:#666;

}

.testimonial-card__name{

    margin-top:1.5rem;

}

@media(max-width:768px){

.testimonials__grid{

    grid-template-columns:1fr;

}

}

/* ==========================
   CTA
========================== */

.cta{
    padding:4rem 0 5rem;
}

.cta__box{

    background:
        linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),

    background-size:cover;
    background-position:center;

    border-radius:32px;

    padding:6rem 3rem;

    text-align:center;

    color:#fff;

}

.cta__title{

    color:#fff;

    margin:1rem 0;

    font-size:clamp(2rem,4vw,3.5rem);

}

.cta__text{

    max-width:700px;

    margin:0 auto 2rem;

    color:rgba(255,255,255,.9);

    line-height:1.8;

}

.cta__buttons{

    display:flex;

    justify-content:center;

    gap:1rem;

    flex-wrap:wrap;

}

/*
==================================================
Front-page responsive refinements
==================================================
*/

@media (max-width: 992px) {

    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

    .hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
        gap: 2rem;
    }

    .services__grid,
    .why-us__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 768px) {

    .hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .hero {
        padding: 7rem 0 3rem;
    }

    .hero__title {
        font-size: clamp(2.75rem, 12vw, 4.25rem);
        line-height: 1;
        margin-bottom: 1.25rem;
    }

    .hero__text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero__actions,
    .cta__buttons {
        gap: .75rem;
    }

    .hero__actions {
        margin-top: 1.5rem;
    }

    .hero__image {
        aspect-ratio: 4 / 3;
    }

    .section-heading {
        margin-bottom: 2rem;
    }

    .section-heading__title {
        margin-bottom: 1rem;
    }

    .service-card,
    .why-card,
    .testimonial-card {
        border-radius: 16px;
    }

    .portfolio-card__overlay {
        padding: 1rem;
    }

    .portfolio-card__category {
        font-size: .7rem;
        letter-spacing: .08em;
    }

    .portfolio-card h3,
    .service-card h3 {
        font-size: 1.15rem;
    }

    .why-card,
    .testimonial-card {
        padding: 1.25rem;
    }

    .cta {
        padding-bottom: 3rem;
    }

    .cta__box {
        border-radius: 20px;
        padding: 3rem 1.25rem;
    }
}

@media (max-width: 480px) {

    .container {
        padding-inline: 1rem;
    }

    .hero__actions,
    .cta__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .button,
    .cta__buttons .button {
        width: 100%;
    }

    .trust__grid,
    .services__grid,
    .portfolio__grid,
    .why-us__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .trust__grid {
        gap: 1.5rem;
    }

    .portfolio-card {
        aspect-ratio: 4 / 3;
    }

    .portfolio-card h3 {
        font-size: 1.35rem;
    }
}

/* Home page — Miavo Studios reference layout */

.home .hero.section--hero {
    position: relative;
    min-height: 730px;
    height: min(730px, 100vh);
    padding: 0;
    overflow: hidden;
}

.home .hero .container,
.home .hero__grid {
    height: 100%;
}

.home .hero__grid {
    display: block;
}

.home .hero__media,
.home .hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home .hero__media {
    z-index: 0;
}

.home .hero__image {
    border-radius: 0;
}

.home .hero__image img,
.home .hero__image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home .hero__image::before {
    display: none;
}

.home .hero::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(0, 0, 0, .64) 0%, rgba(0, 0, 0, .38) 43%, rgba(0, 0, 0, .12) 100%);
    pointer-events: none;
}

.home .hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: min(100%, 500px);
    height: 100%;
    margin-left: -2rem;
}

.home .hero__title {
    max-width: 480px;
    margin: 0;
    color: #fff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(3.1rem, 3.5vw, 4rem);
    font-weight: 500;
    line-height: .96;
    letter-spacing: -.03em;
    text-align:center;
    margin-inline:auto;
}

.home .hero__text {
    max-width: 390px;
    margin-top: 1.5rem;
    color: #fff;
    font-family: "Lato", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin-inline:auto;
}

.home .hero__actions {
    margin-top: 3.5rem;
    margin-top: 10px;
}

.home .hero__actions .button {
    min-height: 43px;
    padding: .75rem 1.15rem;
    border-radius: 5px;
    font-size: .875rem;
    font-weight: 400;
}

.home .portfolio {
    padding: 6.5rem 0 8.5rem;
    background: #fafafa;
}

.home .section-heading {
    margin: 0 auto 4.5rem;
}

.home .section-heading__eyebrow {
    margin-bottom: .75rem;
    color: #626262;
    font-family: "Lato", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.home .section-heading__title {
    margin: 0;
    color: #111;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
}

.home .portfolio__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    max-width: 1140px;
    margin: 0 auto;
}

.home .portfolio-card {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 0;
}

.home .portfolio-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    object-fit: cover;
}

.home .portfolio-card:nth-child(1) img {
    object-position: 78% center;
}

.home .portfolio-card:nth-child(2) img,
.home .portfolio-card:nth-child(3) img {
    object-position: 67% center;
}

.home .portfolio-card__content {
    padding-top: 1.75rem;
    text-align: center;
}

.home .portfolio-card h3 {
    margin: 0 0 .25rem;
    color: #111;
    font-family: "Lato", Arial, sans-serif;
    font-size: .95rem;
    font-weight: 700;
}

.home .portfolio-card p {
    color: #111;
    font-family: "Lato", Arial, sans-serif;
    font-size: .875rem;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .home .site-header,
    .home .site-header__inner {
        height: 72px;
    }

    .home .hero.section--hero {
        min-height: 650px;
        height: 100svh;
    }

    .home .menu-toggle span {
        background: #fff;
    }

    .home .hero__image {
        transform: scale(1.05);
        /* filter: blur(1px); */
    }

    .home .hero__image img,
    .home .hero__image video {
        object-position: 83% center;
    }

    .home .hero::after {
        background: rgba(0, 0, 0, .55);
    }

    .home .hero__content{
        justify-content:flex-end;
        align-items:center;
        text-align:center;
        width:100%;
        margin-left:0;
        padding:8rem 1.5rem 3.5rem;
    }

    .home .hero__title {
        max-width: 330px;
        font-size:40px;
    }

    .home .hero__text {
        max-width: 300px;
        margin-top: 1rem;
        font-size: .95rem;
        text-align: center;
    }

    .home .hero__actions {
        margin-top: 1.75rem;
    }

    .home .portfolio {
        padding: 4rem 0 5rem;
    }

    .home .section-heading {
        margin-bottom: 2.75rem;
    }

    .home .portfolio__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem 1rem;
    }

    .home .portfolio-card__content {
        padding-top: 1rem;
    }

    .home .portfolio-card p {
        font-size: .78rem;
    }
}

@media (max-width: 420px) {
    .home .portfolio__grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}

/*
========================================
SCROLL REVEAL
========================================
*/

.reveal{

    opacity:0;

    transform:translateY(45px);

    transition:

        opacity .9s ease,

        transform .9s ease;

    will-change:opacity,transform;

}

.reveal.revealed{

    opacity:1;

    transform:none;

}