.site-page {
    padding-bottom: 4rem;
    background: #f8fafc;
}

/* Keep header readable on these pages (avoid white nav on white bg) */
body:has(.site-page) .header {
    --background-color: #552a86;
    --heading-color: #ffffff;
    --nav-color: #ffffff;
    background-color: #552a86 !important;
}

body:has(.site-page).index-page.scrolled .header {
    background-color: #552a86 !important;
}

@media (min-width: 1200px) {
    body:has(.site-page) .header .navmenu a:not(.wc-nav-btn),
    body:has(.site-page) .header .navmenu a:not(.wc-nav-btn):focus {
        color: #ffffff !important;
    }
}

body:has(.site-page) .header .mobile-nav-toggle {
    color: #ffffff;
}

.site-page-hero {
    padding: 5.5rem 0 2.75rem;
    background: linear-gradient(160deg, #2e1065 0%, #552a86 48%, #7c3aed 120%);
    color: #fff;
}

.site-page-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e9d5ff;
}

.site-page-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff !important;
}

.site-page-subtitle {
    margin: 0;
    max-width: 42rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.site-page-body {
    margin-top: -1.25rem;
}

.site-page-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 10px 30px rgba(85, 42, 134, 0.08);
}

.site-page-prose h2 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #552a86;
}

.site-page-prose h2:first-child {
    margin-top: 0;
}

.site-page-prose h3 {
    margin: 1.35rem 0 0.55rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #6b21a8;
}

.site-page-prose p,
.site-page-prose li {
    color: #334155;
    line-height: 1.75;
    font-size: 1rem;
}

.site-page-prose p + p {
    margin-top: 0.9rem;
}

.site-page-prose ul {
    padding-left: 1.2rem;
    margin: 0.75rem 0 1rem;
}

.site-page-prose li {
    margin-bottom: 0.4rem;
}

.site-page-prose a {
    color: #7c3aed;
    font-weight: 600;
}

.site-page-prose a:hover {
    color: #552a86;
}

.site-page-meta {
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    color: #64748b;
}

.site-contact-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .site-contact-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }
}

.site-contact-list {
    display: grid;
    gap: 0.85rem;
}

.site-contact-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #faf5ff;
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: #0f172a;
    text-decoration: none;
}

.site-contact-item:hover {
    border-color: #7c3aed;
    color: #0f172a;
}

.site-contact-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.12);
    color: #552a86;
    flex-shrink: 0;
}

.site-form .form-label {
    font-weight: 700;
    color: #0f172a;
}

.site-form .form-control {
    border-radius: 10px;
    border-color: #cbd5e1;
    padding: 0.7rem 0.85rem;
}

.site-form .form-control:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.18);
}

.site-form-btn {
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.35rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #552a86);
}

.site-form-btn:hover {
    color: #fff;
    filter: brightness(1.05);
}

.site-guide-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .site-guide-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.site-guide-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(167, 139, 250, 0.28);
    border-radius: 14px;
    padding: 1.35rem 1.25rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.site-guide-card:hover {
    transform: translateY(-2px);
    border-color: #7c3aed;
    box-shadow: 0 12px 28px rgba(85, 42, 134, 0.12);
    color: inherit;
}

.site-guide-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #552a86;
}

.site-guide-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.site-page-alert {
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    color: #5b21b6;
    margin-bottom: 1rem;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.footer-legal-links a {
    color: rgba(226, 232, 240, 0.85);
    text-decoration: none;
    font-size: 0.88rem;
}

.footer-legal-links a:hover {
    color: #fff;
    text-decoration: underline;
}
