:root {
    --color-main: #a4693f;
    --color-main-dark: #7b4729;
    --color-main-light: #d7b590;
    --color-secondary: #30453a;
    --color-accent: #b67a4f;
    --color-dark: #1d2923;
    --color-text: #4d504a;
    --color-text-muted: #7d817a;
    --color-border: #d9d5ca;
    --color-bg: #f8f5ef;
    --color-bg-alt: #eee9df;
    --color-bg-grey: #e6e0d5;
    --font-heading: "Playfair Display", Georgia, serif;
    --font-body: "Manrope", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
}

.site-header {
    background: rgba(29, 41, 35, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}
.site-logo-text { color: #fff; }
.site-logo-text small { color: #d7c9b7; }
.primary-nav li a,
.header-phone,
.menu-toggle { color: #fff; }
.primary-nav > li::after { background: var(--color-main-light); }
.header-phone .icon { color: var(--color-main-light); }

.hero::before {
    background: linear-gradient(90deg, rgba(21, 30, 25, 0.86) 0%, rgba(21, 30, 25, 0.48) 48%, rgba(21, 30, 25, 0.12) 100%);
}
.hero-title .accent,
.cta-banner h2 .accent {
    color: #e0bd95;
    font-style: italic;
    font-weight: 600;
}
.hero-eyebrow { color: #ead4bb; }
.hero-subtitle { max-width: 680px; }

.btn-primary {
    background: var(--color-main);
    border-color: var(--color-main);
    color: #fff;
}
.btn-primary::before { background: var(--color-secondary); }
.btn-primary:hover { border-color: var(--color-secondary); }
.btn-outline:hover { color: var(--color-dark); }

.section-title { color: var(--color-dark); }
.section-title .accent { color: var(--color-main); }
.section-eyebrow { color: var(--color-main-dark); }
.section-divider::before,
.section-divider::after { background: var(--color-main); }

/* Nội dung sản phẩm do CKEditor sinh ra: chỉ dựa vào thẻ HTML, không yêu cầu class. */
.pd-detail-copy > div:first-child .section-title {
    max-width: 100%;
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 6.2vw, 3.5rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.08;
    white-space: nowrap;
}
.article-content h2,
.article-content h3 {
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 600;
    line-height: 1.18;
}
.article-content h2 {
    margin: 42px 0 18px;
    font-size: clamp(1.9rem, 4vw, 3rem);
}
.article-content h3 {
    margin: 38px 0 16px;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}
.article-content ul,
.article-content ol {
    margin: 24px 0;
    padding: 0;
    list-style: none;
}
.article-content ol { counter-reset: article-ordered-list; }
.article-content li {
    position: relative;
    padding: 11px 0 11px 28px;
    border-bottom: 1px solid rgba(217, 213, 202, .7);
    line-height: 1.75;
}
.article-content ul > li::before {
    position: absolute;
    top: 17px;
    left: 1px;
    width: 10px;
    height: 10px;
    background: var(--color-main);
    content: "";
}
.article-content ol > li { counter-increment: article-ordered-list; }
.article-content ol > li::before {
    position: absolute;
    top: 11px;
    left: 0;
    color: var(--color-main-dark);
    content: counter(article-ordered-list) ".";
    font-weight: 700;
}
.article-content li > ul,
.article-content li > ol { margin: 10px 0 0; }
.article-content table {
    width: 100%;
    min-width: 720px;
    margin: 24px 0 8px;
    border: 1px solid var(--color-border);
    border-collapse: collapse;
    background: #fff;
    color: var(--color-text);
    font-size: .9rem;
    line-height: 1.55;
}
.article-content th,
.article-content td {
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: middle;
}
.article-content thead th {
    background: var(--color-secondary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.article-content tbody tr:nth-child(even) td { background: var(--color-bg-alt); }
.article-content th:first-child,
.article-content td:first-child { width: 36%; }
.article-content th:nth-child(2),
.article-content td:nth-child(2),
.article-content th:nth-child(3),
.article-content td:nth-child(3) { text-align: center; }
.article-content th:nth-child(4),
.article-content td:nth-child(4),
.article-content th:nth-child(5),
.article-content td:nth-child(5) {
    text-align: right;
    white-space: nowrap;
}
.article-content tfoot th,
.article-content tfoot td {
    background: var(--color-dark);
    color: #fff;
    font-weight: 700;
}
.article-content tfoot th { text-align: right; }

.feature-list li::before { background: var(--color-main); }
.feature-list li:hover::before { background: var(--color-secondary); }
.feature-list li strong { color: var(--color-dark); }

.service-card .img-frame { background: var(--color-dark); }
.service-card-body {
    background: var(--color-secondary);
    box-shadow: 0 16px 34px rgba(28, 40, 33, 0.18);
}
.service-card:hover .service-card-body { background: var(--color-main-dark); }

.obituary-card .info {
    background: var(--color-secondary);
    box-shadow: 0 14px 30px rgba(29, 41, 35, 0.2);
}
.obituary-card.is-active .info { background: var(--color-main-dark); }
.text-link { color: var(--color-main-dark); }

.cta-banner::before { background: rgba(23, 34, 28, 0.7); }
.cta-banner { background-position: center; }

.news-card {
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.news-card h4 { color: var(--color-dark); }
.news-card .meta { color: var(--color-main-dark); }
.news-card .read-more { color: var(--color-main-dark); }
.news-card:hover {
    border-color: var(--color-main-light);
    box-shadow: 0 24px 48px rgba(52, 63, 56, 0.14);
}

.contact-form-panel { background: #f3eee5; }
.form-control:focus { border-color: var(--color-main); }
.site-footer { background: var(--color-dark); }
.go-top { background: var(--color-main-dark) !important; }

@media (max-width: 991px) {
    .primary-nav { background: var(--color-dark); }
    .hero::before { background: rgba(21, 30, 25, 0.67); }
}

@media (max-width: 600px) {
    .hero-subtitle { max-width: 100%; }
}

/* ──────────────────────────────────────────────────────────────────────────
   LOGO — mark nội thất thay cho logo PNG của theme tang lễ

   Biến thể này trước đây vẫn trỏ <img> vào https://cdn.anpero.com/cdn/t/49/images/
   logo.png, tức logo của Santi Funeral Service. Nay dùng inline SVG theo đúng khuôn
   .site-logo-icon của theme mẹ, nên nó tự lấy màu var(--color-main) và thừa hưởng
   sẵn hiệu ứng hover (đổi sang --color-main-light + xoay nhẹ).
   ────────────────────────────────────────────────────────────────────────── */

/* TẮT hiệu ứng "kim cương lấp lánh" của theme mẹ (style.css, .site-logo::before/::after).
   Nó sinh ra cho dịch vụ tang lễ; trên một studio nội thất theo hướng warm minimalism
   thì nó lạc hẳn tông. Dùng content:none chứ không display:none — pseudo-element không
   có content thì trình duyệt không dựng, khỏi chạy animation vô ích ở nền. */
.site-logo::before,
.site-logo::after { content: none; }

/* Logo ở footer: theme mẹ canh lề dưới qua `.site-footer .logo-block img`, mà nay
   không còn thẻ <img> nào nên quy tắc đó không bắt. Đặt lại trên chính khối lockup. */
.site-footer .footer-logo {
    margin-bottom: 14px;
    color: #fff;                 /* .site-logo vốn là <a>; ở đây là <div> nên đặt lại */
}
.site-footer .footer-logo .site-logo-icon { width: 46px; }
