@charset "UTF-8";

:root {
    --bg: #f3f4f7;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --text: #1f2d3a;
    --muted: #5f6f80;
    --primary: #4f65c8;
    --primary-dark: #4156b2;
    --secondary: #6f86a1;
    --border: #dfe5ee;
    --success: #0f9d58;
    --danger: #c0392b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.site-header,
.site-footer {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.site-footer {
    border-top: 1px solid var(--border);
    border-bottom: none;
    margin-top: 20px;
    padding: 12px 0;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.brand {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
}

.nav-links a {
    margin-left: 14px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

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

.main-content {
    width: 100%;
    max-width: none;
    padding: 0 0 50px;
}

h1, h2, h3 { margin-top: 0; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(39, 67, 96, 0.08);
}

label {
    display: block;
    margin: 10px 0 6px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-size: 1rem;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

button,
.btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 6px 14px rgba(63, 88, 146, 0.16);
}

button:hover,
.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-muted {
    background: var(--secondary);
}

.btn-muted:hover {
    background: #617892;
}

.btn-calm {
    background: #5b8f9a;
}

.btn-calm:hover {
    background: #4a7c86;
}

.helper-text { color: var(--muted); font-size: 14px; }
.success-box { padding: 12px; border-radius: 8px; background: #e9f8ef; color: #0f7c47; margin-top: 10px; }
.error-box { padding: 12px; border-radius: 8px; background: #fdecea; color: #a93226; margin-top: 10px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* Multi-step forms */
.step { display: none; }
.step.active { display: block; }
.progress-wrap { margin-bottom: 14px; }
.progress-track { width: 100%; height: 10px; background: #e7edf7; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 10px; background: var(--primary); transition: width 0.25s ease; }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.option-grid-large { display: grid; gap: 12px; margin: 8px 0 14px; }
.option-grid-large.one-col { grid-template-columns: 1fr; }
.option-grid-large.two-col { grid-template-columns: repeat(2, 1fr); }
.option-grid-large.three-col { grid-template-columns: repeat(3, 1fr); }
.option-grid-large.four-col { grid-template-columns: repeat(4, 1fr); }

.option-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    border: 1px solid #cfdde3;
    border-radius: 14px;
    background: #f9fcfd;
    padding: 14px;
    min-height: 62px;
    font-size: 1.03rem;
}

.option-card input {
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
    flex: 0 0 auto;
}

.elder-form-wrap h1 { font-size: clamp(2rem, 3.3vw, 2.9rem); }
.form-intro { font-size: 1.14rem; margin-bottom: 18px; }
.step h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 10px; }
.step label { font-size: 1.16rem; margin-top: 14px; margin-bottom: 8px; }
.step .helper-text { font-size: 1.05rem; }
.step input, .step select, .step textarea { font-size: 1.08rem; padding: 13px; }
.step .option-card span { font-size: 1.08rem; line-height: 1.35; }

/* Home premium layout */
.premium-section { padding: 88px 0; }
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.section-inner { width: min(1180px, 92%); margin: 0 auto; }
.bg-white { background: #ffffff; }
.bg-light { background: #f6f8fb; }
.bg-soft-blue { background: #eef3fb; }
.bg-soft-beige { background: #f5f1ea; }

.premium-hero-full { padding-top: 96px; padding-bottom: 96px; }
.hero-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 42px; align-items: center; }
.hero-left h1 { font-size: clamp(1.95rem, 3.6vw, 3rem); line-height: 1.14; margin-bottom: 18px; letter-spacing: -0.2px; }
.hero-points { margin: 0 0 28px; padding-left: 22px; }
.hero-points li { margin-bottom: 12px; font-size: clamp(1.25rem, 2.6vw, 1.55rem); color: #36495d; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-btn { min-height: 48px; padding: 13px 22px; border-radius: 10px; font-weight: 600; }

.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(43, 62, 96, 0.2);
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.7s ease, transform 1.1s ease;
}

.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dot { width: 11px; height: 11px; border-radius: 50%; border: none; background: rgba(255,255,255,.65); cursor: pointer; padding: 0; }
.hero-dot.active { background: #fff; }

.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; margin-bottom: 0; }

.testimonial-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-item { padding: 8px 4px; }
.testimonial-item p { font-size: 1.05rem; line-height: 1.75; color: #3a4a59; margin: 8px 0 10px; }
.stars { color: #f5b635; letter-spacing: 1px; font-size: 1.02rem; }

.premium-cards-2, .premium-cards-3, .premium-cards-4 { display: grid; gap: 22px; }
.premium-cards-2 { grid-template-columns: repeat(2, 1fr); }
.premium-cards-3 { grid-template-columns: repeat(3, 1fr); }
.premium-cards-4 { grid-template-columns: repeat(4, 1fr); }

.lite-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(43, 62, 96, 0.09);
    transition: transform .25s ease, box-shadow .25s ease;
}

.lite-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(43, 62, 96, 0.16); }
.lite-card h3 { font-size: 1.24rem; margin-bottom: 8px; }
.lite-card p { color: #445566; line-height: 1.68; }

.how-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e7edf8;
    color: #3e57bf;
    font-size: 20px;
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid h3 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; color: #23374a; }
.stats-grid p { margin: 8px 0 0; color: #596b7b; font-size: 1.04rem; }

.cta-band { padding-top: 72px; padding-bottom: 72px; }
.cta-inner { text-align: center; }
.cta-inner h2 { margin-bottom: 18px; }
.cta-form { margin: 0 auto; width: min(620px, 100%); display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.cta-form input { min-height: 48px; border-radius: 10px; border: 1px solid #d6dfeb; padding: 0 14px; font-size: 16px; }
.cta-form button { min-height: 48px; padding: 0 22px; border-radius: 10px; }

.support-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 28px; align-items: center; }
.support-copy p { font-size: 1.07rem; line-height: 1.75; color: #445566; margin-bottom: 18px; }
.support-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.support-images img { width: 100%; height: 190px; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 22px rgba(43, 62, 96, 0.16); }
.support-images img:nth-child(3) { grid-column: span 2; height: 220px; }

.blog-grid,
.blog-grid-minimal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    background: #fff;
    border: 1px solid rgba(223, 229, 238, 0.65);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(43, 62, 96, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(43, 62, 96, 0.14);
}

.blog-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #edf2f7;
}

.blog-card__content {
    padding: 22px;
}

.blog-card__meta {
    color: #6b7b8b;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.blog-card__title {
    font-size: 1.3rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

.blog-card__excerpt,
.blog-item p {
    color: #4c5f70;
    line-height: 1.72;
    margin-bottom: 14px;
}

.blog-card__link,
.blog-item a {
    color: #4962c5;
    text-decoration: none;
    font-weight: 700;
}

.blog-card__link:hover,
.blog-item a:hover {
    text-decoration: underline;
}

.blog-index-hero,
.blog-detail-hero {
    padding: 64px 0 28px;
}

.blog-detail {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(43, 62, 96, 0.08);
    padding: 32px;
}

.blog-detail__image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 10px 22px rgba(43, 62, 96, 0.12);
}

.blog-body {
    font-size: 1.05rem;
    line-height: 1.82;
    color: #34495a;
}

.blog-body h2,
.blog-body h3 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.blog-body p {
    margin: 0 0 1em;
}

.blog-body ul,
.blog-body ol {
    padding-left: 22px;
    margin: 0 0 1em;
}

.blog-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #68798c;
    font-size: 0.96rem;
    margin-bottom: 14px;
}

.rte-shell {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgba(39, 67, 96, 0.05);
}

.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 10px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.rte-toolbar button,
.rte-toolbar select {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: none;
    background: #fff;
    color: var(--text);
    border: 1px solid #d7e0ea;
}

.rte-toolbar button:hover {
    background: #eef4fb;
}

.rte-editor {
    min-height: 320px;
    padding: 16px;
    outline: none;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 1rem;
    line-height: 1.72;
    color: var(--text);
}

.rte-editor:empty:before {
    content: attr(data-placeholder);
    color: #8a98a8;
}

.blog-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.blog-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #edf2f7;
}

/* Help/contact */
.help-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 14px 0 18px; }
.help-btn { text-align: center; font-size: 1.1rem; padding: 14px; border-radius: 12px; }
.whatsapp-btn { background: #22a66a; }
.whatsapp-btn:hover { background: #1b8a57; }
.chat-btn { background: #6f8ea0; }
.chat-btn:hover { background: #5e7b8b; }

/* Admin */
.admin-header { background: #f6f9fc; border-bottom: 1px solid #d9e4ef; }
.admin-nav-wrap { min-height: 74px; }
.admin-nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-nav-links a { margin-left: 0; padding: 8px 12px; border: 1px solid #d6e1eb; border-radius: 8px; background: #fff; font-weight: 600; }
.admin-nav-links a:hover { background: #eff5fb; }
.admin-section-inner {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding-top: 18px;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
th { background: #f8fafc; }

.pagination a, .pagination span {
    display: inline-block;
    margin-right: 5px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
}

.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

.badge { padding: 4px 8px; border-radius: 20px; font-size: 12px; }
.badge-paid { background: #e8f7ec; color: #1f7a3f; }
.badge-pending { background: #fef4e6; color: #b56b00; }

.action-icons { display: inline-flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #d7e1eb; text-decoration: none; font-size: 16px; background: #fff; }
.icon-btn:hover { background: #f0f6fc; }
.icon-archive:hover { background: #fbeeee; }

@media (max-width: 980px) {
    .premium-section { padding: 70px 0; }
    .hero-layout,
    .support-layout,
    .premium-cards-2,
    .premium-cards-3,
    .premium-cards-4,
    .stats-grid,
    .blog-grid-minimal,
    .testimonial-row {
        grid-template-columns: 1fr;
    }

    .support-images { grid-template-columns: 1fr; }
    .support-images img:nth-child(3) { grid-column: span 1; height: 190px; }
    .cta-form { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .grid-2,
    .grid-3,
    .grid-4,
    .stats,
    .option-grid-large.two-col,
    .option-grid-large.three-col,
    .option-grid-large.four-col,
    .help-actions {
        grid-template-columns: 1fr;
    }

    .nav-wrap { flex-direction: column; padding: 10px 0; gap: 8px; }
    .nav-links a { margin: 0 6px; }

    .hero-btn,
    .help-btn,
    .step-actions button,
    .step-actions .btn {
        width: 100%;
    }
}
