/* Index/Landing Page Specific Styles */
/* Premium boutique aesthetic - refined, warm, elegant */

/* ========================================
   PAGE-SPECIFIC ANIMATIONS
   ======================================== */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ========================================
   SECTION SPACING - Consistent rhythm
   ======================================== */
.how-it-works,
.testimonials,
.faq {
    padding: 100px 0;
}

.sample-gallery {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header .eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--color-ocean);
}

.section-header h2 {
    margin: 0 0 16px 0;
}

.section-header p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--color-warm-gray);
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* ========================================
   STACKED CARDS - Hero Visual
   Slide apart on hover, no intersection
   ======================================== */

.stack-container {
    position: relative;
    width: 546px;
    height: 416px;
    animation: heroVisualIn 0.8s var(--ease-gentle) 0.3s both;
}

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

.stack-card {
    position: absolute;
    width: 338px;
    height: 338px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(91, 58, 41, 0.04),
        0 10px 30px rgba(91, 58, 41, 0.12);
    transition: all 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.stack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-back {
    top: 40px;
    right: 0;
    transform: rotate(5deg);
}

.stack-front {
    top: 0;
    left: 0;
    transform: rotate(-3deg);
}

.stack-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    color: white;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    font-style: italic;
    text-align: center;
    letter-spacing: 0.01em;
}

/* Hover: both cards slide apart */
.stack-container:hover .stack-front {
    transform: rotate(-2deg) translateX(-65px);
}

.stack-container:hover .stack-back {
    transform: rotate(2deg) translateX(65px);
}

/* Hover individual card: highlight it */
.stack-container .stack-front:hover {
    transform: rotate(0deg) translateX(-78px) translateY(-10px) scale(1.03) !important;
    box-shadow:
        0 24px 48px rgba(91, 58, 41, 0.15);
}

.stack-container .stack-back:hover {
    transform: rotate(0deg) translateX(78px) translateY(-10px) scale(1.03) !important;
    box-shadow:
        0 24px 48px rgba(91, 58, 41, 0.15);
}

/* Tablet */
@media (max-width: 900px) {
    .stack-container {
        width: 420px;
        height: 320px;
    }

    .stack-card {
        width: 260px;
        height: 260px;
        border-radius: 20px;
    }

    .stack-back {
        top: 30px;
    }

    .stack-container:hover .stack-front {
        transform: rotate(-2deg) translateX(-50px);
    }

    .stack-container:hover .stack-back {
        transform: rotate(2deg) translateX(50px);
    }

    .stack-container .stack-front:hover {
        transform: rotate(0deg) translateX(-60px) translateY(-8px) scale(1.02) !important;
    }

    .stack-container .stack-back:hover {
        transform: rotate(0deg) translateX(60px) translateY(-8px) scale(1.02) !important;
    }

    .stack-label {
        font-size: 1rem;
        padding: 16px 14px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .stack-container {
        width: 300px;
        height: 340px;
    }

    .stack-card {
        width: 220px;
        height: 220px;
        border-radius: 16px;
    }

    .stack-back {
        top: auto;
        bottom: 0;
        right: 20px;
        transform: rotate(3deg);
    }

    .stack-front {
        top: 0;
        left: 20px;
        transform: rotate(-2deg);
    }

    /* Mobile: vertical slide */
    .stack-container:hover .stack-front {
        transform: rotate(-1deg) translateY(-35px);
    }

    .stack-container:hover .stack-back {
        transform: rotate(1deg) translateY(35px);
    }

    .stack-container .stack-front:hover {
        transform: rotate(0deg) translateY(-45px) scale(1.02) !important;
    }

    .stack-container .stack-back:hover {
        transform: rotate(0deg) translateY(45px) scale(1.02) !important;
    }

    .stack-label {
        font-size: 0.875rem;
        padding: 14px 12px;
    }
}

/* Legacy demo styles - kept for compatibility */

/* ========================================
   HOW IT WORKS - STEP CARDS
   Clean, balanced layout without connector lines
   ======================================== */
.how-it-works {
    background: white;
}

.steps {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.step {
    text-align: center;
    padding: 40px 32px;
    background: var(--color-cloud);
    border-radius: 20px;
    border: 1px solid rgba(167, 109, 93, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(91, 58, 41, 0.1);
}

/* Icon with number badge */
.step-icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 18px;
    color: var(--color-ocean);
    box-shadow: 0 4px 16px rgba(91, 58, 41, 0.08);
    transition: all 0.3s ease;
}

.step:hover .step-icon {
    background: var(--color-ocean);
    color: white;
    box-shadow: 0 8px 24px rgba(167, 109, 93, 0.25);
}

.step-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.75;
}

/* Number badge positioned on icon */
.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
    border-radius: 50%;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 8px rgba(91, 58, 41, 0.3);
}

.step h3 {
    margin-bottom: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-navy);
}

.step p {
    color: var(--color-warm-gray);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin: 0;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.sample-gallery {
    background: linear-gradient(180deg, var(--color-cloud) 0%, #fdf6ef 100%);
}

.gallery-cta-wrapper {
    text-align: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
}

/* ========================================
   TESTIMONIALS SECTION
   Clean cards with equal heights
   ======================================== */
.testimonials {
    background: var(--color-cloud);
}

.testimonials-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

.testimonial {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(91, 58, 41, 0.06);
    border: 1px solid rgba(91, 58, 41, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(91, 58, 41, 0.08);
    border-color: rgba(209, 183, 160, 0.3);
}

.testimonial-content {
    flex: 1;
    margin-bottom: 24px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-charcoal);
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(91, 58, 41, 0.08);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-ocean) 0%, var(--color-navy) 100%);
    border-radius: 50%;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
}

.testimonial-info {
    flex: 1;
    min-width: 0;
}

.testimonial-name {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 2px;
}

.testimonial-detail {
    font-size: 0.8125rem;
    color: var(--color-warm-gray);
}

/* Deprecated - kept for compatibility */
.rating, .stars, .star, .testimonials-header {
    display: none;
}

/* ========================================
   FAQ SECTION
   Fast, snappy accordion
   ======================================== */
.faq {
    background: white;
}

.faq-grid {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--color-cloud);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(167, 109, 93, 0.15);
}

.faq-item.active {
    background: white;
    border-color: rgba(167, 109, 93, 0.2);
    box-shadow: 0 4px 20px rgba(91, 58, 41, 0.08);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--color-ocean);
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-ocean);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--color-warm-gray);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Legacy - remove */
.faq-list {
    display: none;
}

/* ========================================
   FINAL CTA SECTION
   White button on blue background
   ======================================== */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    color: white;
    text-align: center;
}

.final-cta-inner {
    max-width: 560px;
    margin: 0 auto;
}

.final-cta .eyebrow,
.final-cta .eyebrow-sage {
    color: var(--color-sky);
    margin-bottom: 12px;
    display: inline-block;
}

.final-cta h2 {
    color: white;
    margin: 0 0 16px 0;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.final-cta-buttons {
    margin-bottom: 40px;
}

/* White CTA button for contrast */
.final-cta .btn-primary {
    background: white;
    color: var(--color-navy);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.final-cta .btn-primary:hover {
    background: var(--color-ice);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.guarantee-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.guarantee-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.guarantee-badge svg {
    width: 20px;
    height: 20px;
    color: var(--color-sky);
}

@media (max-width: 600px) {
    .guarantee-badges {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* ========================================
   SCROLL-TRIGGERED ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-gentle), transform 0.6s var(--ease-gentle);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-gentle), transform 0.5s var(--ease-gentle);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox-comparison-wrapper {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
    margin: 0 auto;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .how-it-works,
    .sample-gallery,
    .testimonials,
    .faq {
        padding: var(--space-2xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-xl);
    }

    .guarantee-badges {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
}

@media (max-width: 600px) {
    .hero-transformation {
        flex-direction: column;
        gap: var(--space-md);
        padding: 0;
    }

    .transform-card {
        max-width: 180px;
    }

    .transform-arrow {
        transform: rotate(90deg);
        width: 44px;
        height: 44px;
    }

    .transform-arrow svg {
        width: 22px;
        height: 22px;
    }

    .reveal-later {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
    }

    .step {
        padding: var(--space-md);
    }

    .faq-question {
        padding: var(--space-md);
        font-size: 1rem;
    }
}

/* ========================================
   UTILITY OVERRIDES
   ======================================== */
.btn-ghost-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Upload form submit button */
.upload-form .btn-full-width {
    width: 100%;
}
