/*
 * Public site UI kit — photo-led, white + deep royal blue (colours sampled from the Rhapsody logo).
 * Gold is a small accent only. Type: Playfair Display for display moments, Inter for everything else.
 * Pages opt in by using these classes; header.php loads this file after style.css.
 */

:root {
    --pb-navy: #0b1b5e;        /* logo deep navy — contrast bands, footer */
    --pb-navy-2: #12287d;
    --pb-royal: #0a63b8;       /* logo royal — buttons, links (5.6:1 on white) */
    --pb-royal-hover: #08549c;
    --pb-sky: #eaf3fc;         /* light royal tint for soft sections */
    --pb-gold: #b8902f;        /* accent only (eyebrows, small marks) */
    --pb-ink: #0f172a;
    --pb-text: #334155;
    --pb-muted: #64748b;
    --pb-line: #e2e8f0;
    --pb-soft: #f6f8fb;
    --pb-white: #ffffff;
    --pb-radius: 20px;
    --pb-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Smooth in-page anchors (native, keeps keyboard focus correct) */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Layout ---------- */
.pb-container { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .pb-container { padding: 0 32px; } }
.pb-section { padding: 72px 0; }
@media (min-width: 768px) { .pb-section { padding: 104px 0; } }
.pb-section.tight { padding: 48px 0; }
.pb-soft { background: var(--pb-soft); }
.pb-band { background: var(--pb-navy); color: #e6ecff; }
.pb-band .pb-h2, .pb-band .pb-h1, .pb-band h2, .pb-band h3 { color: #ffffff; }
.pb-band .pb-lead, .pb-band p { color: #c7d2f0; }

/* ---------- Type ---------- */
.pb-eyebrow { display: inline-flex; align-items: center; font: 600 12px/1 Inter, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--pb-royal); }
.pb-band .pb-eyebrow { color: #9cc2f0; }
.pb-display { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; color: var(--pb-ink); letter-spacing: -0.02em; line-height: 1.02; font-size: clamp(2.5rem, 6vw, 4.75rem); }
.pb-h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; color: var(--pb-ink); letter-spacing: -0.015em; line-height: 1.08; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.pb-h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; color: var(--pb-ink); letter-spacing: -0.01em; line-height: 1.12; font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.pb-h3 { font: 600 1.125rem/1.3 Inter, system-ui, sans-serif; color: var(--pb-ink); }
.pb-lead { font-size: 1.125rem; line-height: 1.65; color: var(--pb-text); max-width: 40rem; }
.pb-muted { color: var(--pb-muted); }
.pb-accent { color: var(--pb-royal); }
.pb-display em, .pb-h1 em, .pb-h2 em { font-style: normal; color: var(--pb-royal); }
.pb-band .pb-display em, .pb-band .pb-h1 em, .pb-band .pb-h2 em { color: #9cc2f0; }

/* ---------- Buttons ---------- */
.pb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
          font: 600 15px/1 Inter, system-ui, sans-serif; white-space: nowrap; text-decoration: none; cursor: pointer; border: 1px solid transparent;
          transition: background-color 160ms var(--pb-ease), border-color 160ms var(--pb-ease), color 160ms var(--pb-ease), transform 120ms var(--pb-ease), box-shadow 160ms var(--pb-ease); }
.pb-btn:active { transform: scale(.97); }
.pb-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.pb-btn-primary { background: var(--pb-royal); color: #fff; box-shadow: 0 6px 18px rgb(10 99 184 / .22); }
.pb-btn-dark { background: var(--pb-navy); color: #fff; }
.pb-btn-light { background: #fff; color: var(--pb-navy); }
.pb-btn-ghost { background: transparent; color: var(--pb-ink); border-color: var(--pb-line); }
.pb-band .pb-btn-ghost { color: #fff; border-color: rgb(255 255 255 / .28); }

/* ---------- Cards, photos, stats ---------- */
.pb-card { background: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 24px; }
.pb-card.lift { box-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 12px 32px -12px rgb(15 23 42 / .12); }
.pb-photo { position: relative; overflow: hidden; border-radius: 28px; background: var(--pb-sky); }
.pb-photo img, .pb-photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(15 23 42 / .08); pointer-events: none; }
.pb-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--pb-ink);
            font: 600 13px/1 Inter, system-ui, sans-serif; box-shadow: 0 6px 20px rgb(15 23 42 / .14); backdrop-filter: blur(6px); }
.pb-stat-value { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.pb-stat-label { margin-top: 8px; font-size: 14px; color: #c7d2f0; }
.pb-icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--pb-sky); color: var(--pb-royal); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }

/* ---------- Page hero (inner pages) ---------- */
.pb-page-hero { padding: 132px 0 56px; background: linear-gradient(var(--pb-soft), var(--pb-soft)); border-bottom: 1px solid var(--pb-line); }
.pb-page-hero.band { background: var(--pb-navy); border-bottom: 0; }

/* ---------- Forms ---------- */
.pb-form-card { background: #fff; border: 1px solid var(--pb-line); border-radius: 24px; padding: 24px; box-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 18px 40px -20px rgb(15 23 42 / .18); }
@media (min-width: 768px) { .pb-form-card { padding: 40px; } }
.pb-step { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pb-step-num { width: 28px; height: 28px; border-radius: 999px; background: var(--pb-sky); color: var(--pb-royal); font: 600 13px/28px Inter, system-ui, sans-serif; text-align: center; flex-shrink: 0; }
.pb-step-title { font: 600 17px/1.3 Inter, system-ui, sans-serif; color: var(--pb-ink); }
.pb-label { display: block; margin-bottom: 6px; font: 500 14px/1.3 Inter, system-ui, sans-serif; color: var(--pb-ink); }
.pb-label .opt { font-weight: 400; color: var(--pb-muted); }
.pb-field { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--pb-ink); font: 400 16px/1.4 Inter, system-ui, sans-serif;
            transition: border-color 140ms var(--pb-ease), box-shadow 140ms var(--pb-ease); }
textarea.pb-field { min-height: 140px; resize: vertical; }
select.pb-field { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
                  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
select.pb-field:disabled { cursor: not-allowed; color: #94a3b8; background-color: var(--pb-soft); }
.pb-field::placeholder { color: #94a3b8; }
.pb-field:focus { outline: none; border-color: var(--pb-royal); box-shadow: 0 0 0 4px rgb(10 99 184 / .14); }
.pb-help { margin-top: 6px; font-size: 13px; color: var(--pb-muted); }
.pb-choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 12px; cursor: pointer; transition: border-color 140ms, background-color 140ms; }
.pb-choice:has(input:checked) { border-color: var(--pb-royal); background: var(--pb-sky); }
.pb-choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgb(10 99 184 / .2); }
.pb-alert { border-radius: 14px; padding: 14px 16px; font-size: 15px; line-height: 1.5; border: 1px solid; }
.pb-alert.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.pb-alert.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

/* ---------- Motion: reveal on scroll (JS adds .is-in; content visible without JS) ---------- */
html.js .pb-reveal { opacity: 0; transform: translateY(16px); transition: opacity 420ms var(--pb-ease), transform 520ms var(--pb-ease); transition-delay: calc(var(--d, 0) * 60ms); }
html.js .pb-reveal.is-in { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
    .pb-btn-primary:hover { background: var(--pb-royal-hover); box-shadow: 0 10px 24px rgb(10 99 184 / .28); }
    .pb-btn-dark:hover { background: var(--pb-navy-2); }
    .pb-btn-light:hover { background: var(--pb-sky); }
    .pb-btn-ghost:hover { border-color: #94a3b8; }
    .pb-band .pb-btn-ghost:hover { border-color: rgb(255 255 255 / .6); }
    a.pb-card:hover { border-color: #bfd4ee; }
    .pb-photo.zoom img { transition: transform 900ms var(--pb-ease); }
    .pb-photo.zoom:hover img { transform: scale(1.04); }
    .pb-choice:hover { border-color: #94a3b8; }
}

@media (prefers-reduced-motion: reduce) {
    html.js .pb-reveal { opacity: 1; transform: none; transition: none; }
    .pb-btn, .pb-photo.zoom img { transition: none; }
}
