/* ============================
   DESIGN SYSTEM V5 — Shared
   Dra. Viviane Rossi
   ============================ */

:root {
    --color-bg: #FEFEFE;
    --color-bg-alt: #F7F6F3;
    --color-accent: #A4A296;
    --color-accent-hover: #8A877C;
    --color-accent-light: #B8B5AA;
    --color-text: #2C2724;
    --color-text-light: #6B6560;
    --color-white: #FEFEFE;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============================
   REVEAL ANIMATIONS
   ============================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================
   SKIP NAV
   ============================ */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 200;
    padding: 12px 24px;
    background: var(--color-text);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 0;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================
   HEADER
   ============================ */
.page-header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254,254,254,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.page-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 12px 0;
}
.logo-text span { color: var(--color-accent-hover); }
.back-link {
    font-size: 0.8rem;
    color: var(--color-text-light);
    transition: color 0.3s;
    padding: 12px 0;
}
.back-link:hover { color: var(--color-text); }

/* ============================
   BUTTONS
   ============================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--color-text);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(44,39,36,0.25);
}
.btn-primary svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1.5px solid var(--color-accent-light);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
}
.btn-outline:hover {
    border-color: var(--color-accent-hover);
    background: var(--color-bg-alt);
    transform: translateY(-3px);
}

/* ============================
   SECTION COMMON
   ============================ */
.section { padding: 100px 0; }
.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent-hover);
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 20px;
}
.section-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-light);
    max-width: 560px;
    line-height: 1.8;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ============================
   FAQ ACCORDION
   ============================ */
.faq { background: var(--color-bg); }
.faq-list {
    max-width: 700px;
    margin: 56px auto 0;
}
.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.3s;
}
.faq-question:hover { color: var(--color-accent-hover); }
.faq-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s var(--ease-out-quart);
    color: var(--color-accent);
    min-width: 20px;
    text-align: center;
}
.faq-item.active .faq-arrow { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-quart), padding 0.3s;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}
.faq-answer p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ============================
   FOOTER (minimal)
   ============================ */
.page-footer {
    padding: 24px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    text-align: center;
    font-size: 0.7rem;
    color: var(--color-text-light);
}

/* ============================
   WHATSAPP FLOAT
   ============================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    width: 56px;
    height: 56px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(164,162,150,0.4);
    transition: all 0.3s var(--ease-out-quart);
}
.whatsapp-float:hover {
    background: var(--color-accent-hover);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 28px rgba(164,162,150,0.5);
}
.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: var(--color-white);
}

/* ============================
   AGENDAMENTO (formulario)
   ============================ */
.agendamento {
    padding: 100px 0;
    background: var(--color-bg-alt);
}
.agendamento .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: start;
}
.agendamento .section-label { margin-bottom: 12px; }
.agendamento .section-title { margin-bottom: 8px; }
.agendamento .section-text {
    font-size: 0.92rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}
.agendamento-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 48px;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(164,162,150,0.15);
}
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6560' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.agendamento-trust {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 48px;
}
.agendamento-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}
.agendamento-trust-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--color-accent);
    fill: none;
    stroke-width: 1.5;
}
.agendamento-form .btn { text-align: center; }
.agendamento-form .btn-outline { font-size: 0.82rem; }

/* ============================
   CROSS-LINKING (Outros Servicos)
   ============================ */
.outros-servicos {
    padding: 80px 0;
    background: var(--color-bg-alt);
    border-top: 1px solid rgba(0,0,0,0.06);
}
.outros-servicos .section-label { margin-bottom: 12px; }
.outros-servicos .section-title { margin-bottom: 40px; }
.outros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.outro-card {
    display: block;
    padding: 28px 24px;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s var(--ease-out-quart);
}
.outro-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(44,39,36,0.08);
    border-color: var(--color-accent-light);
}
.outro-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.outro-card p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}
.outro-card-arrow {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-hover);
    transition: color 0.3s;
}
.outro-card:hover .outro-card-arrow { color: var(--color-text); }

/* ============================
   RESPONSIVE — Shared
   ============================ */
@media (max-width: 768px) {
    .container { padding: 0 28px; }
    .section { padding: 72px 0; }
    .agendamento { padding: 60px 0; }
    .agendamento .container { grid-template-columns: 1fr; gap: 40px; }
    .agendamento-trust { padding-top: 0; }
    .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
