/* Cores do site - Anne Sousa Massoterapia */
:root {
    --rosa-elegante: #d4a574;
    --dourado-suave: #b8860b;
    --creme-luxo: #faf7f2;
    --marrom-quente: #8b4513;
    --cinza-sofisticado: #2c2c2c;
    --branco: #ffffff;
    --accent-dourado: #daa520;
    --shadow-light: rgba(212, 165, 116, 0.1);
    --gradient-primary: linear-gradient(135deg, #d4a574 0%, #b8860b 100%);
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--cinza-sofisticado);
    background: linear-gradient(135deg, var(--creme-luxo) 0%, #f5f2ed 100%);
    min-height: 100vh;
}

/* Header */
header {
    background: var(--gradient-primary);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

/* Destaque especial para a logo */
.logo-container {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px 25px;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.logo-container:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(212, 165, 116, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
}

.logo {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
    max-width: 200px;
}

.logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.5));
}

/* Navegação */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--branco);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--marrom-quente);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--branco);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main content */
main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* Logo destacada no corpo da página */
.hero-logo-section {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.05) 0%, rgba(184, 134, 11, 0.05) 100%);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    animation: heroEntrance 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border: 1px solid rgba(212, 165, 116, 0.1);
    backdrop-filter: blur(5px);
}

.hero-logo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    animation: logoGlow 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: rotate(360deg) scale(1.1);
        opacity: 0.6;
    }
}

.hero-logo {
    height: 120px;
    width: auto;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 8px 25px rgba(212, 165, 116, 0.4));
    position: relative;
    z-index: 2;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 15px 35px rgba(212, 165, 116, 0.6));
}

.hero-title {
    margin-top: 2rem;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--marrom-quente);
    font-weight: 500;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.page-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}

.content-section {
    background: var(--branco);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--shadow-light);
    border: 1px solid rgba(212, 165, 116, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.content-section h2 {
    color: var(--marrom-quente);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.content-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Botões */
.btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--branco);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 165, 116, 0.6);
}

/* Grupo de botões */
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Grid de serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Grid compacto para página principal */
.services-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.service-card {
    background: linear-gradient(145deg, var(--branco) 0%, var(--creme-luxo) 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: fit-content;
    position: relative;
    overflow: hidden;
}

/* Versão compacta para página principal */
.service-card-compact {
    background: linear-gradient(145deg, var(--branco) 0%, var(--creme-luxo) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 6px 20px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: fit-content;
    position: relative;
    overflow: hidden;
}

.service-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(212, 165, 116, 0.25);
    border-color: var(--rosa-elegante);
}

.service-card-compact:hover::before {
    opacity: 0.05;
}

.service-card-compact h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.service-card-compact p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.25);
    border-color: var(--rosa-elegante);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.service-card p {
    text-align: justify;
    margin-bottom: 0.5rem;
}

.service-card ul {
    margin-top: 1rem;
}

.service-card ul li {
    margin-bottom: 0.8rem;
    color: var(--cinza-sofisticado);
    position: relative;
    padding-left: 20px;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--dourado-suave);
    font-weight: bold;
}

/* Formulário de contato */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--marrom-quente);
    font-weight: 600;
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--rosa-elegante);
    border-radius: 12px;
    font-size: 1rem;
    background-color: var(--branco);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--dourado-suave);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.15);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* SEO e Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Melhorias de foco para acessibilidade */
a:focus,
button:focus {
    outline: 2px solid var(--marrom-quente);
    outline-offset: 2px;
}

/* Skip link para acessibilidade */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--marrom-quente);
    color: var(--branco);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Ícone flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.whatsapp-float:focus {
    outline: 3px solid var(--marrom-quente);
    outline-offset: 2px;
}

/* Animação de pulso para chamar atenção */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Tooltip para o WhatsApp */
.whatsapp-float::before {
    content: "Fale conosco no WhatsApp";
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--cinza-sofisticado);
    color: var(--branco);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--cinza-sofisticado);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsividade para o WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float::before {
        display: none; /* Remove tooltip no mobile */
    }
    
    .whatsapp-float::after {
        display: none; /* Remove seta no mobile */
    }
}

/* Footer */
footer {
    background: var(--gradient-primary);
    color: var(--branco);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

/* Responsividade */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .services-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.3rem;
    }
    
    .services-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.2rem;
    }
    
    .service-card {
        padding: 1.8rem;
    }
    
    .gallery-item {
        aspect-ratio: 16/11;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1000;
    }
    
    nav {
        width: 100%;
        order: 3;
    }
    
    nav ul {
        flex-direction: column;
        display: none;
        background: var(--gradient-primary);
        padding: 1rem;
        border-radius: 15px;
        margin-top: 1rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        backdrop-filter: blur(10px);
    }
    
    nav ul.show {
        display: flex;
    }
    
    .content-section:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 35px var(--shadow-light);
    }
    
    nav ul li {
        margin-bottom: 0.5rem;
    }
    
    nav ul li:last-child {
        margin-bottom: 0;
    }
    
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-logo-section {
        padding: 2rem 0;
        margin-bottom: 1.5rem;
    }
    
    .hero-logo {
        height: 100px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-top: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .services-grid-compact {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin: 0;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .service-card ul {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .service-card-compact {
        padding: 1rem;
    }
    
    .service-card-compact h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .service-card-compact p {
        font-size: 0.85rem;
    }
    
    .content-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .logo {
        height: 85px;
        max-width: 180px;
    }
    
    .logo-container {
        padding: 15px 20px;
        border-radius: 20px;
        margin: 0 auto;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .btn-group .btn {
        width: 100%;
        text-align: center;
    }
    
    .contact-form {
        padding: 0;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 16px; /* Previne zoom no iOS */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .hero-logo-section {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
        border-radius: 20px;
    }
    
    .hero-logo {
        height: 80px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-top: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-top: 0.8rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
    
    .logo {
        height: 70px;
        max-width: 160px;
    }
    
    .logo-container {
        padding: 12px 16px;
        border-radius: 18px;
    }
    
    .btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn-group .btn {
        width: 100%;
        text-align: center;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .services-grid-compact {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .service-card-compact {
        padding: 0.8rem;
    }
    
    .service-card-compact h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card-compact p {
        font-size: 0.8rem;
    }
    

    
    header {
        padding: 0.8rem 0;
    }
    
    main {
        padding: 1.5rem 0;
    }
}

/* Animações modernas */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.logo-container {
    animation: logoEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Pulse sutil para chamar atenção para a logo */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.logo-container {
    animation: logoEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               logoPulse 4s ease-in-out infinite 2s;
}

.animate-on-scroll {
    animation: slideInUp 0.6s ease-out;
}

.service-card {
    animation: fadeInScale 0.5s ease-out;
}

.service-card-compact {
    animation: fadeInScale 0.6s ease-out;
    animation-fill-mode: both;
}

/* Animação escalonada para os cartões compactos */
.service-card-compact:nth-child(1) { animation-delay: 0.1s; }
.service-card-compact:nth-child(2) { animation-delay: 0.2s; }
.service-card-compact:nth-child(3) { animation-delay: 0.3s; }
.service-card-compact:nth-child(4) { animation-delay: 0.4s; }
.service-card-compact:nth-child(5) { animation-delay: 0.5s; }
.service-card-compact:nth-child(6) { animation-delay: 0.6s; }
.service-card-compact:nth-child(7) { animation-delay: 0.7s; }
.service-card-compact:nth-child(8) { animation-delay: 0.8s; }
.service-card-compact:nth-child(n+9) { animation-delay: 0.9s; }

/* Melhorias de performance e suavidade */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.content-section,
.service-card,
.btn {
    will-change: transform;
}

/* Efeito glassmorphism sutil */
.content-section {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 165, 116, 0.18);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--creme-luxo);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dourado-suave);
}

/* Melhoria nos links */
a {
    transition: all 0.3s ease;
}

/* Efeito de foco melhorado */
*:focus-visible {
    outline: 2px solid var(--accent-dourado);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Galeria de Fotos */
.photo-gallery {
    margin: 2rem 0;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
    width: 100%;
    box-sizing: border-box;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    aspect-ratio: 16/12;
    width: 100%;
    max-width: 100%;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(212, 165, 116, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
    max-width: 100%;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Modal da galeria */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: -60px;
}

.modal-next {
    right: -60px;
}

.modal-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    padding: 1rem;
    background: rgba(0,0,0,0.7);
    border-radius: 10px;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
    }
    
    .gallery-overlay {
        padding: 1rem 0.8rem 0.8rem;
    }
    
    .gallery-overlay h4 {
        font-size: 1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.8rem;
    }
    
    .modal-nav {
        display: none;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        background: rgba(0,0,0,0.7);
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .modal-caption {
        position: relative;
        bottom: 0;
        margin-top: 1rem;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0.5rem 0;
    }
    
    .gallery-item {
        aspect-ratio: 16/10;
        min-height: 200px;
    }
    
    .gallery-overlay {
        padding: 0.8rem 0.6rem 0.6rem;
    }
    
    .gallery-overlay h4 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .gallery-overlay p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .photo-gallery {
        margin: 1rem 0;
    }
    
    .modal-close {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
        top: 5px;
        right: 5px;
    }
    
    .modal-content {
        max-width: 98%;
        max-height: 80%;
    }
    
    .modal-caption {
        font-size: 0.85rem;
        padding: 0.8rem;
    }
}
