/**
 * Components — buttons, cards, verse blocks, forms, accordions, notices.
 */

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    --btn-bg: var(--gold-500);
    --btn-fg: var(--navy-900);
    --btn-border: var(--gold-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.85rem 1.75rem;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 1.5px solid var(--btn-border);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.015em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.btn svg { width: 17px; height: 17px; flex: none; }

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn:active { transform: translateY(0); }

.btn-primary {
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    --btn-bg: var(--gold-400);
    --btn-border: var(--gold-400);
    --btn-fg: var(--navy-900);
    box-shadow: 0 18px 36px -14px rgba(140, 106, 44, 0.6);
}

.btn-secondary {
    --btn-bg: var(--navy-900);
    --btn-fg: #fff;
    --btn-border: var(--navy-900);
}

.btn-secondary:hover {
    --btn-bg: var(--navy-700);
    --btn-border: var(--navy-700);
    --btn-fg: #fff;
}

.btn-outline {
    --btn-bg: transparent;
    --btn-fg: var(--navy-800);
    --btn-border: var(--navy-300);
}

.btn-outline:hover {
    --btn-bg: var(--navy-900);
    --btn-fg: #fff;
    --btn-border: var(--navy-900);
}

.btn-ghost-light {
    --btn-bg: transparent;
    --btn-fg: #fff;
    --btn-border: rgba(255, 255, 255, 0.45);
}

.btn-ghost-light:hover {
    --btn-bg: #fff;
    --btn-fg: var(--navy-900);
    --btn-border: #fff;
}

.btn-sm {
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    font-size: var(--text-xs);
}

.btn-block { width: 100%; }

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}

.btn-group--center { justify-content: center; }

/* Text link with arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: var(--text-sm);
    text-decoration: none;
    color: var(--navy-700);
}

.link-arrow svg {
    width: 15px;
    height: 15px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.link-arrow:hover { color: var(--gold-700); }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================
   ICONS
   ========================================================= */
.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-badge {
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: var(--radius-md);
    background: linear-gradient(150deg, var(--navy-800), var(--navy-900));
    color: var(--gold-400);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.icon-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(190, 144, 68, 0.35);
}

.icon-badge .icon { width: 1.55rem; height: 1.55rem; stroke-width: 1.5; }

.icon-badge--gold {
    background: linear-gradient(150deg, var(--gold-200), var(--gold-100));
    color: var(--gold-700);
}

.icon-badge--lg { width: 4rem; height: 4rem; }
.icon-badge--lg .icon { width: 1.9rem; height: 1.9rem; }

/* =========================================================
   CARDS
   ========================================================= */
.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 1.1rem + 1.1vw, 2.1rem);
    box-shadow: var(--shadow-xs);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
}

.card > * + * { margin-top: var(--space-sm); }

.card p {
    color: var(--color-text-soft);
    font-size: var(--text-sm);
    line-height: var(--leading-loose);
    max-width: none;
}

.card h3 { color: var(--navy-900); }

/* Gold rule that draws in on hover */
.card--interactive::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out);
}

.card--interactive:hover,
.card--interactive:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-300);
}

.card--interactive:hover::before,
.card--interactive:focus-within::before { transform: scaleX(1); }

.card--interactive:hover .icon-badge {
    transform: scale(1.06) rotate(-3deg);
    box-shadow: var(--shadow-md);
}

/* Feature card — the lead item in a bento grid */
.card--feature {
    background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 100%);
    border-color: var(--navy-800);
    color: var(--navy-200);
    isolation: isolate;
    overflow: hidden;
}

.card--feature::after {
    content: "";
    position: absolute;
    right: -3.5rem;
    bottom: -4.5rem;
    width: 15rem;
    height: 15rem;
    border: 1.5px solid rgba(190, 144, 68, 0.26);
    border-radius: 50%;
    z-index: -1;
}

.card--feature h3 { color: #fff; font-size: var(--text-xl); }
.card--feature p { color: var(--navy-200); font-size: var(--text-base); }
.card--feature .icon-badge { background: rgba(255, 255, 255, 0.08); color: var(--gold-300); }
.card--feature .link-arrow { color: var(--gold-300); }
.card--feature .link-arrow:hover { color: var(--gold-200); }

/* Value card — gold side rule */
.card--rule {
    border-left: 3px solid var(--gold-500);
    border-radius: var(--radius-xs) var(--radius-lg) var(--radius-lg) var(--radius-xs);
}

/* Quiet card on cream backgrounds */
.card--quiet {
    background: var(--cream);
    border-color: var(--sand-deep);
    box-shadow: none;
}

.card__title-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card__title-row h3 { margin: 0; }

/* =========================================================
   TAG / PILL
   ========================================================= */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--navy-100);
    color: var(--navy-700);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.tag--gold { background: var(--gold-100); color: var(--gold-700); }

/* =========================================================
   SCRIPTURE
   ========================================================= */
.verse {
    position: relative;
    border: 0;
    padding-left: 0;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
    line-height: var(--leading-snug);
    color: var(--navy-800);
}

.verse cite {
    display: block;
    margin-top: var(--space-sm);
    font-family: var(--font-body);
    font-style: normal;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--gold-700);
}

.verse-band {
    text-align: center;
    position: relative;
}

.verse-band .verse {
    font-size: var(--text-2xl);
    color: #fff;
    max-width: 24ch;
    margin-inline: auto;
    line-height: 1.35;
}

.verse-band .verse cite { color: var(--gold-300); }

.verse-band__mark {
    width: 2.6rem;
    height: 2.6rem;
    margin: 0 auto var(--space-md);
    color: var(--gold-400);
    opacity: 0.9;
}

/* Verse card that overlaps a section edge */
.verse-card {
    background: var(--cream);
    border: 1px solid var(--sand-deep);
    border-left: 3px solid var(--gold-500);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-md);
}

/* =========================================================
   ARCH FRAME — brand motif for imagery
   ========================================================= */
.arch-frame {
    position: relative;
    border-radius: var(--arch);
    overflow: hidden;
    background: linear-gradient(165deg, var(--navy-800), var(--navy-900) 65%);
    isolation: isolate;
}

.arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arch-frame::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(190, 144, 68, 0.45);
    border-radius: var(--arch);
    pointer-events: none;
}

.arch-frame--plain::after { display: none; }

.arch-placeholder {
    display: grid;
    place-items: center;
    padding: var(--space-xl) var(--space-md);
    min-height: 22rem;
    text-align: center;
}

.arch-placeholder img {
    width: min(58%, 15rem);
    height: auto;
    object-fit: contain;
}

/* =========================================================
   STATS
   ========================================================= */
.stat {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

.stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.7rem);
    font-weight: 700;
    line-height: 1;
    color: var(--navy-900);
    font-variant-numeric: tabular-nums;
}

.stat__number sup {
    font-size: 0.5em;
    color: var(--gold-600);
    top: -0.7em;
}

.stat__label {
    display: block;
    margin-top: 0.5rem;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--ink-faint);
}

.band-navy .stat {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(190, 144, 68, 0.3);
    box-shadow: none;
}

.band-navy .stat__number { color: var(--gold-300); }
.band-navy .stat__label { color: var(--navy-300); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md) var(--space-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.testimonial__mark {
    position: absolute;
    top: -0.9rem;
    left: var(--space-md);
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold-500);
    color: var(--navy-900);
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    padding-top: 0.55rem;
    box-shadow: var(--shadow-sm);
}

.testimonial blockquote {
    border: 0;
    padding: 0;
    font-style: normal;
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: var(--leading-loose);
    margin: 0;
}

.testimonial__author {
    margin-top: auto;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial__initials {
    width: 2.6rem;
    height: 2.6rem;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy-100);
    color: var(--navy-800);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-sm);
}

.testimonial__name {
    display: block;
    font-weight: 700;
    color: var(--navy-900);
    font-size: var(--text-sm);
}

.testimonial__meta {
    display: block;
    font-size: var(--text-xs);
    color: var(--ink-faint);
}

/* =========================================================
   CHECK LIST
   ========================================================= */
.check-list {
    list-style: none;
    margin: var(--space-md) 0;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-base);
}

.check-list li:last-child { border-bottom: 0; }

.check-list svg {
    width: 1.3rem;
    height: 1.3rem;
    flex: none;
    margin-top: 0.22rem;
    color: var(--gold-600);
    stroke-width: 2;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.band-navy .check-list li { border-color: rgba(255, 255, 255, 0.12); }
.band-navy .check-list svg { color: var(--gold-400); }

/* =========================================================
   ACCORDION / FAQ
   ========================================================= */
.faq {
    display: grid;
    gap: 0.75rem;
}

.faq__item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

.faq__item[open] {
    border-color: var(--gold-300);
    box-shadow: var(--shadow-sm);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 1.1rem var(--space-md);
    font-family: var(--font-display);
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--navy-900);
    cursor: pointer;
    list-style: none;
    min-height: 56px;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary:hover { background: var(--cream); }

.faq__icon {
    width: 1.6rem;
    height: 1.6rem;
    flex: none;
    position: relative;
    border-radius: 50%;
    border: 1.5px solid var(--gold-500);
    transition: background var(--duration-fast) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
}

.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.7rem;
    height: 1.5px;
    background: var(--gold-700);
    transform: translate(-50%, -50%);
    transition: transform var(--duration-normal) var(--ease-out),
                opacity var(--duration-fast) var(--ease-out);
}

.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__item[open] .faq__icon { background: var(--gold-100); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.faq__body {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--color-text-soft);
}

.faq__body p { max-width: 62ch; }

/* =========================================================
   FORMS
   ========================================================= */
.form-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 1rem + 1.8vw, 2.5rem);
    box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: var(--space-md); }

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--navy-900);
}

.form-group .required { color: #a3321f; }

.form-hint {
    display: block;
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--ink-faint);
    margin-top: 0.15rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--sand-deep);
    border-radius: var(--radius-sm);
    background: var(--cream);
    font-size: var(--text-base);
    color: var(--ink);
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
}

.form-group textarea {
    min-height: 9rem;
    resize: vertical;
    line-height: var(--leading-normal);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23042545' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 1.1rem;
    padding-right: 2.6rem;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover { border-color: var(--gold-300); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--navy-600);
    box-shadow: 0 0 0 3px rgba(23, 91, 135, 0.15);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: var(--color-error-border);
    background: var(--color-error-bg);
}

.field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-error-text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: var(--text-sm);
    color: var(--color-text-soft);
}

.form-consent input[type="checkbox"] {
    width: 1.3rem;
    height: 1.3rem;
    min-height: 0;
    flex: none;
    margin-top: 0.2rem;
    accent-color: var(--navy-700);
}

/* Honeypot — hidden from humans, reachable by bots */
.form-trap {
    position: absolute !important;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================================================
   NOTICES
   ========================================================= */
.notice {
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
    border-left: 4px solid;
}

.notice h3 { font-size: var(--text-md); margin-bottom: 0.3rem; }

.notice--success {
    background: var(--color-success-bg);
    border-color: var(--color-success-border);
    color: var(--color-success-text);
}

.notice--success h3 { color: var(--color-success-text); }

.notice--error {
    background: var(--color-error-bg);
    border-color: var(--color-error-border);
    color: var(--color-error-text);
}

.notice--error h3 { color: var(--color-error-text); }
.notice--error ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }

.notice--info {
    background: var(--navy-100);
    border-color: var(--navy-500);
    color: var(--navy-900);
}

/* Small print block */
.fine-print {
    background: var(--cream);
    border: 1px solid var(--sand-deep);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text-soft);
}

.fine-print p { max-width: none; }

@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .btn-group { flex-direction: column; align-items: stretch; }
}
