/*
 * 檔案名稱：assets/css/site.css
 * 修改日期：2026/07/24 23:45（UTC+8）
 * 檔案用途：板橋慈惠宮前台完整響應式視覺。
 * 修改說明：重整為鹿耳門聖母廟式的宮廟文化入口風格，加入線上服務入口與慈惠宮原圖優先版面。
 */

:root {
    --temple-red: #9b1f1b;
    --temple-red-deep: #64130f;
    --temple-red-dark: #3f0b09;
    --temple-gold: #c6a35b;
    --temple-gold-light: #e5cf9d;
    --temple-ink: #211c18;
    --temple-ink-soft: #5f554c;
    --temple-paper: #f7f2e8;
    --temple-paper-deep: #ece2d2;
    --temple-white: #fffdf8;
    --temple-line: rgba(47, 36, 28, 0.16);
    --header-height: 88px;
    --content-width: 1320px;
    --ease: cubic-bezier(.2, .75, .2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--temple-ink);
    background: var(--temple-paper);
    font-family: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
    line-height: 1.75;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

main {
    min-height: 70vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: var(--header-height);
    padding: 0 clamp(22px, 4vw, 68px);
    color: var(--temple-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition:
        min-height .32s ease,
        color .32s ease,
        background .32s ease,
        box-shadow .32s ease;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(20, 10, 6, .62), transparent);
    pointer-events: none;
    transition: opacity .3s ease;
}

.site-header.is-scrolled,
.site-header.is-light {
    min-height: 72px;
    color: var(--temple-ink);
    background: rgba(255, 253, 248, .95);
    border-color: rgba(47, 36, 28, .12);
    box-shadow: 0 14px 40px rgba(41, 28, 18, .09);
    backdrop-filter: blur(18px);
}

.site-header.is-scrolled::before,
.site-header.is-light::before {
    opacity: 0;
}

.brand {
    position: relative;
    z-index: 1002;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 180px;
    font-weight: 700;
    letter-spacing: .12em;
    white-space: nowrap;
}

.brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.main-nav,
.nav-inner,
.nav-group {
    display: flex;
    align-items: center;
}

.nav-inner {
    gap: clamp(18px, 1.65vw, 32px);
}

.nav-group {
    position: relative;
}

.nav-group > a {
    position: relative;
    padding: 30px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    white-space: nowrap;
}

.nav-group > a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 22px;
    left: 50%;
    height: 1px;
    background: currentColor;
    transition: right .24s ease, left .24s ease;
}

.nav-group:hover > a::after,
.nav-group:focus-within > a::after {
    right: 0;
    left: 0;
}

.submenu-toggle {
    display: none;
}

.submenu {
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    display: grid;
    min-width: 220px;
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    color: var(--temple-white);
    border-top: 3px solid var(--temple-gold);
    background: rgba(69, 14, 11, .97);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    transform: translate(-50%, 14px);
    transition: .24s ease;
}

.nav-group:hover .submenu,
.nav-group:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.submenu a {
    padding: 10px 12px;
    font-size: 14px;
    letter-spacing: .04em;
    white-space: nowrap;
}

.submenu a:hover {
    color: var(--temple-gold-light);
    background: rgba(255, 255, 255, .07);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-left: 14px;
    border-left: 1px solid currentColor;
}

.language-switcher button {
    padding: 6px;
    color: inherit;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    font-size: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.language-switcher button.is-active {
    border-color: currentColor;
}

.nav-service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
    background: var(--temple-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
    transition: transform .22s ease, background .22s ease;
}

.nav-service-link:hover {
    background: var(--temple-red-deep);
    transform: translateY(-2px);
}

.nav-service-mobile {
    display: none;
}

.nav-toggle {
    position: relative;
    z-index: 1002;
    display: none;
    width: 52px;
    height: 52px;
    padding: 10px;
    color: inherit;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    margin: 6px auto;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle b {
    display: block;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .12em;
}

.nav-backdrop {
    position: fixed;
    z-index: 998;
    inset: 0;
    display: none;
    background: rgba(16, 8, 5, .64);
}

.luermen-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100svh;
    color: var(--temple-white);
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
}

.luermen-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(42, 9, 7, .82) 0%, rgba(42, 9, 7, .5) 42%, rgba(42, 9, 7, .14) 75%),
        linear-gradient(0deg, rgba(26, 11, 7, .68), transparent 55%);
}

.luermen-hero-border {
    position: absolute;
    z-index: 1;
    inset: 112px 28px 28px;
    border: 1px solid rgba(227, 199, 134, .45);
    pointer-events: none;
}

.luermen-hero-border::before,
.luermen-hero-border::after {
    content: "";
    position: absolute;
    width: 68px;
    height: 68px;
    border-color: var(--temple-gold-light);
    border-style: solid;
}

.luermen-hero-border::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.luermen-hero-border::after {
    right: -1px;
    bottom: -1px;
    border-width: 0 2px 2px 0;
}

.luermen-hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, var(--content-width));
    margin: 0 auto;
    padding: 180px clamp(34px, 8vw, 122px) 120px;
}

.luermen-hero-kicker,
.section-kicker {
    margin: 0 0 18px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .32em;
    text-transform: uppercase;
}

.luermen-hero h1 {
    margin: 0;
    font-size: clamp(60px, 8vw, 122px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .12em;
    text-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}

.luermen-hero-subtitle {
    margin: 22px 0 0;
    color: var(--temple-gold-light);
    font-size: clamp(21px, 2.2vw, 32px);
    letter-spacing: .28em;
}

.luermen-hero-description {
    max-width: 680px;
    margin: 28px 0 0;
    font-size: clamp(15px, 1.45vw, 19px);
    letter-spacing: .08em;
}

.luermen-hero-actions,
.temple-visit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.temple-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    white-space: nowrap;
    transition: transform .22s ease, color .22s ease, background .22s ease, border-color .22s ease;
}

.temple-cta:hover {
    transform: translateY(-3px);
}

.temple-cta-primary {
    color: #fff;
    background: var(--temple-red);
}

.temple-cta-primary:hover {
    background: var(--temple-red-deep);
}

.temple-cta-light {
    color: var(--temple-red-deep);
    background: rgba(255, 253, 248, .94);
}

.temple-cta-outline {
    color: inherit;
    border-color: currentColor;
    background: transparent;
}

.luermen-hero-scroll {
    position: absolute;
    z-index: 2;
    right: 38px;
    bottom: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: rotate(90deg);
    transform-origin: right center;
}

.luermen-hero-scroll span {
    display: block;
    width: 62px;
    height: 1px;
    background: currentColor;
}

.luermen-hero-scroll b {
    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: .28em;
}

.temple-service-shortcuts {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(calc(100% - 48px), 1180px);
    margin: -62px auto 0;
    color: var(--temple-ink);
    background: var(--temple-white);
    box-shadow: 0 24px 70px rgba(52, 27, 15, .16);
}

.temple-service-shortcuts a {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 15px;
    min-height: 124px;
    padding: 26px 22px;
    border-right: 1px solid var(--temple-line);
    transition: color .22s ease, background .22s ease;
}

.temple-service-shortcuts a:last-child {
    border-right: 0;
}

.temple-service-shortcuts a:hover,
.temple-service-shortcuts a.is-highlight {
    color: #fff;
    background: var(--temple-red);
}

.temple-service-shortcuts a > span {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--temple-red);
    border: 1px solid var(--temple-gold);
    border-radius: 50%;
    font-size: 21px;
    font-weight: 700;
}

.temple-service-shortcuts a:hover > span,
.temple-service-shortcuts a.is-highlight > span {
    color: var(--temple-gold-light);
    border-color: var(--temple-gold-light);
}

.temple-service-shortcuts strong {
    align-self: end;
    font-size: 16px;
    letter-spacing: .06em;
}

.temple-service-shortcuts small {
    color: var(--temple-ink-soft);
    font-size: 11px;
}

.temple-service-shortcuts a:hover small,
.temple-service-shortcuts a.is-highlight small {
    color: rgba(255, 255, 255, .74);
}

.temple-welcome-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, .9fr);
    gap: clamp(50px, 9vw, 150px);
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
    padding: 160px 0 140px;
    overflow: hidden;
}

.temple-welcome-mark {
    position: absolute;
    top: 70px;
    left: -14px;
    color: rgba(155, 31, 27, .045);
    font-size: clamp(240px, 32vw, 460px);
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.temple-welcome-heading,
.temple-welcome-copy {
    position: relative;
    z-index: 1;
}

.temple-welcome-heading h2,
.temple-centered-heading h2,
.temple-prayer-heading h2,
.temple-visit-content h2,
.section-title-row h2,
.related-pages h2,
.contact-layout h2 {
    margin: 0;
    font-size: clamp(38px, 4.8vw, 72px);
    font-weight: 500;
    line-height: 1.26;
    letter-spacing: .04em;
}

.temple-welcome-copy {
    padding-top: 44px;
    color: var(--temple-ink-soft);
    font-size: 17px;
}

.temple-welcome-copy p {
    margin: 0 0 22px;
}

.text-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
    padding-bottom: 6px;
    color: var(--temple-red);
    border-bottom: 1px solid currentColor;
    font-weight: 700;
    letter-spacing: .06em;
}

.text-arrow-link span {
    transition: transform .2s ease;
}

.text-arrow-link:hover span {
    transform: translate(4px, -4px);
}

.temple-news-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 720px;
    background: var(--temple-white);
}

.temple-news-image {
    position: relative;
    min-height: 640px;
    color: #fff;
    background-image:
        linear-gradient(0deg, rgba(50, 12, 8, .68), rgba(50, 12, 8, .05) 65%),
        var(--news-image);
    background-position: center;
    background-size: cover;
}

.temple-news-image > div {
    position: absolute;
    right: clamp(24px, 5vw, 74px);
    bottom: clamp(36px, 7vw, 90px);
    left: clamp(24px, 5vw, 74px);
}

.temple-news-image p {
    margin: 0 0 10px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: .3em;
}

.temple-news-image strong {
    font-size: clamp(34px, 4.2vw, 64px);
    font-weight: 500;
    line-height: 1.28;
}

.temple-news-list {
    padding: clamp(70px, 8vw, 118px) clamp(32px, 6vw, 96px);
}

.section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.section-title-row h2 {
    font-size: clamp(38px, 4vw, 60px);
}

.section-title-row > a {
    padding-bottom: 6px;
    color: var(--temple-red);
    border-bottom: 1px solid currentColor;
    font-size: 13px;
    white-space: nowrap;
}

.temple-news-items {
    border-top: 1px solid var(--temple-line);
}

.temple-news-items > a {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 22px;
    gap: 22px;
    padding: 24px 0;
    border-bottom: 1px solid var(--temple-line);
    transition: padding-left .22s ease, color .22s ease;
}

.temple-news-items > a:hover {
    padding-left: 10px;
    color: var(--temple-red);
}

.temple-news-items time {
    color: var(--temple-ink-soft);
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.temple-news-items small {
    display: block;
    margin-bottom: 4px;
    color: var(--temple-red);
    font-size: 10px;
    letter-spacing: .12em;
}

.temple-news-items strong {
    font-size: 17px;
}

.temple-news-items p {
    display: -webkit-box;
    margin: 7px 0 0;
    color: var(--temple-ink-soft);
    font-size: 13px;
    line-height: 1.6;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.temple-news-items i {
    font-style: normal;
}

.temple-culture-section {
    padding: 150px max(24px, calc((100% - var(--content-width)) / 2));
    background: var(--temple-paper);
}

.temple-centered-heading {
    max-width: 880px;
    margin: 0 auto 70px;
    text-align: center;
}

.temple-centered-heading h2 {
    font-size: clamp(38px, 4.6vw, 68px);
}

.temple-centered-heading > p:last-child {
    max-width: 660px;
    margin: 24px auto 0;
    color: var(--temple-ink-soft);
}

.temple-culture-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px;
}

.temple-culture-card {
    grid-column: span 4;
    background: var(--temple-white);
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s ease;
}

.temple-culture-card.is-featured {
    grid-column: span 8;
}

.temple-culture-card:hover {
    box-shadow: 0 28px 65px rgba(52, 27, 15, .13);
    transform: translateY(-8px);
}

.temple-culture-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.temple-culture-card.is-featured .temple-culture-image {
    aspect-ratio: 16 / 8.3;
}

.temple-culture-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}

.temple-culture-card:hover img {
    transform: scale(1.045);
}

.temple-culture-copy {
    position: relative;
    padding: 30px 32px 34px;
}

.temple-culture-copy > span {
    position: absolute;
    top: 31px;
    right: 30px;
    color: var(--temple-gold);
    font-family: Arial, sans-serif;
    font-size: 11px;
}

.temple-culture-copy h3 {
    margin: 0 40px 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.temple-culture-copy p {
    margin: 0;
    color: var(--temple-ink-soft);
    font-size: 14px;
}

.temple-culture-copy i {
    display: inline-block;
    margin-top: 22px;
    color: var(--temple-red);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.online-service-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 640px;
    color: #fff;
    background-image: var(--service-banner-image);
    background-position: center;
    background-size: cover;
}

.online-service-banner-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(78, 14, 11, .92), rgba(78, 14, 11, .62) 50%, rgba(78, 14, 11, .22)),
        repeating-linear-gradient(135deg, transparent 0 30px, rgba(224, 195, 126, .03) 30px 31px);
}

.online-service-banner-content {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
    padding: 100px 5vw;
}

.online-service-banner-content > p:first-child {
    margin: 0 0 14px;
    color: var(--temple-gold-light);
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: .3em;
}

.online-service-banner h2 {
    margin: 0;
    font-size: clamp(48px, 6.5vw, 94px);
    font-weight: 500;
    line-height: 1.15;
}

.online-service-banner-content > p:not(:first-child) {
    max-width: 660px;
    margin: 24px 0 0;
    font-size: 16px;
}

.online-service-banner .temple-cta {
    margin-top: 28px;
}

.temple-prayer-section {
    display: grid;
    grid-template-columns: minmax(250px, .55fr) minmax(0, 1.45fr);
    gap: clamp(46px, 8vw, 120px);
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
    padding: 150px 0;
}

.temple-prayer-heading {
    position: sticky;
    top: 118px;
    align-self: start;
}

.temple-prayer-heading h2 {
    font-size: clamp(44px, 5.2vw, 72px);
}

.temple-prayer-heading > p:last-child {
    margin: 24px 0 0;
    color: var(--temple-ink-soft);
}

.temple-prayer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--temple-line);
    border-left: 1px solid var(--temple-line);
}

.temple-prayer-grid > a {
    position: relative;
    min-height: 390px;
    padding: 34px;
    border-right: 1px solid var(--temple-line);
    border-bottom: 1px solid var(--temple-line);
    overflow: hidden;
    transition: color .28s ease, background .28s ease;
}

.temple-prayer-grid > a:hover {
    color: #fff;
    background: var(--temple-red);
}

.prayer-number {
    position: absolute;
    top: 28px;
    right: 28px;
    color: var(--temple-gold);
    font-family: Arial, sans-serif;
    font-size: 11px;
}

.prayer-image {
    width: 132px;
    height: 132px;
    margin-bottom: 28px;
    border: 4px solid var(--temple-gold-light);
    border-radius: 50%;
    overflow: hidden;
}

.prayer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.temple-prayer-grid h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.temple-prayer-grid p {
    margin: 0;
    color: var(--temple-ink-soft);
    font-size: 14px;
}

.temple-prayer-grid > a:hover p {
    color: rgba(255, 255, 255, .74);
}

.temple-prayer-grid i {
    display: inline-block;
    margin-top: 24px;
    color: var(--temple-red);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.temple-prayer-grid > a:hover i {
    color: var(--temple-gold-light);
}

.temple-visit-section {
    position: relative;
    min-height: 620px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(75, 12, 9, .98), rgba(101, 18, 14, .93)),
        var(--temple-red-deep);
    overflow: hidden;
}

.temple-visit-decoration {
    position: absolute;
    top: -80px;
    right: -30px;
    width: min(54vw, 720px);
    aspect-ratio: 1;
    opacity: .12;
    border: 1px solid var(--temple-gold-light);
    border-radius: 50%;
}

.temple-visit-decoration::before,
.temple-visit-decoration::after {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px solid var(--temple-gold-light);
    border-radius: 50%;
}

.temple-visit-decoration::after {
    inset: 27%;
}

.temple-visit-content {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
    padding: 130px 0;
}

.temple-visit-content h2 {
    color: var(--temple-white);
}

.temple-visit-content address {
    margin-top: 30px;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
    font-style: normal;
    line-height: 1.9;
}

.page-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 72svh;
    color: #fff;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(49, 11, 8, .79), rgba(49, 11, 8, .15) 72%),
        linear-gradient(0deg, rgba(25, 10, 7, .72), transparent 62%);
}

.hero-shade {
    position: absolute;
    inset: 0;
}

.page-hero > div:last-child {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
    padding: 180px 0 86px;
}

.eyebrow {
    margin: 0 0 16px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.page-hero h1,
.contact-hero h1,
.not-found h1 {
    margin: 0;
    font-size: clamp(46px, 6.5vw, 92px);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: .06em;
}

.page-hero > div:last-child > p:last-child {
    max-width: 700px;
    margin: 24px 0 0;
    font-size: 17px;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(220px, .45fr) minmax(0, 1.25fr);
    gap: clamp(50px, 9vw, 140px);
    width: min(calc(100% - 48px), 1160px);
    margin: 0 auto;
    padding: 110px 0 140px;
}

.content-layout > aside {
    position: sticky;
    top: 120px;
    align-self: start;
    padding-top: 10px;
}

.section-number {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--temple-red);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .25em;
}

.section-number::after {
    content: "";
    width: 48px;
    height: 1px;
    background: currentColor;
}

.content-layout aside p {
    margin: 24px 0 0;
    color: var(--temple-ink-soft);
}

.content-layout aside small {
    display: block;
    margin-top: 20px;
    color: #8c8177;
}

.cms-content {
    min-width: 0;
    font-size: 17px;
}

.cms-content > *:first-child {
    margin-top: 0;
}

.cms-content h2 {
    margin: 62px 0 22px;
    color: var(--temple-red-deep);
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 600;
    line-height: 1.35;
}

.cms-content h3 {
    margin: 42px 0 16px;
    font-size: 26px;
}

.cms-content p,
.cms-content li {
    color: #4b433c;
}

.cms-content a:not(.cms-button) {
    color: var(--temple-red);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cms-content img {
    max-width: 100%;
    height: auto;
    margin: 34px auto;
}

.cms-content table {
    width: 100%;
    border-collapse: collapse;
    overflow-wrap: anywhere;
}

.cms-content th,
.cms-content td {
    padding: 13px;
    border: 1px solid var(--temple-line);
    text-align: left;
}

.cms-lead {
    color: var(--temple-ink) !important;
    font-size: clamp(21px, 2.4vw, 30px);
    line-height: 1.65;
}

.cms-note,
.cms-highlight {
    margin: 34px 0;
    padding: 24px 28px;
    border-left: 4px solid var(--temple-gold);
    background: var(--temple-white);
}

.cms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    color: #fff;
    background: var(--temple-red);
    font-weight: 700;
    white-space: nowrap;
}

.related-pages {
    padding: 110px max(24px, calc((100% - var(--content-width)) / 2));
    background: var(--temple-white);
}

.related-pages header {
    margin-bottom: 44px;
}

.related-pages h2 {
    font-size: clamp(36px, 4vw, 56px);
}

.related-pages > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--temple-line);
    border-left: 1px solid var(--temple-line);
}

.related-pages > div > a {
    position: relative;
    min-height: 210px;
    padding: 30px;
    border-right: 1px solid var(--temple-line);
    border-bottom: 1px solid var(--temple-line);
    transition: color .22s ease, background .22s ease;
}

.related-pages > div > a:hover {
    color: #fff;
    background: var(--temple-red);
}

.related-pages h3 {
    margin: 0;
    font-size: 23px;
}

.related-pages p {
    color: var(--temple-ink-soft);
}

.related-pages a:hover p {
    color: rgba(255, 255, 255, .78);
}

.related-pages i {
    position: absolute;
    right: 24px;
    bottom: 22px;
    font-style: normal;
}

.contact-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 58svh;
    padding: 170px max(24px, calc((100% - var(--content-width)) / 2)) 80px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(68, 13, 10, .96), rgba(111, 22, 16, .78)),
        var(--temple-red-deep);
}

.contact-hero > div {
    max-width: 820px;
}

.contact-hero > div > p:last-child {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .82);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
    gap: clamp(46px, 8vw, 120px);
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
    padding: 110px 0 140px;
}

.contact-layout h2 {
    margin-top: 18px;
    font-size: clamp(34px, 4vw, 54px);
}

.contact-info dl {
    margin: 38px 0 0;
}

.contact-info dl > div {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--temple-line);
}

.contact-info dt {
    color: var(--temple-red);
    font-weight: 700;
}

.contact-info dd {
    margin: 0;
    color: var(--temple-ink-soft);
}

.map-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding: 22px;
    color: #fff;
    background: var(--temple-red);
}

.contact-form-wrap {
    padding: 40px;
    background: var(--temple-white);
    box-shadow: 0 24px 70px rgba(52, 27, 15, .09);
}

.contact-form-wrap .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.contact-form-wrap label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}

.contact-form-wrap label span {
    color: var(--temple-red);
}

.contact-form-wrap label.wide {
    grid-column: 1 / -1;
}

.contact-form-wrap input,
.contact-form-wrap textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--temple-ink);
    border: 1px solid var(--temple-line);
    border-radius: 0;
    background: #fff;
    outline: 0;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
    border-color: var(--temple-red);
    box-shadow: 0 0 0 3px rgba(155, 31, 27, .08);
}

.contact-form-wrap form > button {
    min-width: 160px;
    min-height: 50px;
    margin-top: 24px;
    padding: 0 22px;
    color: #fff;
    border: 0;
    background: var(--temple-red);
    cursor: pointer;
    white-space: nowrap;
}

.contact-form-wrap form > button i {
    margin-left: 18px;
    font-style: normal;
}

.form-message {
    margin: 24px 0;
    padding: 14px 16px;
}

.form-message.success {
    color: #28512f;
    background: #e8f4e9;
}

.form-message.error {
    color: #7b1e1b;
    background: #f9e7e5;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
}

.not-found {
    min-height: 80vh;
    padding: 180px max(24px, calc((100% - 980px) / 2)) 100px;
}

.line-link {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    padding-bottom: 5px;
    color: var(--temple-red);
    border-bottom: 1px solid currentColor;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 42px;
    padding: 48px max(24px, calc((100% - var(--content-width)) / 2));
    color: rgba(255, 255, 255, .76);
    background: #24130e;
}

.site-footer > div {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.site-footer img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.site-footer strong {
    letter-spacing: .12em;
}

.site-footer address {
    font-size: 13px;
    font-style: normal;
    line-height: 1.7;
}

.site-footer p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 11px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .85s var(--ease), transform .85s var(--ease);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1180px) {
    .nav-inner {
        gap: 16px;
    }

    .nav-group > a {
        font-size: 13px;
    }

    .language-switcher {
        display: none;
    }

    .temple-service-shortcuts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .temple-service-shortcuts a {
        border-bottom: 1px solid var(--temple-line);
    }

    .temple-service-shortcuts a:nth-child(3n) {
        border-right: 0;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 72px;
    }

    .site-header,
    .site-header.is-scrolled,
    .site-header.is-light {
        min-height: 72px;
        padding: 0 18px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand {
        min-width: 0;
        font-size: 14px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        z-index: 1001;
        top: 0;
        right: 0;
        bottom: 0;
        display: block;
        width: min(88vw, 430px);
        padding: 96px 24px 34px;
        color: var(--temple-ink);
        background: var(--temple-white);
        box-shadow: -20px 0 60px rgba(0, 0, 0, .18);
        overflow-y: auto;
        transform: translateX(105%);
        transition: transform .32s var(--ease);
    }

    body.nav-open .main-nav {
        transform: translateX(0);
    }

    body.nav-open .nav-backdrop {
        display: block;
    }

    body.nav-open .nav-toggle {
        color: var(--temple-ink);
    }

    body.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-inner {
        display: block;
    }

    .nav-group {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        border-bottom: 1px solid var(--temple-line);
    }

    .nav-group > a {
        padding: 17px 0;
        font-size: 16px;
    }

    .nav-group > a::after {
        display: none;
    }

    .submenu-toggle {
        display: block;
        color: var(--temple-red);
        border: 0;
        background: transparent;
        font-size: 20px;
        cursor: pointer;
    }

    .submenu {
        position: static;
        grid-column: 1 / -1;
        display: none;
        min-width: 0;
        padding: 0 0 12px 14px;
        opacity: 1;
        visibility: visible;
        color: var(--temple-ink);
        border: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .nav-group.is-open .submenu {
        display: grid;
    }

    .submenu a {
        padding: 9px 0;
        color: var(--temple-ink-soft);
    }

    .submenu a:hover {
        color: var(--temple-red);
        background: transparent;
    }

    .language-switcher {
        display: flex;
        margin-top: 24px;
        padding: 20px 0 0;
        border-top: 1px solid var(--temple-line);
        border-left: 0;
    }

    .language-switcher button {
        color: var(--temple-ink);
        font-size: 12px;
    }

    .nav-service-desktop {
        display: none;
    }

    .nav-service-mobile {
        display: inline-flex;
        width: 100%;
        margin-top: 22px;
    }

    .luermen-hero-border {
        inset: 94px 14px 14px;
    }

    .luermen-hero-content {
        padding: 150px 32px 100px;
    }

    .luermen-hero h1 {
        font-size: clamp(48px, 12vw, 78px);
    }

    .luermen-hero-scroll {
        display: none;
    }

    .temple-service-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100% - 28px);
        margin-top: -38px;
    }

    .temple-service-shortcuts a,
    .temple-service-shortcuts a:nth-child(3n) {
        border-right: 1px solid var(--temple-line);
    }

    .temple-service-shortcuts a:nth-child(2n) {
        border-right: 0;
    }

    .temple-welcome-section,
    .temple-news-section,
    .temple-prayer-section,
    .contact-layout,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .temple-welcome-section {
        padding: 110px 0;
    }

    .temple-welcome-copy {
        padding-top: 0;
    }

    .temple-news-image {
        min-height: 520px;
    }

    .temple-culture-card,
    .temple-culture-card.is-featured {
        grid-column: span 6;
    }

    .temple-prayer-heading,
    .content-layout > aside {
        position: static;
    }

    .content-layout {
        padding: 80px 0 100px;
    }

    .contact-layout {
        padding: 80px 0 100px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .brand span {
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .luermen-hero-content {
        padding-right: 24px;
        padding-left: 24px;
    }

    .luermen-hero-subtitle {
        font-size: 18px;
        letter-spacing: .16em;
    }

    .luermen-hero-actions,
    .temple-visit-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .temple-cta {
        width: 100%;
    }

    .temple-service-shortcuts {
        grid-template-columns: 1fr;
    }

    .temple-service-shortcuts a,
    .temple-service-shortcuts a:nth-child(2n),
    .temple-service-shortcuts a:nth-child(3n) {
        min-height: 104px;
        border-right: 0;
        border-bottom: 1px solid var(--temple-line);
    }

    .temple-welcome-section,
    .temple-prayer-section,
    .content-layout,
    .contact-layout,
    .temple-visit-content {
        width: calc(100% - 34px);
    }

    .temple-news-list {
        padding: 62px 22px;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .temple-news-items > a {
        grid-template-columns: 1fr 20px;
        gap: 10px;
    }

    .temple-news-items time {
        grid-column: 1 / -1;
    }

    .temple-culture-section,
    .related-pages {
        padding-right: 18px;
        padding-left: 18px;
    }

    .temple-culture-card,
    .temple-culture-card.is-featured {
        grid-column: 1 / -1;
    }

    .temple-culture-card.is-featured .temple-culture-image,
    .temple-culture-image {
        aspect-ratio: 4 / 3;
    }

    .online-service-banner-content {
        width: calc(100% - 34px);
        padding: 90px 0;
    }

    .temple-prayer-grid,
    .related-pages > div {
        grid-template-columns: 1fr;
    }

    .temple-prayer-grid > a {
        min-height: 350px;
    }

    .page-hero > div:last-child {
        width: calc(100% - 34px);
        padding-bottom: 60px;
    }

    .cms-content {
        font-size: 16px;
    }

    .cms-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .contact-form-wrap {
        padding: 28px 20px;
    }

    .contact-form-wrap .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap label.wide {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
