/* ============================================================
   MorningFetch.com — Stylesheet
   Single source of truth. All project styles live here.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

/* ---------- Variables ---------- */
:root {
    --secondary:  #6c757d;
    --warning:    #ffc107;
    --dark:       #343a40;
    --radius:     0.25rem;
    --spacing:    1rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* ---------- Base ---------- */
body {
    margin: 0;
    padding-top: 20px;
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

h1, h2, h3, h4, h5, h6 { color: darkred; }

/* ---------- Layout ---------- */
.container-lg {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: var(--spacing);
}

/* Background image properties — URL set via inline style in header (ColdFusion dynamic) */
.background-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: -0.5rem;
}
.row > * {
    padding-inline: 0.5rem;
    width: 100%;
}

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

.no-gutters { margin-inline: 0; }
.no-gutters > * { padding-inline: 0; }

@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 auto; width: 33.3333%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.6667%; }
}

/* ---------- Card ---------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: rgba(245, 245, 245, 0.90);
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
}

.card-body {
    flex: 1 1 auto;
    padding: var(--spacing);
}

.rounded-0 { border-radius: 0 !important; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--radius);
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
                border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    text-decoration: none;
    font-family: inherit;
}
.btn:hover { opacity: 0.85; }

.btn-secondary {
    color: #fff;
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline-dark {
    color: var(--dark);
    border-color: var(--dark);
    background-color: transparent;
}
.btn-outline-dark:hover { color: #fff; background-color: var(--dark); }

.btn-lg { padding: 0.5rem 1rem; font-size: 1.25rem; border-radius: 0.3rem; }

.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
    opacity: 0.5;
}
.btn-close:hover { opacity: 1; }

/* ---------- Alert ---------- */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
}
.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}
.modal-backdrop.show { display: flex; }

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 500px;
    margin: 1.75rem auto;
    pointer-events: auto;
}
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: 100%;
}
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}
.modal-title { margin: 0; font-size: 1.25rem; }
.modal-body  { position: relative; flex: 1 1 auto; padding: 1rem; }
.modal-body blockquote {
    border-left: 3px solid #dee2e6;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    gap: 0.5rem;
}

/* ---------- Typography ---------- */
.lead        { font-size: 1.25rem; font-weight: 300; }
.font-italic { font-style: italic; }
.fw-bold     { font-weight: 700; }
.text-muted  { color: #6c757d; }
.text-center { text-align: center; }
.text-end    { text-align: right; }

.blockquote { margin-bottom: 1rem; font-size: 1.25rem; }
.blockquote-footer { font-size: 0.875em; color: #6c757d; }
.blockquote-footer::before { content: "\2014\00A0"; }

/* ---------- Quote modal body ---------- */
.story-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a4a4a;
}

/* ---------- Utilities ---------- */
.shadow-sm      { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); }
.cursor-pointer { cursor: pointer; }
.align-middle   { vertical-align: middle; }

/* Spacing */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.p-4  { padding: 1.5rem; }
.pt-2 { padding-top: 0.5rem; }
