/* ============================================
   REVIEWS PAGE STYLES
   ============================================ */

/* Review Page Variables */
:root {
    --review-bg: var(--gray-100, #f5f5f5);
    --review-card: var(--white, #ffffff);
    --review-accent: var(--primary, #5c7a65);
    --review-accent-light: var(--primary-light, #7a9483);
    --review-accent-dim: var(--primary-dim, rgba(92, 122, 101, 0.08));
    --review-text: var(--gray-700, #333333);
    --review-text-dim: var(--gray-500, #777777);
    --review-shadow: rgba(0, 0, 0, 0.1);
}

/* Header Section */
.reviewsPageHeader { 
    width: 100%; 
    min-height: 35vh; 
    padding-top: 14vh; 
    padding-bottom: 6vh; 
    position: relative;
    overflow: hidden;

    display: flex; 
    justify-content: center; 
    align-items: center; 

    background-image: url("../content/uploads/2021/04/IMG_20200703_130354e1-scaled.jpg"); 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* Parallax effect */
    background-attachment: fixed;
}

.reviewsPageHeader::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(60, 75, 65, 0.4) 0%, rgba(40, 50, 45, 0.5) 100%);
}

.reviewsHeaderContent { 
    width: 80vw; 
    text-align: center; 
    color: white;
    position: relative;
    z-index: 2;
} 

.reviewsPageTitle {
    font-family: 'Noto Serif', serif;
    font-size: clamp(2rem, 3.5vw + 0.5rem, 3.5rem);
    font-weight: 400; 
    margin-bottom: 1%; 
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: titleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
} 

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.reviewsPageSubtitle {
    font-family: 'Noto Sans', sans-serif;
    font-size: clamp(0.95rem, 1.2vw + 0.3rem, 1.4rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: subtitleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
} 

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

.reviewsOverallRating {
    margin-top: 3vh;
    opacity: 0;
    animation: subtitleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.overallStars {
    font-size: 1.5em;
    color: #ffd700;
    letter-spacing: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.overallText {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

/* Reviews Container - Light Theme */
.reviewsContainer { 
    width: 100%; 
    min-height: 80vh; 
    padding: 8vh 0 12vh 0; 
    background: linear-gradient(180deg, #f0f4f0 0%, #e8ece8 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tile Container - Diamond Formation */
#hexContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 2rem;
}

/* Tile Rows */
.tile-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    position: relative;
    min-height: 200px;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.tile-row:first-child {
    margin-top: 0;
}

/* When row is active (has hovered tile), expand height */
.tile-row.row-active {
    min-height: 320px;
}

/* Individual Expanding Tile Card - WIDER */
.tile-card {
    position: relative;
    width: 300px;
    height: 200px;
    cursor: pointer;
    will-change: transform, opacity;
    contain: layout style;
    
    opacity: 0;
    transform: scale(0);
    transition: 
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.4s ease,
        width 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.tile-card.visible {
    opacity: 1;
    transform: scale(1);
}

/* On hover / scroll-active: expand tile */
.tile-card:hover,
.tile-card.is-active {
    z-index: 100;
    width: 600px;
    height: 320px;
}

/* Row push effects - JS adds these classes */
.tile-row.pushed-up {
    transform: translateY(-60px);
}

.tile-row.pushed-down {
    transform: translateY(60px);
}

/* Tile Inner Container */
.tile-inner {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.5s ease;
}

.tile-card:hover .tile-inner,
.tile-card.is-active .tile-inner {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Background Image Layer */
.tile-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: transform 0.6s ease;
}

.tile-card:hover .tile-bg,
.tile-card.is-active .tile-bg {
    transform: scale(1.05);
}

/* Compact State - Image with overlay showing initials */
.tile-compact {
    position: absolute;
    inset: 0;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.tile-card:hover .tile-compact,
.tile-card.is-active .tile-compact {
    opacity: 0;
    pointer-events: none;
}

.tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.tile-card:hover .tile-overlay,
.tile-card.is-active .tile-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.tile-initials {
    font-family: 'Noto Sans', sans-serif;
    font-size: 3em;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.tile-stars {
    font-size: 1.1em;
    color: #ffd700;
    letter-spacing: 4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Expanded State - Side by Side: Image | Review */
.tile-expanded {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    
    opacity: 0;
    transition: opacity 0.5s ease 0.15s;
}

.tile-card:hover .tile-expanded,
.tile-card.is-active .tile-expanded {
    opacity: 1;
}

/* Left side: Image */
.tile-image-side {
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tile-image-side::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.95));
}

/* Right side: Review content */
.tile-review-side {
    width: 50%;
    height: 100%;
    background: #fff;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tile-name {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1em;
    font-weight: 700;
    color: #222;
}

.tile-rating {
    font-size: 0.9em;
    color: #e09900;
    letter-spacing: 2px;
}

.tile-quote {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.88em;
    line-height: 1.5em;
    color: var(--review-text);
    flex-grow: 1;
    overflow: hidden;
    font-style: italic;
}

.tile-date {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.75em;
    color: var(--review-text-dim);
    margin-top: 0.5rem;
    text-align: right;
}


/* No reviews message */
.no-reviews {
    color: var(--review-text-dim);
    font-family: 'Noto Sans', sans-serif;
    text-align: center;
    padding: 4rem;
}

/* ============================================
   ADDITIONAL REVIEWS SECTION
   ============================================ */

.reviewsMore {
    width: 100%;
    padding: 8vh 0 10vh;
    background: var(--off-white, #f8f9f8);
}

.reviewsMoreInner {
    width: 78vw;
    max-width: 1200px;
    margin: 0 auto;
}


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

.moreReviewCard {
    background: white;
    border-radius: 4px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;

    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}

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

.moreReviewCard:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

.moreReviewCard .cardHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200, #e8ece8);
}

.moreReviewCard .cardName {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.95em;
    font-weight: 700;
    color: var(--gray-700, #333);
}

.moreReviewCard .cardStars {
    font-size: 0.85em;
    color: #e09900;
    letter-spacing: 2px;
}

.moreReviewCard .cardText {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.88em;
    line-height: 1.55em;
    color: var(--gray-600, #555);
    font-style: italic;
    flex-grow: 1;
}

.moreReviewCard .cardDate {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.75em;
    color: var(--gray-400, #a0a4a0);
    text-align: right;
    margin-top: 0.2rem;
}

@media (max-width: 900px) {
    .moreReviewsGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .moreReviewsGrid {
        grid-template-columns: 1fr;
    }

    .reviewsMoreInner {
        width: 90vw;
    }
}

/* CTA Section - Green Theme */
.reviewsCTA {
    width: 100%;
    padding: 10vh 0;
    background: linear-gradient(135deg, var(--primary, #5c7a65) 0%, var(--primary-dark, #4a6052) 100%);
    text-align: center;
    position: relative;
}

.reviewsCTA .ctaContent {
    width: 80vw;
    max-width: 700px;
    margin: auto;
    color: white;
    position: relative;
    z-index: 1;
}

.reviewsCTA .ctaTitle {
    font-family: 'Noto Serif', serif;
    font-size: clamp(1.5rem, 2.5vw + 0.3rem, 2.5rem);
    font-weight: 400;
    margin-bottom: 2vh;
    color: white;
}

.reviewsCTA .ctaSubtitle {
    font-family: 'Noto Sans', sans-serif;
    font-size: clamp(0.9rem, 1vw + 0.3rem, 1.15rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4vh;
}

.reviewsCTA .ctaContact {
    font-family: 'Noto Sans', sans-serif;
    font-size: clamp(1rem, 1.1vw + 0.3rem, 1.3rem);
    color: white;
}

.reviewsCTA .ctaContact strong {
    color: #ffd700;
    font-weight: 600;
}

/* ============================================
   REVIEWS RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1400px) {
    .tile-row {
        min-height: 180px;
    }
    
    .tile-row.row-active {
        min-height: 300px;
    }
    
    .tile-card {
        width: 260px;
        height: 180px;
    }
    
    .tile-card:hover,
    .tile-card.is-active {
        width: 540px;
        height: 300px;
    }
    
    .tile-row.pushed-up {
        transform: translateY(-50px);
    }
    
    .tile-row.pushed-down {
        transform: translateY(50px);
    }
    
    .tile-row {
        gap: 20px;
        margin-top: 20px;
    }
    
    .tile-initials {
        font-size: 2.8em;
    }
}

@media (max-width: 1100px) {
    .tile-row {
        min-height: 160px;
    }
    
    .tile-row.row-active {
        min-height: 280px;
    }
    
    .tile-card {
        width: 220px;
        height: 160px;
    }
    
    .tile-card:hover,
    .tile-card.is-active {
        width: 480px;
        height: 280px;
    }
    
    .tile-row.pushed-up {
        transform: translateY(-50px);
    }
    
    .tile-row.pushed-down {
        transform: translateY(50px);
    }
    
    .tile-row {
        gap: 16px;
        margin-top: 16px;
    }
    
    .tile-initials {
        font-size: 2.5em;
    }
    
    .tile-review-side {
        padding: 1rem;
    }
    
    .tile-quote {
        font-size: 0.85em;
    }
}

@media (max-width: 768px) {
    .reviewsPageHeader {
        background-attachment: scroll;
    }
    
    .reviewsOverallRating {
        flex-direction: column;
        gap: 0.5rem;
    }

    .overallStars {
        font-size: 1.3em;
    }

    /* Stack tiles vertically on mobile */
    .tile-row {
        min-height: 120px;
        transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    }
    
    .tile-row.row-active {
        min-height: 280px;
    }
    
    .tile-card {
        width: 280px;
        height: 120px;
        transition: 
            transform 1s cubic-bezier(0.34, 1.56, 0.64, 1),
            opacity 0.6s ease,
            width 1s cubic-bezier(0.25, 1, 0.5, 1),
            height 1s cubic-bezier(0.25, 1, 0.5, 1);
    }
    
    .tile-card:hover,
    .tile-card.is-active {
        width: 92vw;
        max-width: 380px;
        height: 340px;
    }

    .tile-inner {
        transition: box-shadow 0.9s ease;
    }

    .tile-bg {
        transition: transform 1s ease;
    }

    .tile-compact {
        transition: opacity 0.8s ease;
    }

    .tile-expanded {
        transition: opacity 0.8s ease 0.25s;
    }
    
    .tile-row.row-active {
        min-height: 340px;
    }
    
    .tile-row.pushed-up {
        transform: translateY(-40px);
    }
    
    .tile-row.pushed-down {
        transform: translateY(40px);
    }
    
    /* Switch to vertical layout on hover for mobile */
    .tile-expanded {
        flex-direction: column;
    }
    
    .tile-image-side {
        width: 100%;
        height: 40%;
    }
    
    .tile-image-side::after {
        display: none;
    }
    
    .tile-review-side {
        width: 100%;
        height: 60%;
        padding: 0.8rem 1rem;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .tile-row {
        gap: 12px;
        margin-top: 12px;
        flex-wrap: wrap;
    }
    
    .tile-inner {
        border-radius: 4px;
    }
    
    .tile-initials {
        font-size: 2em;
    }
    
    .tile-stars {
        font-size: 0.9em;
    }
    
    .tile-quote {
        font-size: 0.88em;
        line-height: 1.45em;
    }
    
    .tile-name {
        font-size: 0.95em;
    }
    
    .tile-rating {
        font-size: 0.85em;
    }
    
    .tile-date {
        font-size: 0.72em;
    }

}

@media (max-width: 480px) {
    .reviewsPageHeader {
        padding-top: 12vh;
        padding-bottom: 5vh;
        min-height: 30vh;
    }

    .reviewsContainer {
        padding: 4vh 0 8vh 0;
    }

    .tile-row {
        min-height: 100px;
    }
    
    .tile-row.row-active {
        min-height: 260px;
    }
    
    .tile-card {
        width: 90vw;
        max-width: 320px;
        height: 100px;
    }
    
    .tile-card:hover,
    .tile-card.is-active {
        width: 92vw;
        max-width: 380px;
        height: 340px;
    }
    
    .tile-row.row-active {
        min-height: 340px;
    }
    
    .tile-row.pushed-up {
        transform: translateY(-40px);
    }
    
    .tile-row.pushed-down {
        transform: translateY(40px);
    }
    
    .tile-row {
        gap: 10px;
        margin-top: 10px;
    }
    
    .tile-inner {
        border-radius: 4px;
    }
    
    .tile-initials {
        font-size: 1.6em;
    }
    
    .tile-stars {
        font-size: 0.75em;
        letter-spacing: 2px;
    }
    
    .tile-review-side {
        padding: 0.6rem 0.8rem;
    }
    
    .tile-header {
        margin-bottom: 0.3rem;
        padding-bottom: 0.3rem;
    }
    
    .tile-quote {
        font-size: 0.85em;
        line-height: 1.4em;
    }
    
    .tile-name {
        font-size: 0.9em;
    }
    
    .tile-rating {
        font-size: 0.8em;
    }
    
    .tile-date {
        font-size: 0.7em;
        margin-top: 0.3rem;
    }
    
    .reviewsCTA {
        padding: 8vh 0;
    }
    
}
