/* Shared visual primitives. Design values come from theme.json. */
html {
    scroll-padding-top: 2rem;
}

body {
    text-wrap: pretty;
    overflow-wrap: break-word;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video {
    max-width: 100%;
}

a {
    text-underline-offset: 0.22em;
    text-decoration-thickness: 0.08em;
}

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--wp--preset--color--navy);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px var(--wp--preset--color--white);
}

.wp-block-button__link,
.wp-element-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65em;
    min-height: 48px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

.wp-block-buttons > .wp-block-button {
    max-width: 100%;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
    background: transparent;
    color: var(--wp--preset--color--navy);
    border: 1px solid currentColor;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
    background: var(--wp--preset--color--navy);
    color: var(--wp--preset--color--white);
}

.zt-card {
    padding: var(--wp--preset--spacing--40);
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--navy);
    border: 1px solid var(--wp--preset--color--border);
    border-top: 3px solid var(--wp--preset--color--gold-ink);
    border-radius: 6px;
}

.zt-card > :first-child,
.zt-surface > :first-child,
.zt-dark > :first-child {
    margin-top: 0;
}

.zt-card > :last-child,
.zt-surface > :last-child,
.zt-dark > :last-child {
    margin-bottom: 0;
}

.zt-surface {
    background: var(--wp--preset--color--paper);
    color: var(--wp--preset--color--navy);
    padding: var(--wp--preset--spacing--40);
    border-radius: 6px;
}

.zt-dark {
    background: var(--wp--preset--color--navy);
    color: var(--wp--preset--color--white);
    padding: var(--wp--preset--spacing--50);
}

/* Target text elements, so nested gold buttons and white cards keep their own contrast. */
.zt-dark > :where(p, h1, h2, h3, h4, h5, h6),
.zt-dark > .wp-block-group > :where(p, h1, h2, h3, h4, h5, h6) {
    color: var(--wp--preset--color--white);
}

.zt-dark > p > a,
.zt-dark > a:not(.wp-element-button),
.zt-dark .zt-eyebrow {
    color: var(--wp--preset--color--gold);
}

.zt-eyebrow {
    color: var(--wp--preset--color--gold-ink);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.zt-secondary {
    color: var(--wp--preset--color--muted);
}

.zt-icon-tile {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    padding: 14px;
    background: var(--wp--preset--color--paper);
    color: var(--wp--preset--color--gold-ink);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 14px;
}

@media (max-width: 600px) {
    .zt-card,
    .zt-surface,
    .zt-dark {
        padding: var(--wp--preset--spacing--30);
    }
}

/* Leave room for the fixed phone/tablet dock when keyboard focus scrolls. */
@media (max-width: 959px) {
    html {
        scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    }

    :where(a, button, input, select, textarea, summary, .zt-form-errors) {
        scroll-margin-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Reserved founder portrait: replace the labelled placeholder with a real photo. */
.zt-founder-photo { width: 100%; max-width: 360px; min-height: 320px; margin-inline: auto; padding: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; color: #825918; background: #F7F4ED; border: 1px dashed #825918; border-radius: 12px; }
.zt-founder-photo span { font-size: 1.25rem; font-weight: 600; color: #142033; }
.zt-founder-photo small { font-size: 1rem; color: #43566D; }
.zt-founder-quote { padding-left: 20px; border-left: 3px solid #825918; }
.zt-founder-portrait { align-self: start; }
@media (max-width: 699px) { .zt-founder-photo { min-height: 260px; } }

/* Native Page bodies retain the original template section layout. */
.zt-page-content { display: contents; }
.zt-page-content > * { margin-block: 0; }

/* Shared virtual-coaching comparison cards for Home and the service page. */
.zt-program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.zt-program-card { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 28px; border: 1px solid #DED6C7; border-top: 3px solid #825918; border-radius: 12px; background: #FFFFFF; color: #142033; }
.zt-program-card :where(h3,p,ul) { margin: 0; }
.zt-program-card h3 { font-size: 1.375rem; line-height: 1.35; }
.zt-program-card .zt-program-label { font-size: .875rem; font-weight: 600; color: #825918; }
.zt-program-card .zt-program-price { font-size: 2rem; line-height: 1.2; font-weight: 600; color: #142033; }
.zt-program-card .zt-program-audience { font-size: 1rem; line-height: 1.6; color: #43566D; }
.zt-program-card ul { padding-left: 22px; }
.zt-program-card li + li { margin-top: 12px; }
.zt-program-card > .wp-block-buttons { margin-top: auto; padding-top: 8px; }
.zt-program-card .wp-block-button, .zt-program-card .wp-block-button__link { width: 100%; }
.zt-program-card .wp-block-button__link { font-size: 1rem; }
.zt-coaching-section { background: #F7F4ED; }
.zt-coaching-section .zt-service-container > p { margin-top: 20px; }
.zt-coaching-section .zt-service-container > .zt-eyebrow { margin-top: 0; }
.zt-coaching-learning { display: grid; gap: 20px; margin-top: 48px; }
.zt-home-coaching .zt-home-container > .zt-home-text-link { margin-top: 24px; }
@media (max-width: 1099px) { .zt-program-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 699px) { .zt-program-card { padding: 24px; } }

/* Page-level block resets must not collapse the new comparison spacing. */
.zt-home .zt-program-grid, .zt-service .zt-program-grid { margin-top: 32px; }
.zt-service .zt-coaching-learning { margin-top: 48px; }
.zt-home-coaching .zt-home-container > h2 { margin-bottom: 20px; }

/* Value and inclusions precede transparent pricing. */
.zt-home .zt-coaching-review, .zt-service .zt-coaching-review { margin-top: 32px; padding: 28px; background: #F7F4ED; border-left: 3px solid #825918; display: grid; gap: 20px; }
.zt-coaching-review p { margin: 0; }
.zt-coaching-review .wp-block-buttons { margin: 0; }
.zt-program-card .zt-program-price { border-top: 1px solid #DED6C7; padding-top: 20px; margin-top: auto; font-size: 1.5rem; }
.zt-program-card .zt-program-price-note { font-size: 1rem; color: #43566D; }
.zt-program-card > .wp-block-buttons { margin-top: 0; }

/* Real founder portrait: the source photo is preserved; framing happens in CSS. */
.zt-home .zt-founder-portrait-image, .zt-service .zt-founder-portrait-image { width: 100%; max-width: 360px; margin: 0 auto; overflow: hidden; border: 1px solid #DED6C7; border-radius: 12px; background: #F7F4ED; }
.zt-founder-portrait-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
