/* ============================================
   RESET E VARIÁVEIS CSS
   ============================================ */

:root {
    --color-sand: #FAF7F4;
    --color-clay-light: #D8BFA2;
    --color-terracotta: #C77C51;
    --color-text: #333333;
    --color-white: #FFFFFF;
    --color-gray: #F5F5F5;
    --color-overlay: rgba(0, 0, 0, 0.3);
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Poppins', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(199, 124, 81, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Cursor personalizado para elementos interativos */
a, button, .gallery-item, .class-card {
    cursor: pointer;
}

/* Efeito de parallax suave no scroll */
.hero-content {
    will-change: transform;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* ============================================
   HEADER / NAVBAR
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--color-white);
    box-shadow: var(--shadow);
}

.navbar {
    padding: 20px 0;
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    color: var(--color-terracotta);
}

.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(199, 124, 81, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.logo:hover::before {
    width: 120%;
    height: 120%;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-terracotta);
    transition: width 0.3s ease;
}

.nav-link {
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: var(--color-terracotta);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-clay-light) 0%, var(--color-terracotta) 100%);
    background-image: url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 72px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: float-title 6s ease-in-out infinite;
    position: relative;
}

@keyframes float-title {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Efeito de brilho pulsante no subtítulo */
.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 40px;
    letter-spacing: 1px;
    animation: glow-subtitle 3s ease-in-out infinite;
}

@keyframes glow-subtitle {
    0%, 100% {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-primary {
    background-color: var(--color-white);
    color: var(--color-terracotta);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(199, 124, 81, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background-color: var(--color-terracotta);
    color: var(--color-white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background-color: var(--color-terracotta);
    color: var(--color-white);
    padding: 15px 40px;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover {
    background-color: var(--color-clay-light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.btn-secondary span {
    position: relative;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background-color: var(--color-white);
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(20px);
    }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SEÇÃO SOBRE
   ============================================ */

.about {
    padding: 100px 0;
    background-color: var(--color-white);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-text);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-terracotta), transparent);
    animation: expand-line 1s ease-out;
}

@keyframes expand-line {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    animation: float-image 6s ease-in-out infinite;
}

@keyframes float-image {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(199, 124, 81, 0.1), rgba(216, 191, 162, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.about-image:hover::before {
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.1);
}

/* ============================================
   SEÇÃO AULAS
   ============================================ */

.classes {
    padding: 100px 0;
    background-color: var(--color-sand);
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

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

.class-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.class-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(199, 124, 81, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.class-card:hover::before {
    opacity: 1;
}

.class-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.class-card:nth-child(1) {
    animation: float-card 7s ease-in-out infinite;
}

.class-card:nth-child(2) {
    animation: float-card 7s ease-in-out infinite 0.5s;
}

.class-card:nth-child(3) {
    animation: float-card 7s ease-in-out infinite 1s;
}

@keyframes float-card {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.class-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    color: var(--color-terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-icon 3s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.class-card:hover .class-icon {
    transform: scale(1.2) rotate(5deg);
    animation: none;
}

.class-card h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.class-card:hover h3 {
    color: var(--color-terracotta);
}

.class-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
}

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

/* ============================================
   SEÇÃO GALERIA
   ============================================ */

.gallery {
    padding: 100px 0;
    background-color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
    cursor: pointer;
    animation: float-gallery 8s ease-in-out infinite;
}

.gallery-item:nth-child(odd) {
    animation-delay: 0s;
}

.gallery-item:nth-child(even) {
    animation-delay: 1s;
}

.gallery-item:nth-child(3n) {
    animation-delay: 2s;
}

@keyframes float-gallery {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(199, 124, 81, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.15) contrast(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ============================================
   SEÇÃO CONTATO
   ============================================ */

.contact {
    padding: 100px 0;
    background-color: var(--color-sand);
}

.contact-intro {
    text-align: center;
    font-size: 18px;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(199, 124, 81, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-link:hover::before {
    left: 100%;
}

.contact-link:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.contact-link svg {
    color: var(--color-terracotta);
    transition: transform 0.3s ease;
}

.contact-link:hover svg {
    transform: scale(1.2) rotate(5deg);
}

.contact-link span {
    font-size: 18px;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--color-terracotta);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    color: var(--color-white);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: var(--shadow-glow);
}

.social-link:hover svg {
    transform: scale(1.2);
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

.contact-map:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--color-terracotta);
    color: var(--color-white);
    padding: 40px 0;
    text-align: center;
}

.footer-text {
    font-size: 15px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-social a {
    color: var(--color-white);
    opacity: 0.9;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-credits {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.aeprax-logo {
    display: inline-block;
    transition: var(--transition);
    opacity: 0.8;
}

.aeprax-logo:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
}

.aeprax-logo img {
    height: 30px;
    width: auto;
    display: block;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-white);
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .classes-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 568px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-text {
        font-size: 16px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

