/* ============================================
   VIVA BEM FISIOTERAPIA - DESIGN PREMIUM
   Design Philosophy: Modern Healthcare Elegance
   Color Palette: Teal, Ocean Blue, Warm White
   ============================================ */

/* ============ RESET & BASE STYLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: #1a5f7a;
}

h3 {
    font-size: 1.5rem;
    color: #2c3e50;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: #0d8fb3;
    transition: color 0.3s ease;
}

a:hover {
    color: #0a6a8a;
}

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

/* ============ DEMO WARNING ============ */
.demo-warning-section {
    background: linear-gradient(135deg, #f0f8fb 0%, #e8f4f8 100%);
    padding: 3rem 0;
    border-top: 1px solid rgba(13, 143, 179, 0.1);
}

.demo-warning-box {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    text-align: center;
    border-left: 5px solid #e67e22;
    max-width: 800px;
    margin: 0 auto;
}

.demo-warning-icon {
    font-size: 3rem;
    flex-shrink: 0;
    animation: pulse-warning 2.5s infinite;
}

.demo-warning-message {
    flex: 1;
}

.demo-warning-message h3 {
    color: #d35400;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.8rem 0;
    letter-spacing: 0.3px;
}

.demo-warning-message p {
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.demo-warning-section.hidden {
    display: none;
}

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

/* ============ HEADER STICKY ============ */
.header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8fb 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-size: 1.8rem;
    color: #0d8fb3;
    margin-bottom: 0;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo .tagline {
    font-size: 0.75rem;
    color: #1a5f7a;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navigation */
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d8fb3, #1a5f7a);
    transition: width 0.3s ease;
}

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

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #0d8fb3 0%, #0a6a8a 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 143, 179, 0.3);
    font-size: 0.95rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 143, 179, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 143, 179, 0.7) 0%, rgba(26, 95, 122, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-content h2 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-cta {
    background: white;
    color: #0d8fb3;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* ============ SECTIONS GENERAL ============ */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0d8fb3, #1a5f7a);
    border-radius: 2px;
}

/* ============ BENEFÍCIOS SECTION ============ */
.beneficios {
    background: linear-gradient(135deg, #f0f8fb 0%, #e8f4f8 100%);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid #0d8fb3;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(13, 143, 179, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.card h3 {
    color: #1a5f7a;
    margin-bottom: 1rem;
}

.card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============ SERVIÇOS SECTION ============ */
.servicos {
    background: white;
}

.service-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f7f9 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 5px solid #0d8fb3;
}

.service-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(13, 143, 179, 0.12);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.service-card h3 {
    color: #1a5f7a;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0d8fb3;
    font-weight: bold;
}

/* ============ PRÉ-AVALIAÇÃO SECTION ============ */
.pre-avaliacao {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8fb 100%);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 143, 179, 0.15);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0d8fb3 0%, #0a6a8a 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.step h3 {
    color: #1a5f7a;
    margin-bottom: 0.8rem;
}

.step p {
    color: #555;
    font-size: 0.95rem;
}

/* ============ AUTOMAÇÃO/FAQ SECTION ============ */
.automacao {
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-header {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f7f9 100%);
    border: none;
    border-left: 4px solid #0d8fb3;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #1a5f7a;
    transition: all 0.3s ease;
}

.faq-header:hover {
    background: linear-gradient(135deg, #f0f8fb 0%, #e8f4f8 100%);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: #0d8fb3;
}

.faq-header.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.faq-content.active {
    max-height: 500px;
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.faq-content p {
    color: #555;
    line-height: 1.7;
}

/* Triagem Section */
.triagem-section {
    background: linear-gradient(135deg, #0d8fb3 0%, #0a6a8a 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.triagem-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.triagem-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.whatsapp-button {
    display: inline-block;
    background: white;
    color: #0d8fb3;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============ DEPOIMENTOS SECTION ============ */
.depoimentos {
    background: linear-gradient(135deg, #f0f8fb 0%, #e8f4f8 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(13, 143, 179, 0.15);
}

.testimonial-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.testimonial-content {
    padding: 2rem;
}

.testimonial-text {
    color: #555;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.testimonial-author {
    color: #1a5f7a;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 1.1rem;
}

/* ============ FAQ SECTION ============ */
.faq {
    background: white;
}

/* ============ FORMULÁRIO SECTION ============ */
.formulario {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8fb 100%);
}

.form-subtitle {
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a5f7a;
    font-weight: 600;
    font-size: 0.95rem;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0d8fb3;
    box-shadow: 0 0 0 3px rgba(13, 143, 179, 0.1);
}

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

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.form-group.checkbox input {
    width: auto;
    margin: 0;
}

.form-group.checkbox label {
    margin: 0;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    min-height: 1.2rem;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0d8fb3 0%, #0a6a8a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 143, 179, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 143, 179, 0.4);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-note {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.form-success {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.form-success h3 {
    color: #155724;
    margin-bottom: 0.5rem;
}

/* ============ FOOTER ============ */
.footer {
    background: linear-gradient(135deg, #1a5f7a 0%, #0d8fb3 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.social-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: white;
}

/* ============ MODAL ============ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-content p {
    color: #555;
    margin-bottom: 1.5rem;
}

.modal-buttons {
    display: grid;
    gap: 1rem;
}

.modal-button {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    text-decoration: none;
}

.modal-button.whatsapp {
    background: #25d366;
    color: white;
}

.modal-button.whatsapp:hover {
    background: #1ebc59;
    transform: translateY(-2px);
}

.modal-button.phone {
    background: #0d8fb3;
    color: white;
}

.modal-button.phone:hover {
    background: #0a6a8a;
    transform: translateY(-2px);
}

.modal-button.form {
    background: #f0f8fb;
    color: #0d8fb3;
    border: 2px solid #0d8fb3;
}

.modal-button.form:hover {
    background: #e8f4f8;
    transform: translateY(-2px);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* ============ RESPONSIVE DESIGN ============ */
/* ============ DEMO WARNING RESPONSIVE ============ */
@media (max-width: 768px) {
    .demo-warning-box {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }

    .demo-warning-icon {
        font-size: 2.5rem;
    }

    .demo-warning-message h3 {
        font-size: 1.1rem;
    }

    .demo-warning-message p {
        font-size: 0.9rem;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        border-radius: 0 0 12px 12px;
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        display: block;
    }

    .nav-link::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .cta-button {
        display: none;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .steps-container {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 0;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .demo-warning-section {
        padding: 2rem 0;
    }

    .demo-warning-box {
        padding: 1.5rem;
        gap: 1rem;
    }

    .demo-warning-icon {
        font-size: 2rem;
    }

    .demo-warning-message h3 {
        font-size: 1rem;
    }

    .demo-warning-message p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .card {
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .hero {
        height: 400px;
    }
}

/* ============ SCROLL ANIMATIONS ============ */
.card, .service-card, .step, .testimonial-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
