/* HERO SECTION */

#hero {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.75)),
        url("../images/hero_overlay.webp") no-repeat center;
    background-size: cover;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    padding: 0 20px;
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#hero h1 {
    color: #fff;
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    letter-spacing: 2px;
}

#hero h2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 3vw, 24px);
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 400;
    letter-spacing: 1px;
}

.btn {
    display: inline-block;
    padding: 16px 48px !important;
    font-size: 16px;
    color: white;
    background: #66cc66;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #7ad77a;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 204, 102, 0.25);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 204, 102, 0.2);
}

/* INFO CARDS */

#info {
    width: 100%;
    padding: 60px 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 75px;
    background: #fff;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease-out forwards;
}

[id*="info_"] {
    width: 325px;
    text-align: center;
    box-shadow: 0 5px 15px #0005;
    opacity: 1;
}

#info_A {
    transition-delay: 0.2s;
}
#info_B {
    transition-delay: 0.4s;
}
#info_C {
    transition-delay: 0.6s;
}

[id*="info_"].visible {
    opacity: 1;
    transform: translateY(0);
}

[id*="info_"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px #0003;
}

[id*="info_"] p {
    height: 125px;
    display: flex;
    padding: 0 15px;
    text-align: left;
    align-items: center;
    border-left: 2px groove #66cc66;
    border-right: 2px groove #66cc66;
}

[id*="info_"]:hover p {
    border-width: 4px;
}

#info_B p {
    border-color: #66b2ff;
}

.info-img {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.info-img img {
    width: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.info-img:hover img {
    transform: scale(1.05);
}

.info-img h3 {
    bottom: 0;
    margin: 0;
    width: 100%;
    color: #fff;
    padding: 5px 0;
    background: #000;
    position: absolute;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.info-img:hover h3 {
    opacity: 1;
}

.info-tag {
    margin: 0;
    width: 100%;
    color: #fff;
    padding: 10px 0;
    background: linear-gradient(0.25turn, #66cc66, #15b315, #66cc66);
    background-size: 200% 100%;
    transition: background-position 0.5s ease;
}

#info_B .info-tag {
    background: linear-gradient(0.25turn, #66b2ff, #1e6ebe, #66b2ff);
    background-size: 200% 100%;
}

[id*="info_"]:hover .info-tag {
    background-position: 100% 0;
}

/* TYPES */

.type {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: clamp(30px, 5vw, 60px) 8%;
    color: #fff;
    background: linear-gradient(0.25turn, #003366, #024d97, #003366);
}

.type-alt {
    background: #fff;
    color: #000;
    flex-direction: row-reverse;
    transform: translateX(50px);
}

.type.visible {
    opacity: 1;
    transform: translateX(0);
}

.type img {
    width: 45%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1.25;
    border-radius: 10px;
    box-shadow: -10px 10px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.type.visible img {
    opacity: 1;
    transform: scale(1);
}

.type-alt img {
    box-shadow: 10px 10px 2px #0005;
    transform: translateX(100px);
    box-shadow: 10px 10px 2px rgba(0, 0, 0, 0.3);
}

.type img:hover {
    transform: scale(1.02);
}

.type_text {
    width: 45%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.type.visible .type_text {
    opacity: 1;
    transform: translateY(0);
}

.type_text img {
    width: auto;
    height: 150px;
    aspect-ratio: 4/1;
    box-shadow: none;
}

.type-alt h2 {
    color: #66cc66;
}

.type-alt .type-text {
    transform: translateX(-100px);
}

.type h2 {
    font-family: "Poppins Bold";
    font-size: 32px;
}

/* REVIEWS */

.reviews-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 30px;
    background-color: white;
    width: 100%;
}

#reviews {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    transition: all 0.3s ease;
}

[id*="review_"] {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #66cc66;
}

[id*="review_"] img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

[id*="review_"] h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin: 4px 0;
}

.stars {
    margin: 8px 0;
}

.star {
    color: #ffd700;
    font-size: 32px;
}

.text {
    color: #444;
    line-height: 1.6;
    margin: 0;
    position: relative;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-align: center;
    cursor: pointer;
}

.text:hover {
    text-shadow: 2px 2px 15px #66b2ff;
}

.text.snip {
    -webkit-line-clamp: 5;
    line-clamp: 5;
}

/* OWNERS MESSAGE */

.message {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    min-height: 600px;
    padding: 50px 8vw;
    width: 100%;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(0.25turn, #003366, #024d97, #003366);
}

.message_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5vw;
    border-left: 4px solid #fff5;
    border-right: 4px solid #fff5;
}

.message_text h2 {
    font-size: clamp(24px, 3vw, 32px);
    align-self: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.message_text h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: white;
}

.message_text p {
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.signature {
    margin-top: 30px;
    font-style: italic;
    font-family: "Palatino", serif;
    font-size: clamp(16px, 1.8vw, 20px);
    align-self: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.message_text.visible h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.message_text.visible p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.message_text.visible .signature {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* REPONSIVENESS && ANIMATIONS */

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

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

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message_text {
    animation: fadeInUp 0.8s ease-out forwards;
}

@media only screen and (max-width: 968px) {
    .message {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        min-height: auto;
        text-align: center;
    }
    .message h2 {
        align-self: center;
    }

    .message_img {
        order: -1;
    }

    .message_img img {
        max-width: 100%;
    }

    .type {
        flex-direction: column;
        padding: 40px 5%;
        min-height: auto;
    }

    .type img {
        width: 90%;
        max-width: 500px;
    }

    .type_text {
        width: 90%;
        text-align: center;
        align-items: center;
    }

    .type-alt {
        flex-direction: column;
    }

    #reviews {
        padding: 1rem;
        gap: 1rem;
        grid-template-columns: repeat(1, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    #hero {
        padding: 0 20px;
        min-height: 50vh;
        text-align: center;
    }
    .scroll-indicator {
        display: none;
    }

    .review {
        padding: 1rem;
    }
}

@media only screen and (max-width: 1200px) {
    .type {
        padding: 50px 5%;
        gap: 40px;
    }
}

@media screen and (max-width: 480px) {
    .type {
        padding: 30px 4%;
    }

    .type img {
        width: 95%;
    }
}
