/* =========================================
   Design System: Natura x Nike
   Elegância, Contraste e Performance
========================================= */

:root {
    --bg-color:       #F8F9F6;
    --bg-light:       #F0F2EE;
    --text-primary:   #1A2620;
    --text-secondary: #4A5D53;
    --accent-dark:    #123524;
    --accent-light:   #D5E0DA;
    --white:          #FFFFFF;
    --font-heading:   'Playfair Display', serif;
    --font-body:      'Inter', sans-serif;
    --radius:         8px;
    --transition:     all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft:    0 20px 40px rgba(18, 53, 36, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    color: var(--accent-dark);
    line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 120px 0; }
.center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mt-8 { margin-top: 64px; }

/* =========================================
   Botões
========================================= */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-body);
    letter-spacing: 0.03em;
}

.btn-primary {
    background-color: var(--accent-dark);
    color: var(--white);
    border: 1.5px solid var(--accent-dark);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-dark);
    border: 1px solid rgba(18, 53, 36, 0.35);
}
.btn-outline:hover {
    border-color: var(--accent-dark);
    background-color: var(--accent-dark);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-bottom: 1px solid rgba(18, 53, 36, 0.2);
    border-radius: 0;
    padding: 0 0 4px 0;
    font-weight: 400;
    font-size: 0.9rem;
}
.btn-ghost:hover {
    color: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* =========================================
   Navbar
========================================= */
.navbar {
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(248, 249, 246, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(18, 53, 36, 0.07);
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* =========================================
   Hero
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Imagem de fundo — div separada do HTML */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1631217868264-e5b90bb7e133?w=1600&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
}

/* Véu suave sobre a imagem */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(248, 249, 246, 0.98) 40%,
        rgba(248, 249, 246, 0.82) 65%,
        rgba(248, 249, 246, 0.25) 100%
    );
}

.hero .container {
    position: relative;
    z-index: 1;
    padding-block: 80px 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Texto */
.hero-text {
    display: flex;
    flex-direction: column;
}

.badge {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-dark);
    margin-bottom: 28px;
    border-bottom: 1.5px solid var(--accent-dark);
    padding-bottom: 8px;
    width: fit-content;
}

.hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero h1 em {
    color: #3A6B52;
    font-style: italic;
    font-weight: 400;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 500px;
    line-height: 1.8;
    font-weight: 300;
}

.hero-sub strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 36px;
}

.hero-tags li {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--white);
    border: 1px solid var(--accent-light);
    padding: 5px 14px;
    border-radius: 20px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* Foto */
.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 380px;
    border-radius: var(--radius) var(--radius) 72px var(--radius);
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(18, 53, 36, 0.14);
}

.hero-image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center top;
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(18, 53, 36, 0.1) 100%);
    pointer-events: none;
}

/* Card flutuante */
.hero-card {
    position: absolute;
    bottom: 2.5rem;
    left: -1.5rem;
    background: var(--white);
    border: 1px solid var(--accent-light);
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 8px 32px rgba(18, 53, 36, 0.1);
}

.hero-card-number {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--accent-dark);
    line-height: 1;
}

.hero-card-label {
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Badge CRP */
.hero-crp {
    position: absolute;
    top: 1.2rem;
    right: -0.8rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent-dark);
    background: var(--white);
    border: 1px solid var(--accent-light);
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(18, 53, 36, 0.08);
}

/* =========================================
   About
========================================= */
.about { background-color: var(--white); }

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-quote h2 {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    margin-bottom: 32px;
    line-height: 1.25;
}

.about-quote blockquote {
    border-left: 2px solid var(--accent-dark);
    padding-left: 28px;
}

.about-quote blockquote p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.85;
    font-weight: 300;
}

.credential-box {
    background-color: var(--bg-light);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--accent-light);
}

.credential-box h3 {
    margin-bottom: 24px;
    font-size: 1.2rem;
}

/* =========================================
   Services
========================================= */
.services { background-color: var(--bg-color); }

.section-header { margin-bottom: 64px; }
.section-header h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 12px; }
.section-header p { font-size: 1.1rem; color: var(--text-secondary); font-weight: 300; }

.service-detail {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid rgba(18, 53, 36, 0.05);
}

.service-detail + .service-detail { margin-top: 40px; }

.service-header {
    background-color: var(--accent-dark);
    color: var(--white);
    padding: 36px 52px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-header .icon { font-size: 2.4rem; }

.service-header h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.3;
}

.service-header h3 span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-top: 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.85;
}

.service-body { display: grid; grid-template-columns: 1fr 1fr; }

.service-column { padding: 52px; }
.service-column.bg-light { background-color: var(--bg-light); }

.service-column h4 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: var(--accent-dark);
    border-bottom: 1px solid var(--accent-light);
    padding-bottom: 10px;
    font-weight: 600;
}

.service-column p {
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 0.95rem;
    font-weight: 300;
}

.service-column h4 + p,
.service-column h4 + ul,
.service-column h4 + ol { margin-bottom: 32px; }

/* Listas */
.clean-list { list-style: none; }
.clean-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}
.clean-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.8rem;
    top: 2px;
}
.clean-list li strong { color: var(--text-primary); font-weight: 500; }

.step-list { list-style: none; counter-reset: custom-counter; }
.step-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}
.step-list li::before {
    counter-increment: custom-counter;
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: rgba(18, 53, 36, 0.08);
    border-radius: 50%;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--accent-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-list li strong { color: var(--text-primary); display: block; margin-bottom: 2px; font-weight: 500; }

/* =========================================
   Clinic
========================================= */
.clinic { background-color: var(--bg-light); }

.clinic-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(18, 53, 36, 0.1);
}

.clinic-image { overflow: hidden; }
.clinic-image img { height: 100%; width: 100%; object-fit: cover; }

.clinic-info {
    background-color: var(--accent-dark);
    color: var(--white);
    padding: 72px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.clinic-info h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    margin-bottom: 20px;
    line-height: 1.3;
}
.clinic-info p {
    color: rgba(213, 224, 218, 0.85);
    margin-bottom: 32px;
    font-size: 0.95rem;
    line-height: 1.85;
    font-weight: 300;
}

.clinic-info address {
    font-style: normal;
    line-height: 1.9;
    margin-bottom: 32px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

.clinic-info address strong {
    display: block;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.68rem;
    margin-bottom: 4px;
}

.clinic-info .btn-outline {
    border-color: rgba(255,255,255,0.25);
    color: var(--white);
    align-self: flex-start;
    font-size: 0.85rem;
    padding: 12px 24px;
}
.clinic-info .btn-outline:hover {
    background-color: var(--white);
    color: var(--accent-dark);
    border-color: var(--white);
}

/* =========================================
   FAQ
========================================= */
.faq { background-color: var(--white); }
.faq .container { max-width: 760px; }

.accordion-item { border-bottom: 1px solid var(--accent-light); }

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 28px 0;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.4;
    gap: 16px;
}

.accordion-header::after {
    content: "+";
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--accent-dark);
    transition: var(--transition);
    flex-shrink: 0;
    opacity: 0.6;
}

.accordion-header.active { color: var(--accent-dark); }
.accordion-header.active::after { content: "−"; opacity: 1; }

/* Accordion — remove conflito com atributo hidden do HTML */
.accordion-content {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content.open {
    max-height: 400px;
}

.accordion-content p {
    padding-bottom: 28px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.85;
    font-weight: 300;
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--accent-light);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 64px;
    align-items: center;
}

.footer-brand .logo { margin-bottom: 6px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; font-weight: 300; }
.footer-brand .crp { margin-top: 20px; font-weight: 600; color: var(--text-primary); font-size: 0.85rem; font-family: var(--font-body); }

.footer-cta h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    margin-bottom: 24px;
    line-height: 1.3;
}

.footer-bottom {
    border-top: 1px solid var(--accent-light);
    padding: 24px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 300;
}

/* =========================================
   Responsividade
========================================= */
@media (max-width: 992px) {
    .hero-grid, .about-grid, .service-body, .footer-content {
        grid-template-columns: 1fr;
    }

    .clinic-wrapper { grid-template-columns: 1fr; }
    .clinic-image img { height: 300px; }

    .hero .container { padding-block: 60px 40px; }
    .hero-image-wrap { justify-content: center; margin-top: 40px; }
    .hero-image-frame { max-width: 280px; }
    .hero-image-frame img { height: 360px; }
    .hero-card { left: 0; bottom: 1.5rem; }
    .hero-crp { right: 0; }
    .hero-actions { flex-direction: column; align-items: flex-start; }

    .about-quote blockquote { padding-left: 20px; }

    .service-header { flex-direction: column; text-align: center; padding: 32px; }
    .service-column { padding: 36px 28px; }
    .service-column + .service-column { border-top: 1px solid var(--accent-light); }
}

@media (max-width: 768px) {
    .section-padding { padding: 72px 0; }
    .clinic-info { padding: 48px 28px; }
    .hero-card { display: none; }
    .hero-crp { display: none; }

    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* =========================================
   Animações de Entrada
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}