/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #f8f5ef;
    color: #2d2925;
    line-height: 1.7;
}

img {
    width: 100%;
    display: block;
}

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

button,
input {
    font-family: inherit;
}


/* =====================================================
   VARIABLES
===================================================== */

:root {
    --cream: #f8f5ef;
    --cream-dark: #eee8dc;
    --white: #ffffff;

    --brown: #332820;
    --brown-light: #625348;

    --gold: #b28a4b;
    --gold-light: #d5b678;

    --border: #e3dbce;

    --shadow: 0 10px 35px rgba(52, 39, 26, 0.08);

    --radius: 18px;

    --serif: "Cormorant Garamond", serif;
}


/* =====================================================
   GLOBAL
===================================================== */

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-label {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.1;
    color: var(--brown);
}

.section-description {
    max-width: 650px;
    margin: 15px auto 0;
    color: var(--brown-light);
}


/* =====================================================
   TAB PAGES (navbar mengganti section, bukan scroll panjang)
===================================================== */

.tab-page {
    display: none;
}

.tab-page.active {
    display: block;
}

.nav-menu a.active {
    color: var(--gold);
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(248, 245, 239, 0.94);
    backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(180, 138, 75, 0.15);
}

.nav-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-symbol {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 22px;
}

.logo-text {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 700;
    color: var(--brown);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--brown-light);
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-button {
    padding: 10px 18px;
    border: 1px solid var(--gold);
    border-radius: 30px;
    color: var(--gold) !important;
}

.nav-button:hover {
    background: var(--gold);
    color: white !important;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 30%, rgba(178, 138, 75, 0.12), transparent 35%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 650px;
}

.hero-label {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(55px, 7vw, 88px);
    line-height: 0.95;
    color: var(--brown);
    margin-bottom: 25px;
}

.hero-title span {
    color: var(--gold);
}

.hero-description {
    font-size: 17px;
    color: var(--brown-light);
    max-width: 570px;
    margin-bottom: 35px;
}

.hero-search {
    display: flex;
    max-width: 580px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 7px;
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px;
    background: transparent;
    font-size: 14px;
}

.hero-search button {
    border: none;
    background: var(--brown);
    color: white;
    padding: 13px 23px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.hero-search button:hover {
    background: var(--gold);
}


/* HERO ART */

.hero-art {
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle {
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #efe5d4 55%, #dfcba7 100%);
    position: relative;
    box-shadow: 0 30px 70px rgba(80, 58, 32, 0.12);
}

.hero-cross {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--serif);
    font-size: 170px;
    color: rgba(178, 138, 75, 0.45);
}

.hero-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.hero-card small {
    display: block;
    color: var(--gold);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-card strong {
    font-family: var(--serif);
    font-size: 25px;
    color: var(--brown);
}


/* =====================================================
   SAINT OF THE DAY
===================================================== */

.featured {
    background: var(--brown);
    color: white;
}

.featured-wrapper {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    min-height: 430px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #40342c;
}

.featured-image {
    min-height: 430px;
    background:
        linear-gradient(rgba(45, 36, 29, 0.1), rgba(45, 36, 29, 0.3)),
        linear-gradient(135deg, #d7c29b, #8e7450);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-symbol {
    font-family: var(--serif);
    font-size: 160px;
    color: rgba(255,255,255,0.55);
}

.featured-content {
    padding: 65px;
}

.featured-content .section-label {
    color: var(--gold-light);
}

.featured-title {
    font-family: var(--serif);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1;
    margin: 12px 0 8px;
}

.featured-date {
    color: var(--gold-light);
    font-size: 14px;
    margin-bottom: 25px;
}

.featured-quote {
    font-family: var(--serif);
    font-size: 25px;
    line-height: 1.4;
    color: #eee5d8;
    margin-bottom: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    padding: 13px 22px;
    border-radius: 30px;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: 14px;
    transition: 0.3s;
}

.button:hover {
    background: var(--gold);
    color: white;
}


/* =====================================================
   FILTER
===================================================== */

.filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter button,
.filter a {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--brown-light);
    padding: 9px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.filter button:hover,
.filter button.active,
.filter a:hover,
.filter a.active {
    background: var(--brown);
    border-color: var(--brown);
    color: white;
}


/* =====================================================
   SAINT CARDS
===================================================== */

.saint-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.saint-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.saint-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.saint-image {
    height: 270px;
    background: linear-gradient(135deg, #ddd0b8, #b69a6c);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.saint-symbol {
    font-family: var(--serif);
    font-size: 100px;
    color: rgba(255,255,255,0.7);
}

.saint-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    color: var(--gold);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.saint-info {
    padding: 20px;
}

.saint-name {
    font-family: var(--serif);
    font-size: 27px;
    color: var(--brown);
    line-height: 1.1;
    margin-bottom: 6px;
}

.saint-feast {
    color: var(--gold);
    font-size: 12px;
    margin-bottom: 10px;
}

.saint-description {
    color: var(--brown-light);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    color: var(--brown);
    font-weight: 600;
}

.read-more:hover {
    color: var(--gold);
}

.no-result {
    text-align: center;
    color: var(--brown-light);
    padding: 40px 0;
    grid-column: 1 / -1;
}


/* =====================================================
   DETAIL PAGE
===================================================== */

.detail-hero {
    background: var(--brown);
    color: white;
    padding: 70px 0;
}

.detail-hero .section-label {
    color: var(--gold-light);
}

.detail-hero h1 {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 58px);
    margin: 10px 0;
}

.detail-hero .meta {
    color: var(--gold-light);
    font-size: 14px;
}

.detail-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 70px 0;
}

.detail-quote {
    font-family: var(--serif);
    font-size: 28px;
    color: var(--brown);
    border-left: 3px solid var(--gold);
    padding-left: 25px;
    margin-bottom: 35px;
}

.detail-text {
    color: var(--brown-light);
    font-size: 16px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
}


/* =====================================================
   CALENDAR
===================================================== */

.calendar-section {
    background: var(--cream-dark);
}

.calendar-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.calendar-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.calendar-date {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.date-number {
    font-family: var(--serif);
    font-size: 55px;
    color: var(--gold);
    line-height: 1;
}

.date-info strong {
    display: block;
    font-family: var(--serif);
    font-size: 26px;
    color: var(--brown);
}

.date-info span {
    color: var(--brown-light);
    font-size: 13px;
}

.calendar-list {
    list-style: none;
}

.calendar-list li {
    padding: 13px 0;
    border-bottom: 1px solid #eee8df;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.calendar-list li:last-child {
    border-bottom: none;
}

.calendar-list span {
    color: var(--gold);
}

.calendar-empty {
    color: var(--brown-light);
    font-size: 14px;
    padding: 10px 0;
}


/* =====================================================
   QUOTE
===================================================== */

.quote-section {
    text-align: center;
    background: white;
}

.quote-symbol {
    font-family: var(--serif);
    font-size: 70px;
    color: var(--gold);
    line-height: 0.8;
}

.quote-text {
    max-width: 800px;
    margin: 20px auto;
    font-family: var(--serif);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.25;
    color: var(--brown);
}

.quote-author {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 1px;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    background: #29221d;
    color: #d9d0c5;
    padding: 65px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-logo {
    font-family: var(--serif);
    font-size: 30px;
    color: white;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 13px;
    max-width: 350px;
    color: #a99e92;
}

.footer-title {
    color: white;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    font-size: 13px;
    color: #a99e92;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid #463c34;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #81776d;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 900px) {

    .nav-menu {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 70px 0;
    }

    .hero-art {
        height: 390px;
    }

    .hero-circle {
        width: 300px;
        height: 300px;
    }

    .featured-wrapper {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 300px;
    }

    .featured-content {
        padding: 40px 30px;
    }

    .saint-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .section {
        padding: 65px 0;
    }

    .logo-text {
        font-size: 21px;
    }

    .hero-title {
        font-size: 58px;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 18px;
    }

    .hero-search button {
        width: 100%;
    }

    .hero-art {
        height: 320px;
    }

    .hero-circle {
        width: 240px;
        height: 240px;
    }

    .hero-cross {
        font-size: 110px;
    }

    .hero-card {
        left: 0;
        bottom: 0;
    }

    .saint-grid {
        grid-template-columns: 1fr;
    }

    .saint-image {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}

/* =====================================================
   FOTO KISAH (ditambahkan saat pindah ke database)
   Foto mengisi penuh area gambar; kalau sebuah kisah
   belum punya foto, simbol lama tetap dipakai.
====================================================== */

.saint-image img,
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-image {
    overflow: hidden;
}

.saint-image {
    overflow: hidden;
}

.detail-photo {
    margin: 0 0 35px;
}

.detail-photo img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
