/* Reset e Variáveis */
:root {
    --bg-primary: #FBF9F4;
    --bg-secondary: #DFD6C7;
    --text-base: #232324;
    --text-light: #FBF9F4;
    --accent-primary: #C28469;
    --accent-primary-hover: #A0644D; /* Mais escuro e contrastante */
    --accent-secondary: #9E7D84;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --spacing-mobile: 50px;
    --spacing-desktop: 80px;
    --radius-subtle: 4px;
    --border-thin: 1px solid var(--text-base);
    
    /* Sombras para dar destaque em botões */
    --shadow-btn: 0 4px 14px rgba(194, 132, 105, 0.4);
    --shadow-btn-hover: 0 6px 20px rgba(194, 132, 105, 0.6);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-base);
    background-color: var(--bg-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Tipografia */
h1, h2, h3, .logo-text, .header-author {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout Utilitários */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--spacing-mobile) 0;
    position: relative;
}

@media (min-width: 768px) {
    .section {
        padding: var(--spacing-desktop) 0;
    }
}

/* Botões */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600; /* Mais peso para contraste */
    text-align: center;
    border-radius: var(--radius-subtle);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #ffffff;
    border: 1px solid var(--accent-primary);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background-color: var(--accent-primary-hover);
    border-color: var(--accent-primary-hover);
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-base);
    border: 1px solid var(--text-base);
}

.btn-secondary:hover {
    background-color: var(--text-base);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: var(--bg-primary);
    padding: 20px 0;
}

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

.logo-img {
    height: 45px;
    width: auto;
}

.header-author {
    font-size: 1.1rem;
    color: var(--text-base);
    font-style: italic;
}

.header-divider {
    width: 50%;
    margin: 0 auto;
    border-bottom: 1px solid rgba(35, 35, 36, 0.15);
}

/* Hero Section */
.hero {
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(223, 214, 199, 0.4) 0%, rgba(251, 249, 244, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #4a4a4a;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hero Images Composition */
.hero-images-composition {
    position: relative;
    width: 100%;
    height: 500px;
}

.hero-img-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 85%;
    object-fit: cover;
    border-radius: var(--radius-subtle);
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hero-img-secondary {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-subtle);
    z-index: 2;
    border: 8px solid var(--bg-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    .hero-images-composition {
        height: 600px;
    }
}

/* Storytelling Section */
.storytelling {
    background-color: var(--text-base);
    color: var(--text-light);
}

.storytelling-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.section-subtitle-small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.storytelling-title {
    color: var(--text-light);
}

.storytelling-image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: var(--radius-subtle);
    position: relative;
}

.storytelling-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 50px rgba(35,35,36,0.3);
    pointer-events: none;
}

.storytelling-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
}

@media (min-width: 768px) {
    .storytelling-container {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* Serviços de Ensino (Aulas) */
.teaching {
    background-color: var(--bg-primary);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.teaching-title {
    color: var(--text-base);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 3rem;
}

.card {
    border: 1px solid rgba(35, 35, 36, 0.08);
    border-radius: var(--radius-subtle);
    background-color: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.card-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
    flex-grow: 1;
}

.teaching-note {
    text-align: center;
    color: var(--accent-secondary);
    margin-bottom: 2rem;
}

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

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Serviços de Ateliê (Confecção) */
.services {
    background-color: var(--bg-secondary);
}

.services-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.services-list {
    list-style: none;
    margin: 2rem 0;
}

.services-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 1rem;
}

.services-list li::before {
    content: "•";
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.price-highlight {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--accent-primary);
    margin-bottom: 2rem;
}

.services-images-composition {
    position: relative;
    width: 100%;
    height: 450px;
}

.srv-img-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65%;
    height: 80%;
    object-fit: cover;
    border-radius: var(--radius-subtle);
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.srv-img-2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 70%;
    object-fit: cover;
    border-radius: var(--radius-subtle);
    z-index: 1;
}

@media (min-width: 768px) {
    .services-container {
        grid-template-columns: 1.2fr 1fr;
    }
    .services-images-composition {
        height: 600px;
    }
}

/* Localização e FAQ */
.location-faq {
    background-color: var(--bg-primary);
}

.location-faq-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: start;
}

.location-visual {
    position: relative;
}

.location-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-subtle);
}

.location-card {
    background-color: #fff;
    padding: 24px;
    border-radius: var(--radius-subtle);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
    position: relative;
    margin-top: -40px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    z-index: 2;
    text-align: center;
}

.faq-content {
    width: 100%;
}

.faq {
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid rgba(35, 35, 36, 0.1);
    padding: 1.5rem 0;
}

.faq-item summary {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
    transition: color 0.3s;
}

.faq-item summary:hover {
    color: var(--accent-primary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-answer {
    padding-top: 1rem;
    color: #4a4a4a;
    animation: fadeIn 0.4s ease;
}

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

@media (min-width: 768px) {
    .location-faq-container {
        grid-template-columns: 1fr 1fr;
    }
    .location-card {
        margin-top: -60px;
        margin-left: 0;
        transform: translateX(10%);
    }
}

/* Footer */
.footer {
    background-color: var(--text-base);
    color: var(--text-light);
    text-align: center;
    padding: 0 0 3rem 0;
}

.footer-images-row {
    width: 100%;
    height: 150px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.footer-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        text-align: center;
    }
}

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

@media (min-width: 768px) {
    .footer-col {
        align-items: center;
    }
}

.footer-logo {
    height: 50px;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--accent-secondary);
}

.footer-title small {
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--bg-secondary);
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--text-light);
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--accent-primary);
}

.footer-col-info p {
    margin-bottom: 0;
    opacity: 0.8;
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.6;
    margin-top: 2rem;
    border-top: 1px solid rgba(251, 249, 244, 0.1);
    padding-top: 1.5rem;
}

/* 
========================================
ANIMAÇÕES E ELEMENTOS DINÂMICOS
========================================
*/

/* Hover Float */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hover-float {
    animation: float 6s ease-in-out infinite;
}

/* Reveal Classes (ativadas via JS) */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-fade-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-fade-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Quando visível no scroll */
.reveal-fade-up.visible,
.reveal-fade-left.visible,
.reveal-fade-right.visible {
    opacity: 1;
    transform: translate(0);
}

.reveal-zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}
