/* ==========================================================================
   Muvattupuzha Diocese - site styles (Bootstrap 5 + theme)
   Brand colours taken from the original site:
     brown  #995b0f   hover/orange #d78b2e   wheat #f5deb3   gold #dfc55d
   ========================================================================== */

:root {
    --brand: #995b0f;
    --brand-dark: #7a490c;
    --brand-hover: #d78b2e;
    --wheat: #f5deb3;
    --gold: #dfc55d;
    --ink: #333;
    --muted: #555;
    --paper: #f5f5f5;
    --paper-dark: #efefef;
    --footer-bg: #333;

    --bs-body-font-family: 'Montserrat', sans-serif;
    --bs-body-font-size: 14px;
    --bs-body-line-height: 1.42857143;
    --bs-body-color: var(--ink);
    --bs-body-bg: #fff;
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 153, 91, 15;
    --bs-link-hover-color: var(--brand-hover);
    --bs-link-hover-color-rgb: 215, 139, 46;
}

/* ---- Base ---------------------------------------------------------------- */
body { overflow-x: hidden; }
a { text-decoration: none; }
a:hover, a:focus { text-decoration: none; }
img { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
    margin-top: 20px;
    margin-bottom: 10px;
}
h4, h5, h6 { margin-top: 10px; }
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }
p  { margin: 0 0 10px; }

.container { --bs-gutter-x: 30px; }
.row { --bs-gutter-x: 30px; }
@media (min-width: 1200px) { .container { max-width: 1170px; } }

.skip-link { position: absolute; left: 8px; top: 8px; z-index: 2000; background: #fff; padding: 6px 12px; }

.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-hover);
    --bs-btn-hover-border-color: var(--brand-hover);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: 153, 91, 15;
    font-weight: 500;
}
.btn-outline-brand {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: 153, 91, 15;
    font-weight: 500;
}
.lead-note { color: var(--muted); font-size: 16px; margin-bottom: 20px; }

/* pages without content yet: centered "Update soon" message, medium font size */
.update-soon-section {
    min-height: 45vh; padding: 60px 0;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.update-soon-section .container { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.update-soon { margin: 0; font-size: 26px; font-weight: 500; line-height: 1.3; color: var(--brand); }
.update-soon-section .btn i { margin-right: 4px; }
.text-justify { text-align: justify; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: relative; z-index: 1030; background: #fff; }
.site-header.is-fixed {
    position: fixed; top: 0; left: 0; right: 0;
    background-color: transparent;
    transition: background-color .3s ease;
}
.site-header.is-fixed.scrolled { background-color: var(--wheat); }

.header-top { background: var(--brand); padding: 10px 0; }
.header-top .container {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px;
}
.header-top a { color: #fff; }
.header-top a:hover { color: #fff8ae; }
.header-contact { color: #fff; font-weight: 500; font-size: 13px; }
.header-contact a + a { margin-left: 8px; }
.header-contact i { color: var(--gold); margin-right: 3px; }
.header-links { display: flex; align-items: center; }
.header-links .links {
    font-size: 13px; font-weight: 500;
    border-right: 1px solid #fff; padding: 0 8px; line-height: 1.2;
}
.header-links i { margin: 0 10px; font-size: 14px; }

.header-main { padding: 6px 0 10px; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; }
.is-fixed .header-main { padding-top: 14px; }
.brand-logo { flex: 0 0 auto; display: block; margin-right: 24px; }
.brand-logo img { max-width: 100px; height: auto; display: block; }
.main-nav { margin-left: auto; position: relative; }

/* Desktop navigation */
.nav-list, .nav-list ul { list-style: none; margin: 0; padding: 0; }
.nav-list { align-items: center; text-transform: uppercase; margin-right: 6%; }
.nav-list li { position: relative; }
.nav-list > li { flex: 0 0 auto; }
.nav-list > li > a {
    display: block; padding: 4px 10px; white-space: nowrap;
    color: var(--brand); font-size: 14px; font-weight: 500; line-height: 16px;
    transition: .3s ease-out;
}
.nav-list > li > a:hover,
.nav-list > li:hover > a,
.nav-list > li:focus-within > a,
.nav-list > li.current > a { color: #fff; background: var(--brand-hover); }

.nav-list li.has-sub > a::after {
    content: ""; display: inline-block; margin-left: 6px; vertical-align: middle;
    border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor;
}
.nav-list ul {
    display: none; position: absolute; top: 100%; left: 0; width: 230px; z-index: 1040;
    background: #fff; text-align: left; padding: 6px 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18); border-top: 3px solid var(--brand-hover);
}
.nav-list li:hover > ul,
.nav-list li:focus-within > ul { display: block; }
.nav-list ul li a {
    display: block; padding: 8px 15px;
    color: var(--brand); font-size: 13px; font-weight: 600; line-height: 1.3;
    transition: .2s ease-out;
}
.nav-list ul li a:hover,
.nav-list ul li:hover > a,
.nav-list ul li.current > a { color: #fff; background: var(--brand-hover); }
.nav-list ul ul { top: -9px; left: 100%; border-top: 3px solid var(--brand-hover); }
.nav-list ul li.has-sub > a::after {
    float: right; margin-top: 4px;
    border-top: 4px solid transparent; border-bottom: 4px solid transparent;
    border-left: 4px solid currentColor; border-right: 0;
}
/* sub-menus that would leave the screen are flipped by site.js */
.nav-list > li.drop-left > ul { left: auto; right: 0; }
.nav-list > li.drop-left ul ul,
.nav-list ul li.drop-left > ul { left: auto; right: 100%; }
.nav-list > li.drop-left ul li.has-sub > a::after,
.nav-list ul li.has-sub.drop-left > a::after {
    float: left; margin: 4px 8px 0 0;
    border-left: 0; border-right: 4px solid currentColor;
}

/* Between 992px and 1199px the logo + 8 menu items do not fit at full size: tighten them. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .nav-list { margin-right: 0; }
    .nav-list > li > a { padding: 4px 6px; font-size: 13px; }
    .brand-logo { margin-right: 12px; }
    .brand-logo img { max-width: 84px; }
}

/* Mobile menu toggle + off-canvas panel */
.menu-toggle {
    background: transparent; border: 0; padding: 12px 8px;
    color: var(--brand); text-transform: uppercase; font-weight: 600; font-size: 14px;
}
.menu-toggle .bars { display: inline-block; margin-right: 7px; position: relative; top: 3px; }
.menu-toggle .bars span { display: block; width: 18px; height: 2px; border-radius: 6px; background: var(--brand); margin: 0 0 4px; }

.mobile-menu { --bs-offcanvas-width: 290px; background: #fff; }
.mobile-menu .offcanvas-header { background: var(--brand); color: #fff; }
.mobile-menu .btn-close { filter: invert(1); }
.m-nav, .m-nav ul { list-style: none; margin: 0; padding: 0; }
.m-link {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
    padding: 14px 18px; background: none; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .08);
    color: var(--brand); text-transform: uppercase; font-size: 14px; font-weight: 500; text-align: left;
}
.m-link:hover, .m-link:focus { color: var(--brand-hover); }
.m-link .fa { transition: transform .2s; }
.m-link:not(.collapsed) .fa { transform: rotate(180deg); }
.m-nav .collapse .m-nav { background: #faf4ea; }
.m-nav .collapse .m-link { padding-left: 32px; font-size: 13px; font-weight: 600; }
.m-nav .collapse .collapse .m-link { padding-left: 46px; }
.m-nav li.current > .m-link { color: var(--brand-hover); }

/* ==========================================================================
   Banners
   ========================================================================== */
.hero { padding-top: 22px; line-height: 0; }
.hero img { width: 100%; height: auto; display: block; }

.inner-banner {
    position: relative; line-height: 0; min-height: 180px; background: var(--brand);
    overflow: hidden;
}
.inner-banner img { width: 100%; height: auto; display: block; min-height: 180px; object-fit: cover; }
.banner-caption {
    position: absolute; bottom: 20%; left: 8%; right: 8%; margin: 0; padding: 16px;
    text-align: center; color: #fff; font-size: clamp(26px, 4.2vw, 50px); font-weight: 700; line-height: 1.15;
    text-shadow: 0 4px 4px rgba(0, 0, 0, .3);
}

/* ==========================================================================
   Home page sections
   ========================================================================== */
.about-us {
    position: relative; margin-top: -30px; padding: 30px 0 40px;
    background: var(--brand); color: #fff;
}
.about-us h2 { font-weight: 700; text-transform: uppercase; }
.about-us .btn-line {
    display: inline-block; margin-top: 10px; padding: 10px 20px;
    border: 2px solid #fff; border-radius: 4px; color: #fff; font-weight: 500;
}
.about-us .btn-line:hover { color: #fc0; }

.quick-tiles { padding-bottom: 20px; }
.tile { text-align: center; padding: 40px 15px; margin-top: 30px; }
.tile a.banner { display: block; color: var(--brand); transition: color .2s, transform .2s; }
.tile a.banner:hover { color: var(--brand-hover); transform: translateY(-3px); }
.tile i { font-size: 50px; }
.tile h4 { margin: 10px 0; }
.tile p { margin: 0 0 10px; }

.news { padding: 40px 0; background: var(--paper); }
.title-underline span { border-bottom: 3px solid var(--brand); margin-left: 2%; }
.news h2 { margin-bottom: 30px; }
.news-card { display: flex; flex-direction: column; height: 100%; background: #fff; padding-bottom: 20px; }
.news-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.news-card .news-body { padding: 0 15px; display: flex; flex-direction: column; flex: 1; }
.news-date {
    display: block; margin-top: 12px; font-size: 12px; font-weight: 600; word-spacing: 5px; color: var(--brand);
}
.news-card h3 { font-size: 20px; line-height: 26px; font-weight: 700; flex: 1; }
.news-card a.more { font-weight: 700; text-transform: uppercase; color: var(--brand); }
.news-card a.more:hover { color: var(--brand-hover); }

.bishop-message { padding: 70px 0; }
.bishop-message .how-img img { width: 100%; border-radius: 60%; aspect-ratio: 1; object-fit: cover; }
.bishop-message h2 { margin-top: 0; }
.bishop-message .subheading { color: var(--brand); font-size: 20px; font-weight: 700; margin-bottom: 25px; }
.text-muted-ink { color: #6c757d; text-align: justify; }

.albums { padding: 30px 0; background: var(--paper-dark); }
.albums h2 { font-size: 26px; line-height: 26px; font-weight: 700; margin: 0 0 24px; }
.albums img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.albums .row-thumbs { --bs-gutter-y: 18px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: #eee; padding: 30px 0 0; }
.site-footer h4 { font-weight: 600; margin-top: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { color: #eee; font-size: 13px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .copy { margin-top: 20px; padding: 0; }
.site-footer .copy p { color: #fff; font-size: 12px; text-align: center; margin: 0; padding: 4px 0; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.inner { padding: 40px 0 20px; }
.inner h2 { color: var(--brand); font-size: 24px; font-weight: 700; margin-top: 0; }
.inner h3 { margin-top: 30px; }
.history p { text-align: justify; }
.history { padding-bottom: 20px; }

.page-block { padding: 40px 0 30px; }
.page-block h4.page-title { color: var(--brand); font-weight: 700; font-size: 30px; margin-top: 0; }
.page-block h5.sub-title { font-size: 19px; font-weight: 700; margin-top: 22px; }

/* label : value lists */
.list2 { list-style: none; margin: 0 0 20px; padding: 0; }
.list2 li { display: flex; flex-wrap: wrap; column-gap: 4px; margin: 0; line-height: 30px; }
.list2 li strong { flex: 0 0 240px; max-width: 100%; font-size: 16px; line-height: 22px; padding-top: 4px; }
.glance .list2 li strong { flex-basis: 300px; }
.commission .list2 li strong { font-weight: 400; flex-basis: 130px; }
.list2 li .val { flex: 1 1 200px; }
@media (max-width: 575.98px) { .list2 li strong, .glance .list2 li strong { flex-basis: 100%; } }

/* single bio with floating portrait */
.bio-photo { float: left; width: 200px; height: 200px; object-fit: cover; margin: 23px 20px 8px 0; }
.bio { overflow: hidden; margin-bottom: 40px; }
.bio h2 { color: var(--brand); font-weight: 700; margin-top: 0; }
.bio p { text-align: justify; text-indent: 2em; }
@media (max-width: 575.98px) { .bio-photo { float: none; display: block; margin: 0 auto 16px; } }

/* people grids (priests, deceased priests, rectors) */
.team-intro { text-align: center; padding: 40px 0 0; }
.team-intro h2 { color: var(--brand); font-weight: 700; margin-top: 0; }
.team-intro .caption-gray { color: #a5a5a5; font-size: 24px; font-weight: 500; }
.team-member { margin: 15px 0; text-align: center; }
.team-member figure { position: relative; overflow: hidden; margin: 0; background: #eee; }
.team-member figure img {
    display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center;
    transition: .4s ease-in-out;
}
.team-member figure:hover img,
.team-member figure:focus-within img { transform: scale(1.1) rotate(1deg) translateY(12px); }
.team-member figcaption {
    position: absolute; left: 0; bottom: 0; width: 100%; height: 0; overflow: hidden; visibility: hidden;
    padding: 50px; color: transparent; background-color: transparent; text-align: center;
    transition: .3s ease-in-out;
}
.team-member figure:hover figcaption,
.team-member figure:focus-within figcaption { visibility: visible; color: #fff; background: var(--brand-hover); height: 100%; }
.team-member figcaption p { font-size: 16px; margin-bottom: 8px; }
.team-member h4 { margin: 10px 0 0; }
.team-member p.meta { margin: 4px 0 0; color: var(--muted); }
.people-filter { max-width: 420px; margin: 20px auto 0; }
.people-square .team-member figure img { aspect-ratio: 1; object-position: center; }

/* educational institutions */
.inst-tile {
    margin: 0 0 28px; background: #fff; border-radius: 4px; overflow: hidden;
    box-shadow: rgba(0, 0, 0, .05) 0 5px 10px 10px;
}
.inst-tile img { display: block; width: 100%; aspect-ratio: 43 / 28; object-fit: cover; }
.inst-tile figcaption { padding: 14px 15px 16px; text-align: center; font-size: 17px; font-weight: 600; color: var(--brand); }

/* proto-presbyters */
.info-block {
    display: flex; border-right: 5px solid var(--brand); margin-bottom: 25px; min-height: 110px; background: #fff;
}
.info-block .square-box {
    flex: 0 0 100px; display: flex; align-items: center; justify-content: center;
    background: var(--brand); color: #fff; font-size: 38px; margin-right: 22px;
}
.info-block .details { padding: 8px 10px 8px 0; align-self: center; }
.info-block h5 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.info-block h4 { font-size: 15px; font-weight: 500; margin: 0; line-height: 1.35; }

/* eparchial curia */
.curia-item { display: flex; gap: 22px; margin-bottom: 30px; align-items: flex-start; }
.curia-item img { flex: 0 0 auto; width: 120px; height: 150px; object-fit: cover; background: #eee; }
.curia-item h5 { font-size: 16px; font-weight: 700; color: var(--brand); margin-top: 4px; }
.curia-item h4 { font-size: 17px; font-weight: 500; line-height: 1.35; }
.curia-item small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* PDF / bulletin cards */
.doc-card { margin-bottom: 24px; background: #fdf8f1; border: 1px solid #eadfcf; height: 100%; }
.doc-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #eee; }
.doc-card .caption { text-align: center; padding: 14px 12px 18px; }
.doc-card h5 { font-size: 14px; font-weight: 600; margin: 0 0 12px; line-height: 1.35; }
.doc-card .btn { font-size: 13px; }
.doc-card-ph { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; background: #efe6d6; color: var(--brand); font-size: 64px; }
.doc-card .btn .fa { font-size: 20px; vertical-align: middle; margin-right: 4px; }

/* gallery */
.gallery .tile-img { margin-bottom: 20px; }
.gallery .tile-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 5px 5px rgba(0, 0, 0, .2); transition: transform .3s; display: block; }
.gallery .tile-img a:hover img { transform: scale(1.02); }
.lightbox-img { max-height: 80vh; object-fit: contain; }

/* news listing */
.news-item { padding: 20px 0; border-bottom: 1px solid #e2e2e2; }
.news-item .how-img img { width: 100%; border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.news-item h3 { font-size: 22px; line-height: 1.3; margin-top: 0; }
.news-item .news-date { color: var(--muted); margin: 0 0 10px; }
.news-item .body { text-align: justify; color: #6c757d; }

/* parishes */
.parish-hero h1 { color: var(--brand); text-align: center; margin-top: 0; }
.parish-filter { max-width: 760px; margin: 30px auto 10px; }
.parish-filter .btn-filter { background: var(--brand); color: #fff; border-color: var(--brand); }
.parish-filter .btn-filter:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.parish-grid h3 { margin: 30px 0 20px; }
.image-grid-item { margin-bottom: 30px; text-align: center; }
.image-grid-cover {
    position: relative; width: 100%; min-height: 180px; margin-bottom: 8px; border-radius: 4px;
    background-size: cover; background-position: center; background-color: #ddd; overflow: hidden;
}
.image-grid-clickbox { position: absolute; inset: 0; display: block; background: rgba(0, 0, 0, .45); transition: background .25s; }
.image-grid-item:hover .image-grid-clickbox { background: rgba(0, 0, 0, .12); }
.image-grid-item .cover-wrapper { display: block; font-size: 14px; color: var(--brand); margin-bottom: 2px; }
.image-grid-item .cover-wrapper.name { font-weight: 700; font-size: 16px; }
.parish-detail img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 4px; }
/* placeholder while a parish photo is not available */
.image-grid-cover.no-photo { background-image: linear-gradient(135deg, var(--brand), var(--brand-hover)); }
.image-grid-cover.no-photo::before {
    content: "\f19c"; font-family: FontAwesome; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; font-size: 56px; color: rgba(255, 255, 255, .55);
}
.image-grid-cover.no-photo .image-grid-clickbox { background: transparent; }
.parish-photo-ph {
    aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; border-radius: 4px;
    background-image: linear-gradient(135deg, var(--brand), var(--brand-hover)); color: rgba(255, 255, 255, .6); font-size: 90px;
}

/* contact */
.contact h2 { margin-bottom: 20px; }
.enq-box .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(153, 91, 15, .2); }
.map { display: block; width: 100%; height: 250px; margin-top: 30px; border: 0; }
.hp-field { position: absolute; left: -9999px; }

/* ==========================================================================
   Responsive tweaks
   ========================================================================== */
@media (max-width: 991.98px) {
    .site-header.is-fixed { position: relative; background-color: var(--wheat); }
    .hero { padding-top: 0; }
    .header-main .container { justify-content: space-between; }
    .brand-logo img { max-width: 70px; }
    .about-us { margin-top: 0; }
    .bishop-message { padding: 40px 0; }
    .bishop-message .how-img { max-width: 260px; margin: 0 auto 24px; }
    .header-contact a:nth-child(2) { display: none; }
}
@media (max-width: 575.98px) {
    .header-top .container { justify-content: center; text-align: center; }
    .tile { padding: 24px 15px; margin-top: 10px; }
    .news-item .how-img { max-width: 200px; margin: 0 auto 16px; }
    .info-block .square-box { flex-basis: 70px; margin-right: 14px; font-size: 28px; }
    .curia-item img { width: 90px; height: 112px; }
}
