/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #18352d;
    background: #ffffff;
    line-height: 1.6;
}


/* =========================================
   HEADER
========================================= */

.header {
    width: 100%;
    min-height: 75px;

    padding: 0 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;

    position: relative;
    z-index: 9999;

    box-shadow:
        0 2px 15px rgba(0, 0, 0, 0.08);
}


/* Logo */

.logo a {
    text-decoration: none;

    color: #123c2f;

    font-size: 21px;
    font-weight: 800;

    letter-spacing: 1px;
}


/* Navigation */

.header nav {
    display: flex;
    align-items: center;

    gap: 32px;
}

.header nav a {
    position: relative;

    text-decoration: none;

    color: #18352d;

    font-size: 15px;
    font-weight: 600;

    padding: 10px 0;

    transition: 0.3s ease;
}

.header nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 2px;

    width: 0;
    height: 2px;

    background: #168a63;

    transition: 0.3s ease;
}

.header nav a:hover,
.header nav a.active {
    color: #168a63;
}

.header nav a:hover::after,
.header nav a.active::after {
    width: 100%;
}


/* =========================================
   MOBILE MENU
========================================= */

#menu-toggle {
    display: none;
}

.menu-button {
    display: none;
}


/* =========================================
   HERO
========================================= */

.review-hero {

    min-height: 430px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px;

    background:
        linear-gradient(
            rgba(10, 58, 43, 0.80),
            rgba(10, 58, 43, 0.80)
        ),
        url("images/reviews-bg.jpg");

    background-size: cover;
    background-position: center;
}


.hero-content {

    max-width: 750px;

    color: #ffffff;
}


.hero-content span {

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 3px;

    color: #a7e3c8;
}


.hero-content h1 {

    margin: 15px 0;

    font-size: clamp(42px, 6vw, 70px);

    line-height: 1.1;
}


.hero-content p {

    font-size: 18px;

    opacity: 0.9;
}


/* =========================================
   GENERAL SECTIONS
========================================= */

.review-section,
.customer-reviews {

    padding: 90px 7%;
}


.section-heading {

    max-width: 700px;

    margin: 0 auto 50px;

    text-align: center;
}


.section-heading span {

    color: #168a63;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;
}


.section-heading h2 {

    margin: 10px 0;

    font-size: clamp(30px, 4vw, 44px);

    color: #123c2f;
}


.section-heading p {

    color: #66756f;

    font-size: 16px;
}


/* =========================================
   REVIEW FORM
========================================= */

.review-form-container {

    max-width: 700px;

    margin: auto;

    padding: 40px;

    background: #f5f9f7;

    border-radius: 20px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.07);
}


.form-group {

    margin-bottom: 22px;
}


.form-group label {

    display: block;

    margin-bottom: 8px;

    font-weight: 700;

    color: #18352d;
}


.form-group input,
.form-group textarea {

    width: 100%;

    padding: 14px 16px;

    border: 1px solid #d5e2dc;

    border-radius: 10px;

    background: #ffffff;

    font-family: inherit;

    font-size: 15px;

    outline: none;

    transition: 0.3s ease;
}


.form-group textarea {

    resize: vertical;

    min-height: 140px;
}


.form-group input:focus,
.form-group textarea:focus {

    border-color: #168a63;

    box-shadow:
        0 0 0 3px rgba(22, 138, 99, 0.10);
}


.character-count {

    margin-top: 5px;

    text-align: right;

    color: #7b8984;

    font-size: 12px;
}


/* Submit button */

.review-form-container button {

    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 10px;

    background: #168a63;

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s ease;
}


.review-form-container button:hover {

    background: #106b4d;

    transform: translateY(-2px);
}


.review-form-container button:disabled {

    opacity: 0.6;

    cursor: not-allowed;

    transform: none;
}


/* Form messages */

.form-message {

    min-height: 24px;

    margin-top: 18px;

    text-align: center;

    font-weight: 600;
}


.form-message.success {

    color: #168a63;
}


.form-message.error {

    color: #c0392b;
}


/* =========================================
   CUSTOMER REVIEWS
========================================= */

.customer-reviews {

    background: #f5f9f7;
}


.reviews-grid {

    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


/* Review card */

.review-card {

    padding: 30px;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);

    transition: 0.3s ease;
}


.review-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.10);
}


/* Review top */

.review-top {

    display: flex;

    align-items: center;

    gap: 15px;
}


.review-icon {

    flex-shrink: 0;

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #168a63;

    color: #ffffff;

    font-size: 20px;

    font-weight: 700;
}


.review-content h3 {

    color: #123c2f;

    font-size: 18px;
}


.review-date {

    color: #899690;

    font-size: 12px;
}


/* Stars */

.stars {

    margin: 18px 0 12px;

    color: #e3a928;

    letter-spacing: 2px;

    font-size: 15px;
}


/* Review text */

.review-text {

    color: #66756f;

    font-size: 15px;

    line-height: 1.8;

    word-wrap: break-word;
}


/* =========================================
   EMPTY / LOADING
========================================= */

.loading,
.no-reviews {

    grid-column: 1 / -1;

    padding: 50px;

    text-align: center;

    background: #ffffff;

    border-radius: 18px;

    color: #66756f;
}


.no-reviews h3 {

    margin: 12px 0 5px;

    color: #123c2f;
}


.empty-icon {

    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: auto;

    border-radius: 50%;

    background: #e9f5ef;

    color: #168a63;

    font-size: 22px;
}


/* =========================================
   CTA
========================================= */

.review-cta {

    padding: 90px 20px;

    text-align: center;

    background: #123c2f;

    color: #ffffff;
}


.review-cta h2 {

    font-size:
        clamp(30px, 4vw, 45px);

    margin-bottom: 10px;
}


.review-cta p {

    margin-bottom: 30px;

    opacity: 0.85;
}


.review-cta a {

    display: inline-block;

    padding: 13px 28px;

    border-radius: 8px;

    background: #168a63;

    color: #ffffff;

    text-decoration: none;

    font-weight: 700;

    transition: 0.3s ease;
}


.review-cta a:hover {

    background: #ffffff;

    color: #123c2f;

    transform: translateY(-3px);
}


/* =========================================
   FOOTER
========================================= */

footer {

    padding: 50px 7% 25px;

    background: #0c2921;

    color: #ffffff;

    text-align: center;
}


.footer-content h3 {

    margin-bottom: 10px;

    font-size: 22px;
}


.footer-content p {

    color: #b7c8c2;

    margin-bottom: 25px;
}


.footer-links {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 25px;

    margin-bottom: 30px;
}


.footer-links a {

    color: #ffffff;

    text-decoration: none;

    transition: 0.3s ease;
}


.footer-links a:hover {

    color: #70d4a9;
}


.copyright {

    padding-top: 20px;

    border-top:
        1px solid rgba(255,255,255,0.10);

    color: #91a59e;

    font-size: 13px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .header {

        min-height: 68px;

        padding: 0 5%;
    }


    .logo a {

        font-size: 17px;
    }


    /* Hamburger */

    .menu-button {

        width: 42px;
        height: 42px;

        display: flex;

        flex-direction: column;

        justify-content: center;

        align-items: center;

        gap: 5px;

        background: #168a63;

        border-radius: 9px;

        cursor: pointer;
    }


    .menu-button span {

        width: 21px;
        height: 2px;

        background: #ffffff;

        border-radius: 5px;

        transition: 0.3s ease;
    }


    /* Mobile navigation */

    .header nav {

        position: absolute;

        top: 68px;
        left: 0;

        width: 100%;

        padding: 10px 5% 15px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        background: #ffffff;

        box-shadow:
            0 12px 25px rgba(0,0,0,0.10);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-15px);

        transition: 0.3s ease;
    }


    #menu-toggle:checked ~ nav {

        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    .header nav a {

        padding: 14px 10px;

        border-bottom:
            1px solid #e8eee9;
    }


    .header nav a::after {

        display: none;
    }


    /* Hamburger animation */

    #menu-toggle:checked
    + .menu-button
    span:nth-child(1) {

        transform:
            translateY(7px)
            rotate(45deg);
    }


    #menu-toggle:checked
    + .menu-button
    span:nth-child(2) {

        opacity: 0;
    }


    #menu-toggle:checked
    + .menu-button
    span:nth-child(3) {

        transform:
            translateY(-7px)
            rotate(-45deg);
    }


    /* Sections */

    .review-section,
    .customer-reviews {

        padding: 65px 5%;
    }


    .review-form-container {

        padding: 25px 20px;

        border-radius: 15px;
    }


    .reviews-grid {

        grid-template-columns: 1fr;

        gap: 18px;
    }


    .review-card {

        padding: 25px;
    }


    .review-hero {

        min-height: 360px;

        padding: 60px 20px;
    }


    .hero-content h1 {

        font-size: 42px;
    }


    .hero-content p {

        font-size: 16px;
    }


    .review-cta {

        padding: 70px 20px;
    }

}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 420px) {

    .header {

        padding: 0 4%;
    }


    .logo a {

        font-size: 15px;
    }


    .menu-button {

        width: 40px;
        height: 40px;
    }


    .header nav {

        top: 65px;

        padding-left: 4%;
        padding-right: 4%;
    }


    .hero-content h1 {

        font-size: 36px;
    }


    .review-form-container {

        padding: 20px 15px;
    }


    .section-heading h2 {

        font-size: 29px;
    }

}
/* =========================================
   STAR RATING SELECTOR
========================================= */

.star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
}

.star {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 38px;
    line-height: 1;
    color: #d5ddd9;
    cursor: pointer;
    transition: 0.2s ease;
}

.star:hover {
    transform: scale(1.15);
}

.star.selected {
    color: #e3a928;
}

.rating-text {
    margin-top: 8px;
    color: #66756f;
    font-size: 13px;
    font-weight: 600;
}

.optional-label {
    color: #899690;
    font-size: 12px;
    font-weight: 400;
}


/* Review card stars */

.stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars-display {
    color: #e3a928;
    letter-spacing: 2px;
    font-size: 18px;
}

.rating-number {
    color: #66756f;
    font-size: 13px;
    font-weight: 700;
}


/* Mobile */

@media (max-width: 420px) {

    .star {
        font-size: 34px;
    }

    .stars-display {
        font-size: 17px;
    }

}