/* 
 * Cemeteryco Public Theme CSS
 * Phục vụ cho giao diện trang chủ công viên Vĩnh Hằng Ao Vua
 * Đảm bảo thẩm mỹ cao, premium, có micro-animations và hoàn toàn responsive.
 */

@font-face {
    font-family: 'Playfair Display';
    src: url(../fonts/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf);
}

@font-face {
    font-family: 'Mulish';
    src: url(../fonts/Mulish/Mulish-VariableFont_wght.ttf);
}


:root {
    --primary-color: #14351b;        /* Xanh rừng sâu trang nghiêm */
    --primary-hover: #1b4725;
    --accent-color: #c5a059;         /* Vàng kim sang trọng */
    --accent-hover: #b38e47;
    --text-main: #2b3a30;            /* Chữ tối màu hơi xanh lá */
    --text-muted: #6b7c72;
    --bg-light: #f5f8f6;             /* Nền nhạt tone lạnh sang trọng */
    --bg-white: #ffffff;
    --border-color: #e2e8e4;
    --card-shadow: 0 4px 20px rgba(20, 53, 27, 0.04);
    --card-shadow-hover: 0 12px 30px rgba(20, 53, 27, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
body {
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display';
    font-weight: 700;
    color: var(--primary-color);
}

.container {
    max-width: 1690px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Skip link — visually hidden, only appears on keyboard focus */
.cmc-skip-link {
    position: absolute;
    left: -9999px;
    top: 4px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
}
.cmc-skip-link:focus {
    position: fixed;
    left: 16px;
    width: auto;
    height: auto;
    overflow: visible;
}

/* Mobile nav toggle — hidden on desktop, shown on mobile */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: poMulish;
    color: var(--primary-color);
    padding: 8px;
    border-radius: 4px;
    line-height: 1;
}

/* Header styles moved to navbar.css */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: poMulish;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 53, 27, 0.15);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--primary-color) !important;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.15);
}

.btn-link {
    background: transparent;
    color: var(--accent-color);
    padding: 0;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid transparent;
}

.btn-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

/* Hero Section */
.pt-hero {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.pt-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.pt-hero__bg.is-active {
    opacity: 1;
}

.pt-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 53, 27, 0.8) 0%, rgba(20, 53, 27, 0.4) 100%);
    z-index: 2;
}

.pt-hero__in {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.pt-hero__in h1 {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease;
}

.pt-hero__in p {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease;
}

.pt-hero__dots {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

.pt-hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: poMulish;
    transition: var(--transition);
}

.pt-hero__dot.is-active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Stats section */
.pt-stats {
    background-color: var(--primary-color);
    color: white;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    padding: 40px 0;
    border-bottom: 4px solid var(--accent-color);
}

.pt-stat {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.pt-stat:last-child {
    border-right: none;
}

.pt-stat__num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
}

.pt-stat__lbl {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.pt-section {
    padding: 80px 0;
}

.pt-section--alt {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.pt-h2 {
    font-size: 32px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 12px;
}

.pt-h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
}

/* Cards Layout */
.pt-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.pt-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pt-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-color);
}

.pt-card__ic {
    color: var(--accent-color);
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.pt-card h3 {
    font-size: 20px;
    margin: 0 0 12px 0;
}

.pt-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Service list page grid */
.pt-cards-2 {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
}

.pt-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
    background-color: var(--bg-light);
    padding: 6px 12px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Tabs */
.services-tabs .tab-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
    cursor: poMulish;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.services-tabs .tab-btn.active,
.services-tabs .tab-btn:hover {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

/* News Grid */
.pt-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.pt-news-card-wrapper {
    display: flex;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.pt-news-card-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.pt-news-image {
    width: 180px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.pt-news-content {
    padding: 24px;
}

.pt-news-content h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.pt-news-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA Banner */
.pt-cta {
    background: linear-gradient(135deg, #112d14 0%, #1a4522 100%);
    color: white;
    padding: 60px 0;
}

.pt-cta__h {
    color: white;
    font-size: 32px;
    margin-bottom: 12px;
}

.pt-cta__p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Mulishactive Map & Search results styling */
.pt-search {
    display: flex;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.pt-results {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    max-width: 1200px;
    margin: 30px auto 0 auto;
    height: 500px;
}

.pt-results__list {
    background-color: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
}

.pt-results__map {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: #ddd;
    position: relative;
}

.pt-map {
    width: 100%;
    height: 100%;
}

.pt-result {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: poMulish;
    transition: var(--transition);
}

.pt-result:hover,
.pt-result.is-sel {
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent-color);
}

/* Memorial styling */
.pt-memorial {
    max-width: 600px;
    margin: 40px auto;
    background-color: var(--bg-white);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.08);
}

.pt-memorial__ic {
    color: var(--accent-color);
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.pt-memorial h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.pt-memorial__years {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.pt-memorial__msg {
    font-style: italic;
    color: var(--text-muted);
}

/* Gallery grid for Giới thiệu */
.pt-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.pt-gallery__wide {
    grid-column: span 4;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
}

.pt-gallery__item {
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
}

.pt-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.pt-gallery__img:hover {
    transform: scale(1.05);
}

/* Footer bottom */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.footer-contact li {
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-logo-section img {
    height: 54px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    background-color: #09180d;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 13px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-center {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        padding: 16px 24px;
        z-index: 999;
    }
    .main-nav.is-open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }
    .main-nav a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }
    .main-nav a:last-child {
        border-bottom: none;
    }
    .header-actions {
        display: none;
    }
    .pt-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .pt-stat {
        border-right: none;
    }
    .pt-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .pt-news-grid {
        grid-template-columns: 1fr;
    }
    .pt-results {
        grid-template-columns: 1fr;
        height: auto;
    }
    .pt-results__map {
        height: 350px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .pt-stats {
        grid-template-columns: 1fr;
    }
    .pt-cards {
        grid-template-columns: 1fr;
    }
    .pt-news-card-wrapper {
        flex-direction: column;
    }
    .pt-news-image {
        width: 100%;
        height: 150px;
    }
    .pt-search {
        flex-direction: column;
        gap: 8px;
    }
}

