/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');

/**
 * =====================================================================
 * FAUNA STYLESHEET
 * =====================================================================
 *
 * Purpose: Styling for the Fauna landing page
 * Architecture: Mobile-first responsive design with CSS custom properties
 * Browser Support: Modern browsers with CSS Grid and Flexbox support
 *
 * @author Ingredients2Meals Development Team
 * @version 1.0
 * @since 2026
 */

/* =====================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   Fauna-specific color system with earthy/nature tones
   ===================================================================== */
:root {
    /* Fauna Brand Colors */
    --color-fauna-primary: #004e92;       /* Deep ocean blue - main brand color */
    --color-fauna-secondary: #1565A8;     /* Mid ocean blue */
    --color-fauna-accent: #1E88E5;        /* Bright ocean blue accent */
    --color-fauna-light: #E3F0FB;         /* Light blue background */

    /* Background Colors */
    --color-bg-main: #ffffff;
    --color-bg-card: #FFFFFF;
    --color-bg-alt: #EBF4FD;

    /* Typography Colors */
    --color-text-primary: #000000;
    --color-text-secondary: #555555;
    --color-text-caption: #888888;

    /* Button Colors */
    --color-btn-primary: var(--color-fauna-primary);
    --color-btn-primary-hover: #000000;

    --color-primary: #000000;
}

/* =====================================================================
   GLOBAL RESET AND BASE STYLES
   ===================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-main);
    min-height: 100vh;
}

/* Apply Fredoka only to Fauna page content, not nav shared with other apps */
.fauna-page main,
.fauna-page footer {
    font-family: 'Fredoka', sans-serif;
    font-weight: 400;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =====================================================================
   HEADER AND NAVIGATION
   ===================================================================== */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link.active {
    opacity: 1;
}

.logo-link.active .logo {
    color: #000000;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.smartcart-logo {
    color: #007AFF !important;
}

.recyclr-logo {
    color: #000000 !important;
}

.expressive-logo {
    color: #000000 !important;
    font-weight: 700;
    font-family: Georgia, serif;
}

.fauna-logo {
    color: #000000 !important;
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 500 !important;
}

.nav-divider {
    width: 1px;
    height: 32px;
    background-color: #E5E5E7;
    margin: 0 1rem;
}

.app-store-badge {
    height: 40px;
    width: auto;
    display: block;
}

.nav-download {
    display: flex;
    align-items: center;
    align-self: center;
}

/* =====================================================================
   FAUNA HERO SECTION
   ===================================================================== */
.fauna-hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    background: var(--color-bg-main);
}

.fauna-hero-content {
    flex: 1;
    text-align: left;
}

.fauna-description h2 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.fauna-lead {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
    margin-bottom: 2.5rem;
}

.fauna-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coming-soon-badge {
    display: inline-block;
    background-color: var(--color-fauna-light);
    color: var(--color-fauna-primary);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    border: 1.5px solid var(--color-fauna-primary);
    margin-bottom: 1.25rem;
}


.fauna-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.app-store-hero-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-store-hero-link:hover {
    transform: translateY(-2px);
}

.app-store-badge-hero {
    height: 60px;
    width: auto;
}

.btn-show-me {
    display: inline-block;
    background-color: var(--color-fauna-primary);
    color: #ffffff;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-show-me:hover {
    background-color: var(--color-fauna-secondary);
    transform: translateY(-2px);
}

/* Scroll arrow button */
.scroll-arrow {
    display: flex;
    margin-top: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-fauna-primary);
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease, background-color 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 78, 146, 0.35);
    transform: translateY(8px);
    align-self: center;
}

.scroll-arrow img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.scroll-arrow.visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
}

.scroll-arrow:hover {
    background-color: var(--color-fauna-secondary);
}

@media (max-width: 768px) {
    .scroll-arrow {
        width: 48px;
        height: 48px;
        margin-top: 1.5rem;
    }

    .scroll-arrow img {
        width: 24px;
        height: 24px;
    }
}

/* Phone mockup */
.phone-mockup {
    width: 500px;
    height: 1000px;
    background: var(--color-bg-main);
    border-radius: 30px;
    padding: 20px;
    max-width: 100%;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-main);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

/* Fauna hero image container */
.fauna-hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.fauna-rotating-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.fauna-rotating-image.active {
    opacity: 1;
}

/* =====================================================================
   QUIZ SHOWCASE SECTION
   ===================================================================== */
.quiz-showcase {
    background: var(--color-bg-main);
    padding: 8rem 2rem;
}

.quiz-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    width: 100%;
}

.quiz-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quiz-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.quiz-rotating-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.quiz-rotating-image.active {
    opacity: 1;
    transform: translateX(0);
}

.quiz-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.quiz-content .scroll-arrow {
    align-self: center;
}

.quiz-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.quiz-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* =====================================================================
   CONTINENTS SECTION
   ===================================================================== */
.continents-section {
    background: var(--color-bg-main);
    padding: 8rem 2rem;
}

.continents-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    width: 100%;
}

.continents-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.continents-content .scroll-arrow {
    align-self: center;
}

.continents-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.continents-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.continents-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.continents-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.continents-rotating-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.continents-rotating-image.active {
    opacity: 1;
}

/* =====================================================================
   CTA SECTION
   ===================================================================== */
.cta {
    background: var(--color-bg-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
}

.cta-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    width: 100%;
}

.cta-content {
    flex: 1;
    text-align: left;
}

.cta-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.cta-download {
    margin-top: 2rem;
}

.cta-download .app-store-badge {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.cta-download .app-store-badge:hover {
    transform: translateY(-2px);
}

.cta-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-image-container {
    width: 100%;
    max-width: 900px;
    position: relative;
}

.cta-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
    background-color: #F5F5F5;
    color: #333333;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: #004e92;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #004e92;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 78, 146, 0.2);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

/* =====================================================================
   MOBILE NAVIGATION
   ===================================================================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-primary);
    z-index: 1001;
}

.mobile-menu-btn:focus {
    outline: 2px solid var(--color-fauna-primary);
    border-radius: 4px;
}

.hamburger {
    width: 25px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--color-bg-main);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
}

.mobile-nav-link.active {
    background-color: #000000;
    border-color: #000000;
}

.mobile-nav-link.active .logo {
    color: #FFFFFF;
}

.mobile-nav-link .logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.mobile-nav-link .logo {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #000000;
}

.mobile-nav-link:nth-child(2) .logo {
    color: #007AFF !important;
}

.mobile-app-store {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

.mobile-app-store .app-store-badge {
    height: 50px;
    width: auto;
}

/* =====================================================================
   RESPONSIVE DESIGN
   ===================================================================== */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
        position: relative;
    }

    .nav-brand {
        display: none;
    }

    .nav-download {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-current-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }

    .mobile-current-brand .logo-icon {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        object-fit: cover;
    }

    .mobile-current-brand .logo {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
        color: #000000 !important;
    }

    .fauna-hero {
        flex-direction: column;
        padding: 5rem 1rem 3rem;
        gap: 2.5rem;
        min-height: auto;
    }

    .fauna-hero-content {
        text-align: center;
    }

    .fauna-hero-buttons {
        justify-content: center;
    }

    .fauna-hero-image {
        order: -1;
    }

    .fauna-description h2 {
        font-size: 2.5rem;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
        max-width: 90vw;
        margin: 0 auto;
    }

    .quiz-showcase {
        padding: 5rem 1rem;
    }

    .quiz-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .quiz-content {
        text-align: center;
        align-items: center;
    }

    .quiz-title {
        font-size: 2rem;
    }

    .continents-section {
        padding: 5rem 1rem;
    }

    .continents-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .continents-content {
        text-align: center;
        align-items: center;
        order: 2;
    }

    .continents-image {
        order: 1;
    }

    .continents-title {
        font-size: 2rem;
    }

    .cta {
        padding: 5rem 1rem 3rem;
        min-height: auto;
    }

    .cta-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .cta-content {
        text-align: center;
    }

    .cta-download {
        display: flex;
        justify-content: center;
    }

    .cta-image {
        order: -1;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.8rem 1rem;
    }

    .mobile-current-brand .logo {
        font-size: 1.3rem;
    }

    .mobile-current-brand .logo-icon {
        width: 28px;
        height: 28px;
    }

    .mobile-nav-menu {
        width: 280px;
        padding: 4rem 1.5rem 2rem;
    }

    .fauna-hero {
        padding: 4rem 1rem 2rem;
        gap: 1.5rem;
    }

    .fauna-description h2 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .fauna-lead {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
        max-width: 85vw;
    }

    .cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .mobile-current-brand {
        display: flex !important;
    }
}
