/*
Theme Name: RMAI
Theme URI: https://realmindsai.com.au
Author: Real Minds AI
Author URI: https://realmindsai.com.au
Description: Custom block theme for Real Minds AI — the living website of an AI consultancy.
Version: 2.0.2
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: rmai
*/

/* ═══════════════════════════════════════════
   RMAI Design System — A3 Warm Editorial + Muted Plum
   Brand tokens live in theme.json.
   This file handles component styles that
   theme.json can't express.
   ═══════════════════════════════════════════ */

/* ── Base reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ── Card component ── */
.rmai-card {
    background: var(--wp--preset--color--white);
    border-radius: 12px;
    padding: 32px 28px;
    border: 2px solid var(--wp--preset--color--border);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.rmai-card:hover {
    box-shadow: var(--wp--custom--shadow--hover);
    border-color: var(--wp--preset--color--plum);
}

.rmai-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--wp--preset--color--black);
}

.rmai-card p {
    font-size: 0.9375rem;
    color: var(--wp--preset--color--text-secondary);
    line-height: 1.6;
    margin: 0 0 8px;
}

.rmai-card a {
    font-weight: 600;
    text-decoration: none;
}

/* ── Card grid ── */
.rmai-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
}

/* ── Trust / proof strip ── */
.rmai-trust-strip {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 36px 40px;
    background: var(--wp--preset--color--black);
    flex-wrap: wrap;
}

.rmai-trust-item {
    text-align: center;
    font-size: 0.875rem;
    color: var(--wp--preset--color--text-faint);
}

.rmai-trust-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--wp--preset--color--white);
    margin-bottom: 4px;
}

.rmai-trust-accent {
    color: var(--wp--preset--color--white);
}

/* ── Hero ── */
.rmai-hero {
    background: var(--wp--preset--color--white);
    border-bottom: 1px solid var(--wp--preset--color--border);
    padding: 96px 40px 72px;
    text-align: center;
}

.rmai-hero h1 {
    max-width: 800px;
    margin: 0 auto 24px;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--wp--preset--color--black);
}

.rmai-hero-sub {
    font-size: 1.25rem;
    color: var(--wp--preset--color--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Section ── */
.rmai-section {
    padding: 72px 40px;
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
}

.rmai-section-heading {
    color: var(--wp--preset--color--black);
    margin-bottom: 24px;
}

/* ── Machine answer block (for AI engines — visually hidden, present for crawlers) ── */
.rmai-answer-block {
    position: absolute !important;
    left: -9999px !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

/* ── CTA button ── */
.wp-block-button.rmai-cta-btn .wp-block-button__link,
.rmai-cta-btn a {
    display: inline-block;
    padding: 16px 40px;
    background: var(--wp--preset--color--plum);
    color: var(--wp--preset--color--white) !important;
    text-decoration: none;
    border-radius: var(--wp--custom--radius--button);
    font-weight: 700;
    font-size: 1.0625rem;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}

.wp-block-button.rmai-cta-btn .wp-block-button__link:hover,
.rmai-cta-btn a:hover {
    background: var(--wp--preset--color--black);
    color: var(--wp--preset--color--white) !important;
    transform: translateY(-1px);
}

/* ── FAQ items ── */
.rmai-faq-item {
    background: var(--wp--preset--color--white);
    border-radius: var(--wp--custom--radius--card);
    padding: 24px 28px;
    margin-bottom: 16px;
    border: 1px solid var(--wp--preset--color--border);
}

.rmai-faq-item h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--wp--preset--color--black);
}

.rmai-faq-item p {
    font-size: 0.9375rem;
    color: var(--wp--preset--color--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ── Capacity pulse dot ── */
.rmai-capacity-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.rmai-capacity-dot--available {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
    animation: rmai-pulse 2s infinite;
}

.rmai-capacity-dot--limited {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
    animation: rmai-pulse 2s infinite;
}

.rmai-capacity-dot--at-capacity {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

@keyframes rmai-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Agent prompt ── */
.rmai-agent-prompt {
    background: var(--wp--preset--color--white);
    padding: 48px 40px;
    text-align: center;
    border-radius: var(--wp--custom--radius--card);
    border: 1px solid var(--wp--preset--color--border);
}

.rmai-agent-input {
    width: 100%;
    max-width: 500px;
    padding: 16px 24px;
    border: 2px solid var(--wp--preset--color--border);
    border-radius: var(--wp--custom--radius--input);
    font-family: var(--wp--preset--font-family--epilogue);
    font-size: 1rem;
    background: var(--wp--preset--color--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rmai-agent-input:focus {
    border-color: var(--wp--preset--color--plum);
    box-shadow: 0 0 0 3px rgba(92, 75, 110, 0.15);
    outline: none;
}

/* ── Header ── */
.rmai-header {
    padding: 12px 40px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--wp--preset--color--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.rmai-header .wp-block-site-logo img {
    max-height: 56px;
    width: auto;
}

.rmai-header-nav {
    gap: 24px;
}

.rmai-capacity-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wp--preset--color--text-secondary);
    white-space: nowrap;
}

/* ── Team photos ── */
.rmai-team-photo img {
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 3 / 4;
}

/* ── Footer ── */
.rmai-footer {
    font-size: 0.9375rem;
}

.rmai-footer a {
    color: var(--wp--preset--color--text-faint);
    text-decoration: none;
    transition: color 0.15s;
}

.rmai-footer a:hover {
    color: var(--wp--preset--color--white);
}

/* ── Activity pulse ── */
.rmai-activity-pulse {
    background: var(--wp--preset--color--white);
    padding: 24px 28px;
    border-radius: var(--wp--custom--radius--card);
    border: 1px solid var(--wp--preset--color--border);
    text-align: center;
}

.rmai-activity-pulse p {
    margin: 0;
    font-size: 1rem;
    color: var(--wp--preset--color--text-secondary);
}

/* ── Now page block ── */
.rmai-now-page {
    background: var(--wp--preset--color--white);
    border-radius: var(--wp--custom--radius--card);
    padding: 32px 28px;
    border: 1px solid var(--wp--preset--color--border);
    text-align: center;
    position: relative;
}

.rmai-now-page h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--wp--preset--color--black);
}

.rmai-now-page p {
    font-size: 0.9375rem;
    color: var(--wp--preset--color--text-secondary);
    line-height: 1.6;
    margin: 0 0 12px;
}

/* ── Review card ── */
.rmai-review-card {
    background: var(--wp--preset--color--white);
    border-radius: var(--wp--custom--radius--card);
    padding: 28px;
    border: 1px solid var(--wp--preset--color--border);
    position: relative;
}

.rmai-review-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 3rem;
    line-height: 1;
    color: var(--wp--preset--color--border);
    font-family: Georgia, serif;
}

.rmai-review-stars {
    color: var(--wp--preset--color--black);
    font-size: 1.125rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.rmai-review-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--wp--preset--color--text-secondary);
    font-style: italic;
    margin-bottom: 16px;
}

.rmai-review-author {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--wp--preset--color--text-faint);
}

/* ── Metric highlight ── */
.rmai-metric {
    text-align: center;
    padding: 32px 20px;
}

.rmai-metric-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--wp--preset--color--plum);
}

.rmai-metric-label {
    font-size: 0.875rem;
    color: var(--wp--preset--color--text-secondary);
    font-weight: 500;
}

/* ── Process step ── */
.rmai-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--wp--preset--color--border);
}

.rmai-step:last-child {
    border-bottom: none;
}

.rmai-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--wp--preset--color--plum);
    color: var(--wp--preset--color--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

/* ── Placeholder block ── */
.rmai-placeholder {
    background: var(--wp--preset--color--bg);
    border: 2px dashed var(--wp--preset--color--border);
    border-radius: var(--wp--custom--radius--card);
    padding: 48px 28px;
    text-align: center;
    color: var(--wp--preset--color--text-muted);
    font-size: 0.9375rem;
}

.rmai-placeholder strong {
    display: block;
    color: var(--wp--preset--color--text-secondary);
    font-size: 1rem;
    margin-bottom: 8px;
}

/* ── Tag / badge ── */
.rmai-tag {
    display: inline-block;
    background: var(--wp--preset--color--plum-light);
    color: var(--wp--preset--color--black);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .rmai-hero {
        padding: 56px 20px 44px;
    }

    .rmai-hero h1 {
        font-size: 1.875rem;
    }

    .rmai-hero-sub {
        font-size: 1rem;
    }

    .rmai-section {
        padding: 48px 20px;
    }

    .rmai-trust-strip {
        gap: 20px;
        padding: 24px 20px;
    }

    .rmai-trust-item strong {
        font-size: 1.5rem;
    }

    .rmai-card-grid {
        grid-template-columns: 1fr;
    }

    .rmai-card {
        padding: 24px 20px;
    }

    .rmai-agent-prompt {
        padding: 32px 20px;
    }

    .rmai-header {
        padding: 10px 16px;
    }

    .rmai-header .wp-block-site-logo img {
        max-height: 44px;
    }

    .rmai-capacity-label {
        display: none;
    }

    .rmai-metric-value {
        font-size: 2.25rem;
    }

    .rmai-step {
        flex-direction: column;
        gap: 12px;
    }
}

/* ── Navigation — consistent spacing across all pages ── */
.wp-block-navigation__container > .wp-block-navigation-item {
    margin-right: 2px !important;
}
.wp-block-navigation__container > .wp-block-navigation-item > a {
    padding: 4px 6px !important;
    font-size: 0.9375rem;
}
/* Active page — green underline */
.wp-block-navigation-item.current-menu-item > a,
.wp-block-navigation-item.current-menu-ancestor > a,
.wp-block-navigation-item a.rmai-nav-active {
    border-bottom: 2px solid #22C55E !important;
    padding-bottom: 2px !important;
    font-weight: 600 !important;
}
