/* Vilonia Christmas Angel — site styles (2026 redesign)
   Palette: #B21E28 red · #2E6B45 green · #F6EFE2 cream · #241F1B ink
   Type: Bitter (headings) · Public Sans (body) */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    background: #f6efe2;
    color: #241f1b;
    font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Bitter', Georgia, serif;
    color: #241f1b;
    line-height: 1.15;
    margin: 0 0 .5em;
}

h1 { font-size: 2rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; color: #544c42; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; color: #544c42; }
small { color: #6e655a; }

a { color: #b21e28; text-decoration: none; }
a:hover, a:focus { color: #8e1a22; text-decoration: underline; }

img { max-width: 100%; }

/* ---------- Header ---------- */

/* L2 — centered editorial: brand centered on line 1, nav centered beneath */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: #fbf6ec;
    border-bottom: 1px solid rgba(36,31,27,.1);
    text-align: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
    width: 15px;
    height: 15px;
    background: #b21e28;
    transform: rotate(45deg);
    border-radius: 2px;
    flex-shrink: 0;
}

.brand-name {
    font: 700 19px 'Bitter', Georgia, serif;
    color: #b21e28;
    white-space: nowrap;
}
.brand-name span { color: #2e6b45; }

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 24px;
    font: 600 14.5px 'Public Sans', sans-serif;
}
.site-nav a { color: #3a352e; text-decoration: none; }
.site-nav a:hover, .site-nav a.is-current { color: #b21e28; text-decoration: none; }

/* ---------- Main content area ---------- */

.site-main {
    flex: 1;
    width: 100%;
}

/* L2 centered column: ~640px for forms/login, ~980px for dashboard content */
.main-wrapper {
    max-width: 640px;
    margin: 40px auto;
    padding: 0 20px;
}

.main-wrapper--wide { max-width: 980px; }

/* ---------- Footer ---------- */

.site-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 22px 34px;
    background: #241f1b;
    color: rgba(246,239,226,.72);
    font: 13px 'Public Sans', sans-serif;
}
.site-footer a { color: rgba(246,239,226,.8); }
.site-footer a:hover { color: #fbf6ec; }
.site-footer .footer-note { color: rgba(246,239,226,.55); }

/* ---------- Cards & callouts ---------- */

.card {
    background: #fff;
    border: 1px solid rgba(36,31,27,.12);
    border-radius: 14px;
    padding: 34px;
    margin-bottom: 24px;
}

/* The one flat shadow, only on genuinely elevated cards (login/register/confirm) */
.card--elevated { box-shadow: 0 12px 34px rgba(36,31,27,.11); }

.info-list {
    background: #fbf6ec;
    border: 1px solid rgba(36,31,27,.12);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 1em;
}

.highlight {
    background: rgba(46,107,69,.07);
    border: 1px dashed rgba(46,107,69,.5);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 1em;
    color: #544c42;
}

.eyebrow {
    font: 700 12px/1 'Public Sans', sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #2e6b45;
    margin-bottom: 10px;
}

.section-label {
    font: 700 13px/1 'Public Sans', sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #2e6b45;
    margin: 0 0 14px;
}

/* ---------- Buttons ---------- */

.cta-btn {
    display: inline-block;
    background: #b21e28;
    color: #fbf6ec;
    border: none;
    border-radius: 9px;
    padding: 12px 22px;
    font: 600 15px 'Public Sans', sans-serif;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
}
.cta-btn:hover, .cta-btn:focus {
    background: #8e1a22;
    color: #fbf6ec;
    text-decoration: none;
}

.cta-btn--green { background: #2e6b45; color: #fff; }
.cta-btn--green:hover, .cta-btn--green:focus { background: #24543a; color: #fff; }

.cta-btn--outline {
    background: #fff;
    color: #241f1b;
    border: 1px solid rgba(36,31,27,.25);
}
.cta-btn--outline:hover, .cta-btn--outline:focus {
    background: #f6efe2;
    color: #241f1b;
}

.cta-btn--danger {
    background: #fff;
    color: #b21e28;
    border: 1px solid #b21e28;
}
.cta-btn--danger:hover, .cta-btn--danger:focus {
    background: #b21e28;
    color: #fbf6ec;
}

/* ---------- Admin ---------- */

.admin-badge {
    font: 700 11px/1 'Public Sans', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #b21e28;
    background: rgba(178,30,40,.09);
    border-radius: 5px;
    padding: 5px 9px;
}

.danger-zone {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid rgba(178,30,40,.35);
    border-radius: 12px;
    background: rgba(178,30,40,.04);
}
.danger-zone h3 { color: #b21e28; margin-bottom: 6px; }
.danger-zone p { font-size: 13.5px; color: #6e655a; margin-bottom: 12px; }

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

hr {
    border: none;
    border-top: 1px solid rgba(36,31,27,.1);
    margin: 18px 0;
}

/* ---------- Forms ---------- */

label { font: 600 12.5px 'Public Sans', sans-serif; color: #6e655a; }

.InputForm, .InputForm4,
input[type=text], input[type=password], select, textarea {
    font: 14.5px 'Public Sans', sans-serif;
    color: #241f1b;
    padding: 10px 12px;
    border: 1px solid rgba(36,31,27,.22);
    border-radius: 8px;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid #b21e28;
    outline-offset: 1px;
}

input[type=checkbox], input[type=radio] { accent-color: #2e6b45; }

.form-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}
.form-table td {
    padding: 4px 8px;
    vertical-align: middle;
}
.form-table td:first-child {
    font: 600 13px 'Public Sans', sans-serif;
    color: #6e655a;
    white-space: nowrap;
}

.error { color: #b21e28; font-weight: 600; font-size: 13px; }

/* Legacy class names still used by some pages */
.readMore {
    display: inline-block;
    background: #b21e28;
    color: #fbf6ec;
    border: none;
    border-radius: 9px;
    padding: 12px 22px;
    font: 600 15px 'Public Sans', sans-serif;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
}
.readMore:hover, .readMore:focus { background: #8e1a22; color: #fbf6ec; }

.h3 {
    font: 700 1.2rem 'Bitter', Georgia, serif;
    color: #241f1b;
}

table.style1 { border-collapse: separate; border-spacing: 0 8px; }
table.style1 td { padding: 4px 8px; vertical-align: middle; }
table.style1 td.style2 {
    font: 600 13px 'Public Sans', sans-serif;
    color: #6e655a;
}

/* ---------- Data grids (ASP.NET GridView) ---------- */

.card table[id] { border-collapse: collapse; width: 100%; }

/* Fallback styling for GridViews whose rows carry no CssClass */
.card table[id] th {
    background: #fbf6ec;
    font: 700 12px 'Public Sans', sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6e655a;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(36,31,27,.14);
}
.card table[id] td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(36,31,27,.09);
    font-size: 14px;
    color: #3a352e;
    vertical-align: top;
}

tr.dataTable th, tr.dataTableAlt th {
    background: #fbf6ec;
    font: 700 12px 'Public Sans', sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6e655a;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(36,31,27,.14);
}

tr.dataTable td, tr.dataTableAlt td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(36,31,27,.09);
    font-size: 14px;
    color: #3a352e;
    vertical-align: top;
}

tr.dataTableAlt td { background: #fbf6ec; }

.dgvtext { font-size: 14px; }

/* ---------- Home page ---------- */

/* L2 centered hero: eyebrow -> headline -> subtext -> centered CTAs -> chip row */
.hero {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 20px 44px;
    text-align: center;
}

.hero .eyebrow { margin-bottom: 14px; }

.hero h1 {
    font-size: 2.7rem;
    letter-spacing: -.02em;
    margin: 0 auto 18px;
    max-width: 14ch;
}

.hero-sub {
    max-width: 540px;
    margin: 0 auto 28px;
    font-size: 16.5px;
    color: #33302a;
}

.hero-actions { display: flex; justify-content: center; gap: 13px; flex-wrap: wrap; }

.hero-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.hero-chips span {
    background: #efe7d8;
    color: #241f1b;
    border-radius: 999px;
    padding: 8px 16px;
    font: 600 13.5px 'Public Sans', sans-serif;
    white-space: nowrap;
}
.hero-chips b { color: #b21e28; font-weight: 700; }

.home-section {
    background: #fff;
    border-top: 1px solid rgba(36,31,27,.08);
    padding: 40px 20px;
}
.home-section-inner { max-width: 980px; margin: 0 auto; }
.home-section .section-label { text-align: center; }

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.card-grid--three { grid-template-columns: 1fr 1fr 1fr; }

.mini-card {
    border: 1px solid rgba(36,31,27,.12);
    border-radius: 12px;
    padding: 22px 24px;
    margin: 0;
}
.mini-card--tinted { background: #fbf6ec; }

.mini-card .kicker {
    font: 600 13px 'Public Sans', sans-serif;
    color: #b21e28;
    margin-bottom: 7px;
}
.mini-card h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}
.mini-card p {
    font-size: 14.5px;
    color: #6e655a;
    margin: 0 0 10px;
}
.mini-card p:last-child { margin-bottom: 0; }

/* ---------- Login / narrow pages ---------- */

.narrow-wrap { max-width: 480px; margin: 56px auto; padding: 0 20px; }
.narrow-wrap .card { padding: 34px; }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; }
.field .InputForm { width: 100%; }

/* L2 — register pages are a single centered column; the "What happens next"
   panel and any secondary panels stack BELOW the form card, not in a right rail. */
.form-layout { display: block; }
.form-layout > aside { margin-top: 4px; }

.aside-card {
    background: #2e6b45;
    color: #eef4ee;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 16px;
}
.aside-card h3 { color: #fff; margin-bottom: 10px; }
.aside-card ol, .aside-card ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(255,255,255,.9);
    font-size: 14.5px;
    line-height: 1.7;
}

/* ---------- Confirmation ---------- */

.confirm-wrap { max-width: 560px; margin: 60px auto; padding: 0 20px; text-align: center; }
.confirm-wrap .card { padding: 40px; }

.confirm-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(46,107,69,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.confirm-badge span {
    width: 20px;
    height: 20px;
    background: #2e6b45;
    transform: rotate(45deg);
    border-radius: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .hero { padding: 40px 20px 32px; }
    .card-grid, .card-grid--three { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .site-header { padding: 14px 18px; }
    .site-nav { gap: 10px 16px; font-size: 13.5px; }
    .card { padding: 22px; }
    .hero h1 { font-size: 2.1rem; max-width: none; }
    .form-table td:first-child { white-space: normal; }
}
