/* =========================================
   DESIGN SYSTEM - OCA DO BRINCAR
   ========================================= */

@font-face {
    font-family: 'Lemon Yellow Sun';
    src: url('fonts/LemonYellowSun.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Oca do Brincar Colors */
    --bg-main: #FDF8E1; /* Cream/Light Yellow */
    --c-yellow: #E2A94A; /* Mustard Yellow */
    --c-teal: #4D7D72; /* Dark Green / Teal */
    --c-terracota: #C16453; /* Earthy Red / Pinkish Brown */
    --text-main: #3A342B; /* Dark Brown for readability */
    --text-light: #615A50; /* Medium Brown */
    
    /* Typography */
    --font-heading: 'Lemon Yellow Sun', cursive;
    --font-body: 'Nunito', sans-serif;
    
    /* Spacing & Utilities */
    --transition-bouncy: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy effect */
    --transition-smooth: all 0.3s ease;
    --border-radius-sm: 12px;
    --border-radius-md: 24px;
    --border-radius-lg: 40px;
    
    /* Borders */
    --border-playful: 4px solid var(--text-main);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

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

/* =========================================
   UTILITIES & PLAYFUL ELEMENTS
   ========================================= */
.highlight {
    color: var(--c-terracota);
}

.highlight-text {
    color: var(--c-teal);
}

.white-text h2, .white-text p {
    color: #FFF;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition-bouncy);
    border: var(--border-playful);
    box-shadow: 4px 4px 0px var(--text-main);
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--text-main);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--text-main);
}

.btn-primary {
    background: var(--c-yellow);
    color: var(--text-main);
}

.btn-terracota {
    background: var(--c-terracota);
    color: #FFF;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.5);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
}

/* Background Utility Classes */
.bg-teal { background-color: var(--c-teal); color: #FFF; }
.bg-terracota { background-color: var(--c-terracota); color: #FFF; }
.bg-yellow { background-color: var(--c-yellow); color: var(--text-main); }

/* =========================================
   HEADER & NAV
   ========================================= */
.top-bar {
    background-color: var(--c-teal);
    color: white;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    width: 100%;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.top-bar-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    transition: var(--transition-smooth);
    background: var(--bg-main);
    border-bottom: var(--border-playful);
}

.header.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.header.scrolled .top-bar {
    display: none;
}

.nav-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-bouncy);
    margin: 5px 0;
}

.logo-img:hover {
    transform: scale(1.05) rotate(-3deg);
}

.footer-logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
    background: var(--bg-main); 
    padding: 10px;
    border-radius: var(--border-radius-sm);
    border: var(--border-playful);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--c-terracota);
    transition: var(--transition-bouncy);
    border-radius: 10px;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 4px;
    background-color: var(--text-main);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding: 190px 0 80px;
    background-color: var(--bg-main);
    overflow: hidden;
}

.organic-shape {
    position: absolute;
    z-index: 0;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite both alternate;
}

.shape-1 {
    top: 50px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--c-yellow);
    opacity: 0.15;
}

.shape-2 {
    bottom: 50px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: var(--c-terracota);
    opacity: 0.1;
    animation-delay: 2s;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--c-terracota);
    color: white;
    font-family: var(--font-heading);
    border-radius: 20px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transform: rotate(-3deg);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Visual Cards */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    border: var(--border-playful);
    box-shadow: 10px 10px 0px var(--c-teal);
    background-color: var(--bg-main);
}

.play-card {
    border: var(--border-playful);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: var(--transition-bouncy);
}

.play-card:hover {
    transform: scale(1.05) rotate(2deg);
}

.card-yellow { background-color: var(--c-yellow); }
.card-teal { background-color: var(--c-teal); color: white; align-self: flex-end;}
.card-teal h3 { color: white; }

.play-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.play-card p {
    font-size: 1rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    border: 2px solid var(--text-main);
}

.wave-bottom {
    display: block;
    width: 100%;
    margin-top: -5px;
    margin-bottom: -1px;
}

/* =========================================
   NOSSA PROPOSTA SECTION
   ========================================= */
.proposta {
    background-color: var(--c-teal);
    padding: 80px 0 0;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 L25 25 L50 50 L75 25 L100 50' stroke='rgba(255,255,255,0.08)' stroke-width='4' fill='none' stroke-linejoin='miter'/%3E%3Cpath d='M0 70 L25 45 L50 70 L75 45 L100 70' stroke='rgba(255,255,255,0.08)' stroke-width='4' fill='none' stroke-linejoin='miter'/%3E%3Ccircle cx='25' cy='65' r='4' fill='rgba(255,255,255,0.08)' /%3E%3Ccircle cx='75' cy='65' r='4' fill='rgba(255,255,255,0.08)' /%3E%3Ccircle cx='50' cy='30' r='4' fill='rgba(255,255,255,0.08)' /%3E%3Ccircle cx='100' cy='30' r='4' fill='rgba(255,255,255,0.08)' /%3E%3Ccircle cx='0' cy='30' r='4' fill='rgba(255,255,255,0.08)' /%3E%3C/svg%3E");
    background-size: 100px 100px;
}

.proposta .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.proposta .section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.proposta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.proposta-card {
    border: var(--border-playful);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    position: relative;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.2);
    transition: var(--transition-bouncy);
}

.proposta-card:hover {
    transform: translateY(-10px);
}

.card-terracota { background: var(--c-terracota); color: white; }
.card-terracota h4 { color: white; }
.card-cream { background: var(--bg-main); color: var(--text-main); }

.proposta-card h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.icon-blob {
    width: 70px;
    height: 70px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--text-main);
}

.blob-yellow { background: var(--c-yellow); }
.blob-teal { background: var(--c-teal); }
.blob-terracota { background: var(--c-terracota); }

/* =========================================
   O QUE OFERECEMOS SECTION
   ========================================= */
.oferecemos {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.oferecemos .section-header {
    margin-bottom: 3rem;
}

.oferecemos .section-header h2 {
    font-size: 3rem;
}

.offer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.offer-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.offer-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.offer-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: var(--border-playful);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.offer-text h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.offer-image-placeholder {
    display: flex;
    justify-content: center;
}

.polaroid {
    background: white;
    padding: 1.5rem;
    padding-bottom: 4rem;
    border: var(--border-playful);
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1);
    transition: var(--transition-bouncy);
    width: 80%;
    position: relative;
}

.polaroid-stack {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.polaroid-1 {
    transform: rotate(3deg);
}
.polaroid-1:hover {
    transform: rotate(0deg) scale(1.05);
}

.polaroid-2 {
    transform: rotate(-3deg);
}
.polaroid-2:hover {
    transform: rotate(0deg) scale(1.05);
}

.polaroid-img {
    background: var(--bg-main);
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border: 2px solid var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

.crossfade-container .fade-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: crossfade 32s infinite ease-in-out;
}

.crossfade-container .img-1 { animation-delay: 0s; }
.crossfade-container .img-2 { animation-delay: 4s; }
.crossfade-container .img-3 { animation-delay: 8s; }
.crossfade-container .img-4 { animation-delay: 12s; }
.crossfade-container .img-5 { animation-delay: 16s; }
.crossfade-container .img-6 { animation-delay: 20s; }
.crossfade-container .img-7 { animation-delay: 24s; }
.crossfade-container .img-8 { animation-delay: 28s; }

@keyframes crossfade {
    0% { opacity: 0; transform: scale(1.05); }
    3.125% { opacity: 1; transform: scale(1); }
    12.5% { opacity: 1; transform: scale(1); }
    15.625% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.05); }
}

.crossfade-container-2 .fade-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: crossfade-5 20s infinite ease-in-out;
}

.crossfade-container-2 .img-9 { animation-delay: 0s; }
.crossfade-container-2 .img-10 { animation-delay: 4s; }
.crossfade-container-2 .img-11 { animation-delay: 8s; }
.crossfade-container-2 .img-12 { animation-delay: 12s; }
.crossfade-container-2 .img-13 { animation-delay: 16s; }

@keyframes crossfade-5 {
    0% { opacity: 0; transform: scale(1.05); }
    5% { opacity: 1; transform: scale(1); }
    20% { opacity: 1; transform: scale(1); }
    25% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.05); }
}

.polaroid-caption {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    text-align: center;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta {
    padding: 60px 0 100px;
    background-color: var(--bg-main);
}

.fun-banner {
    background-color: var(--c-yellow);
    border: var(--border-playful);
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 12px 12px 0px var(--c-teal);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.fun-banner-content {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: left;
}

.cta-mascot {
    max-width: 300px;
    height: auto;
    margin: 0;
    display: block;
}

.fun-banner h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.fun-banner p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 0 2.5rem 0;
}

@media (max-width: 768px) {
    .fun-banner-content {
        text-align: center;
    }
    .fun-banner p {
        margin: 0 auto 2.5rem auto;
    }
    .cta-mascot {
        margin: 0 auto;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    border-top: var(--border-playful);
    background: var(--c-terracota);
    color: white;
    padding: 4rem 0 2rem;
}

.footer h4, .footer p {
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    min-height: 120px;
    border: 2px solid var(--c-yellow);
    border-radius: var(--border-radius-md);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.footer-logo p {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links a {
    display: block;
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--c-yellow);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(255,255,255,0.2);
    font-size: 0.95rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

.float-anim {
    animation: float 5s ease-in-out infinite;
}

.float-anim-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

.bounce-anim {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(-3deg); }
    40% { transform: translateY(-15px) rotate(-3deg); }
    60% { transform: translateY(-7px) rotate(-3deg); }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: var(--transition-bouncy);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        align-items: center;
        margin-top: 2rem;
    }
    
    .play-card {
        max-width: 80%;
    }
    
    .card-teal {
        align-self: center;
        margin-top: -1rem;
    }
    
    .offer-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        flex-direction: column;
        padding: 2rem;
        clip-path: circle(0% at 100% 0);
        transition: all 0.5s ease-out;
        border-bottom: var(--border-playful);
    }
    
    .nav-menu.active {
        clip-path: circle(150% at 100% 0);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .fun-banner {
        padding: 3rem 1.5rem;
    }
    
    .fun-banner h2 {
        font-size: 2.5rem;
    }
}
