/* Functional bits the demo pages don't include: honeypot, form result, errors.
   Loaded after slate.css. Does not restyle the demo layout. */

.contact-form__honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-flash {
    grid-column: 1 / -1;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--accent-soft, #f6f1e4);
    border-left: 4px solid var(--gold, #C9A54B);
    color: var(--text, #1a1a1a);
    font-size: 15px;
    line-height: 1.45;
}

.form-flash--error {
    border-left-color: #8c2f2f;
    background: #f8ece8;
}

.form-errors {
    grid-column: 1 / -1;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f8ece8;
    color: #3d1c1c;
    font-size: 14px;
}

.form-errors__title { margin: 0 0 6px; font-weight: 700; }
.form-errors__list { margin: 0; padding-left: 18px; }
.form-errors__item { margin: 2px 0; }

.field__error {
    margin: 0 0 8px;
    color: #8c2f2f;
    font-size: 13px;
    font-weight: 600;
}

.contact-form .cf-turnstile { grid-column: 1 / -1; margin: 4px 0; }

.site-footer__newsletter {
    margin-top: 22px;
    max-width: 420px;
}

.site-footer__newsletter-label {
    display: block;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold, #C9A54B);
}

.site-footer__newsletter-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 4px 4px 16px;
    border: 1px solid rgba(201, 165, 75, .5);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
}

.site-footer__newsletter-row:focus-within {
    border-color: var(--gold, #C9A54B);
    box-shadow: 0 0 0 3px rgba(201, 165, 75, .22);
}

.site-footer__newsletter input[type="email"] {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--footer-fg, #ededed);
    font: inherit;
    font-size: 15px;
    outline: none;
    box-shadow: none;
}

.site-footer__newsletter input[type="email"]::placeholder {
    color: rgba(237, 237, 237, .48);
}

.site-footer__newsletter input[type="email"]:-webkit-autofill {
    -webkit-text-fill-color: var(--footer-fg, #ededed);
    caret-color: var(--footer-fg, #ededed);
    transition: background-color 9999s ease-out;
}

.site-footer__newsletter button {
    flex: none;
    margin: 0;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--gold, #C9A54B);
    color: #111111;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.site-footer__newsletter button:hover {
    background: var(--gold-soft, #E8D49A);
}

.site-footer__newsletter-note {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--gold-soft, #E8D49A);
}

@media (max-width: 900px) {
    .site-footer {
        padding-bottom: 96px;
    }

    .site-footer__inner {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .site-footer__brand-block { display: contents; }
    .site-footer__identity { order: 1; }
    .site-footer__newsletter { order: 2; margin-top: 0; }
    .site-footer__contact { order: 3; }
    .site-footer__legal { order: 4; margin-top: 0; padding-top: 0; }
}

main:has(.error-page) {
    display: flex;
    align-items: center;
}

.error-page {
    width: 100%;
    padding-block: clamp(48px, 8vw, 96px);
}
.error-page__inner { max-width: 760px; }
.error-page .section-title { max-width: 12em; }
.error-page__text {
    margin: 18px 0 0;
    max-width: 38em;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}
.error-page__path {
    display: inline-block;
    margin: 18px 0 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--band);
    color: var(--muted);
    font-size: 14px;
    font-family: ui-monospace, "Cascadia Code", monospace;
}
.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* Signed-in header: email and log out sit in one row, not a raw browser button. */
.site-header__bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.site-header__bar-actions:has(.site-header__logout) .site-header__login--bar {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-ink);
}

.site-header__logout {
    margin: 0;
}

.site-header__bar-actions .site-header__logout-button {
    appearance: none;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: transparent;
    color: var(--gold-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.site-header__bar-actions .site-header__logout-button:hover {
    background: var(--gold);
    color: #141414;
}

@media (min-width: 901px) {
    .site-nav__item--login { display: none; }
}

@media (max-width: 900px) {
    .site-header__bar-actions { display: none; }

    .site-header__logout--menu { margin: 0; }

    .site-header__logout-button--menu {
        display: block;
        width: 100%;
        margin: 0;
        padding: 14px 2px;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        background: none;
        color: var(--accent);
        font: inherit;
        font-size: 18px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
    }
}

/* Service cards stretch to the row. Price and Book Now sit on the bottom
   even when a card has no description. */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card__meta {
    margin-top: auto;
}
