/* ============================================
   Fisioterapia Bem Viver - Stylesheet
   Otimizado para Performance e SEO
   ============================================ */

:root {
    --azul-acinzentado: #5A7184;
    --coral-suave: #F2B39E;
    --branco: #FFFFFF;
    --cinza-claro: #F5F7FA;
    --texto-escuro: #2C3E50;
    --sombra-suave: 0 2px 16px rgba(0,0,0,0.06);
    --sombra-hover: 0 8px 24px rgba(0,0,0,0.1);
}

/* ============================================
   Base Styles
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--texto-escuro);
    line-height: 1.6;
    background: var(--branco);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.875rem;
    color: var(--azul-acinzentado);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 0.75rem;
}

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

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

/* ============================================
   Layout
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

section {
    padding: 3.5rem 0;
}

.bg-light {
    background: var(--cinza-claro);
}

/* ============================================
   Header
   ============================================ */

.header {
    background: var(--branco);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.875rem 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--azul-acinzentado);
    line-height: 1.2;
}

/* Navigation */
.nav-desktop {
    display: none;
}

.nav-desktop ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-desktop a {
    color: var(--texto-escuro);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s;
}

.nav-desktop a:hover,
.nav-desktop a:focus {
    color: var(--azul-acinzentado);
}

/* CTA Button */
.cta-btn {
    background: var(--coral-suave);
    color: var(--branco);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.cta-btn:hover,
.cta-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 179, 158, 0.4);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background: linear-gradient(135deg, rgba(90, 113, 132, 0.95) 0%, rgba(106, 132, 152, 0.95) 100%), 
                url('https://www.genspark.ai/api/files/s/3mXHOUiD') center/cover no-repeat;
    color: var(--branco);
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(90, 113, 132, 0.85) 0%, rgba(106, 132, 152, 0.75) 100%);
    z-index: 1;
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--branco);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Hero Internal Pages */
.hero-internal {
    padding: 3rem 0 2.5rem;
}

.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.breadcrumb a {
    text-decoration: underline;
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

/* ============================================
   Logo Section
   ============================================ */

.logo-section {
    background: var(--branco);
    padding: 3rem 0;
    text-align: center;
}

.logo-main {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ============================================
   Section Intro
   ============================================ */

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

.section-intro p {
    font-size: 1.0625rem;
    color: #5A6C7D;
    margin-top: 1rem;
}

/* ============================================
   Grid System
   ============================================ */

.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: var(--branco);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--sombra-suave);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-hover);
}

.card h3 {
    color: var(--azul-acinzentado);
    margin-bottom: 1rem;
}

.card p {
    color: #5A6C7D;
    line-height: 1.7;
}

.card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.card ul li {
    color: #5A6C7D;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.card-link {
    display: block;
    margin-top: 1rem;
    color: var(--azul-acinzentado);
    font-weight: 600;
    transition: color 0.2s;
}

.card-link:hover {
    color: var(--coral-suave);
}

/* ============================================
   Gallery
   ============================================ */

.gallery {
    display: grid;
    gap: 1.5rem;
    margin: 3rem 0;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ============================================
   Content Section
   ============================================ */

.content-section {
    max-width: 800px;
    margin: 0 auto;
}

.content-section h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.content-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #5A6C7D;
}

.content-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-section ul li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #5A6C7D;
}

.highlight-box {
    background: var(--cinza-claro);
    border-left: 4px solid var(--coral-suave);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box h3 {
    color: var(--azul-acinzentado);
    margin-bottom: 1rem;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--coral-suave);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ============================================
   Contact Form
   ============================================ */

.contact-form {
    background: var(--branco);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--texto-escuro);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #E0E6ED;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--azul-acinzentado);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-btn {
    width: 100%;
    background: var(--coral-suave);
    color: var(--branco);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.form-btn:hover,
.form-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 179, 158, 0.4);
}

.form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.form-message.error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* ============================================
   Map Container
   ============================================ */

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--texto-escuro);
    color: var(--branco);
    padding: 2.5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    color: var(--coral-suave);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer p,
.footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9375rem;
}

.footer a:hover {
    color: var(--coral-suave);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ============================================
   Responsive Design
   ============================================ */

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

@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        padding: 5rem 0 4rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contact-item {
        flex: 1 1 300px;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* ============================================
   Utility Classes
   ============================================ */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
