/* ============================================================
   Give! with JAD — shared design system
   Used by home / index / confirm / signin / signup / payment / thanks
   ============================================================ */
:root {
    --jad-blue: #34a8da;
    --jad-blue-dark: #1e5f7e;
    --jad-green: #10b981;
    --ink: #1e293b;
    --muted: #64748b;
    --bg: #f1f5f9;
    --line: #e2e8f0;
    --card: #ffffff;
}

body { font-family: 'Inter', sans-serif; background-color: var(--bg); color: var(--ink); }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }

/* ---- Shared header (dark navbar, JAD logo on the right) ---- */
.site-header {
    background: #000;
    border-bottom: none;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { width: 40px; height: auto; display: block; }

/* Legacy text brand (kept for any page still using it) */
.brand { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--jad-blue-dark); text-decoration: none; letter-spacing: -0.5px; }
.brand .accent { color: var(--jad-blue); }
.brand .sub { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.95rem; color: var(--muted); margin-left: 6px; }

/* Directory hero variant: transparent header overlaying the hero (logo moves into the hero) */
body.hero-mode .site-header {
    background: transparent;
    border-bottom: none;
    position: absolute;
    top: 0; left: 0; right: 0;
}
body.hero-mode .brand-logo { display: none; }

/* Centered JAD logo inside the home hero */
.hero-logo { display: block; margin: 0 auto 24px; height: 78px; width: auto; }

.back-link { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.85rem; }
.back-link:hover { color: var(--jad-blue-dark); }

/* ---- Shared dark action button ---- */
.btn-give,
.btn-finish {
    background: var(--ink);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    display: block;
    text-align: center;
    cursor: pointer;
}
.btn-give:hover, .btn-finish:hover { background: #0f172a; color: #fff; }

.label-caps {
    font-size: 0.75rem; letter-spacing: 0.5px; font-weight: 700;
    color: var(--muted); text-transform: uppercase; margin-bottom: 6px;
}

/* ---- Footer ---- */
.site-footer { padding: 2rem 0; text-align: center; }
.site-footer p { margin: 0; }

/* ---- Share button + modal (give2 / give4) ---- */
.share-btn {
    border: 1px solid var(--line); background: #fff; color: var(--jad-blue);
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all .2s; flex-shrink: 0;
}
.share-btn:hover { background: var(--jad-blue); color: #fff; border-color: var(--jad-blue); }
.share-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,0.5);
    display: none; align-items: center; justify-content: center;
    z-index: 2000; padding: 20px;
}
.share-overlay.open { display: flex; }
.share-dialog {
    background: #fff; border-radius: 24px; padding: 32px; max-width: 380px; width: 100%;
    position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.25); text-align: center;
}
.share-close {
    position: absolute; top: 16px; right: 16px; border: none; background: #f1f5f9;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    color: var(--muted); font-size: 1.2rem; line-height: 1;
}
.qr-box { display: flex; justify-content: center; margin: 18px 0; }
.qr-box > div { padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.link-row { display: flex; gap: 8px; margin-bottom: 18px; }
.link-row input {
    flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 12px; background: #f8fafc; font-size: .8rem; color: var(--ink); outline: none;
}
.link-row button {
    border: none; background: var(--ink); color: #fff; border-radius: 10px;
    padding: 0 18px; font-weight: 600; font-size: .85rem; cursor: pointer;
}
.share-btns { display: flex; gap: 10px; justify-content: center; }
.share-chip {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem; text-decoration: none; transition: transform .15s;
}
.share-chip:hover { transform: translateY(-3px); }
.share-chip.wa { background: #25D366; }
.share-chip.fb { background: #1877F2; }
.share-chip.x  { background: #000; }
.share-chip.em { background: #64748b; }

/* Form controls (checkout) */
.form-control { border-radius: 12px; padding: 12px; background-color: #f8fafc; border: 1px solid var(--line); }
.form-control:focus { border-color: var(--jad-blue); box-shadow: none; }
