/* Hero */
.hero {
    position: relative;
    text-align: center;
    padding: 100px 150px 60px;
    background-size: cover;
    background-position: center;
    color: #fff;
    -webkit-transform: translate3d(0px, 67.196px, 0px);
    height: 93vh;
    display: flex;
    justify-content: center;
    margin-top: 120px;
}
.hero .hero-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.hero .hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero .hero-content h5 {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.1em;
    font-style: normal;
    text-transform: uppercase;
    color: #fff;
    margin-top: 40px;
}
.hero .hero-content h2 {
    margin-top: 24px;
    line-height: 1.2em;
    font-size: 60px;
    color: #fff;
    font-family: 'Marcellus', serif;
}

.hero .hero-content p {
    margin-bottom: 0;
    font-size: 18px;
    font-family: 'Jost', sans-serif;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.5em;
    font-weight: 500;
    margin-top: 24px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
    flex-wrap: wrap;
    max-width: calc(1300px + calc(calc(100 / 32) * 2vw) * 2);
    padding: calc(calc(100/ 32)*2vw);
    position: relative;
    margin-top: -400px;
    animation: fadeInUp 0.8s ease forwards;
}

.cards .card:nth-child(3n+2) {
    margin-top: 150px;
}

.cards .card {
    background: #fff;
    color: #000;
    flex: 0 1 calc(33.333% - 30px);
    max-width: 380px;
    text-align: center;
    border-radius: 6px;
    box-shadow: none;
    margin-top: 60px;
    padding: 0 !important;
    border-radius: 0 !important;
}

.card-img {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: visible;
}

.card-img .img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card-img .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0; 
    bottom: 0;
    border: 1px solid #b99d75;
    transform: translate(-15px, -15px);
    transition: all 0.3s ease;
    z-index: 2;
}

.cards .card:hover .card-img img {
    transform: scale(1.1);
}

.cards .card:hover .card-img .card-overlay {
    transform: translate(0px, 0px)  scale(0.95);
}

.card-content {
    padding: 20px;
}

.card-content h5 {
    font-family: 'Marcellus', serif !important;
    font-size: 34px;
    font-weight: 400;
    font-style: normal;
    color: #000;
}

.card-content p {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 16px;
    font-family: 'Jost', sans-serif;
    color: #000;
    font-style: normal;
}

.card-content a {
    margin-bottom: 15px;
    font-family: 'Marcellus', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    color: #000;
    text-decoration: none;
    padding-bottom: 10px;
    background-image: linear-gradient(to right, #b99d75 100%, transparent 0);
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: bottom left;
    transition: background-size 0.4s ease, color 0.3s ease;
}

.card-content a:hover {
    color: #666;
    background-size: 0% 1px; 
    background-position: bottom right;
}


@media  (max-width: 768px) {
    .cards {
        margin-top: 90px !important;
    }
    .hero {
        height: auto;
        padding: 100px 30px 80px;
    }

   .hero .hero-content h2 {
        font-size: 38px;
   }
    
    .cards .card {
        flex: 0 1 100%;
        margin-top: 0 !important;
   }
}

@media  (max-width: 1024px) {
    .cards {
        margin-top: -300px;
    }
    
    .card-img {
        height: 400px;
    }
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}