/* ============================================================
   WrapUp — About Us Page  |  about.css
   ============================================================ */

/* ===== NAV ACTIVE STATE ===== */
.nav-active {
    color: white !important;
    background: rgba(5, 150, 105, 0.18) !important;
    border-radius: 10px;
}

.nav-active::after {
    width: 60% !important;
    background: var(--accent) !important;
}

/* ============================================================
   SECTION 1 — ABOUT HERO
   ============================================================ */
.about-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--primary) 0%, #022c22 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hexParticleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.55;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

/* Heading: staggered fade-in from below */
.about-hero-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 1.2rem;
    opacity: 0;
    transform: translateY(50px);
    animation: heroHeadingIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
    text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.about-hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-style: italic;
    color: rgba(255,255,255,0.82);
    font-weight: 300;
    margin: 0 0 3rem;
    opacity: 0;
    transform: translateY(40px);
    animation: heroHeadingIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
    letter-spacing: 0.02em;
}

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

/* Green line that draws itself across */
.hero-divider-line {
    height: 3px;
    background: linear-gradient(90deg, #059669, #34d399, #059669);
    width: 0;
    margin: 0 auto;
    border-radius: 2px;
    animation: lineGrow 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
    box-shadow: 0 0 16px rgba(5, 150, 105, 0.5);
}

@keyframes lineGrow {
    to { width: 100vw; }
}

/* ============================================================
   SECTION 2 — OUR STORY
   ============================================================ */
.story-section {
    background: #fff;
    padding: 6rem 2rem;
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* ---- Image side ---- */
.story-image-side {
    display: flex;
    justify-content: center;
}

.story-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.story-illustration {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(5, 150, 105, 0.18), 0 4px 20px rgba(0,0,0,0.08);
    display: block;
    transition: transform 0.5s ease;
}

.story-illustration:hover {
    transform: scale(1.02);
}

.story-image-badge {
    position: absolute;
    bottom: -18px;
    right: -18px;
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(5, 150, 105, 0.35);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ---- Text side ---- */
.story-text-side {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.story-heading-wrap {
    display: inline-flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.story-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.4rem;
    line-height: 1.1;
}

.story-heading-underline {
    display: block;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, #059669, #34d399);
    border-radius: 2px;
    animation: storyUnderline 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes storyUnderline {
    to { width: 100%; }
}

.story-para {
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.4rem;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.story-para.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-para strong {
    color: var(--primary);
    font-weight: 700;
}

/* ============================================================
   SECTION 3 — VALUES / MISSION CARDS
   ============================================================ */
.values-section {
    background: #E8F5EE;
    padding: 6rem 2rem;
}

.values-container {
    max-width: 1100px;
    margin: 0 auto;
}

.values-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 3.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* ---- Flip Card ---- */
.flip-card {
    perspective: 1000px;
    height: 280px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Front */
.flip-card-front {
    background: #ffffff;
    box-shadow: 0 6px 30px rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.value-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.2rem;
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.6rem;
    font-family: 'Playfair Display', serif;
}

.flip-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
    letter-spacing: 0.03em;
}

/* Back */
.flip-card-back {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: rotateY(180deg);
    box-shadow: 0 10px 40px rgba(5, 150, 105, 0.25);
}

.value-icon-back {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.value-back-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.8rem;
    font-family: 'Playfair Display', serif;
}

.value-back-text {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.7;
    text-align: center;
    margin: 0;
}

/* ============================================================
   SECTION 4 — CTA BANNER
   ============================================================ */
.about-cta {
    background: linear-gradient(135deg, #064e3b 0%, #059669 60%, #047857 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.about-cta::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite reverse;
}

.about-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-cta-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.about-cta-body {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.about-cta-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Shop Products button */
.cta-btn-shop {
    text-decoration: none;
    display: inline-block;
    padding: 16px 44px;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 50px;
    border: 2px solid #fff;
    transition: background 0.35s ease, color 0.35s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    font-family: 'Inter', sans-serif;
}

.cta-btn-shop:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* WhatsApp button */
.cta-btn-whatsapp {
    text-decoration: none;
    display: inline-block;
    padding: 16px 44px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    transition: background 0.35s ease, color 0.35s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    font-family: 'Inter', sans-serif;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .story-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .story-image-side {
        order: -1;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .flip-card {
        height: 240px;
    }
}

@media (max-width: 600px) {
    .about-hero {
        min-height: 100svh;
    }

    .story-section,
    .values-section,
    .about-cta {
        padding: 4rem 1.2rem;
    }

    .story-image-badge {
        bottom: -12px;
        right: -8px;
        font-size: 0.82rem;
        padding: 0.5rem 1rem;
    }

    .about-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn-shop,
    .cta-btn-whatsapp {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}

/* Mobile nav overrides for about page */
@media (max-width: 768px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary) 0%, #022c22 100%);
        padding: 1.5rem 2rem;
        gap: 0.5rem;
        z-index: 999;
        box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }
}
