/* Inner pages + blog (homepage theme) */

.hm-main--inner {
    padding: 24px 0 40px;
    min-height: 50vh;
}

.hm-brand-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
    border-radius: 9px;
}

.hm-page-head {
    margin-bottom: 24px;
}

.hm-page-head h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hm-text);
}

.hm-page-head p {
    margin: 0;
    color: var(--hm-text-muted);
    font-size: 14px;
}

.hm-card-panel {
    background: var(--hm-card);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius-lg);
    padding: 24px;
    box-shadow: var(--hm-shadow);
    line-height: 1.9;
}

.hm-card-panel.text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.hm-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .hm-contact-grid {
        grid-template-columns: 1fr;
    }
}

.hm-form-group {
    margin-bottom: 14px;
}

.hm-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--hm-text);
}

.hm-input,
.hm-textarea {
    width: 100%;
    border: 1px solid var(--hm-line);
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background: var(--hm-card);
    color: var(--hm-text);
}

.hm-textarea {
    min-height: 160px;
    resize: vertical;
}

.hm-input:focus,
.hm-textarea:focus {
    outline: none;
    border-color: var(--hm-brand);
    box-shadow: 0 0 0 3px rgba(227, 130, 87, 0.15);
}

.hm-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hm-alert {
    padding: 12px 14px;
    border-radius: 9px;
    margin-bottom: 16px;
    font-size: 13px;
}

.hm-alert--success {
    background: rgba(20, 146, 111, 0.1);
    color: var(--hm-success);
    border: 1px solid rgba(20, 146, 111, 0.25);
}

.hm-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-faq-item {
    background: var(--hm-card);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    overflow: hidden;
}

.hm-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.hm-faq-item[open] summary {
    border-bottom: 1px solid var(--hm-line-soft);
    color: var(--hm-brand-darker);
}

.hm-faq-answer {
    padding: 14px 18px 18px;
    font-size: 14px;
    color: #4d5761;
    line-height: 1.85;
}

/* Blog (compat with existing sg-* markup) */
.hm-body .sg-section {
    padding: 0;
}

.hm-body .sg-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.hm-body .sg-section-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hm-text);
}

.hm-body .sg-section-header p {
    color: var(--hm-text-muted);
}

.hm-body .sg-blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .hm-body .sg-blog-layout {
        grid-template-columns: 1fr;
    }

    .hm-body .sg-blog-sidebar {
        position: static;
    }
}

.hm-body .sg-blog-sidebar {
    position: sticky;
    top: calc(var(--hm-header-h) + 12px);
}

.hm-body .sg-blog-filter {
    background: var(--hm-card);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius-lg);
    padding: 18px;
}

.hm-body .sg-blog-filter h3 {
    font-size: 13px;
    margin: 14px 0 8px;
    color: var(--hm-text);
}

.hm-body .sg-blog-filter h3:first-child {
    margin-top: 0;
}

.hm-body .sg-input {
    width: 100%;
    border: 1px solid var(--hm-line);
    border-radius: 9px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
}

.hm-body .sg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 9px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.hm-body .sg-btn-primary {
    background: var(--hm-brand);
    color: #fff;
}

.hm-body .sg-btn-primary:hover {
    background: var(--hm-brand-dark);
}

.hm-body .sg-btn-ghost {
    background: transparent;
    border-color: var(--hm-line);
    color: var(--hm-text);
}

.hm-body .sg-btn-block {
    width: 100%;
}

.hm-body .sg-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.hm-body .sg-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .hm-body .sg-grid-3 {
        grid-template-columns: 1fr;
    }
}

.hm-body .sg-blog-card {
    background: var(--hm-card);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.hm-body .sg-blog-card:hover {
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
    transform: translateY(-2px);
}

.hm-body .sg-blog-card-body h3 {
    color: var(--hm-text);
}

.hm-body .sg-blog-card-cat {
    color: var(--hm-brand);
}

.hm-body .sg-blog-card-meta,
.hm-body .sg-blog-card-body p {
    color: var(--hm-text-muted);
}

.hm-body .sg-breadcrumb {
    font-size: 13px;
    color: var(--hm-text-muted);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.hm-body .sg-breadcrumb a {
    color: var(--hm-brand);
}

.hm-body .sg-blog-content {
    line-height: 1.9;
    font-size: 15px;
}

.hm-body .sg-blog-content h2,
.hm-body .sg-blog-content h3 {
    color: var(--hm-text);
}

.hm-body .sg-tag,
.hm-body .sg-badge-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--hm-gold-soft);
    color: var(--hm-brand-darker);
    font-size: 12px;
    text-decoration: none;
}

.hm-body .sg-faq-item {
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    margin-bottom: 8px;
    background: var(--hm-card);
}

.hm-body .sg-faq-item summary {
    padding: 14px 16px;
    font-weight: 700;
    cursor: pointer;
}

.hm-body .sg-faq-answer {
    padding: 0 16px 14px;
    font-size: 14px;
    color: #4d5761;
}

.hm-body .sg-empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--hm-text-muted);
}

.hm-body .sg-pagination {
    margin-top: 24px;
}

.hm-body .sg-pagination nav {
    display: flex;
    justify-content: center;
}

/* ---------- Content pages (cp-*) ---------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.cp-hero {
    background: linear-gradient(135deg, #fff 0%, #f8f4f1 45%, #f4f5f6 100%);
    border-bottom: 1px solid var(--hm-line);
    padding: 28px 0 32px;
}

.cp-hero-inner {
    max-width: 760px;
}

.cp-breadcrumb {
    font-size: 12px;
    color: var(--hm-text-muted);
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.cp-breadcrumb a {
    color: var(--hm-brand);
}

.cp-breadcrumb-sep {
    opacity: 0.5;
}

.cp-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--hm-gold-soft);
    color: var(--hm-brand-darker);
    margin-bottom: 12px;
}

.cp-hero-title {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--hm-text);
}

.cp-hero-sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--hm-text-muted);
}

.cp-section {
    padding: 32px 0;
}

.cp-section--muted {
    background: #f0f2f4;
}

.cp-section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 28px;
}

.cp-section-head p {
    margin: 8px 0 0;
    color: var(--hm-text-muted);
    font-size: 14px;
}

.cp-section-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--hm-text);
}

.cp-lead {
    font-size: 15px;
    line-height: 1.9;
    color: #4d5761;
}

.cp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 640px) {
    .cp-stats {
        grid-template-columns: 1fr;
    }
}

.cp-stat {
    background: var(--hm-card);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--hm-shadow);
}

.cp-stat-value {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--hm-brand-darker);
    margin-bottom: 6px;
}

.cp-stat-label {
    font-size: 13px;
    color: var(--hm-text-muted);
}

.cp-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .cp-split {
        grid-template-columns: 1fr;
    }
}

.cp-split-main p {
    color: #4d5761;
    line-height: 1.9;
}

.cp-highlight-card {
    background: var(--hm-card);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius-lg);
    padding: 22px 24px;
    box-shadow: var(--hm-shadow);
}

.cp-highlight-card h3 {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.cp-check-list {
    margin: 0;
    padding: 0 18px 0 0;
    line-height: 1.9;
    color: #4d5761;
    font-size: 14px;
}

.cp-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .cp-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .cp-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .cp-grid-4 {
        grid-template-columns: 1fr;
    }
}

.cp-icon-card {
    background: var(--hm-card);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius-lg);
    padding: 20px;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}

.cp-icon-card:hover {
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
    transform: translateY(-2px);
}

.cp-icon-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--hm-brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    margin-bottom: 12px;
}

.cp-icon-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.cp-icon-card p {
    margin: 0;
    font-size: 13px;
    color: var(--hm-text-muted);
    line-height: 1.75;
}

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

@media (max-width: 900px) {
    .cp-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .cp-steps {
        grid-template-columns: 1fr;
    }
}

.cp-step {
    background: var(--hm-card);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius-lg);
    padding: 18px;
    position: relative;
}

.cp-step-num {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--hm-gold-soft);
    color: var(--hm-brand-darker);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 10px;
}

.cp-step h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.cp-step p {
    margin: 0;
    font-size: 13px;
    color: var(--hm-text-muted);
    line-height: 1.7;
}

.cp-cta {
    margin-top: 8px;
    background: linear-gradient(120deg, var(--hm-brand-dark), var(--hm-brand));
    color: #fff;
    padding: 32px 0;
}

.cp-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cp-cta h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.cp-cta p {
    margin: 0;
    opacity: 0.92;
    font-size: 14px;
    max-width: 520px;
    line-height: 1.7;
}

.cp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cp-cta .hm-btn--outline {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: transparent;
}

.cp-cta .hm-btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

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

@media (max-width: 900px) {
    .cp-contact-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .cp-contact-tiles {
        grid-template-columns: 1fr;
    }
}

.cp-contact-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--hm-card);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius-lg);
    padding: 18px;
    box-shadow: var(--hm-shadow);
    transition: border-color 0.15s, box-shadow 0.15s;
}

a.cp-contact-tile:hover {
    border-color: var(--hm-brand);
    box-shadow: 0 8px 22px rgba(227, 130, 87, 0.12);
}

.cp-contact-tile-label {
    display: block;
    font-size: 12px;
    color: var(--hm-text-muted);
    margin-bottom: 8px;
}

.cp-contact-tile strong {
    font-size: 14px;
    line-height: 1.6;
    color: var(--hm-text);
}

.cp-social-row {
    margin-top: 18px;
    font-size: 13px;
    color: var(--hm-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cp-social-row a {
    color: var(--hm-brand);
    font-weight: 600;
}

.cp-form-card .cp-form-title {
    margin: 0 0 18px;
    font-size: 1.1rem;
}

.cp-mini-faq {
    background: var(--hm-card);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius-lg);
    padding: 20px;
}

.cp-mini-faq h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.cp-link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--hm-card);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius-lg);
    padding: 20px;
    height: 100%;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.cp-link-card:hover {
    border-color: var(--hm-brand);
    box-shadow: var(--hm-shadow);
}

.cp-link-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--hm-gold-soft);
    color: var(--hm-brand-darker);
    display: grid;
    place-items: center;
    font-weight: 800;
    margin-bottom: 12px;
}

.cp-link-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.cp-link-card p {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--hm-text-muted);
    line-height: 1.6;
}

.cp-link-card-cta {
    font-size: 12px;
    font-weight: 700;
    color: var(--hm-brand);
}

.cp-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .cp-guide-grid {
        grid-template-columns: 1fr;
    }
}

.cp-guide-card {
    background: var(--hm-card);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius-lg);
    padding: 20px;
}

.cp-guide-card h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.cp-ol {
    margin: 0;
    padding: 0 20px 0 0;
    font-size: 14px;
    color: #4d5761;
    line-height: 1.85;
}

.cp-faq-toolbar {
    margin-bottom: 24px;
}

.cp-search-wrap {
    display: block;
    margin-bottom: 12px;
}

.cp-faq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cp-chip {
    border: 1px solid var(--hm-line);
    background: var(--hm-card);
    color: var(--hm-text);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.cp-chip.is-active {
    background: var(--hm-brand);
    border-color: var(--hm-brand);
    color: #fff;
}

.cp-faq-group {
    margin-bottom: 28px;
}

.cp-faq-group-title {
    font-size: 1.05rem;
    margin: 0 0 12px;
    color: var(--hm-text);
}

.cp-faq-empty {
    text-align: center;
    color: var(--hm-text-muted);
    padding: 24px;
}

.cp-legal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 800px) {
    .cp-legal-layout {
        grid-template-columns: 1fr;
    }
    .cp-toc {
        position: static !important;
    }
}

.cp-toc {
    position: sticky;
    top: calc(var(--hm-header-h) + 16px);
    background: var(--hm-card);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius-lg);
    padding: 16px;
    font-size: 13px;
}

.cp-toc h2 {
    margin: 0 0 10px;
    font-size: 14px;
}

.cp-toc ul {
    margin: 0;
    padding: 0 16px 0 0;
    line-height: 1.9;
}

.cp-toc a {
    color: var(--hm-brand);
}

.cp-legal-block {
    background: var(--hm-card);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius-lg);
    padding: 20px 22px;
    margin-bottom: 14px;
}

.cp-legal-block h2 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.cp-legal-block p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.9;
    color: #4d5761;
}

.cp-legal-block p:last-child {
    margin-bottom: 0;
}

.cp-legal-extra {
    margin-top: 20px;
}

.mb-3 {
    margin-bottom: 16px;
}

.mt-3 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 24px;
}
