:root {
    --primary: #D4AF37;
    /* Updated Gold/Mustard */
    --primary-dark: #B8860B;
    /* Darker Gold */
    --secondary: #FFFBD1;
    /* Updated Light Yellow/Cream */
    --accent: #C19E15;
    /* Accent Gold */
    --text-color: #3E3832;
    /* Updated Dark Coffee/Gray */
    --text-light: #7A726A;
    /* Softer dark gray */
    /* Vivid & Ludic Palette Extension */
    --sky-blue: #E1F5FE;
    --sky-blue-vivid: #A7E6FF;
    --coral-soft: #FFF1F0;
    --mint-soft: #E8F5E9;
    --white: #FFFFFF;
    --bg-light: #FFFDEA;
    /* Soft background */
    --shadow: 0 10px 40px rgba(184, 134, 11, 0.1);
    /* Golden shadow */
    --font-accent: 'Gochi Hand', cursive;
    --font-serif: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Quicksand', sans-serif;
    --font-heading: 'Grandstander', cursive;

    /* Premium 3D Effects */
    --shadow-3d: 0 10px 25px rgba(184, 134, 11, 0.15), 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-button: 0 8px 15px rgba(184, 134, 11, 0.2);
    --shadow-inset: inset 2px 2px 5px rgba(255, 255, 255, 0.5), inset -2px -2px 5px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--accent);
}

.handwritten-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--accent);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 30px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    background: linear-gradient(120deg, var(--secondary) 0%, var(--secondary) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.3em;
    background-position: 0 88%;
}

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

/* Header / Navbar (Floating Glass Menu) */
.main-header {
    padding: 8px 0;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Glassmorphism Effect on Scroll - Refined to maintain floating look */
.main-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    padding: 5px 0;
    width: 92%;
    top: 15px;
}

.logo img {
    height: 75px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.main-header.scrolled .logo img {
    height: 60px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
    /* Readability boost */
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 10px;
}

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

.main-nav a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 3000;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-cta-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-cta-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.45);
}

@media (max-width: 968px) {
    .main-header {
        width: 92%;
    }

    .menu-toggle {
        display: flex;
    }


    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 253, 234, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 2500;
        visibility: hidden;
    }

    .nav-open .main-nav {
        right: 0;
        visibility: visible;
    }


    .main-nav ul {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.8rem;
        font-family: var(--font-heading);
    }
}

/* Hero Section styling remains in the Layered Architecture section at the bottom of the file */


.subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 35px;
    font-weight: 500;
}

.btn-hero-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 1024px) {
    .hero-container {
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        background: rgba(255, 255, 234, 0.7);
        padding: 30px 20px;
        margin: 0 15px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
    background: var(--primary-dark);
    color: white;
}

/* Sections Global */
section {
    padding: 100px 0;
}

.section-lemon {
    background-color: var(--secondary);
}

/* Card Style */
.card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 30px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

/* Situations Section */
.situations {
    background-color: var(--white);
    padding: 100px 0;
}

.situations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* ── Icon Bounce ─────────────────────────────
   Applies to ALL emoji icon elements on hover
   ────────────────────────────────────────── */
.card-icon,
.help-icon,
.area-card .area-icon {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center bottom;
}

/* Individual sizes preserved */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.help-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Trigger: parent card hover fires icon animation */
.situation-card:hover .card-icon,
.help-item:hover .help-icon,
.area-card:hover .area-icon {
    animation: iconBounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes iconBounce {
    0% {
        transform: scale(1) rotate(0deg);
    }

    30% {
        transform: scale(1.45) rotate(-12deg);
    }

    55% {
        transform: scale(1.3) rotate(10deg);
    }

    75% {
        transform: scale(1.4) rotate(-6deg);
    }

    90% {
        transform: scale(1.35) rotate(3deg);
    }

    100% {
        transform: scale(1.4) rotate(0deg);
    }
}

.situation-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent);
}

/* Refined Ludic Cards for Situations */
.situation-card {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

/* Individual card shapes (keeping the playful radius but with glass effect) */
.situation-card:nth-child(1) {
    border-radius: 35px 55px 30px 50px;
}

.situation-card:nth-child(2) {
    border-radius: 55px 35px 50px 30px;
}

.situation-card:nth-child(3) {
    border-radius: 40px 50px 35px 55px;
}

.situation-card:nth-child(4) {
    border-radius: 30px 45px 55px 40px;
}

.situation-card:hover {
    transform: translateY(-10px) rotate(1deg);
    /* Playful tilt */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.pain-footer {
    margin-top: 40px;
}

.handwritten-small {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    color: var(--accent);
    margin-top: 20px;
}

/* ── Section CTA Buttons ─────────────────────── */
.section-cta-wrapper {
    margin-top: 56px;
}

.btn-section-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.btn-section-cta svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-section-cta:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 45px rgba(212, 175, 55, 0.5);
    filter: brightness(1.08);
}

.btn-section-cta:hover svg {
    transform: scale(1.15) rotate(5deg);
}

.btn-section-cta:active {
    transform: scale(0.97);
}

/* Coral variant — for use on coral background sections */
.btn-section-cta--coral {
    background: linear-gradient(135deg, var(--accent), #2a6049);
    box-shadow: 0 10px 30px rgba(44, 95, 74, 0.3);
}

.btn-section-cta--coral:hover {
    box-shadow: 0 18px 45px rgba(44, 95, 74, 0.45);
}



/* Fluffy Cloud Separator */
.cloud-separator {
    width: 100%;
    line-height: 0;
    position: relative;
    z-index: 100;
    /* Ensure it stays on top */
    margin-top: -120px;
    /* Pull up significantly to overlap hero */
    margin-bottom: -20px;
    /* Offset to prevent gap */
}

.cloud-separator svg {
    display: block;
    width: 100%;
    height: 150px;
    /* Taller for more fluffiness */
}

.cloud-path {
    fill: var(--white);
}

.section-sky {
    background-color: var(--sky-blue);
}

.section-coral {
    background-color: var(--coral-soft);
}

.section-mint {
    background-color: var(--mint-soft);
}

/* Floating Doodles */
.floating-doodle {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.doodle-1 {
    top: 10%;
    left: 5%;
    width: 150px;
    animation-delay: 0s;
}

.doodle-2 {
    top: 40%;
    right: 5%;
    width: 200px;
    animation-delay: 2s;
}

.doodle-3 {
    bottom: 20%;
    left: 8%;
    width: 120px;
    animation-delay: 4s;
}

.doodle-4 {
    top: 70%;
    right: 10%;
    width: 180px;
    animation-duration: 12s;
}

/* Refined Cards with Pop effect */
.card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* About Section Redesign (Premium & Ludic) */
.about {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-photo-container {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Organic Blob Background for Photo */
.about-photo-bg {
    position: relative;
    padding: 30px;
}

.about-photo-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: var(--secondary);
    z-index: -1;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blobMorph 12s linear infinite alternate;
}

@keyframes blobMorph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%;
    }
}

.about-photo {
    width: 100%;
    max-width: 420px;
    display: block;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.about-photo:hover {
    transform: scale(1.02) rotate(-1deg);
}

.photo-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 10;
}

.about-text h2 {
    margin-bottom: 40px;
    text-align: left;
}

.about-text p {
    margin-bottom: 22px;
    font-size: 1.15rem;
    color: var(--text-color);
    line-height: 1.7;
}

/* Enhanced Citation Card (Glass Effect) */
.citation-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    padding: 45px;
    border-radius: 50px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.05);
    margin-top: 45px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.citation-card::before {
    content: '“';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
}

.italic-quote {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.gold-text {
    color: var(--primary);
    font-weight: 700;
}

.citation-card cite {
    display: block;
    text-align: right;
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 700;
    font-style: normal;
}

/* How I Help Grid */
.how-i-help {
    position: relative;
    overflow: hidden;
}


.section-bg-illustration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.bg-brain {
    position: absolute;
    top: 0;
    right: -80px;
    width: 450px;
    opacity: 0.12;
    transform: rotate(5deg);
}

.relative-container {
    position: relative;
    z-index: 2;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.help-item {
    text-align: center;
    padding: 20px;
}

.help-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.help-item h3 {
    margin-bottom: 15px;
}

/* Areas of Attention Redesign (Glassmorphism) */
.areas-of-attention {
    position: relative;
    padding: 140px 0;
    background-image: url('images/bg-areas-ludic.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
}

.areas-of-attention::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 241, 240, 0.88);
    /* Soft coral-soft background */
    z-index: 1;
}

.areas-of-attention .container {
    position: relative;
    z-index: 2;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Proportional grid that adapts to any number of cards */
    gap: 30px;
    margin-bottom: 60px;
}

.area-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 50px 30px;
    border-radius: 50px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.area-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 1);
}

.area-card .area-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.1));
    /* display:inline-block set in global icon rule above */
}

.area-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.area-card p {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* Individual accent colors for glass cards (subtle border indicator) */
.card-tea {
    border-bottom: 6px solid #4FC3F7;
}

.card-tdah {
    border-bottom: 6px solid #FFB74D;
}

.card-tda {
    border-bottom: 6px solid #81C784;
}

.card-discalculia {
    border-bottom: 6px solid #FF8A65;
}

.card-dislexia {
    border-bottom: 6px solid #9575CD;
}

.card-rainbow {
    border-bottom: 6px solid var(--accent);
}

/* Media query for areas-grid removed as repeat(auto-fit) handles this proportionally now */

@media (max-width: 768px) {
    .areas-grid {
        grid-template-columns: 1fr;
    }

    .areas-of-attention {
        background-attachment: scroll;
        padding: 80px 0;
    }
}

.kids-illustration-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.kids-illustration {
    width: 100%;
    max-width: 400px;
    opacity: 0.8;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    padding: 40px 30px;
    border-radius: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card cite {
    font-weight: 700;
    color: var(--accent);
}

/* ======================================
   Scroll Reveal — CSS Animations
   (triggered by .is-visible via JS)
   ====================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Stagger delays for grid children */
.stagger-child:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-child:nth-child(2) {
    transition-delay: 0.15s;
}

.stagger-child:nth-child(3) {
    transition-delay: 0.25s;
}

.stagger-child:nth-child(4) {
    transition-delay: 0.35s;
}

.stagger-child:nth-child(5) {
    transition-delay: 0.45s;
}

.stagger-child:nth-child(6) {
    transition-delay: 0.55s;
}

/* ======================================
   Contact Section
   ====================================== */
.contact-section {
    background: var(--white);
    padding: 110px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
}

/* Left column */
.contact-portrait-wrapper {
    margin-bottom: 28px;
}

.contact-portrait {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2), 0 0 0 4px rgba(212, 175, 55, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-portrait:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 55px rgba(212, 175, 55, 0.3), 0 0 0 6px rgba(212, 175, 55, 0.2);
}

/* Left column */
.contact-title {
    color: var(--accent);
    margin-bottom: 16px;
    text-align: left;
}

.contact-lead {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-lead-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-lead em {
    color: var(--primary-dark);
    font-style: italic;
    font-weight: 700;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover .contact-item-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.4);
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.contact-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-item-body strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-heading);
}

.contact-item-body a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.97rem;
    line-height: 1.6;
    transition: color 0.25s ease;
}

.contact-item-body a:hover {
    color: var(--primary-dark);
}

/* Social Icons Row */
.contact-social-row {
    display: flex;
    gap: 14px;
}

.contact-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-social-icon svg {
    width: 20px;
    height: 20px;
}

.contact-social-ig {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    box-shadow: 0 6px 16px rgba(188, 24, 136, 0.3);
}

.contact-social-wa {
    background: #25D366;
    color: white;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.contact-social-icon:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* Right column — Form Card */
.contact-form-col {
    position: sticky;
    top: 100px;
}

.contact-form-card {
    background: var(--white);
    border-radius: 28px;
    padding: 50px 45px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 32px;
    font-weight: 500;
}

.contact-form-intro span {
    color: var(--primary-dark);
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid #e8e4dc;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--text-color);
    background: #fafaf8;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
}

.form-input::placeholder {
    color: #bbb;
}

.form-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-textarea {
    border-radius: 20px;
    resize: vertical;
    min-height: 130px;
}

.form-submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.3);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

.form-submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.45);
    filter: brightness(1.08);
}

.form-submit-btn:active {
    transform: scale(0.98);
}

.form-success-msg {
    text-align: center;
    font-size: 1rem;
    color: var(--accent);
    font-weight: 700;
    margin-top: 16px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Contact Section Responsive */
@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form-col {
        position: static;
    }

    .contact-form-card {
        padding: 35px 28px;
    }
}

@media (max-width: 480px) {
    .contact-form-card {
        padding: 28px 20px;
    }
}



/* Footer Redesign – 4-Column Premium Layout */
.main-footer {
    background-color: #2C2620;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 18px;
    filter: brightness(1.1);
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    max-width: 240px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 22px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: all 0.25s ease;
    position: relative;
    padding-left: 0;
}

.footer-links li a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: var(--primary);
    vertical-align: middle;
    margin-right: 0;
    transition: all 0.25s ease;
}

.footer-links li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-links li a:hover::before {
    width: 6px;
    margin-right: 4px;
}

/* Footer Contact Column */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.footer-contact-info a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.25s ease;
}

.footer-contact-info a:hover {
    color: var(--primary);
}

.footer-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
    opacity: 0.85;
}

/* Footer Social Buttons */
.footer-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.footer-social-btn:hover svg {
    transform: scale(1.15) rotate(-5deg);
}

.footer-social-instagram {
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.15), rgba(220, 39, 67, 0.15), rgba(188, 24, 136, 0.15));
    color: #e0709a;
    border-color: rgba(220, 39, 67, 0.25);
}

.footer-social-instagram:hover {
    background: linear-gradient(135deg, rgba(240, 148, 51, 0.3), rgba(220, 39, 67, 0.3), rgba(188, 24, 136, 0.3));
    color: #ff8cbf;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(188, 24, 136, 0.2);
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    padding: 20px 0;
    background-color: #231e1a;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright {
    opacity: 0.45;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

.footer-divider {
    opacity: 0.3;
}

.footer-bottom-links span a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.25s ease;
}

.footer-bottom-links span a:hover {
    color: var(--primary);
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Floating Social Buttons Container */
.floating-social-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2000;
}

/* Floating Instagram Button */
.floating-instagram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(188, 24, 136, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-instagram-btn:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 14px 30px rgba(188, 24, 136, 0.5);
}

.floating-instagram-btn svg {
    width: 28px;
    height: 28px;
}

/* Sticky WhatsApp */
.whatsapp-btn {
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-btn:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55);
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
}

/* Reflective Mural Section (Fixed Background) */
.reflective-mural {
    position: relative;
    padding: 160px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('images/mural-estudo.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.reflective-mural::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.reflective-mural .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

/* Hero Section (Premium Typographic Architecture) */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 60px;
    /* Space for floating menu */

    align-items: center;
    position: relative;
    background-color: var(--secondary);
    overflow: hidden;
}

/* Layer 1: Background */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-single {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    animation: kenBurns 30s ease-in-out infinite;
    will-change: transform;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.0) translate(0%, 0%);
    }

    25% {
        transform: scale(1.06) translate(-1.5%, 0.5%);
    }

    50% {
        transform: scale(1.12) translate(-2%, -1%);
    }

    75% {
        transform: scale(1.06) translate(1%, -0.5%);
    }

    100% {
        transform: scale(1.0) translate(0%, 0%);
    }
}

/* Layer 2: Massive Interlaced Text (Behind Portrait) */
.hero-huge-background-title {
    position: absolute;
    top: 30%;
    /* Move higher */
    left: 48%;
    /* Slight offset */
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(5rem, 16vw, 15rem);
    line-height: 0.8;
    color: rgba(62, 56, 50, 0.02);
    /* Almost invisible for texture only */
    z-index: 10;
    pointer-events: none;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
    user-select: none;
}

.hero-huge-background-title .text-color-accent {
    color: var(--primary);
    opacity: 0.05;
    /* Very subtle */
}

/* Layer 3: Central Portrait Layer */
.hero-portrait-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 20;
    pointer-events: none;
    opacity: 0.95;
}

.hero-portrait-fixed {
    max-height: 85%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 80px rgba(0, 0, 0, 0.15));
    animation: portraitFadeIn 0.5s ease-out;
}

@keyframes portraitFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* Layer 4: Premium Typography Composition (Repositioned) */
.hero-container-foreground {
    position: relative;
    z-index: 30;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
    height: 100%;
}


.hero-typography-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align left for balance */
    text-align: left;
    pointer-events: auto;
    width: 100%;
    max-width: 500px;
    transform: translateY(-10px);
    /* Lowered to avoid menu overlap */
}

.hero-headline-top {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--primary-dark);
    margin-bottom: -1rem;
    font-weight: 700;
    font-style: italic;
    text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 2px 10px rgba(0, 0, 0, 0.05);

}

.hero-headline-main {
    font-family: var(--font-script);
    font-size: clamp(5rem, 12vw, 10rem);
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0;
    text-shadow: 0 0 40px rgba(255, 255, 255, 1), 0 0 20px rgba(212, 175, 55, 0.15), 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-subheadline {
    font-family: var(--font-serif);
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
    color: var(--text-color);
    font-style: italic;
    font-weight: 400;
    opacity: 0.72;
    margin-top: 8px;
    margin-bottom: 0;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.9);
    max-width: 360px;
    line-height: 1.45;
}

.btn-hero-cta {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    margin-top: 35px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);

    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: auto;
    animation: heroBtnFadeIn 1s ease-out 0.8s both;
}

.btn-hero-cta:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.45);
    filter: brightness(1.1);
}

@keyframes heroBtnFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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


/* Mobile Adjustments */
@media (max-width: 1024px) {
    .hero {
        min-height: 90vh;
        padding-top: 80px;
    }

    .hero-headline-top {
        font-size: 2rem;
        margin-bottom: -1rem;
    }

    .hero-headline-main {
        font-size: 5rem;
        margin-bottom: 1.5rem;
    }

    .hero-portrait-fixed {
        max-height: 55%;
    }

    .hero-headline-box {
        padding: 10px 20px;
    }
}


.glass-box {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px 40px;
    border-radius: 40px;
    max-width: 800px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.reflective-mural .handwritten-title {
    color: var(--text-color);
    text-shadow: none;
    margin-bottom: 20px;
}

.mural-quote {
    font-family: var(--font-accent);
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.4;
    font-style: italic;
}

.mural-subtext {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 700;
    opacity: 0.9;
    font-family: var(--font-body);
}

@media (max-width: 1024px) {
    .reflective-mural {
        background-attachment: scroll;
        /* Better performance on mobile */
        padding: 100px 0;
        min-height: auto;
    }

    .glass-box {
        padding: 40px 25px;
        margin: 0 15px;
    }

    .mural-quote {
        font-size: 1.6rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 120px;
        padding-bottom: 0;
        /* no bottom padding — portrait fills it */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: relative;
    }

    /* foreground container becomes a normal flex column */
    .hero-container-foreground {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-bottom: 380px;
        /* reserve space for the portrait */
        z-index: 30;
    }

    /* 1 — Headline group: top, centered */
    .hero-typography-group {
        order: 1;
        align-items: center;
        text-align: center;
        margin: 0 auto;
        transform: none !important;
        position: relative;
        z-index: 30;
    }

    /* 2 — CTA button: directly below headline */
    .btn-hero-cta {
        order: 2;
        position: relative;
        z-index: 30;
        margin-top: 28px;
        padding: 18px 50px;
        font-size: 1.1rem;
        background: rgba(212, 175, 55, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 15px 45px rgba(212, 175, 55, 0.4);
        border-radius: 50px;
    }

    /* 3 — Portrait: pinned to the bottom of the hero */
    .hero-portrait-layer {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        z-index: 20;
        pointer-events: none;
    }

    .hero-portrait-fixed {
        max-height: 380px;
        width: auto;
        object-fit: contain;
    }

    .hero-cta-pod-mobile {
        display: none;
    }

    /* About Section Mobile Fix */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-text h2 {
        text-align: center;
    }

    .about-text p {
        text-align: left;
    }

    .citation-card {
        padding: 30px 20px;
    }

    .photo-badge {
        width: 60px;
        height: 60px;
        bottom: 10px;
        right: 10px;
        padding: 10px;
    }

    .badge-icon {
        width: 100%;
        height: auto;
    }
}




/* Stop scrolling when menu is open */
body.nav-open {
    overflow: hidden;
}