/* Explain: App-specific component style classes for buttons, cards, forms, and more. */
/* ---------- Buttons ---------- */
.btn-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-app--primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--app-shadow-sm);
}

.btn-app--primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-md);
}

.btn-app--outline {
    background: #ffffff;
    color: var(--primary-hover);
    border-color: var(--border-color);
}

.btn-app--outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-app--ghost {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

.btn-app--ghost:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-app--white {
    background: #ffffff;
    color: var(--primary-hover);
}

.btn-app--white:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-md);
}

.btn-app--wa {
    background: #1f9d55;
    color: #ffffff;
}

.btn-app--wa:hover {
    background: #178246;
    transform: translateY(-2px);
}

.btn-app--sm {
    min-height: 40px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.btn-app:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--primary-color), var(--primary-hover));
    color: #ffffff;
    font-size: 1.05rem;
    box-shadow: var(--app-shadow-sm);
}

.nav-link {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--surface-color);
    color: var(--primary-hover);
}

.nav-link.is-active {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

.mobile-menu.is-open {
    display: block;
}

.mobile-link {
    display: block;
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
}

.mobile-link:last-of-type {
    border-bottom: 0;
}

@media (min-width: 1024px) {
    .menu-toggle,
    .mobile-menu,
    .mobile-menu.is-open {
        display: none;
    }
}

/* ---------- Cards ---------- */
.card-soft {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.35rem;
    border: 1px solid var(--border-color);
    border-radius: var(--app-radius-md);
    background: #ffffff;
    box-shadow: var(--app-shadow-sm);
    transition: all 0.25s ease;
}

.card-soft:hover {
    transform: translateY(-4px);
    border-color: var(--primary-soft);
    box-shadow: var(--app-shadow-md);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary-hover);
    font-size: 1.15rem;
}

/* ---------- Lab test cards ---------- */
.test-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--app-radius-md);
    background: #ffffff;
    box-shadow: var(--app-shadow-sm);
    transition: all 0.25s ease;
}

.test-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--app-shadow-md);
}

.test-card__price {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-hover);
    line-height: 1.2;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--primary-hover);
    font-size: 0.72rem;
    font-weight: 700;
}

.tag--accent {
    background: var(--accent-soft);
    color: #92400e;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-hover);
}

.chip.is-active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

/* ---------- Packages ---------- */
.pkg {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.6rem 1.35rem;
    border: 1px solid var(--border-color);
    border-radius: var(--app-radius-lg);
    background: #ffffff;
    box-shadow: var(--app-shadow-sm);
    transition: all 0.25s ease;
}

.pkg:hover {
    transform: translateY(-4px);
    box-shadow: var(--app-shadow-md);
}

.pkg--featured {
    border-color: var(--primary-color);
    background: linear-gradient(180deg, #ffffff, var(--surface-color));
    box-shadow: var(--app-shadow-md);
}

.pkg__badge {
    position: absolute;
    inset-inline-start: 1.35rem;
    top: -0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: #3f2a02;
    font-size: 0.72rem;
    font-weight: 800;
}

.pkg__list {
    flex: 1 1 auto;
    margin-top: 0.75rem;
}

.pkg__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding-block: 0.28rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pkg__list i {
    margin-top: 0.3rem;
    color: var(--success-color);
    font-size: 0.8rem;
}

/* ---------- Steps ---------- */
.step {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--app-radius-md);
    background: #ffffff;
    box-shadow: var(--app-shadow-sm);
}

.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-hover);
    font-family: var(--font-heading);
    font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--app-radius-md);
    background: #ffffff;
    box-shadow: var(--app-shadow-sm);
}

.faq-item + .faq-item {
    margin-top: 0.75rem;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-chev {
    color: var(--primary-color);
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-chev {
    transform: rotate(180deg);
}

.faq-body {
    padding: 0 1.1rem 1.1rem;
    font-size: 0.94rem;
    line-height: 1.95;
    color: var(--text-muted);
}

/* ---------- Testimonials & stats ---------- */
.quote {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    height: 100%;
    padding: 1.4rem;
    border: 1px solid var(--border-color);
    border-radius: var(--app-radius-md);
    background: #ffffff;
    box-shadow: var(--app-shadow-sm);
}

.stars {
    color: var(--accent-color);
    font-size: 0.8rem;
    letter-spacing: 0.12rem;
}

.avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-hover);
    font-family: var(--font-heading);
    font-weight: 800;
}

.stat__num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary-hover);
    line-height: 1.1;
}

/* ---------- Forms ---------- */
.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
}

.input-app,
.select-app,
.textarea-app {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.textarea-app {
    min-height: 110px;
    resize: vertical;
}

.input-app::placeholder,
.textarea-app::placeholder {
    color: #9aa9b3;
}

.input-app:focus,
.select-app:focus,
.textarea-app:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-hint {
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--secondary-color);
    color: #c3d7d5;
}

.footer-title {
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-link {
    display: block;
    padding-block: 0.3rem;
    font-size: 0.9rem;
    color: #b9cfcd;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.2s ease;
}

.footer-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ---------- Floating contact actions ---------- */
.float-actions {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.float-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.45rem;
    box-shadow: var(--app-shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.float-btn:hover {
    transform: scale(1.08);
    box-shadow: var(--app-shadow-lg);
}

.float-btn--wa {
    background: #1f9d55;
    animation: float-pulse 2.6s ease-in-out infinite;
}

.float-btn--wa:hover {
    background: #178246;
}

.float-btn--call {
    background: var(--primary-color);
}

.float-btn--call:hover {
    background: var(--primary-hover);
}

@keyframes float-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.5), var(--app-shadow-md);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(31, 157, 85, 0), var(--app-shadow-md);
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-btn--wa {
        animation: none;
    }
}

@media (min-width: 1024px) {
    .float-actions {
        inset-inline-end: 1.5rem;
        bottom: 1.5rem;
    }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--surface-color), #ffffff);
}

.page-hero__inner {
    padding-block: 2.5rem 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .page-hero__inner {
        padding-block: 3.25rem 2.5rem;
    }
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-hover);
}

.breadcrumb i {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-note {
    padding: 1rem 1.15rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--app-radius-md);
    background: var(--surface-color);
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.legal-card {
    padding: 1.35rem;
    border: 1px solid var(--border-color);
    border-radius: var(--app-radius-md);
    background: #ffffff;
    box-shadow: var(--app-shadow-sm);
}

.legal-card + .legal-card {
    margin-top: 1rem;
}

.legal-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--primary-soft);
    color: var(--primary-hover);
    font-size: 1.05rem;
}

.legal-card h2 {
    font-size: 1.05rem;
    line-height: 1.5;
}

.legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding-block: 0.28rem;
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.legal-list i {
    margin-top: 0.5rem;
    color: var(--success-color);
    font-size: 0.7rem;
}

/* ---------- Footer bottom links ---------- */
.footer-bottom-link {
    font-weight: 700;
    color: #b9cfcd;
    transition: color 0.2s ease;
}

.footer-bottom-link:hover {
    color: #ffffff;
}