/* ========================================
   RESET & BASE STYLES
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --beige: #F5F0E8; 
    --charcoal: #3C3C3B; 
    --yellow: #F9B334; 
    --sand: #E3E1D7; 
    --sky-blue: #009fe3;
	
	--font-main: 'Montserrat', sans-serif;
    --font-highlight: 'IBM Plex Serif', serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--beige);
    color: var(--charcoal);
    overflow-x: hidden;
}

/* ========================================
   LOADING SCREEN
======================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.maggie-face {
    width: 200px;
    height: 200px;
    background-color: var(--beige);
    border-radius: 20px;
    margin: 0 auto 40px;
    position: relative;
    animation: bounce 1s ease-in-out infinite;
}

.loading-text {
    font-family: var(--font-main);
    font-size: clamp(48px, 6vw, 80px);
    color: var(--charcoal);
    font-weight: 700;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

/* ========================================
   HEADER & NAVIGATION
======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 2000; 
    background-color: transparent;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 15px;
}

.nav-btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
    border: 3px solid var(--charcoal);
}

.btn-pink {
    background-color: var(--yellow);
    color: var(--charcoal);
}

.btn-mint {
    background-color: var(--beige);
    color: var(--charcoal);
}

.nav-btn:hover {
    transform: scale(1.05);
}

.logo {
    display: block;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background-color: var(--beige);
	border: 3px solid var(--charcoal);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
	margin: 20px; 
    transition: transform 0.2s ease;
}

.logo-icon:hover {
    transform: scale(1.1);
}

.logo-full {
	display: block; 
	height: 100% !important; 
	border-radius: inherit; 
	object-position: center center; 
	object-fit: contain;
}

/* Desktop logo centered */
.desktop-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Desktop menu visible */
.nav-desktop {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Hide mobile elements on desktop */
.mobile-left,
.mobile-right,
.hamburger,
.nav-mobile,
.nav-group { 
    display: none;
}

/* =============================
   MOBILE MENU OVERLAY SHADE
============================= */

#siteOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1500; 
}

/* show overlay when body has .menu-open */
body.menu-open #siteOverlay {
    opacity: 1;
    pointer-events: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 60px;
    position: relative;
    background-color: var(--charcoal);
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

.hero-script {
    font-size: 48px;
    color: var(--beige);
	font-weight: 700;
    margin-bottom: 40px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 900;
    line-height: 1;
    color: var(--beige);
    margin-bottom: 60px;
    letter-spacing: -2px;
}

.decorative-blob {
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: var(--beige);
    border-radius: 50%;
    opacity: 0.3;
}

.blob-left {
    bottom: 10%;
    left: 2%;
}

/* ========================================
   PHONE SECTION
======================================== */

.carta-section {
    background: linear-gradient(to bottom, var(--beige) 0%, var(--beige) 50%, var(--sand) 50%, var(--sand) 100%);
    padding: 80px 40px 150px;
    position: relative;
}

.carta-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
}

.carta-mockup {
    flex-shrink: 0;
}

.carta-mockup img {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

.carta-1 {
    transform: rotate(-8deg) translateY(-20px);
}

.carta-2 {
    transform: scale(1.1) translateY(0px);
    z-index: 3;
}

.carta-3 {
    transform: rotate(8deg) translateY(-20px);
}

.animated-words {
    text-align: center;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.word-track {
    display: flex;
    gap: 40px;
    animation: scroll 20s linear infinite;
}

.word {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 900;
    color: var(--charcoal);
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   FEATURES SECTION
======================================== */

.features-section {
    background-color: var(--beige);
    padding: 100px 40px;
}

.section-title {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 900;
    color: var(--charcoal);
    text-align: left;
    max-width: 1200px;
    margin: 0 auto 60px;
    line-height: 1.1;
}

.feature-card {
    background-color: var(--sky-blue);
    border-radius: 60px;
    padding: 80px 60px;
    max-width: 1000px;
    margin: 0 auto;
    border: 4px solid var(--charcoal);
}

.feature-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
}

.feature-images > div {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-images img {
    width: 200px;
    height: auto;
}

.feature-img {
    object-fit: cover;
}

.img-1 {
    width: 200px;
}

.img-2 {
    width: 200px;
}

.img-3 {
    width: 200px;
}

.feature-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-subtitle {
    font-family: var(--font-main);
    font-size: 28px;
    color: var(--charcoal);
    margin-bottom: 20px;
    text-align: center;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.carousel-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--charcoal);
    background-color: var(--sand);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    color: var(--charcoal);
}

.carousel-btn:hover {
    transform: scale(1.1);
}

.carousel-btn.next {
    background-color: #f5b14d;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.carousel-slide {
    min-width: 100%;
    opacity: 0.4;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* INDICATORS */

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px 0 40px;
}

.carousel-indicators button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--charcoal);
    background: var(--beige);
    cursor: pointer;
    transition: transform 0.25s, background 0.25s;
}

.carousel-indicators button.active {
    background: var(--charcoal);
    transform: scale(1.2);
}

/* ========================================
   MISSION SECTION
======================================== */

.mission-section {
    background: linear-gradient(to bottom, var(--beige) 0%, var(--sky-blue) 90%);
    padding: 150px 40px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mission-face {
    width: 200px;
    height: 100px;
    margin: 0 auto 80px;
    position: relative;
}

.face-eyes {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 20px;
}

.face-eye {
    width: 60px;
    height: 60px;
    background-color: var(--charcoal);
    border-radius: 50%;
}

.face-smile {
    width: 80px;
    height: 40px;
    border: 6px solid var(--charcoal);
    border-top: none;
    border-radius: 0 0 80px 80px;
    margin: 0 auto;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    width: 100px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

.icon-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.icon-3 {
    top: 45%;
    left: 5%;
    animation-delay: 1s;
}

.icon-4 {
    top: 50%;
    right: 8%;
    animation-delay: 1.5s;
}

.icon-5 {
    bottom: 30%;
    left: 15%;
    animation-delay: 2s;
}

.icon-6 {
    bottom: 35%;
    right: 20%;
    animation-delay: 2.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.mission-title {
    font-size: clamp(48px, 7vw, 100px);
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1.1;
    margin-bottom: 40px;
}

.mission-subtitle {
    font-size: 20px;
    color: var(--charcoal);
    font-weight: 600;
}

.btn-explore {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--sand);
    color: var(--charcoal);
    border: 3px solid var(--charcoal);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}

.btn-explore:hover {
    transform: scale(1.05);
}

/* ========================================
   PARENTING SECTION
======================================== */

.parenting-section {
    background-color: var(--beige);
    padding: 100px 40px;
}

.parenting-title {
    font-size: clamp(56px, 8vw, 120px);
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1;
    text-align: center;
    margin-bottom: 60px;
}

.lighter-text {
    color: var(--yellow);
}

.parenting-content {
    background-color: var(--yellow);
    border-radius: 60px;
    padding: 80px 60px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    border: 4px solid var(--charcoal);
}

.parenting-subtitle {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 30px;
}

.parenting-cta {
    font-family: var(--font-main);
    font-size: 28px;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.btn-help {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--sand);
    color: var(--charcoal);
    border: 3px solid var(--charcoal);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}

.btn-help:hover {
    transform: scale(1.05);
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background-color: var(--beige);
    padding: 60px 40px 40px;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.social-link {
    color: var(--charcoal);
    transition: transform 0.2s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 24px;
    color: var(--charcoal);
	font-weight: 500;
}

.app-store-footer img {
    height: 40px;
}

/* ========================================
   RESPONSIVE STYLES (Consolidated Mobile Overrides)
======================================== */

@media (max-width: 768px) {
    /* Header & Navigation adjustments */
    .site-header {
        padding: 15px 20px;
    }

    /* Force hide desktop-only elements */
    .desktop-center,
    .nav-desktop {
        display: none !important;
    }

    /* Force show mobile elements */
    .mobile-left,
    .mobile-right,
    .hamburger {
        display: flex !important;
        align-items: center;
    }

    /* NAV STRUCTURE for mobile (Logo left, Hamburger right, Menu below) */
    .main-nav {
        width: 100%;
        flex-wrap: wrap; 
        justify-content: space-between; 
        align-items: center;
        position: relative;
    }
    
    /* Removed default desktop margin for logo and hamburger */
    .logo-icon {
        margin: 0;
    }
    .hamburger {
        margin: 0;
    }
    
    /* Styles for nav group contents (for menu items) */
    .nav-left,
    .nav-right {
        flex-direction: column;
    }
    
    /* Mobile menu button alignment */
    .nav-mobile {
        display: none;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        flex-basis: 100%;
        margin-top: 15px; 
        z-index: 2500;
        animation: fadeIn 0.3s ease forwards;
        align-items: flex-end; 
    }

    .main-nav.open #mobileMenu {
        display: flex;
    }

    /* User's requested style for mobile buttons */
    .nav-btn {
        text-align: center;
        width: 130px;
    }

    /* Hamburger Icon */
    .hamburger {
        flex-direction: column;
        gap: 5px;
        width: 50px;
        height: 50px;
        background-color: var(--beige);
        border-radius: 25px;
    	border: 3px solid var(--charcoal);
        cursor: pointer;
        padding: 10px;
        z-index: 3000;
        justify-content: center;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--charcoal);
        border-radius: 3px;
        transition: 0.3s ease;
    }

    /* * PHONE SECTION (CARTA SHOWCASE) FIX
     */
    .carta-showcase {
        flex-direction: row; 
        gap: 0; 
        justify-content: center; /* Explicitly center the fan */
        align-items: flex-end; /* Align to the bottom for consistent vertical positioning */
    }

    .carta-mockup {
        margin-left: -20px; 
        flex-shrink: 0;
    }
    
    .carta-mockup:first-child {
        margin-left: 0; 
    }

    .carta-mockup img {
        width: 120px; 
    }

    /* FIX: Re-apply and scale down fan transforms (rotation and vertical offset) */
    .carta-1 {
        transform: rotate(-10deg) translateY(-5px) !important; /* Enforced override */
        z-index: 1; 
    }

    .carta-2 {
        transform: scale(1.15) !important; /* Enforced override */
        z-index: 3;
    }

    .carta-3 {
        transform: rotate(10deg) translateY(-5px) !important; /* Enforced override */
        z-index: 2; 
    }
    /* End of CARTA SHOWCASE FIX */


    /* Content Section adjustments */
    .hero-section {
        padding: 100px 20px 40px;
    }
    
    .feature-images {
        flex-direction: column;
    }

    .float-icon {
        width: 60px;
    }

    .img-1,
    .img-2,
    .img-3 {
        transform: none !important;
        width: 100%;
        max-width: 300px;
    }

    .feature-card {
        padding: 40px 30px;
        border-radius: 30px;
    }

    .parenting-content {
        padding: 40px 30px;
        border-radius: 30px;
    }

    /* Footer adjustments */
    .footer-bottom {
        gap: 15px;
    }
}