/* ============================================================
   St. Anthony & St. Rita Parish — user.css  (v4, "light blues")
   Replace the file at: media/templates/site/cassiopeia/css/user.css
   ============================================================ */

/* Fonts: elegant serif for headings, clean sans for body */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

/* ---------- Design tokens (lighter palette) ---------- */
:root {
    --parish-blue:      #4a7fb5;   /* main medium blue */
    --parish-blue-dk:   #35648f;   /* darker blue for hovers */
    --parish-blue-deep: #2c5170;   /* only for text needing contrast */
    --parish-sky:       #6ea3cf;   /* soft accent */
    --parish-lightblue: #bcd9ef;   /* pale accent (rules, badges) */
    --parish-mist:      #f4f9fc;   /* airy page background */
    --parish-ink:       #33414f;

    --cassiopeia-color-primary: var(--parish-blue);
    --cassiopeia-color-link:    var(--parish-blue-dk);
    --cassiopeia-color-hover:   #35648f;

    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

/* ---------- Base typography ---------- */
body {
    font-family: var(--font-body);
    color: var(--parish-ink);
    background: var(--parish-mist);
}

h1, h2, h3, h4, .site-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--parish-blue-deep);
    letter-spacing: 0.01em;
}

h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; }

p { line-height: 1.65; }

/* ---------- Header / masthead ---------- */
header.header {
    background: linear-gradient(135deg, #5b8cbf 0%, var(--parish-blue) 100%);
    border-bottom: 5px solid var(--parish-lightblue);
    box-shadow: 0 3px 12px rgba(74, 127, 181, 0.3);
}

header.header .site-title,
header.header .site-title a {
    color: #fff;
    font-family: var(--font-display);
    font-size: 2.1rem;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 3px rgba(44, 81, 112, 0.4);
}

header.header .navbar-nav > li > a,
header.header .nav-link {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    padding: 0.75rem 1rem;
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

header.header .navbar-nav > li > a:hover,
header.header .navbar-nav > li.active > a,
header.header .nav-link:hover {
    color: #fff;
    border-bottom-color: var(--parish-lightblue);
}

/* Collapsed mobile menu stays readable on the blue header */
header.header .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: var(--parish-blue-dk);
}

/* ---------- Page structure ---------- */
.container-bg-white,
.article-details {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(74, 127, 181, 0.12);
}

.page-header h1 {
    padding-bottom: 0.4rem;
    border-bottom: 3px solid var(--parish-lightblue);
    display: inline-block;
}

/* ---------- Hero banner ----------
   Give a module (e.g. a Banner or Custom module with your photo)
   the CSS Class Suffix:  parish-hero  */
.parish-hero {
    margin: -1rem 0 2rem;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(74, 127, 181, 0.2);
}

.parish-hero img {
    width: 100%;
    height: clamp(240px, 38vw, 460px);
    object-fit: cover;
    display: block;
}

.parish-hero .parish-hero-caption {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(44, 81, 112, 0.8));
    color: #fff;
    padding: 2.5rem 2rem 1.25rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid #e4eef6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(74, 127, 181, 0.1);
    margin-bottom: 1.75rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 127, 181, 0.16);
}

.card .card-header {
    background: var(--parish-blue);
    color: #fff;
    border-radius: 11px 11px 0 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

/* ---------- Buttons ---------- */
.btn-primary {
    background: var(--parish-blue);
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.4rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 6px rgba(74, 127, 181, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--parish-blue-dk);
    box-shadow: 0 4px 12px rgba(74, 127, 181, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--parish-blue);
    border-radius: 999px;
    color: var(--parish-blue-dk);
    font-weight: 600;
}

/* ---------- Footer ---------- */
footer.footer {
    background: linear-gradient(180deg, #5b8cbf, #3f6e9e);
    color: rgba(255, 255, 255, 0.9);
    border-top: 4px solid var(--parish-lightblue);
    padding: 2.5rem 0 2rem;
}

footer.footer a {
    color: #ffffff;
    text-decoration: underline;
}

footer.footer .footer-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

/* ---------- Quote block ---------- */
.parish-quote {
    border: none;
    border-left: 5px solid var(--parish-sky);
    background: linear-gradient(90deg, #eaf3f9, #ffffff);
    border-radius: 0 10px 10px 0;
    padding: 1.1rem 1.4rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: #35648f;
    box-shadow: 0 2px 8px rgba(74, 127, 181, 0.1);
}

.parish-quote .quote-attribution {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 700;
    color: var(--parish-blue-deep);
}

/* ---------- Mass schedule table ---------- */
.mass-schedule td,
.mass-schedule th {
    padding: 0.5rem 0.75rem;
}

.mass-schedule tr:nth-child(even) td {
    background: var(--parish-mist);
}

.mass-schedule th {
    color: var(--parish-blue-dk);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

/* ============================================================
   Module: mod_parish_events
   ============================================================ */
.parish-events-mod .pe-header {
    background: linear-gradient(120deg, var(--parish-blue), var(--parish-sky));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    border-radius: 12px 12px 0 0;
}

.pe-calendar {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.25rem;
    border-collapse: separate;
    border-spacing: 3px;
    text-align: center;
}

.pe-calendar caption {
    caption-side: top;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    padding-bottom: 0.5rem;
    color: var(--parish-blue-dk);
}

.pe-calendar th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8aa5bd;
    padding: 0.3rem 0;
}

.pe-calendar td {
    padding: 0;
    font-size: 0.88rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
}

.pe-day.pe-has-event {
    background: var(--parish-lightblue);
}

.pe-day.pe-has-event a {
    color: var(--parish-blue-deep);
    display: block;
    width: 2rem;
    line-height: 2rem;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 700;
}

.pe-day.pe-has-event a:hover {
    background: var(--parish-blue);
    color: #fff;
}

.pe-day.pe-today:not(.pe-has-event) {
    box-shadow: inset 0 0 0 2px var(--parish-sky);
}

.pe-list .pe-item {
    padding: 0.55rem 0;
    border-bottom: 1px solid #e9f2f8;
}

.pe-list .pe-item:last-child { border-bottom: none; }

.pe-list .pe-date {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--parish-sky);
}

.pe-list .pe-title {
    font-weight: 600;
    color: var(--parish-blue-dk);
}

.pe-list .pe-title:hover {
    text-decoration: underline;
}

/* ============================================================
   Module: mod_bulletin_archive
   ============================================================ */
.parish-bulletin-archive .ba-toolbar {
    margin-bottom: 1.25rem;
    max-width: 380px;
}

.parish-bulletin-archive .ba-toolbar input[type="search"] {
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    border: 2px solid #dde9f2;
    box-shadow: inset 0 1px 3px rgba(74, 127, 181, 0.08);
}

.parish-bulletin-archive .ba-toolbar input[type="search"]:focus {
    border-color: var(--parish-blue);
    outline: none;
}

.parish-bulletin-archive details.ba-year {
    border: 1px solid #dde9f2;
    border-radius: 12px;
    margin-bottom: 0.9rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(74, 127, 181, 0.1);
}

.parish-bulletin-archive details.ba-year > summary {
    cursor: pointer;
    padding: 0.85rem 1.25rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(90deg, var(--parish-mist), #fff);
    color: var(--parish-blue-dk);
    list-style-position: inside;
}

.parish-bulletin-archive details.ba-year[open] > summary {
    border-bottom: 2px solid var(--parish-lightblue);
}

.parish-bulletin-archive details.ba-year > summary .badge {
    background: var(--parish-lightblue);
    color: var(--parish-blue-deep);
    border-radius: 999px;
    font-size: 0.75rem;
    vertical-align: middle;
}

.parish-bulletin-archive .ba-list {
    padding: 0.6rem 1.25rem 0.9rem;
}

.parish-bulletin-archive .ba-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #eef5fa;
}

.parish-bulletin-archive .ba-item:last-child { border-bottom: none; }

.parish-bulletin-archive .ba-date {
    font-weight: 600;
}

.parish-bulletin-archive .ba-download {
    background: var(--parish-blue);
    border: none;
    border-radius: 999px;
    font-size: 0.82rem;
    padding: 0.3rem 1rem;
    font-weight: 600;
}

.parish-bulletin-archive .ba-download:hover {
    background: var(--parish-blue-dk);
}

.parish-bulletin-archive .ba-link {
    font-size: 0.85rem;
    color: var(--parish-blue-dk);
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    h2 { font-size: 1.6rem; }
    .container-bg-white, .article-details { padding: 1.25rem; }
    .parish-bulletin-archive .ba-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
}
