/* ============================================================
   Óc Eo Heritage - Design System
   Phong cách: bảo tồn di sản, ấm cúng, hoài niệm
   Bảng màu: đất nung / gạch cổ / giấy cũ / vàng đồng
   ============================================================ */

:root {
  --clay: #b4552d;
  --clay-dark: #8a3d1e;
  --clay-deep: #5f2a14;
  --clay-light: #d47f52;
  --gold: #c9972f;
  --gold-soft: #e3c078;
  --sand: #f6efe2;
  --sand-dark: #ecdfc8;
  --cream: #fdfaf2;
  --ink: #3b2a1f;
  --ink-soft: #6f5847;
  --ink-faint: #a08a76;
  --white: #ffffff;

  --font-heading: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Be Vietnam Pro', 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 6px 24px rgba(59, 42, 31, 0.10);
  --shadow-lift: 0 14px 40px rgba(59, 42, 31, 0.18);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, .font-heading { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  border: none; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--clay) 0%, var(--clay-dark) 100%);
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(138, 61, 30, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(138, 61, 30, .45); }
.btn-outline {
  background: transparent; color: var(--clay-dark);
  border: 1.5px solid var(--clay);
}
.btn-outline:hover { background: rgba(180, 85, 45, .08); }
.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(253, 250, 242, .5); }
.btn-ghost:hover { background: rgba(253, 250, 242, .12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 250, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-dark);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--clay) 0%, var(--gold) 130%);
  display: grid; place-items: center;
  color: var(--cream); font-family: var(--font-heading);
  font-size: 20px; font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(253,250,242,.25);
}
.brand-name { font-family: var(--font-heading); font-size: 20px; color: var(--clay-deep); }
.brand-name small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); position: relative; }
.main-nav a:hover { color: var(--clay); }
.main-nav a.nav-admin {
  padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--sand-dark); color: var(--clay-dark);
}
.main-nav a.nav-admin:hover { border-color: var(--clay); background: rgba(180,85,45,.06); }

.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--clay-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(201, 151, 47, .28), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(180, 85, 45, .30), transparent 60%),
    linear-gradient(160deg, #5f2a14 0%, #8a3d1e 55%, #a75232 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  /* hoa văn gạch cổ mờ */
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23fdfaf2' stroke-opacity='0.07' stroke-width='1.5'%3E%3Crect x='10' y='10' width='100' height='100' rx='2'/%3E%3Crect x='30' y='30' width='60' height='60' rx='2'/%3E%3Crect x='50' y='50' width='20' height='20' rx='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 96px 0 110px;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(227, 192, 120, .45);
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  margin-bottom: 18px;
  text-shadow: 0 3px 20px rgba(0,0,0,.25);
}
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero p.lead {
  font-size: clamp(15.5px, 2vw, 18px);
  color: rgba(253, 250, 242, .88);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  position: relative;
  display: flex; gap: 46px; flex-wrap: wrap;
  margin-top: 56px;
}
.hero-stat b { display: block; font-family: var(--font-heading); font-size: 30px; color: var(--gold-soft); }
.hero-stat span { font-size: 13px; color: rgba(253,250,242,.75); letter-spacing: .06em; }

/* dải hoa văn chân hero */
.hero-wave { position: relative; height: 26px; background: var(--sand);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%); margin-top: -26px; }

/* ---------- Section chung ---------- */
.section { padding: 78px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-eyebrow {
  font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--clay); font-weight: 600; margin-bottom: 12px; display: block;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); color: var(--clay-deep); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 15.5px; }
.divider-motif {
  width: 130px; height: 12px; margin: 18px auto 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='12' viewBox='0 0 130 12'%3E%3Cg fill='none' stroke='%23c9972f' stroke-width='1.4'%3E%3Cpath d='M0 6h48M82 6h48'/%3E%3Ccircle cx='65' cy='6' r='4'/%3E%3Ccircle cx='55' cy='6' r='1.6' fill='%23c9972f'/%3E%3Ccircle cx='75' cy='6' r='1.6' fill='%23c9972f'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Giới thiệu ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.about-card {
  background: var(--cream);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.about-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(180,85,45,.14), rgba(201,151,47,.18));
  font-size: 26px;
  margin-bottom: 18px;
}
.about-card h3 { font-size: 20px; color: var(--clay-deep); margin-bottom: 10px; }
.about-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Grid địa điểm ---------- */
.sites-section { background: linear-gradient(180deg, var(--sand) 0%, var(--sand-dark) 100%); }
.sites-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.site-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--sand-dark);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.site-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.site-card-cover {
  height: 190px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #8a3d1e, #b4552d 60%, #c9972f 130%);
}
.site-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.site-card:hover .site-card-cover img { transform: scale(1.06); }
.site-card-cover .cover-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(253, 250, 242, .85);
}
.cover-placeholder svg { width: 74px; height: 74px; opacity: .9; }
.site-card-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(61, 30, 12, .55); backdrop-filter: blur(6px);
  color: var(--gold-soft);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.site-card-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.site-card-body h3 { font-size: 21px; color: var(--clay-deep); margin-bottom: 4px; }
.site-card-body .site-sub { font-size: 12.5px; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.site-card-body p { font-size: 14px; color: var(--ink-soft); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.site-card-foot { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.site-card-foot .meta { font-size: 12.5px; color: var(--ink-faint); }

.empty-state { text-align: center; color: var(--ink-faint); padding: 40px 0; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #33200f;
  color: rgba(253, 250, 242, .78);
  padding: 54px 0 30px;
  margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { font-family: var(--font-heading); color: var(--gold-soft); font-size: 17px; margin-bottom: 14px; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(253,250,242,.14);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: rgba(253,250,242,.5);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--clay-deep); color: var(--cream);
  padding: 12px 24px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 999;
  box-shadow: var(--shadow-lift);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid, .sites-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .main-nav {
    position: fixed; inset: 68px 0 auto 0;
    background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--sand-dark);
    box-shadow: var(--shadow-lift);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 15px 24px; border-top: 1px solid var(--sand); }
  .main-nav a.nav-admin { border-radius: 0; border: none; border-top: 1px solid var(--sand); }
  .nav-toggle { display: block; }
  .hero-inner { padding: 64px 0 72px; }
  .hero-stats { gap: 26px; margin-top: 40px; }
  .about-grid, .sites-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 56px 0; }
}
