/* ====================================================================
   BRAND STORY & TESTIMONIALS SECTIONS
   Ultra-Premium Glassmorphism Design with Serif Typography
   ==================================================================== */


/* ========== SECTION 1: BRAND STORY — Editorial 50/50 band ==========
   Warm paper band. Left: framed founders' portrait with a gentle
   desaturate filter (so the stylised illustration reads editorial, not
   craft-fair). Right: eyebrow → serif headline → gold rule → body →
   signature with its own gold flourish.
   Replaces the glassmorphism + gold radial glow of the old treatment. */

.brand-story-section {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--color-canvas-alt, #F4EEE3);
    position: relative;
    overflow: hidden;
}

/* Kill the old radial spotlight */
.brand-story-section::before {
    content: none;
}

.brand-story-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 1;
}

.brand-story-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(40px, 7vw, 100px);
    align-items: center;
}

@media (max-width: 900px) {
    .brand-story-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Left: framed portrait */
.brand-avatar-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: 0;
}

.brand-avatar-card {
    position: relative;
    background: var(--color-canvas, #FBF8F3);
    border: none;
    border-radius: 0;
    padding: 16px;
    box-shadow:
        0 1px 2px rgba(26, 24, 20, 0.05),
        0 12px 32px rgba(26, 24, 20, 0.08);
    transition: transform var(--duration-slow, 480ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.brand-avatar-card::before {
    /* Thin champagne inner frame — editorial passe-partout */
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid var(--color-accent, #C9A961);
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
}
.brand-avatar-card:hover {
    transform: translateY(-3px);
}

.brand-avatar-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 0;
    display: block;
    /* Warm, slightly monochrome treatment so the illustration reads
       "editorial portrait" rather than "cartoon sticker". Easily
       removable when real photography lands. */
    filter: saturate(0.7) contrast(0.95) sepia(0.08);
    transition: filter var(--duration-slow, 480ms) var(--ease-editorial, cubic-bezier(0.16, 1, 0.3, 1));
}
.brand-avatar-card:hover .brand-avatar-img {
    filter: saturate(0.85) contrast(1) sepia(0.04);
}

.brand-avatar-caption {
    font-family: var(--font-display, 'Fraunces', 'Playfair Display', serif);
    font-style: italic;
    font-size: 0.9375rem;
    color: var(--color-ink-mute, #6B6B6B);
    text-align: center;
    line-height: 1.5;
    margin: 8px auto 0;
    max-width: 34ch;
}

/* Right: narrative */
.brand-narrative {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.brand-eyebrow {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-accent-deep, #A8882E);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}
.brand-eyebrow::before {
    display: none;
}

.brand-headline {
    font-family: var(--font-display, 'Fraunces', 'Playfair Display', serif);
    font-size: clamp(1.875rem, 3vw + 0.5rem, 3rem);
    font-weight: 400;
    font-style: normal;
    color: var(--color-ink, #1A1A1A);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.brand-rule {
    display: none;
}

.brand-body {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-ink-soft, #333333);
    margin: 0;
    font-family: var(--font-body, 'Inter', sans-serif);
    max-width: 42em;
}

.brand-body p {
    margin: 0 0 14px;
}
.brand-body p:last-child { margin-bottom: 0; }

.brand-body strong {
    font-weight: 500;
    color: var(--color-ink, #1A1A1A);
    font-style: italic;
}

.brand-signature {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0 0;
    padding: 0;
    border-top: none;
    color: var(--color-ink, #1A1A1A);
    font-family: var(--font-display, 'Fraunces', 'Playfair Display', serif);
    font-size: 1.0625rem;
    font-style: italic;
    font-weight: 400;
}
.brand-signature-rule,
.brand-signature::before {
    display: none;
}
.brand-signature-text {
    color: var(--color-ink, #1A1A1A);
}

/* ========== SECTION 2: TESTIMONIALS ("COMMUNITY LOVE") ========== */

.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #e8f5f0 0%, #d4ede4 100%);
    /* Stronger background */
    position: relative;
    z-index: 1;
    overflow: visible !important;
    /* Prevent cards from being clipped */
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    overflow: visible !important;
    /* Prevent cards from being clipped */
}

.testimonials-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #022c22;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

/* Testimonial Cards Grid */
.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 3;
    overflow: visible !important;
    /* Prevent cards from being clipped */
}

/* Individual Glass Card */
.testimonial-card {
    background: rgba(255, 255, 255, 0.7) !important;
    /* Increased opacity for better visibility */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 10px 40px rgba(0, 128, 128, 0.12);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    min-height: 250px;
    /* Ensure cards have minimum height */
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0D9488, #0B7070);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 128, 128, 0.2);
    background: rgba(255, 255, 255, 0.85) !important;
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* Star Rating */
.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.star {
    color: #D4AF37;
    /* Metallic Gold */
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
    display: inline-block;
}

/* Testimonial Text */
.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #1a3a2e;
    margin-bottom: 20px;
    font-style: italic;
    flex: 1;
    /* Take up available space */
}

/* Author Name */
.testimonial-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0D9488;
    text-align: right;
    margin-top: auto;
    /* Push to bottom */
}

/* ========== ANIMATIONS ========== */

/* Brand Story Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations when section is in view (will be triggered by GSAP) */
.brand-narrative.animate .brand-headline {
    animation: slideInFromLeft 0.8s ease-out;
}

.brand-narrative.animate .brand-body {
    animation: slideInFromLeft 0.8s ease-out 0.2s backwards;
}

.brand-narrative.animate .brand-signature {
    animation: slideInFromLeft 0.8s ease-out 0.4s backwards;
}

.brand-avatar-container.animate .brand-avatar-card {
    animation: fadeInScale 1s ease-out;
}

/* Testimonial Card Animations */
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

.testimonial-card.animate {
    animation: floatUp 0.6s ease-out backwards;
}

.testimonial-card:nth-child(1).animate {
    animation-delay: 0s;
}

.testimonial-card:nth-child(2).animate {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(3).animate {
    animation-delay: 0.2s;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet (481px - 768px) */
@media (max-width: 768px) {

    .brand-story-section,
    .testimonials-section {
        padding: 80px 0;
    }

    .brand-story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .brand-headline,
    .testimonials-title {
        font-size: 2rem;
    }

    .brand-body {
        font-size: 1rem;
    }

    .testimonial-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Mobile (<481px) */
@media (max-width: 480px) {

    .brand-story-section,
    .testimonials-section {
        padding: 60px 0;
    }

    .brand-story-container,
    .testimonials-container {
        padding: 0 16px;
    }

    .brand-headline,
    .testimonials-title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .brand-body {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .brand-avatar-card {
        padding: 20px;
    }

    .testimonial-carousel {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px 20px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }
}

/* ========== ACCESSIBILITY ========== */

/* Focus states for keyboard navigation */
.testimonial-card:focus-within {
    outline: 2px solid #0D9488;
    outline-offset: 4px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .brand-avatar-card,
    .testimonial-card,
    .brand-narrative * {
        animation: none !important;
        transition: none !important;
    }
}