/* RTD ออกแบบฮวงซุ้ย-สุสาน · Red/Gold/Yellow Premium */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:root {
  --primary: #b91c1c; --primary-deep: #7f1d1d; --primary-bright: #dc2626; --primary-soft: #fee2e2;
  --theme-coral: #b91c1c;
  --gold: #d4a83a; --gold-light: #e8c769; --gold-deep: #a07712; --gold-pale: #fbf3d8;
  --yellow: #fbbf24; --yellow-light: #fde047;
  --white: #ffffff; --cream: #fffbeb; --pale: #fef9c3; --bg-cream: #fef9c3; --bg-soft: #fef3c7;
  --bg-dark: #450a0a; --bg-dark-2: #7f1d1d; --dark: #450a0a;
  --text: #7f1d1d; --text-main: #450a0a; --text-body: #7f1d1d; --text-muted: #78716c; --gray: #57534e;
  --text-light: rgba(255,255,255,0.85); --text-dim: rgba(255,255,255,0.6);
  --line-green: #06c755; --line-green-dk: #05a647;
  --border-red: rgba(185,28,28,0.3); --border-gold: rgba(212,168,58,0.4);
  --shadow-sm: 0 2px 10px rgba(185,28,28,0.08);
  --shadow-md: 0 6px 22px rgba(185,28,28,0.15);
  --shadow-red: 0 6px 20px rgba(185,28,28,0.4);
  --shadow-gold: 0 6px 20px rgba(212,168,58,0.4);
  --container-max: 1200px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-pill: 50px;
  --font-thai: 'Prompt','Noto Sans Thai','Sarabun','Sukhumvit Set',-apple-system,BlinkMacSystemFont,'Segoe UI','Tahoma',sans-serif;
}

html, body { font-family: var(--font-thai); }
body { color: var(--text-body); background: var(--bg-cream); line-height: 1.7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
* { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-thai); font-weight: 800; line-height: 1.4; margin: 0 0 0.6em; color: var(--text-main); }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; line-height: 1.3; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; line-height: 1.7; }
a:hover { color: var(--primary); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
section { padding: 70px 20px; }
.section-light { background: var(--white); }
.section-warm { background: var(--bg-soft); }
.section-dark { background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-2) 50%, var(--bg-dark) 100%); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--gold-light); }
.section-dark p { color: var(--text-light); }

.section-title { text-align: center; margin-bottom: 50px; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--gold)); margin: 14px auto 0; border-radius: 2px; }
.accent { color: var(--primary); }
.section-dark .accent { color: var(--gold-light); }
.lead { font-size: 1.05rem; color: var(--text-body); margin: 0 0 24px; }
.sub { color: var(--text-muted); }
.reveal { opacity: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: var(--radius-pill); font-weight: 800; font-size: 0.95rem; text-decoration: none; white-space: nowrap; cursor: pointer; font-family: var(--font-thai); line-height: 1.2; transition: transform .25s, box-shadow .25s, background .25s, color .25s; }
.btn-primary, .btn-gold { background: linear-gradient(135deg, var(--primary), var(--primary-bright)); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover, .btn-gold:hover { background: linear-gradient(135deg, var(--primary-deep), var(--primary)); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(185,28,28,0.55); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: var(--line-green-dk); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.section-dark .btn-outline { color: var(--gold-light); border-color: var(--gold-light); }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); border-bottom: 2px solid var(--primary); }
.nav { max-width: var(--container-max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { color: var(--primary-deep); font-weight: 800; font-size: 1rem; }
.brand-text small { color: var(--text-muted); font-size: 0.65rem; letter-spacing: 1px; margin-top: 2px; }
.menu { display: none; list-style: none; padding: 0; margin: 0; gap: 4px; }
.menu li a { color: var(--text-body); font-size: 0.85rem; padding: 6px 12px; border-radius: var(--radius-sm); font-weight: 600; transition: background .2s, color .2s; }
.menu li a:hover { background: var(--primary-soft); color: var(--primary); }
.nav-cta { display: flex; gap: 8px; }
.nav-cta .btn { padding: 8px 16px; font-size: 0.82rem; }
.menu-toggle { display: block; font-size: 1.4rem; color: var(--primary-deep); padding: 4px 10px; }

.hero { min-height: 100vh; background: linear-gradient(160deg, #fff 0%, var(--cream) 40%, var(--bg-soft) 100%); display: flex; align-items: center; padding: 80px 20px 60px; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { top: -100px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(220,38,38,0.22) 0%, transparent 65%); }
.hero::after { bottom: -50px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(251,191,36,0.28) 0%, transparent 65%); }
.hero-grid { max-width: var(--container-max); margin: 0 auto; width: 100%; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero-content .eyebrow { margin-bottom: 12px; }
.hero h1 { color: var(--text-main); font-size: clamp(1.7rem, 4vw, 2.8rem); margin: 8px 0 16px; line-height: 1.3; }
.hero h2 { font-size: clamp(0.95rem, 1.6vw, 1.1rem); font-weight: 500; color: var(--text-body); margin: 0 0 24px; line-height: 1.7; border-left: 3px solid var(--primary); padding-left: 14px; max-width: 520px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px; margin: 24px 0; }
.hero-stat strong { display: block; color: var(--primary); font-size: 1.7rem; font-weight: 900; line-height: 1.1; }
.hero-stat span { color: var(--text-muted); font-size: 0.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-img { border-radius: var(--radius-lg); overflow: hidden; border: 3px solid var(--gold); box-shadow: 0 20px 60px rgba(185,28,28,0.25); aspect-ratio: 1/1; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.trust-strip { background: var(--white); padding: 40px 20px; border-top: 1px solid var(--border-red); border-bottom: 1px solid var(--border-red); }
.trust-grid { max-width: var(--container-max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; text-align: center; }
.trust-item { padding: 14px; }
.trust-item .ico { font-size: 2.4rem; margin-bottom: 8px; display: block; }
.trust-item h4 { color: var(--primary-deep); margin: 0 0 6px; font-size: 1rem; }
.trust-item p { color: var(--text-muted); font-size: 0.9rem; margin: 0; line-height: 1.5; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.service-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-red); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.service-img { aspect-ratio: 1/1; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 22px; position: relative; }
.service-num { position: absolute; top: -18px; right: 16px; background: linear-gradient(135deg, var(--primary), var(--gold)); color: #fff; font-weight: 800; font-size: 0.85rem; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-red); }
.service-card h3 { margin: 0 0 10px; color: var(--text-main); }
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 14px; }
.more { color: var(--primary); font-weight: 700; font-size: 0.88rem; }
.more:hover { color: var(--primary-deep); }

.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.process-step { background: rgba(255,255,255,0.05); padding: 28px 20px; border-radius: var(--radius-md); border: 1px solid var(--border-gold); text-align: center; position: relative; }
.process-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--gold)); color: #fff; font-size: 1.3rem; font-weight: 900; margin-bottom: 14px; box-shadow: var(--shadow-red); }
.process-step h3 { color: var(--gold-light); font-size: 1.05rem; margin: 0 0 8px; }
.process-step p { color: var(--text-light); font-size: 0.88rem; margin: 0; }

.promo-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.promo-img { border-radius: var(--radius-lg); overflow: hidden; border: 3px solid var(--gold); box-shadow: var(--shadow-md); aspect-ratio: 1/1; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-content .eyebrow { margin-bottom: 8px; }
.promo-content h2 { margin: 0 0 16px; color: var(--text-main); }
.promo-features { list-style: none; padding: 0; margin: 18px 0; }
.promo-feature { padding: 8px 0; color: var(--text-body); font-size: 0.95rem; display: flex; align-items: flex-start; gap: 10px; }
.check { color: var(--primary); font-weight: 800; flex-shrink: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gallery-item { aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-red); box-shadow: var(--shadow-sm); cursor: pointer; position: relative; transition: transform .3s, border-color .3s, box-shadow .3s; }
.gallery-item:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 12px; background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent); color: #fff; font-size: 0.78rem; font-weight: 600; opacity: 0; transition: opacity .25s; }
.gallery-item:hover .gallery-cap { opacity: 1; }

.calc-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); border: 2px solid var(--primary); max-width: 760px; margin: 0 auto; }
.calc-wrap h3 { margin: 0 0 8px; color: var(--primary-deep); font-size: 1.3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.field label { display: block; font-weight: 700; color: var(--text-main); font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border-red); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font-thai); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(185,28,28,0.15); }
.calc-result { margin-top: 20px; padding: 22px; background: linear-gradient(135deg, var(--bg-cream), var(--gold-pale)); border: 2px solid var(--primary); border-radius: var(--radius-md); }

.knowledge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.knowledge-card { background: var(--white); padding: 28px 24px; border-radius: var(--radius-md); border: 1px solid var(--border-red); transition: transform .3s, box-shadow .3s, border-color .3s; }
.knowledge-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.knowledge-card .ico { font-size: 2rem; margin-bottom: 8px; display: block; }
.knowledge-card h3 { font-size: 1.05rem; margin: 0 0 10px; color: var(--text-main); }
.knowledge-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; line-height: 1.65; }

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.review-grid .service-card h3 { font-size: 1.1rem; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.article-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-red); transition: transform .3s, box-shadow .3s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-img { aspect-ratio: 16/10; overflow: hidden; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 20px; }
.article-tag { display: inline-block; background: var(--primary-soft); color: var(--primary-deep); padding: 4px 12px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; margin-bottom: 10px; }
.article-card h3 { font-size: 1.05rem; margin: 0 0 8px; line-height: 1.45; }
.article-card h3 a { color: var(--text-main); }
.article-card h3 a:hover { color: var(--primary); }
.excerpt { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 14px; }
.article-card .more { font-size: 0.82rem; }

.cta-banner { background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 50%, var(--gold) 100%); color: #fff; padding: 60px 20px; text-align: center; }
.cta-banner h2 { color: #fff; margin: 0 0 14px; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 680px; margin: 0 auto 26px; font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn-primary, .cta-banner .btn-gold { background: #fff; color: var(--primary-deep); }
.cta-banner .btn-primary:hover, .cta-banner .btn-gold:hover { background: var(--text-main); color: var(--gold-light); }

.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border-red); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; padding: 18px 22px; background: none; text-align: left; font-size: 0.98rem; font-weight: 700; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; font-family: var(--font-thai); transition: background .2s, color .2s; }
.faq-q:hover { background: var(--primary-soft); color: var(--primary-deep); }
.faq-q .toggle { color: var(--primary); font-size: 1.4rem; font-weight: 700; margin-left: 14px; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .toggle { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 18px; color: var(--text-body); font-size: 0.92rem; line-height: 1.8; }
.faq-a-inner { padding-top: 4px; }

.fs-loc-pill { display: inline-block; margin: 4px 6px 4px 0; padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(185,28,28,0.18); border: 1.5px solid var(--primary); color: #fff; font-size: 0.85rem; font-weight: 600; transition: all .2s; }
.fs-loc-pill:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.section-light .fs-loc-pill, .section-warm .fs-loc-pill { background: var(--primary-soft); color: var(--primary-deep); border-color: var(--primary); }
.section-light .fs-loc-pill:hover, .section-warm .fs-loc-pill:hover { background: var(--primary); color: #fff; }

.site-footer { background: var(--text-main); color: var(--text-light); padding: 55px 20px 25px; border-top: 4px solid var(--primary); }
.footer-grid { max-width: var(--container-max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; margin-bottom: 30px; }
.site-footer h3, .site-footer h4 { color: var(--gold-light); }
.site-footer h3 { font-size: 1.25rem; margin: 0 0 12px; }
.site-footer h4 { font-size: 1rem; margin: 0 0 14px; }
.footer-brand p { color: var(--text-light); font-size: 0.9rem; opacity: 0.85; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-light); font-size: 0.9rem; opacity: 0.8; transition: opacity .2s, color .2s; }
.footer-links a:hover { color: var(--gold-light); opacity: 1; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; }
.footer-contact-item .ico { font-size: 1.2rem; flex-shrink: 0; }
.footer-contact-item a { color: var(--gold-light); font-weight: 600; }
.footer-contact-item a:hover { color: var(--yellow); }
.footer-bottom { max-width: var(--container-max); margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; text-align: center; font-size: 0.85rem; color: var(--text-dim); }

.float-cta { display: none; position: fixed; bottom: 18px; left: 18px; right: 18px; z-index: 999; gap: 10px; }
.float-cta .btn { flex: 1; box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .menu { display: flex; }
  .menu-toggle { display: none; }
  .promo-grid { grid-template-columns: 1fr 1.3fr; }
}
@media (min-width: 1024px) { section { padding: 90px 20px; } }
@media (max-width: 767px) {
  body { padding-bottom: 80px; }
  .hero { min-height: auto; padding: 60px 18px 50px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-stats { gap: 14px; }
  .hero-stat strong { font-size: 1.4rem; }
  section { padding: 50px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .calc-wrap { padding: 22px; }
  .float-cta { display: flex; }
  .menu { display: none; }
  .brand-text small { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-cta .btn { padding: 6px 12px; font-size: 0.75rem; }
}
@media print {
  .site-header, .float-cta, .hero-cta, .cta-buttons { display: none !important; }
  body { background: #fff; color: #000; }
}
