/* =============================================================
   Subpage styles (consolidated from all non-homepage pages)
   ============================================================= */

/* ===== BASE OVERRIDES ===== */
body {
    overflow: auto;
    height: auto;
}
html {
    height: auto;
    overflow: auto;
}

/* ===== STICKY HEADER ===== */
.page-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px var(--space-2xl);
    z-index: 100;
    background: rgba(4, 4, 4, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header__logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.page-header__logo img {
    width: 24px;
    height: 24px;
}
.page-header__logo:hover {
    color: rgba(255, 255, 255, 0.7);
}

.page-header__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s, gap 0.3s var(--ease-out-quart);
}
.page-header__back:hover {
    color: rgba(255, 255, 255, 0.7);
    gap: 12px;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl) calc(var(--space-3xl) * 2);
}

/* Section label */
.section-label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: var(--space-lg);
}

/* Page title */
.page-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: var(--space-2xl);
}

/* Intro paragraph */
.page-intro {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: var(--space-3xl);
    border-left: 2px solid rgba(255, 255, 255, 0.10);
    padding-left: var(--space-lg);
}

/* Divider */
.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: var(--space-3xl) 0;
}

/* Section heading */
.section-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-xl);
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-md);
}

/* Body text */
.body-text {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: var(--space-lg);
}

/* ===== ABOUT: SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}
.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: border-color 0.3s, background 0.3s;
}
.service-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}
.service-card__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: var(--space-md);
}
.service-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}
.service-card__desc {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.38);
    font-weight: 300;
    line-height: 1.7;
}

/* ===== ABOUT: STATS ===== */
.stat-row {
    display: flex;
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
    flex-wrap: wrap;
}
.stat {
    flex: 1;
    min-width: 130px;
}
.stat__number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
    margin-bottom: 6px;
}
.stat__label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===== CTA BLOCK ===== */
.cta-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    margin-top: var(--space-3xl);
}
.cta-block__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-2xl);
    letter-spacing: -0.025em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-sm);
}
.cta-block__sub,
.cta-block__subtitle {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    margin-bottom: var(--space-xl);
}
.cta-block__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.cta-block__btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.30);
    box-shadow: 0 10px 36px rgba(255, 255, 255, 0.08);
}

/* ===== FOOTER OVERRIDES (scrollable pages) ===== */
.footer {
    position: static;
    padding: var(--space-xl) var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Focus */
*:focus-visible {
    outline-color: rgba(255, 255, 255, 0.4);
}

/* ===== FAQ PAGE ===== */
.faq-page-list {
    display: flex;
    flex-direction: column;
}
.faq-page-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-xl) 0;
}
.faq-page-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.faq-page-item__meta {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}
.faq-page-item__num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.05em;
    padding-top: 4px;
    flex-shrink: 0;
    width: 28px;
}
.faq-page-item__body {
    flex: 1;
}
.faq-page-item__q {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.3;
    margin-bottom: var(--space-md);
}
.faq-page-item__a {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.48);
    font-weight: 300;
    line-height: 1.85;
}

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out-quart);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}
.blog-card__category {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: var(--space-md);
}
.blog-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}
.blog-card__date {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.25);
    font-weight: 400;
    margin-bottom: var(--space-md);
}
.blog-card__excerpt {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.42);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: var(--space-lg);
    flex: 1;
}
.blog-card__read-more {
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.50);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, gap 0.3s var(--ease-out-quart);
}
.blog-card:hover .blog-card__read-more {
    color: rgba(255, 255, 255, 0.8);
    gap: 10px;
}

/* ===== BLOG POST ARTICLE ===== */
.post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}
.post-meta__author,
.post-meta__date {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}
.post-meta__sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}
.article-body h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-xl);
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.9);
    margin: var(--space-3xl) 0 var(--space-lg);
}
.article-body h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-lg);
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.8);
    margin: var(--space-2xl) 0 var(--space-md);
}
.article-body p {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: var(--space-lg);
}
.article-body ul,
.article-body ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}
.article-body li {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: var(--space-sm);
}
.article-body blockquote {
    border-left: 2px solid rgba(255, 255, 255, 0.12);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
}
.article-body a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.article-body a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== CONTACT FORM ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}
.form-group__label {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.01em;
}
.form-group__hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
}
.form-group__input {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--color-text);
    padding: 14px var(--space-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.25s, background 0.25s;
}
.form-group__input:focus {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}
.form-group__input::placeholder {
    color: rgba(255, 255, 255, 0.20);
    font-weight: 300;
}
.form-group__input--textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.7;
}
.form-group__error {
    font-size: 0.72rem;
    color: #f87171;
    font-weight: 400;
    min-height: 1em;
    transition: opacity 0.2s;
}
.form-group__error:empty {
    opacity: 0;
}
.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    align-self: flex-start;
    margin-top: var(--space-sm);
}
.form-submit:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.30);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}
.form-submit:active {
    transform: translateY(0);
}
.form-submit:disabled {
    opacity: 0.5;
    pointer-events: none;
}
.form-submit svg {
    transition: transform 0.3s var(--ease-out-quart);
}
.form-submit:hover svg {
    transform: translateX(3px);
}
.form-success {
    text-align: center;
    padding: var(--space-2xl) 0;
    animation: fadeInUp 0.5s var(--ease-out-expo);
}
.form-success__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
}
.form-success__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-sm);
}
.form-success__text {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.45);
    font-weight: 300;
    line-height: 1.7;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== LEGAL PAGES (Privacy, Terms) ===== */
.policy-list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}
.policy-list li {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    line-height: 1.85;
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
}
.policy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}
.highlight-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}
.highlight-box p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
}
.warning-box {
    background: rgba(255, 100, 100, 0.04);
    border: 1px solid rgba(255, 100, 100, 0.12);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}
.warning-box p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
}
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
}
.policy-table th,
.policy-table td {
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}
.policy-table th {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Last updated date */
.last-updated {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.28);
    font-weight: 300;
    margin-bottom: var(--space-3xl);
}

/* Sub heading (h3-level in legal pages) */
.sub-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-xl);
}

/* Data table (privacy policy) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0 var(--space-xl);
    font-size: var(--text-sm);
}
.data-table th {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-align: left;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.data-table td {
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
}
.data-table td:first-child {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    width: 30%;
}

/* Contact block (legal page footer) */
.contact-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin-top: var(--space-3xl);
}
.contact-block__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-xl);
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-sm);
}
.contact-block__sub {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}
.contact-block__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-base);
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-block__link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Post featured image */
.post-featured-image {
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}
.article-body img {
    max-width: 100%;
    height: auto;
}

/* Blog post page overrides (WordPress .single-post body class) */
.single-post .page-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
}
.single-post .page-content {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-header {
        padding: 16px var(--space-lg);
    }
    .page-content {
        padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
    }
    .stat-row {
        gap: var(--space-lg);
    }
    .blog-grid {
        gap: var(--space-lg);
    }
    .faq-page-item__q {
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .faq-page-item__num {
        display: none;
    }
    .cta-block {
        padding: var(--space-xl) var(--space-lg);
    }
    .form-submit {
        width: 100%;
        justify-content: center;
    }
    .data-table {
        display: block;
        overflow-x: auto;
    }
    .contact-block {
        padding: var(--space-xl) var(--space-lg);
    }
}
