/* ==============================================
   foryou.reviews - Cottagecore Pastoral Blog
   ============================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    line-height: 1.75;
    color: #3d2c2c;
    background-color: #fdf2f0;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}

.section-heading {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #3d2c2c;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #e11d48;
    margin: 0.75rem auto 0;
    opacity: 0.5;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fdf2f0;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.brand-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #3d2c2c;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.heart-icon {
    width: 36px;
    height: 36px;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
}

.tagline {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #3d2c2c;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.curated-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    background-color: #6b8f71;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
}

/* Floral Accents */
.floral-accent {
    position: absolute;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

.floral-top-right {
    top: 5%;
    right: 5%;
    width: 120px;
    height: 120px;
    animation: floralSway 6s ease-in-out infinite;
}

.floral-bottom-left {
    bottom: 8%;
    left: 5%;
    width: 100px;
    height: 100px;
    animation: floralSway 7s ease-in-out infinite reverse;
}

.floral-closing {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    opacity: 0.7;
    animation: floralSway 5s ease-in-out infinite;
}

@keyframes floralSway {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    25% { transform: rotate(2deg) translateX(3px); }
    75% { transform: rotate(-2deg) translateX(-3px); }
}

/* --- Reviews Section --- */
#reviews {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.review-card {
    background: #ffffff;
    border: 1px solid #f0dcd8;
    border-radius: 12px;
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(212, 180, 174, 0.1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.review-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.review-card:hover {
    box-shadow: 0 4px 16px rgba(212, 180, 174, 0.2);
    transition: box-shadow 0.3s ease;
}

/* Ribbon Badges */
.ribbon {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    padding: 0.3rem 1rem 0.3rem 0.75rem;
    margin-bottom: 1rem;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.ribbon-wellness {
    background-color: #6b8f71;
}

.ribbon-home {
    background-color: #d4b4ae;
}

.ribbon-food {
    background-color: #e11d48;
    opacity: 0.8;
}

.ribbon-books {
    background-color: #3d2c2c;
    opacity: 0.75;
}

.ribbon-craft {
    background-color: #6b8f71;
    opacity: 0.85;
}

/* Star Ratings */
.star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 0.75rem;
}

.star {
    width: 18px;
    height: 18px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star.filled {
    background-color: #e11d48;
}

.star.empty {
    background-color: #f0dcd8;
}

.review-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #3d2c2c;
}

.review-body {
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #3d2c2c;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.reviewer {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #6b8f71;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Leaf Dividers */
.leaf-divider {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.leaf-divider svg {
    width: 60px;
    height: 30px;
    opacity: 0.5;
}

/* --- Testimonials Section --- */
#testimonials {
    max-width: 680px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    background-color: #fdf2f0;
}

.testimonial {
    border-left: 4px solid #e11d48;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    background-color: #ffffff;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 8px rgba(212, 180, 174, 0.08);
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.testimonial.revealed {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-text {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.85;
    color: #3d2c2c;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 0.85rem;
    color: #6b8f71;
    font-weight: 500;
}

/* --- Closing Section --- */
#closing {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fdf2f0;
    padding: 4rem 2rem;
    text-align: center;
}

.closing-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #3d2c2c;
    margin-bottom: 1rem;
}

.closing-brand {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #6b8f71;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    #reviews {
        padding: 3rem 1rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    #testimonials {
        padding: 3rem 1rem;
    }

    .testimonial {
        padding: 1rem 1.25rem;
    }

    .floral-top-right {
        width: 80px;
        height: 80px;
    }

    .floral-bottom-left {
        width: 70px;
        height: 70px;
    }
}
