* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #173f2c;
    background-color: #f5f2e8;
    font-family: "Roboto", sans-serif;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    min-height: 82px;
    padding: 0 6%;
    border-bottom: 1px solid #dedbcf;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Playfair Display", serif;
    font-size: 23px;
    font-weight: 700;
}

.brand-icon {
    width: 36px;
    height: 44px;
    border-radius: 18px 18px 22px 22px;
    color: white;
    background-color: #28592e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-link {
    color: #52645a;
    font-size: 14px;
}

.back-bar {
    padding: 17px 6%;
    border-bottom: 1px solid #dedbcf;
    font-size: 13px;
}

.church-hero {
    max-width: 1550px;
    margin: 0 auto;
    padding: 55px 6%;
    display: flex;
    align-items: center;
    gap: 55px;
}

.hero-image {
    width: 100%;
    max-width: 47%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 12px 30px rgba(23, 63, 44, 0.12);
}

.hero-information {
    flex: 1;
}

.church-type,
.section-label {
    margin: 0 0 14px;
    color: #28592e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.church-hero h1,
.overview-section h2,
.services-section h2,
.events-section h2,
.history-section h2,
.visit-section h2 {
    margin: 0;
    font-family: "Playfair Display", serif;
}

.church-hero h1 {
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.1;
}

.chinese-name {
    margin: 8px 0 20px;
    color: #67736a;
}

.church-details {
    margin: 0 0 25px;
    padding: 0;
    color: #52645a;
    line-height: 2;
    list-style: none;
}

.church-details li::before {
    margin-right: 9px;
    color: #28592e;
    content: "○";
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.primary-button,
.secondary-button {
    min-height: 46px;
    padding: 0 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.primary-button {
    color: white;
    background-color: #28592e;
}

.secondary-button {
    border: 1px solid #28592e;
}

.verification,
.section-note {
    margin-top: 17px;
    color: #b08639;
    font-size: 11px;
}

.page-navigation {
    padding: 0 6%;
    border-top: 1px solid #dedbcf;
    border-bottom: 1px solid #dedbcf;
    background-color: white;
    display: flex;
    gap: 38px;
}

.page-navigation a {
    padding: 18px 0;
    border-bottom: 3px solid transparent;
    font-size: 13px;
}

.page-navigation a:hover {
    border-bottom-color: #28592e;
}

.overview-section,
.services-section,
.events-section,
.history-section {
    padding: 65px 6%;
}

.overview-section h2,
.services-section h2,
.events-section h2,
.history-section h2,
.visit-section h2 {
    font-size: 36px;
}

.overview-section {
    display: grid;
    grid-template-columns: 1.5fr 0.65fr;
    gap: 65px;
    align-items: center;
}

.section-introduction,
.history-introduction {
    max-width: 850px;
    color: #52645a;
    font-size: 15px;
    line-height: 1.8;
}

.information-grid {
    margin: 35px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.information-item {
    padding-left: 15px;
    border-left: 2px solid #dfd7bd;
}

.information-item h3 {
    margin: 0 0 7px;
    color: #b08639;
    font-size: 10px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.information-item p {
    margin: 0;
    color: #52645a;
    font-size: 13px;
    line-height: 1.5;
}

.visitor-message {
    padding: 18px;
    border: 1px solid #dedbcf;
    border-radius: 8px;
    background-color: #eeece3;
}

.visitor-message p {
    margin: 7px 0 0;
    color: #52645a;
    font-size: 13px;
    line-height: 1.5;
}

.overview-photo {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(23, 63, 44, 0.1);
}

.overview-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
}

.photo-colour-block {
    display: none;
    border-radius: 0 0 12px 12px;
    background-color: #173f2c;
}

.services-section,
.history-section {
    background-color: white;
}

.service-list {
    margin-top: 30px;
    display: grid;
    gap: 11px;
}

.service-row {
    min-height: 55px;
    padding: 14px 18px;
    border: 1px solid #e1ded3;
    border-radius: 8px;
    background-color: #f5f2e8;
    display: grid;
    grid-template-columns: 100px 120px 1fr auto;
    align-items: center;
    gap: 18px;
    font-size: 13px;
}

.service-day,
.event-date,
.timeline-period {
    color: #b08639;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.service-language {
    padding: 5px 9px;
    border-radius: 12px;
    color: #52645a;
    background-color: #e1e8e2;
    font-size: 10px;
}

.schedule-warning {
    margin: 22px 0 0;
    padding-left: 15px;
    border-left: 2px solid #dfd7bd;
    color: #657067;
    font-size: 12px;
    font-style: italic;
}

.event-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.event-card {
    min-height: 180px;
    padding: 23px;
    border: 1px solid #dedbcf;
    border-radius: 9px;
    background-color: white;
}

.event-card h3 {
    margin: 14px 0 9px;
    font-family: "Playfair Display", serif;
    font-size: 21px;
}

.event-card p:last-child {
    margin-bottom: 0;
    color: #52645a;
    font-size: 13px;
    line-height: 1.6;
}

.history-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.history-title > p {
    color: #b08639;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.history-images {
    margin: 28px 0 42px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.history-image {
    position: relative;
    min-width: 0;
    height: auto;
    overflow: hidden;
    border-radius: 9px;
}

.history-image.image-landscape {
    flex: 1.4;
    aspect-ratio: 4 / 3;
}

.history-image.image-portrait {
    flex: 0.8;
    aspect-ratio: 3 / 4;
}

.history-image.image-square {
    flex: 1;
    aspect-ratio: 1 / 1;
}

.history-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
}

.history-image span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    color: white;
    font-size: 12px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.timeline {
    max-width: 1050px;
}

.timeline-item {
    position: relative;
    padding: 0 0 32px 48px;
    border-left: 1px solid #d4ad58;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: -11px;
    width: 21px;
    height: 21px;
    border: 2px solid #d4ad58;
    border-radius: 50%;
    background-color: white;
}

.timeline-dot::after {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #d4ad58;
    content: "";
}

.timeline-item h3 {
    margin: 6px 0 8px;
    font-family: "Playfair Display", serif;
    font-size: 20px;
}

.timeline-item p:last-child {
    margin: 0;
    color: #52645a;
    font-size: 13px;
    line-height: 1.6;
}

.visit-wrapper {
    padding: 50px 6%;
}

.visit-section {
    padding: 42px;
    border-radius: 12px;
    color: white;
    background-color: #173f2c;
}

.visit-title {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.visit-title h2 {
    font-size: 28px;
}

.visit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 50px;
}

.visit-grid h3 {
    margin: 0 0 9px;
    color: #d4ad58;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.visit-grid p {
    margin: 0;
    color: #d1dbd4;
    font-size: 13px;
    line-height: 1.6;
}

.site-footer {
    padding: 50px 6% 25px;
    color: white;
    background-color: #173f2c;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
}

.footer-brand {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 700;
}

.site-footer p {
    color: #99ada0;
    font-size: 12px;
}

.site-footer nav {
    display: flex;
    gap: 24px;
    font-size: 12px;
}

.copyright {
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    grid-column: 1 / -1;
}

@media (max-width: 800px) {
    .site-header {
        min-height: 68px;
        padding: 0 20px;
    }

    .brand {
        gap: 8px;
        font-size: 17px;
    }

    .brand-icon {
        width: 30px;
        height: 36px;
        font-size: 12px;
    }

    .about-link {
        font-size: 12px;
    }

    .back-bar {
        padding: 15px 20px;
    }

    .church-hero {
        padding: 30px 20px 38px;
        flex-direction: column;
        align-items: stretch;
        gap: 27px;
    }

    .hero-image {
        max-width: 100%;
    }

    .church-hero h1 {
        font-size: 34px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .page-navigation {
        padding: 0 20px;
        gap: 24px;
        overflow-x: auto;
    }

    .page-navigation a {
        white-space: nowrap;
        font-size: 12px;
    }

    .overview-section,
    .services-section,
    .events-section,
    .history-section {
        padding: 48px 20px;
    }

    .overview-section h2,
    .services-section h2,
    .events-section h2,
    .history-section h2 {
        font-size: 28px;
    }

    .overview-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .information-grid {
        grid-template-columns: 1fr;
    }

    .service-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px 13px;
    }

    .service-language {
        justify-self: start;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .history-images {
        flex-direction: column;
    }

    .history-images .history-image {
        flex: none;
        width: 100%;
    }

    .event-card {
        min-height: auto;
    }

    .history-title {
        display: block;
    }

    .history-title > p {
        margin-top: 12px;
    }

    .visit-wrapper {
        padding: 35px 20px;
    }

    .visit-section {
        padding: 30px 23px;
    }

    .visit-title h2 {
        font-size: 24px;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .site-footer {
        padding: 40px 20px 24px;
        grid-template-columns: 1fr;
    }

    .site-footer nav {
        flex-wrap: wrap;
    }
}
.catholic-type {
    color: #b08639;
}
