/* ========================================
   JULIO MASSOQUIRO - DESIGN PREMIUM
   Quiropraxia & Massoterapia
   ======================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Paleta Premium */
:root {
    /* Cores Principais */
    --color-primary: #0d4f4f;
    --color-primary-light: #1a7575;
    --color-primary-dark: #083333;
    --color-secondary: #c9a959;
    --color-secondary-light: #d4bb76;
    --color-accent: #e8c469;
    
    /* Cores de Fundo */
    --bg-cream: #faf8f5;
    --bg-warm: #f5f0e8;
    --bg-light: #ffffff;
    --bg-section-alt: #f0ebe3;
    
    /* Cores de Texto */
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b6b6b;
    --text-on-dark: #f5f5f5;
    --text-on-primary: #ffffff;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0d4f4f 0%, #1a7575 50%, #0d4f4f 100%);
    --gradient-gold: linear-gradient(135deg, #c9a959 0%, #e8c469 50%, #c9a959 100%);
    --gradient-hero: linear-gradient(180deg, rgba(13, 79, 79, 0.92) 0%, rgba(13, 79, 79, 0.85) 100%);
    --gradient-warm: linear-gradient(180deg, #faf8f5 0%, #f0ebe3 100%);
    
    /* Sombras */
    --shadow-soft: 0 4px 20px rgba(13, 79, 79, 0.08);
    --shadow-medium: 0 8px 30px rgba(13, 79, 79, 0.12);
    --shadow-strong: 0 15px 40px rgba(13, 79, 79, 0.18);
    --shadow-gold: 0 4px 20px rgba(201, 169, 89, 0.25);
    
    /* Tipografia */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', 'Segoe UI', sans-serif;
    
    /* Espaçamentos */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Bordas */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset e Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Seleção de texto */
::selection {
    background: var(--color-secondary);
    color: var(--text-dark);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-medium);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 169, 89, 0.2);
}

.logo {
    padding: var(--space-sm) 0;
    text-align: center;
}

.logo h1 {
    color: var(--text-on-primary);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.logo a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

.logo a:hover {
    opacity: 0.9;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
    background-image: url('../images/dor-na-coluna-tratamento-7.webp');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* Padrão decorativo no overlay */
.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(201, 169, 89, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 169, 89, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-on-primary);
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg) var(--space-md);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: heroTitleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    order: 1;
    line-height: 1.2;
}

.hero h1::first-letter {
    color: var(--color-secondary);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: heroTextReveal 1s ease-out 0.4s forwards;
    order: 3;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTAs do Hero */
.hero-ctas {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
    animation: heroCTAsReveal 1s ease-out 0.6s forwards;
    opacity: 0;
    order: 2;
}

.cta-primary,
.cta-secondary,
.cta-tertiary {
    padding: 16px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.cta-primary {
    background: var(--gradient-gold);
    color: var(--text-dark);
    box-shadow: var(--shadow-gold);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(201, 169, 89, 0.4);
}

.cta-secondary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--text-on-primary);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
}

.cta-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.4);
}

.cta-tertiary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-on-primary);
    border: 2px solid rgba(201, 169, 89, 0.4);
    backdrop-filter: blur(10px);
}

.cta-tertiary:hover {
    background: rgba(201, 169, 89, 0.15);
    border-color: var(--color-secondary);
    transform: translateY(-4px);
}

/* Emojis do Hero */
.hero-emojis {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    order: 4;
    opacity: 0;
    animation: heroEmojisReveal 1s ease-out 0.8s forwards;
}

.emoji {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    animation: emojiFloat 4s ease-in-out infinite;
    transition: transform var(--transition-normal);
}

.emoji:hover {
    transform: scale(1.2);
}

.emoji:nth-child(1) { animation-delay: 0s; }
.emoji:nth-child(2) { animation-delay: 0.5s; }
.emoji:nth-child(3) { animation-delay: 1s; }
.emoji:nth-child(4) { animation-delay: 1.5s; }

/* ========================================
   MAPS SECTION
   ======================================== */
.maps-section {
    padding: var(--space-xl) 0;
    background: var(--bg-warm);
    position: relative;
}

.maps-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, var(--bg-cream) 0%, transparent 100%);
    pointer-events: none;
}

.maps-section h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
    width: 100%;
}

.maps-section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

#maps-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    border: 3px solid rgba(201, 169, 89, 0.3);
    position: relative;
}

#maps-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 30px rgba(13, 79, 79, 0.1);
    pointer-events: none;
    z-index: 1;
}

#maps-container iframe {
    display: block;
    border-radius: var(--radius-lg);
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    padding: var(--space-xl) 0;
    background: var(--gradient-warm);
    position: relative;
}

/* Seções SEO */
.seo-section {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(13, 79, 79, 0.08);
    transition: all var(--transition-normal);
}

.seo-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(201, 169, 89, 0.2);
}

/* Decoração lateral */
.seo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-gold);
}

/* Ícone decorativo */
.seo-section::after {
    content: '✦';
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 1.5rem;
    color: var(--color-secondary);
    opacity: 0.3;
}

.seo-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.seo-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.seo-section p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: var(--space-md);
    color: var(--text-medium);
}

.seo-section p:last-of-type {
    margin-bottom: var(--space-md);
}

/* CTA das Seções */
.cta-section,
.cta_section {
    text-align: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(13, 79, 79, 0.08);
}

.cta-content,
.cta-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: var(--color-primary);
    color: var(--text-on-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.cta-content::before,
.cta-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 89, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-content:hover::before,
.cta-whatsapp:hover::before {
    left: 100%;
}

.cta-content:hover,
.cta-whatsapp:hover {
    background: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.cta-content i,
.cta-whatsapp i {
    font-size: 1.2rem;
}

/* Seção CTA WhatsApp */
.cta-whatsapp-section {
    text-align: center;
    margin: var(--space-lg) 0;
}

/* ========================================
   WHATSAPP FLOAT
   ======================================== */
#whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    color: var(--text-on-primary);
    text-decoration: none;
    font-size: 1.8rem;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-normal);
    animation: whatsappPulse 2s infinite;
    position: relative;
}

.whatsapp-link::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(37, 211, 102, 0.3);
    border-radius: 50%;
    animation: whatsappRing 2s infinite;
}

.whatsapp-link:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    padding: var(--space-xl) 0 var(--space-md);
    position: relative;
    overflow: hidden;
}

/* Padrão decorativo */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(201, 169, 89, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(201, 169, 89, 0.08) 0%, transparent 30%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    position: relative;
}

.footer-section {
    position: relative;
}

.footer-section h3 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-gold);
}

.footer-section p {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

/* Contact Info */
.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-xs);
    padding: 8px 0;
    transition: all var(--transition-fast);
}

.contact-info p:hover {
    transform: translateX(5px);
}

.contact-info i {
    color: var(--color-secondary);
    width: 24px;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--text-on-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-info a:hover {
    color: var(--color-secondary);
}

/* Listas do Footer */
ul {
    list-style: none;
}

.cities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.cities-list li {
    margin-bottom: 4px;
}

.cities-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
    padding: 4px 0;
}

.cities-list a::before {
    content: '→ ';
    color: var(--color-secondary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.cities-list a:hover {
    color: var(--color-secondary);
    transform: translateX(10px);
}

.cities-list a:hover::before {
    opacity: 1;
}

.hours-list li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list strong {
    color: var(--color-secondary);
    font-weight: 500;
}

.links-list li {
    margin-bottom: 12px;
}

.links-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.links-list a::before {
    content: '◆';
    font-size: 0.6rem;
    color: var(--color-secondary);
}

.links-list a:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(201, 169, 89, 0.2);
    padding-top: var(--space-md);
    text-align: center;
    position: relative;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
}

.footer-bottom p:first-child {
    color: var(--text-on-primary);
    font-weight: 500;
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

/* Hero Animations */
@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroTextReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroCTAsReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroEmojisReveal {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Emoji Float */
@keyframes emojiFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-3deg);
    }
    75% {
        transform: translateY(-8px) rotate(3deg);
    }
}

/* WhatsApp Animations */
@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 6px 35px rgba(37, 211, 102, 0.6);
    }
}

@keyframes whatsappRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bounce */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -15px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -8px, 0);
    }
}

/* Pulse */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* ========================================
   CORREÇÕES E OVERRIDES
   ======================================== */

/* Mapa sempre visível */
.maps-section, 
.maps-section.animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Scroll suave para elementos */
.seo-section {
    scroll-margin-top: 100px;
}

/* Links gerais */
a {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

/* Foco acessível */
a:focus,
button:focus,
.cta-primary:focus,
.cta-secondary:focus,
.cta-tertiary:focus,
.cta-content:focus {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Performance */
.animated {
    will-change: transform, opacity;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
