/*
Theme Name: aprioris
Theme URI: https://aprioris.ch
Author: aprioris
Description: Block theme for the aprioris clinic network. Presentation only: owns zero business data. Design system per project-context/reference/design-observations.md and the decisions of 22.08.2026 (four logo colours + derived darks + one warm accent; per-template dark/light mix; Cormorant Garamond + DM Sans).
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: aprioris
*/

/*
 * Only rules theme.json cannot express live here.
 * Everything token-based (colours, type, spacing) belongs in theme.json.
 */

/* Eyebrow: small-caps label with the teal dash, the module-header signature. */
.apr-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wp--preset--color--teal-deep);
}
.apr-eyebrow::before {
    content: "";
    width: 2rem;
    height: 2px;
    background: var(--wp--preset--color--brand);
}

/* On dark panels the eyebrow switches to the soft accent. */
.apr-panel-dark .apr-eyebrow {
    color: var(--wp--preset--color--accent-soft);
}
.apr-panel-dark .apr-eyebrow::before {
    background: var(--wp--preset--color--accent-soft);
}

/* The italic accent word inside serif headings (brand signature). */
.apr-accent-word {
    font-style: italic;
    color: var(--wp--preset--color--accent);
}
.apr-panel-dark .apr-accent-word {
    color: var(--wp--preset--color--accent-soft);
}

/* Utility strip under the header: hours summary + the 144 emergency exit. */
.apr-utility-strip {
    font-size: 0.875rem;
}
.apr-utility-strip .apr-emergency {
    font-weight: 700;
}

/* Focus ring: Blau owns focus (colour-role table). */
:where(a, button, input, [tabindex]):focus-visible {
    outline: 2px solid var(--wp--preset--color--action);
    outline-offset: 2px;
}

/* ---- Phase 3 components (rendered by aprioris-core blocks) ---- */

/* Breadcrumbs */
.apr-breadcrumbs { font-size: 0.8125rem; color: var(--wp--preset--color--ink-muted); }
.apr-breadcrumbs a { color: inherit; }

/* Day strip + hours */
.apr-day-strip { display: flex; gap: 0.375rem; margin: 0.5rem 0; }
.apr-day {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.25rem; padding: 0.25rem 0.375rem; border-radius: 6px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
    background: var(--wp--preset--color--salbei-50); color: var(--wp--preset--color--teal-deep);
}
.apr-day.is-closed { background: var(--wp--preset--color--warm-bg); color: var(--wp--preset--color--ink-muted); font-weight: 400; }
.apr-hours-summary, .apr-hours-exceptions { font-size: 0.875rem; margin: 0.25rem 0; }
.apr-open-status { font-size: 0.875rem; font-weight: 700; margin: 0.25rem 0; }
.apr-open-status.is-open { color: var(--wp--preset--color--teal-deep); }
.apr-open-status.is-closed { color: var(--wp--preset--color--accent); }
.apr-hours-table { font-size: 0.875rem; border-collapse: collapse; }
.apr-hours-table th { text-align: left; padding-right: 1rem; font-weight: 500; }
.apr-hours-table th, .apr-hours-table td { padding-top: 0.2rem; padding-bottom: 0.2rem; border-bottom: 1px solid var(--wp--preset--color--border); }

/* Location cards */
.apr-location-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.apr-location-card {
    background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border);
    border-radius: 16px; padding: 1.375rem;
}
.apr-location-card h3 { margin: 0.25rem 0; }
.apr-location-card h3 a { text-decoration: none; color: inherit; }
.apr-card-address, .apr-card-actions { font-size: 0.875rem; }

/* Facts */
.apr-fact { margin: 0.25rem 0; }
.apr-fact-rich h3 { font-size: 1.125rem; margin: 1rem 0 0.25rem; }

/* Red flags: visually unmistakable, warm not alarmist */
.apr-red-flags {
    border: 2px solid var(--wp--preset--color--accent);
    border-radius: 16px; padding: 1.25rem 1.5rem; margin: 2rem 0;
    background: color-mix(in srgb, var(--wp--preset--color--accent) 6%, white);
}
.apr-red-flags h2 { margin-top: 0; font-size: 1.5625rem; }

/* Clinical sections */
.apr-clinical-section { margin: 2rem 0; }
.apr-review-badge { font-size: 0.875rem; color: var(--wp--preset--color--ink-muted); }

/* FAQ */
.apr-faq { border-bottom: 1px solid var(--wp--preset--color--border); padding: 0.75rem 0; }
.apr-faq summary { cursor: pointer; font-weight: 500; }
.apr-faq-answer { padding: 0.75rem 0 0.25rem; }

/* Lists */
.apr-two-col { columns: 2; column-gap: 2.5rem; }
@media (max-width: 600px) { .apr-two-col { columns: 1; } }
.apr-service-list { list-style: none; padding: 0; }
.apr-service { padding: 0.625rem 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.apr-service-desc { font-size: 0.875rem; color: var(--wp--preset--color--ink-muted); }
.apr-chip {
    display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
    background: var(--wp--preset--color--salbei-50); color: var(--wp--preset--color--teal-deep);
    border-radius: 999px; padding: 0.125rem 0.625rem; margin-left: 0.375rem;
}

/* Trust */
.apr-rating strong { font-size: 1.5rem; font-family: var(--wp--preset--font-family--display); }
.apr-testimonial { border-left: 3px solid var(--wp--preset--color--salbei); padding-left: 1rem; margin: 1rem 0; }
.apr-testimonial figcaption { font-size: 0.8125rem; color: var(--wp--preset--color--ink-muted); }

/* Team */
.apr-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.apr-portrait { border-radius: 16px; max-width: 100%; height: auto; }

/* Booking CTA */
.apr-booking-button { display: inline-block; }
.apr-booking-note { font-size: 0.875rem; color: var(--wp--preset--color--ink-muted); margin-top: 0.5rem; }
.apr-booking-sticky { display: none; }
@media (max-width: 781px) {
    .apr-booking-sticky {
        display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom));
        background: var(--wp--preset--color--base);
        border-top: 1px solid var(--wp--preset--color--border);
        text-align: center;
    }
    .apr-booking-sticky .apr-booking-button { display: block; }
    body:has(.apr-booking-sticky) { padding-bottom: 4.5rem; }
}

/* Map (click-to-load) */
.apr-map { margin-top: 1rem; }
.apr-map iframe { width: 100%; height: 320px; border: 0; border-radius: 16px; }
.apr-map-note { font-size: 0.75rem; color: var(--wp--preset--color--ink-muted); }

/* Muted helper */
.apr-muted { color: var(--wp--preset--color--ink-muted); }

/* Footer location links */
.apr-location-links { list-style: none; padding: 0; font-size: 0.875rem; }
.apr-location-links li { margin: 0.25rem 0; }
