:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --accent: #5ba3d4;
    --text-dark: #2b2b2b;
    --text-light: #5a5a5a;
    --bg-cream: #f5f8fc;
    --bg-white: #ffffff;
    --border: #d4e0ec;
    --success: #2e7d32;
    --danger: #c62828;
    --warning: #e65100;
}

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

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-dark);
    background: var(--bg-cream);
    line-height: 1.6;
}

a { color: var(--primary); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ── */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 1rem;
}
.logo {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    line-height: 1.2;
}
.logo span { display: block; font-size: 0.75rem; font-weight: 400; color: var(--text-light); letter-spacing: 0.04em; }
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}
.nav-links a {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links .btn-nav {
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
}
.nav-links .btn-nav:hover { background: var(--primary-light); color: white; }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-light); color: white; }
.btn-outline {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* ── Hero ── */
.hero {
    background: #e8f0f8;
    border-top: 3px solid var(--primary);
    padding: 4rem 0 3rem;
    text-align: center;
}
.hero h1 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ── Path cards ── */
.path-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}
@media (max-width: 560px) { .path-cards { grid-template-columns: 1fr; } }

.path-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}
.path-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(26,58,92,0.12);
    color: var(--text-dark);
}
.path-card__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.path-card__title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.path-card__desc { font-size: 0.9rem; color: var(--text-light); }

/* ── Info strip ── */
.info-strip {
    padding: 3rem 0;
}
.info-strip h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.info-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}
.info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.info-card p { font-size: 0.9rem; color: var(--text-light); }

/* ── Test page ── */
.test-header {
    background: #e8f0f8;
    border-top: 3px solid var(--primary);
    padding: 2rem 0;
}
.test-header h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.test-header p { color: var(--text-light); font-size: 0.95rem; }

.progress-bar-wrap {
    background: var(--border);
    border-radius: 4px;
    height: 6px;
    margin-top: 1rem;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}

.question-area {
    max-width: 680px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}
.question-number { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.5rem; }
.question-text {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.options { display: flex; flex-direction: column; gap: 0.75rem; }
.option-btn {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    text-align: left;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
    color: var(--text-dark);
}
.option-btn:hover { border-color: var(--accent); background: #f0f6fb; }
.option-btn.selected { border-color: var(--primary); background: #e8f0f8; color: var(--primary); font-weight: 500; }

.test-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem 3rem;
}

/* ── Result page ── */
.result-section {
    max-width: 640px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    text-align: center;
}
.flag {
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.flag--positive {
    background: #fff3e0;
    border: 2px solid #e65100;
}
.flag--negative {
    background: #e8f5e9;
    border: 2px solid var(--success);
}
.flag h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}
.flag--positive h2 { color: var(--warning); }
.flag--negative h2 { color: var(--success); }
.flag p { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; }

.register-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    text-align: left;
}
.register-box h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.register-box p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.25rem; }

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}
.form-group input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--primary); }
.form-error { font-size: 0.85rem; color: var(--danger); margin-top: 0.5rem; }
.form-divider {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 1rem 0;
}

/* ── Dashboard ── */
.page-hero {
    background: #e8f0f8;
    border-top: 3px solid var(--primary);
    padding: 2.5rem 0;
}
.page-hero h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.page-hero p { color: var(--text-light); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 3rem 0;
}
.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: box-shadow 0.2s, border-color 0.2s;
    display: block;
}
.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(26,58,92,0.1);
    color: var(--text-dark);
}
.service-card__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.service-card__title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
}
.service-card__desc { font-size: 0.88rem; color: var(--text-light); }

/* ── Notebook ── */
.notebook-area { padding: 2.5rem 0; max-width: 700px; }
.notebook-input {
    width: 100%;
    min-height: 120px;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}
.notebook-input:focus { outline: none; border-color: var(--primary); }
.entry-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.entry {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    position: relative;
}
.entry__date { font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.5rem; }
.entry__text { font-size: 0.95rem; white-space: pre-wrap; }
.entry__delete {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1;
    padding: 0.2rem;
}
.entry__delete:hover { color: var(--danger); }

/* ── Alert messages ── */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.alert--error { background: #fdecea; border: 1px solid #f44336; color: #b71c1c; }
.alert--success { background: #e8f5e9; border: 1px solid #4caf50; color: #1b5e20; }

/* ── Footer ── */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: 0.85rem;
    text-align: center;
}
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: white; }

/* ── Screen reader only ── */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* ── Agendar page ── */
.agendar-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
    padding: 3rem 0 4rem;
}
@media (max-width: 820px) { .agendar-layout { grid-template-columns: 1fr; } }

/* FAQ uses <details> elements */
details { border-bottom: 1px solid var(--border); }
details:first-of-type { border-top: 1px solid var(--border); }
summary {
    font-weight: 500;
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.1rem; color: var(--primary); flex-shrink: 0; margin-left: 1rem; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 1.25rem; color: var(--text-light); line-height: 1.7; font-size: 0.95rem; }

.faq-section h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.booking-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 90px;
}
.booking-card__price {
    font-family: 'Crimson Pro', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.booking-card__label { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1.25rem; margin-top: 0.25rem; }
.booking-card__list {
    list-style: none;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.booking-card__list li { font-size: 0.9rem; color: var(--text-light); padding-left: 1.2rem; position: relative; }
.booking-card__list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 600; }
.booking-btn { display: block; width: 100%; text-align: center; margin-bottom: 1rem; }
.booking-card__note { font-size: 0.78rem; color: var(--text-light); line-height: 1.5; }

@media (max-width: 640px) {
    .nav-links { display: none; }
    .path-cards { grid-template-columns: 1fr; }
}
