:root {
    --primary-blue: #0077c0;
    --primary-yellow: #fdb813;
    --primary-green: #4caf50;
    --primary-orange: #ff9800;
    --bg-cream: #f9f7f2;
    --text-dark: #2d2d2d;
    --font-main: 'Lexend', sans-serif;
    --font-cursive: 'Dancing Script', cursive;
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --glass: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Texture Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/p6.png");
    opacity: 0.15;
    pointer-events: none;
    z-index: 9999;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    background: rgba(249, 247, 242, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    flex-direction: row;
    justify-content: space-between;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    position: relative;
}

.logo-text::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40%;
    height: 4px;
    background: var(--primary-yellow);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 160px;
    background:
        radial-gradient(circle at 10% 20%, rgba(253, 184, 19, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 119, 192, 0.1) 0%, transparent 40%);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.cursive {
    font-family: var(--font-cursive);
    color: var(--primary-green);
    display: block;
    font-size: 1.1em;
    margin-top: 0.2em;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.4rem);
    color: #666;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .glass-card {
        padding: 2.5rem;
        max-width: 500px;
    }
}

.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.fixed-logo {
    width: min(70vw, 280px);
    height: auto;
    max-height: 300px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
}

.logo-aura {
    position: absolute;
    width: min(90vw, 380px);
    height: min(90vw, 380px);
    background: radial-gradient(circle,
            rgba(253, 184, 19, 0.3) 0%,
            rgba(0, 119, 192, 0.2) 50%,
            transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse-aura 4s ease-in-out infinite;
    filter: blur(15px);
}

@keyframes pulse-aura {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes rotate-aura {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Sections General */
section {
    padding: 80px 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    section {
        padding: 120px 0;
    }
}

/* Evolution Section */
.evolution {
    background-color: white;
}

.evolution .container {
    gap: 2rem;
}

.section-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.highlight {
    position: relative;
    z-index: 1;
}

.highlight::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--primary-yellow);
    opacity: 0.3;
    z-index: -1;
}

.evolution-card {
    background: var(--bg-cream);
    border-radius: 30px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
    .evolution-card {
        border-radius: 40px;
        padding: 3rem;
    }
}

.evolution-media {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.book-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-slow);
}

@media (max-width: 768px) {
    .book-img {
        transform: none;
    }
}

.book-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Space Section */
.space {
    background: linear-gradient(135deg, var(--bg-cream) 0%, #fff 100%);
}

.facade-preview {
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    border: 6px solid white;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .facade-preview {
        border-radius: 40px;
        border-width: 12px;
    }
}

.facade-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.geometric-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}



/* ==========================================================================
   Contact Section (Instagram-Clean Aesthetics)
   ========================================================================== */
#contato {
    background: #ffffff;
    padding: 120px 0;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-wrapper {
    width: 100%;
    max-width: 450px;
    /* Narrower like Instagram card */
    margin: 0 auto;
    position: relative;
}

/* Form Card */
.contact-form {
    background: #ffffff !important;
    border: 1px solid #dbdbdb !important;
    /* Instagram light gray border */
    border-radius: 12px !important;
    /* Cleaner rounding */
    padding: 2.5rem !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    box-shadow: none !important;
    /* Flatter look */
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.5rem !important;
        border: none !important;
        /* Edge to edge on mobile like IG */
    }

    #contato {
        padding: 60px 0;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
    opacity: 0.9;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem 1rem;
    border: 1px solid #efefef;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #fafafa;
    /* Very light gray background like IG inputs */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none !important;
    border-color: #a8a8a8;
    /* Darker gray on focus */
    background: #fff;
}

/* Premium Button (Instagram Style) */
.btn-premium {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    color: white !important;
    border: none;
    border-radius: 8px;
    background: var(--primary-blue);
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-top: 1rem;
    box-shadow: none !important;
}

.btn-premium:hover {
    opacity: 0.9;
    transform: none;
}

.btn-premium:active {
    opacity: 0.7;
}

/* Success Card Overhaul */
.success-card {
    background: white;
    padding: 4rem 2rem;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    text-align: center;
    width: 100%;
}

.success-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
}

.success-image-wrap {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid #dbdbdb;
}

.success-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

/* Visibility Control */
.loader-hidden,
.success-hidden {
    display: none !important;
}

/* Loader Styles */
.loader-visible {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 119, 192, 0.1);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Instagram CTA Section */
.instagram-cta {
    background: white;
    padding: 80px 0;
    text-align: center;
}

.instagram-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
}

.btn-instagram {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-instagram:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(220, 39, 67, 0.3);
}

.btn-instagram:active {
    transform: translateY(-2px) scale(0.98);
}

/* Location Section */
.location {
    background-color: white;
    padding: 80px 0;
}

.location-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 32px;
    text-align: center;
}

.address {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.map-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 4px solid white;
}

.location-actions {
    display: flex;
    justify-content: center;
}

.btn-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition-slow);
    box-shadow: 0 10px 20px rgba(0, 119, 192, 0.2);
}

.btn-location:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 119, 192, 0.3);
    opacity: 0.9;
}

.pin-icon {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .location-card {
        padding: 1rem;
    }

    .address {
        font-size: 0.95rem;
    }
}

/* Footer */
.footer {
    background: #fafafa;
    color: #666;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #dbdbdb;
}

.footer p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.social-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Desktop */
@media (min-width: 992px) {
    .evolution-card {
        grid-template-columns: 1fr 1fr;
    }
}