@import './property.css';
@import './global.css';

/*==================== Hero ============================*/

.hero {
    position: relative;
    animation: fadeIn 1s;
}

.hero>img {
    height: min(100dvh, 45rem);
    width: 100%;
    object-fit: cover;
}

.hero>img.sub {
    height: 30rem;
}

.hero__block {
    background: var(--gd-1);
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    text-transform: capitalize;
}

.hero__block h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    animation: fadeInUp 1s;
}

.hero__block h2 {
    font-weight: 400;
    font-size: var(--fs-5);
    max-width: 40rem;
    margin-block: 1.5rem;
}

.hero__block h1 span {
    font-size: var(--fs-4);
    font-weight: 400;
}

/*==================== Others ============================*/

.border {
    border: 1px solid greenyellow;
}

p, article, h1, h2, h3, h4 {
    line-height: 1.4rem;
}

.btn {
    outline: none;
    color: var(--white);
    border: 1px solid var(--white);
    display: inline-grid;
    padding: .6rem 1.5rem;
    text-transform: uppercase;
    transition: .5s;
    border-radius: 4rem;
    background: transparent;
}

.btn:has(i) {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.btn:hover {
    background-color: var(--primary);
}

.title {
    font-size: var(--fs-3);
    text-align: center;
    font-weight: 500;
    text-transform: capitalize;
    margin-bottom: 1.5rem;
}

.title.start {
    text-align: start;
}

.image-wrapper {
    position: relative;
    padding: 0 0 3rem 3rem;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    inset: auto auto 0 0;
    height:85%;
    width: 85%;
    border: 1.5px solid var(--smoke);
}

.image-wrapper img {
    filter: drop-shadow(var(--primary) 0 1rem 5rem);
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    z-index: 1;
}

.products-card {
    position: relative;
    padding: 0 0 2rem 2rem;
    text-transform: uppercase;
    display: block;
    height: 100%;
}

.products-card::after {
    content: '';
    position: absolute;
    inset: auto auto 0 0;
    height:85%;
    width: 99%;
    border: 1.5px solid var(--smoke);
}

.products-card__img {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    background: var(--gd-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    padding: 2rem;
}

.products-card:hover .products-card__img {
    translate: -1rem 0;
}

.products-card article {
    font-size: var(--fs-2);
    color: var(--white);
    padding-right: .5rem;
}

.touch-box {
    text-align: center;
    background: var(--gd-3);
}

.touch-box form {
    background: #27100e;
    padding: var(--s-1);
    border-radius: 2rem;
}

.touch-box h1 {
    font-weight: 400;
    font-size: var(--fs-4);
    margin-bottom: 2rem;
}

.touch-box input:nth-child(1) {
    margin-bottom: 2rem;
    color: var(--white);
    border: none;
    outline: none;
    display: block;
    padding: 1rem;
    background-color: var(--accent);
    box-shadow: var(--primary) 0 1rem 5rem;
    border-radius: .5rem;
}

.testimonials-block {
    background-color: rgb(255, 255, 255, .1);
    padding: var(--s-1);
    border-radius: 1rem;
    text-align: center;
    position: relative;
    display: grid;
    gap: 1rem;
}

.testimonials-block img:nth-of-type(1) {
    max-height: 2rem;
}

.testimonials-block img:nth-of-type(2) {
    max-height: 2rem;
    justify-self: end;
    transform: scaleX(-1) scaleY(-1);
}

.testimonials-block span {
    font-size: var(--fs-2);
    display: block;
}

.slider-nav {
    border: 1px solid var(--primary);
    padding: .75rem 1rem;
    outline: none;
    color: var(--primary);
    display: grid;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
}

.slider-nav.testimonials-prev {
    text-align: end;
    border-left: none;
}

.slider-nav.testimonials-next {
    border-right: none;
}

.gallery-card {
    overflow: hidden;
    margin: .25rem;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 1.25;
    transition: .5s;
}

.gallery-card:hover img {
    scale: 1.1;
}

.some-card {
    padding: 1rem;
    background: var(--gd-4);
    text-align: center;
    transition: .5s;
    height: 100%;
}

.some-card:hover {
    translate: 0 -.5rem;
}

.some-card h1 {
    text-transform: capitalize;
    font-weight: 500;
}

.some-card img {
    max-height: 4rem;
    margin-inline: auto;
}

.contact-form {
    background-color: rgb(255, 255, 255, .1);
    padding: var(--s-2);
    border-radius: 1rem;
    margin-block: var(--s-2);
    background-image: url('../img/shape-1.png');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 12.5rem;
}

.contact-form :is(input, textarea) {
    width: 100%;
    padding: .5rem;
    border: none;
    border-bottom: 1px solid var(--gray);
    color: var(--white);
    background: none;
    outline: none;
}

.contact-form form label {
    color: var(--gray);
}

.contact-link {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .75rem;
    margin-block: .75rem;
    font-weight: 500;
}

.contact-link i {
    height: 3rem;
    width: 3rem;
    font-size: 1.25rem;
    display: grid;
    place-content: center;
    background-color: var(--primary);
    border-radius: 50%;
}

.contact-link span {
    display: grid;
    gap: .25rem;
    font-style: italic;
}

.contact-link span a {
    color: var(--white);
}

.contact-link span a:hover {
    color: var(--primary);
}

.contact-map {
    margin-top: 1rem;
    border: none;
    box-shadow: var(--sd-2);
    width: 100%;
    height: 20rem;
}
